I created simple Coded UI test where I do the following:
- Open a browser
- Go to a web address
- Click on a hyperlink (link within the webapp's domain).
After the UIMapping is generated I see a bunch of auto-generated mapping code. Within the UIMapping file (class) I see URL's which are essentially hard-coded.
Example:
this.FilterProperties[HtmlDocument.PropertyNames.PageUrl] = "http://mytesturl:8000";
this.mUIItem50006598Hyperlink.FilterProperties[HtmlHyperlink.PropertyNames.Href] = "http://mytesturl:8000/link"
How can I make my automated UI tests configurable so that I can run the same tests against different environments (dev, test, prod...etc)?