Tuesday, 16 February 2016

Error "An Authentication object was not found in the SecurityContext" in load runner

Some times in our application with the web-services,during recording of the application VUGen doesn't record the authentication object and while replaying the script you get the error An Authentication object was not found in the Security Context

The reason for the SOAP fault is: 

"An Authentication object was not found in the SecurityContext"

As mentioned by above error, the application  is mostly launched via a web-link where the run time jars / dlls are downloaded locally and application is launched. During launching itself the application takes the credentials from local system (your AD account details) and authenticates the user. In case of replaying this operation in VUGen this authentication information is not available, this can be done by sending the authentication information in the header before the first web-service request as shown below:




Otherwise if your web service method has property for sending authentication object then you can do so in the request itself.

No comments:

Post a Comment