Settings required for recording a "HTTPS" (secure) web application

468 views
Skip to first unread message

Ramesh

unread,
Jun 2, 2012, 8:22:37 AM6/2/12
to LoadRunner
Hello,

Can any help what settings should i set to record a web application
that has HTTPS. Also, should i configure proxy in LR and IE ?

Appreciate for help,
Ramesh

James Pulley

unread,
Jun 2, 2012, 8:40:17 AM6/2/12
to lr-loa...@googlegroups.com
What have you tried.....
--
You received this message because you are subscribed to the Google
"LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com To
unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

Mital Majmundar

unread,
Jun 2, 2012, 8:43:07 AM6/2/12
to lr-loa...@googlegroups.com
Try running it with WIN INNET Engine, it can be donw by checking an option in the preferences of the Run Time Settings.

--
Njoy
Mital.



James Pulley

unread,
Jun 2, 2012, 9:18:54 AM6/2/12
to lr-loa...@googlegroups.com

Try running it with a hair dryer turned on cold and the faucet in the sink turned on hot.   This should have as much benefit as WININET for HTTPS recording

Mital Majmundar

unread,
Jun 2, 2012, 9:57:02 AM6/2/12
to lr-loa...@googlegroups.com
Hello James,
 
Can you tell me that difference. I have tried searching it on net but couldnt find it anywhere.
I know its better to run with Sockets engine rather then running with WININET engine but what is the difference between both. I mean is there a difference in what it captures?

James Pulley

unread,
Jun 2, 2012, 2:07:06 PM6/2/12
to lr-loa...@googlegroups.com
Just record an https application and see what happens



Mital Majmundar

unread,
Jun 3, 2012, 11:33:04 PM6/3/12
to lr-loa...@googlegroups.com
I have tried recording the same. What about it?
Njoy
 
Mital.

James Pulley

unread,
Jun 3, 2012, 11:35:43 PM6/3/12
to LoadRunner
And my guess is that it recorded HTTPS just fine without making any
changes for recording. What then would this tell you about whether
changes need to be made to record HTTPS?

Kevyland

unread,
Jun 4, 2012, 9:21:08 AM6/4/12
to LoadRunner

Did Mital actually get a recording. Sounds like yes. Does he know
what to do next. Sounds like no.




On Jun 3, 10:35 pm, James Pulley <loadrunner-li...@jamespulley.com>
wrote:
> > On Sat, Jun 2, 2012 at 11:37 PM, James Pulley <- Hide quoted text -
>
> - Show quoted text -

Mital Majmundar

unread,
Jun 4, 2012, 12:32:36 PM6/4/12
to lr-loa...@googlegroups.com
Ok guys here's the complete picture.
 
We had a HTTP"S" secured application on one environment and the same application on HTTP domain.
 
Now i was obviously able to record the HTTP app without ny problems. Now the problem that we faced with HTTPS app was that it recorded right but while replying it failed when i ran it with the normal socket engine. When i ran it with WININET engine it ran fine. So where did the difference happen, is what i want to know?
 
Also i tried various options of providing the certificates path, and adding a wet_set_user for the HTTPs app. But it didnt work.

--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en



--
Njoy
 
Mital.

James Pulley

unread,
Jun 4, 2012, 2:39:27 PM6/4/12
to LoadRunner
Not a recording issue. This is one of Windows integrated security.
In order to use web_set_user with a set of domain credentials you need
to run through the Microsoft web layer, which is WININET.
> Mital.- Hide quoted text -

Mital Majmundar

unread,
Jun 4, 2012, 2:43:55 PM6/4/12
to lr-loa...@googlegroups.com
Yes. So that is what i did. Now what difference would it have made if i would have ran it with the normal sockets engine instead of checking the option of WININET?

James Pulley

unread,
Jun 4, 2012, 4:27:46 PM6/4/12
to LoadRunner
if turning on WININET allows for integrated Windows Directory service
authentication via web_set_user(), then disabling WININET.........

Jeff Leonard

unread,
Jun 4, 2012, 8:46:42 PM6/4/12
to lr-loa...@googlegroups.com

Turn off auto authentication in IE and re record. You will be asked for your foundation username and password. James's may make more sense to you. Research

Ganesh Moorthy

unread,
Jun 5, 2012, 12:05:23 AM6/5/12
to lr-loa...@googlegroups.com

STEP 1:
------------

Convert the certificate .CER File to .PEM file using the converter( ... Google for converter .....)
Then....To load the CERT in the script try the below ......

web_set_certificate_ex("CertFilePath=example.PEM", "CertFormat=PEM", LAST);
web_set_sockets_option("LOAD_VERIFY_FILE","example.PEM");

STEP 2:
------------

Try this option to force only 1 session per connection ....

web_set_sockets_option("MAX_CONNECTIONS_PER_HOST","1");

When i did not force to 1, i was getting numerous socket errors intermittently ...

Ensure that this code is in init() section and loaded only once per vuser....

Regards,
Ganesh

Abhishek Banginwar

unread,
Jun 5, 2012, 4:25:27 AM6/5/12
to lr-loa...@googlegroups.com

Certificate converter comes with load runner

Reply all
Reply to author
Forward
0 new messages