Pages

Tuesday, October 7, 2008

Parameterize Web Server and ReturnUrl

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:
  1. WebServer1 ContextParameter at the bottom of the webtest
  2. ReturnUrl QueryStringParameter at the top under the login step

14 comments:

Sachin G said...

Hi Sherry,
Is there a facility in VSTS 2008 where in we can parameterize the Virtual Directory name in webtest?

Thanks & Regards
Sachin

Anonymous said...

Brilliant web site, I had not noticed schupka.blogspot.com earlier in my searches!
Carry on the wonderful work!

Anonymous said...

Thank you, that was extremely valuable and interesting...I will be back again to read more on this topic.

Anonymous said...

Thanks for sharing this link, but unfortunately it seems to be offline... Does anybody have a mirror or another source? Please answer to my post if you do!

I would appreciate if a staff member here at schupka.blogspot.com could post it.

Thanks,
Peter

Sherry Chupka said...

the URLs in the post are for demonstration purposes, so they do not point to a real website

Anonymous said...

Hi Iam Prabhu from chennai,joined today in this forum... :)

Anonymous said...

Thanks for sharing this link, but unfortunately it seems to be offline... Does anybody have a mirror or another source? Please answer to my post if you do!

I would appreciate if a staff member here at schupka.blogspot.com could post it.

Thanks,
Charlie

Anonymous said...

Hello,

This is a inquiry for the webmaster/admin here at schupka.blogspot.com.

May I use part of the information from your blog post above if I provide a backlink back to this site?

Thanks,
Peter

Sherry Chupka said...

hello Peter, it's fine with me if you use information from this post

Anonymous said...

Thanks for sharing the link, but unfortunately it seems to be down... Does anybody have a mirror or another source? Please answer to my post if you do!

I would appreciate if someone here at schupka.blogspot.com could post it.

Thanks,
Alex

Anonymous said...

Thanks for sharing the link, but argg it seems to be offline... Does anybody have a mirror or another source? Please answer to my message if you do!

I would appreciate if a staff member here at schupka.blogspot.com could repost it.

Thanks,
Daniel

Anonymous said...

Hello there,

This is a inquiry for the webmaster/admin here at www.blogger.com.

May I use some of the information from your post right above if I provide a link back to your site?

Thanks,
Jules

Sherry Chupka said...

Jules, sure you can use information from this post

Anonymous said...
This comment has been removed by a blog administrator.