pass test with 401.1 error

I want to write a web test for a user that is not authorized to access a page...the test should pass if the user is denied access with "HTTP Error 404.1 - Unauthorized".

This was easy enough to do with NUnitASP (just set an expected exception), but I can't figure out how to do it in VS 2005. Any suggestions

Thanks,

Chuck

 



Answer this question

pass test with 401.1 error

  • captJackSparo

    Thanks for the response, Josh.

    That is very unfortunate. I think that my test ought to test both that a link to a particular page is not visible to a certain role, as well as that the role can't access the particular page directly.

    *sigh*


  • LavP

    Chuck,

    Unfortunately failure testing is not possible with the current release.  It is at or at least very near the top of our priority list for the future, though.

     

    Josh



  • pass test with 401.1 error