开发者

Auto-web test : ExpectedResponseUrl error

开发者 https://www.devze.com 2023-04-09 22:28 出处:网络
While running my auto-web test, I received this message : Response URLValidationThe value of the ExpectedResponseUrl properity \'http://localhost:4800/FirstPage.aspx\' isn\'t equal to the effective

While running my auto-web test, I received this message :

Response URL Validation The value of the ExpectedResponseUrl properity 'http://localhost:4800/FirstPage.aspx' isn't equal to the effective response URL 'http://localhost:4800/开发者_如何学编程SecondPage.aspx'. The QueryString parameters have been ignored.

Note: for the redirection, I am using:

Response.Redirect(Url2, false);

event while changing the parameter with true, I receive the same message.


I found the solution, and I didn't understand why! but it is Oky :

The solution is to use Server.Transfere() instead of Response.Redirect()

0

精彩评论

暂无评论...
验证码 换一张
取 消