...90% of the time my tests are just superficial "does a page work", or "this url should not work"
Browse to page, make sure there's no YSOD, done. However the actual test has to be some "hacky" thing like looking for an element which wouldnt exist on a YSOD page.
Could we add a new test step that just "automatically" looks for a crash page...So like in my test project I could give TS my error page Urls, and then I would add this new step in to say
- Browse to Page
- Check for 500
or
- Check for 404
or
- Check for Error
Then internally that magic test step would determine if the resulting url is one of my error pages and\or a YSOD. This would also let me fire up a series of PURPOSELY bad urls to throw at it to hope they 404 or 500.
Browse to page, make sure there's no YSOD, done. However the actual test has to be some "hacky" thing like looking for an element which wouldnt exist on a YSOD page.
Could we add a new test step that just "automatically" looks for a crash page...So like in my test project I could give TS my error page Urls, and then I would add this new step in to say
- Browse to Page
- Check for 500
or
- Check for 404
or
- Check for Error
Then internally that magic test step would determine if the resulting url is one of my error pages and\or a YSOD. This would also let me fire up a series of PURPOSELY bad urls to throw at it to hope they 404 or 500.