[Webtest] Capturing 403 Http Errors

Paul King webtest@lists.canoo.com
Thu, 11 May 2006 22:36:03 +1000


work wrote:
> It might sound strange, but I need to either capture the 403 error, or 
> know how to disregard it so the all tests following it process 
> properly.  It is actually a return we are using in our application so it 
> is valid if you don't have access to the requested link.

Hi Rick,

Have a look at storeResponseCode:

    http://webtest.canoo.com/webtest/manual/storeResponseCode.html

I suspect it isn't exactly what you want but it might be part of
a solution that meets your needs or it might give you some ideas.
The example shows how you can detect and test a 404 error.


Cheers, Paul.