Vijay Guru Prasadh

Hi,

I have recorded a web application using webtest. On playing back, due to server error, a page shows "sorry for inconvienience, Please try again later". But schoked to see the test has PASS status and continue to run the next request. Kindly clarify what could have been

Thanks - Vijay.



Re: Visual Studio Team System - Testing Can I Stop the Playback automatically if Test fails

Dennis Stone - MSFT

If your site is redirecting to a friendly error page when an error occurs the http status codes returned will likely be 300's (for the redirects) and then 200 - OK on the error message page, which won't be seen as an error by playback.

You could potentially use a Validation Rule (find text probably) to detect this, or generate a coded test and add a postrequest event handler to the request, another option would be a request plugin.  Upon detection of the error you can call stop on the webtest.

 






Re: Visual Studio Team System - Testing Can I Stop the Playback automatically if Test fails

Vijay Guru Prasadh

Hi,

Thanks.That got rid of most of my doubts. Also, I can able to see, a page called "Object moved here" between 2 requests. Kindly let me know what are all the possibilities of getting this page. Is it correct or we have to change anything in code or settings to get rid of this one Kindly suggest

Thanks - Vijay





Re: Visual Studio Team System - Testing Can I Stop the Playback automatically if Test fails

Dennis Stone - MSFT

That's just a redirect occuring during the playback process, which is usually perfectly normal. As long as everything is running fine and the redirect appears to be doing the right thing (the next page that comes up looks correct) you shouldn't need to do anything with it.




Re: Visual Studio Team System - Testing Can I Stop the Playback automatically if Test fails

Vijay Guru Prasadh

Hi,

Got it. Thanks a Ton.

- Vijay.