Hi,
WebTest will automatically fail when an http response with an error code
is received from a server. If you want to explicitly test error pages
(with HTTP error codes), you have to change the default configuration:
<config>
<option name="throwExceptionOnFailingStatusCode" value="false"/>
</config>
Cheers,
Marc.
Daniel Topley a écrit :
What part of the message are you trying to verify? I wrote some tests
that do this, by simply verifying part of the text on the page. For
example, if the page returns ERROR 404, page not found! I might
just right in the test to verify the text "page not found" since that
would not appear anywhere else, and 404 might pertain to an area code,
or something else... Hope this helps!
Daniel T
I am writing canoo test for testing an error condition, i am getting
error response from the server but not able to verify the error
message.
Can some one from this group help me out.
Thanks
Taheer Mohd
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest