Changing the web server in a web test: I have a web test with the web server name as parameter and tried changing the address under the WebServer context parameter. I changed it from http://localhost: to http://server, but got an error when I ran the test. The error message was "Response URL Validation The value of the ExpectedResponseUrl property 'http://server/site/Default.aspx' does not equal the actual response URL 'http://server/Default.aspx'. QueryString parameters were ignored." It failed because the site name was mapped to the port number in the virtual directory on localhost. I had to change the value of the ReturnUrl QueryStringParameter from %2fDefault.aspx to %2fsite/Default.aspx.
I need to remember to change the site name in 2 places:
WebServer1 ContextParameter at the bottom of the webtest
ReturnUrl QueryStringParameter at the top under the login step