Re: How do I get Ajax C&S to decline Client Certificate and submit username/password? (316 Views)
Reply
Occasional Visitor
Peter_VDW
Posts: 2
Registered: ‎08-06-2013
Message 1 of 4 (343 Views)

How do I get Ajax C&S to decline Client Certificate and submit username/password?

I'm a new member on a test team and new to loadrunner.

 

My team has been tasked with developing test scripts for a website that uses Ajax extensively (I believe the website was created using Google Web Toolkit)

 

Normally users will log into the website using client certificates, however if they don't have a client cert they can hit cancel when prompted for one and login with a username/password.

 

They want to do load testing so they want to be able to do this without using Truclient.  SInce I'm the noob I've been tasked with this part, partially to see if it can be done and partially to learn loadrunner.

 

I've successfully created scripts that login with username/password using Truclient, and I've created test scripts that work with a client certificate using Ajax Click and Script.

 

However, when I record a script using Ajax C&S that cancels out of the certificate request and logins in with username/password, it fails during playback.

I get the following error:

Action.c(4): Error -27493: Client authentication certificate needed but is not available.

 

Does anyone know how how to get around this?

Honored Contributor
shiv_p
Posts: 2,856
Registered: ‎04-23-2008
Message 2 of 4 (322 Views)

Re: How do I get Ajax C&S to decline Client Certificate and submit username/password?

Include client certificate in firefox and try.

 

Firefox> Tools > Options > Advanced > Encryption. The Certificate Manager window should appear 

Navigate through the certificate;  In case there are missing certificates, they need to be imported.

 

Search for  key3.db and cert8.db and copy these to:

<Install Drive>\HP\LoadRunner\dat\LrWeb2MasterProfile

 

Create a  new script and see if you succeed.

Occasional Visitor
Peter_VDW
Posts: 2
Registered: ‎08-06-2013
Message 3 of 4 (316 Views)

Re: How do I get Ajax C&S to decline Client Certificate and submit username/password?

I am sorry if I was unclear.

 

I do NOT want it to use a Client Certificate.  I want it to fall back to using Username/Password.

HP Expert
Suerte13cr
Posts: 736
Registered: ‎09-14-2011
Message 4 of 4 (311 Views)

Re: How do I get Ajax C&S to decline Client Certificate and submit username/password?

Does it work with a web_set_user?

 

Regards,

Mario M.

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.

LoadRunner:
http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/bd-p/loadrunner-support-customer-forum

Performance Center:
http://h30499.www3.hp.com/t5/Performance-Center-Support/bd-p/performance-center-support-customer

How to:
http://www.youtube.com/watch?v=4ChlysWupWM

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.