Hi,
I'm testing an OpenAM server (and not the target application) and I have the following sequence:
- Try to access a resource without being authenticated.
- Step #1 causes an error 403 and redirection to login page.
- Login.
- Redirection to application.
The step #2 is part of the dialog and I want to simulate it because it is part of the load of the OpenAM server. So I used lr_continue_on_error function in order to ignore the error and continue to the next step. The problem is that the replay summary says that the script failed, but it is not a functionnal error from my point of view : it is the normal behaviour of an OpenAM server.
My question is how to reset the error context in a script (or avoid a step to be counted as a failure). I'm using PC12.20 (VUGen 12.02) and HTTP/HTML protocol. The only way I've found is to comment out these lines, but I'd like to keep this step as it is part of the load.
//Do not count this HTTP Auth required redirection as a script failure
lr_continue_on_error(LR_ON_ERROR_CONTINUE);
web_url("Login",
"URL=https://fed-auth/openam/WSFederationServlet/metaAlias/IDP/wsfed-authsimple?wa=wsignin1.0&wtrealm=https%3a%2f%2fportail.collaboratif.fr&wctx=https%3a%2f%2fportail.collaboratif.fr%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252FSitePages%252FHome%252Easpx",
"Resource=0",
"RecContentType=text/html",
"Mode=HTML",
LAST);
lr_continue_on_error(LR_ON_ERROR_NO_OPTIONS);
Thank you in advance for your help.