LoadRunner Support Forum
Showing results for 
Search instead for 
Do you mean 

how to parameterise url or uid and password in ajax trueclient

SOLVED
Go to Solution
Frequent Advisor

how to parameterise url or uid and password in ajax trueclient

unlike web protocol how to parameterised url user id and passwords in ajax true client protocol, more over

I want to pass say 100 urls in for loop in one application for entire one operation from login to logout

how to parameterise these urls, I am not getting concern help from manuals, how to use LR.getitem from taking item from file

prod support
telecom

Smile tomorrow will be worse !!!
1 ACCEPTED SOLUTIONS
HPE Expert

Re: how to parameterise url or uid and password in ajax trueclient

Hi,

It is not working because you are not using the API correctly.

You should call:

LR.getParam("ParameterName");

 


Where ParmeterName can be:

  1. configured in VuGen's Parameter Dialog beforehand
  2. set in RunTime using LR.setParam()
  3. created automatically using the replace with parameter from TruClient UI

 

Guy Rosenthal
Network Virtualization PM
4 REPLIES
HPE Expert

Re: how to parameterise url or uid and password in ajax trueclient

Hi,

As I mentioned before all is written in the user guide of LR.

I'm sure you'll find it useful and descriptive.

 

You can use the Evaluate JS step and use the LR.getParam() API in a navigation, autentication steps.

Guy Rosenthal
Network Virtualization PM
Highlighted
Frequent Advisor

Re: how to parameterise url or uid and password in ajax trueclient

LR.getParam("C:\*.dat filepath") is not working and I want to write here in dat file, parameters like {uid} and {pass} and make it generalise this type of help not getting from VuGen help doc

prod support
telecom

Smile tomorrow will be worse !!!
HPE Expert

Re: how to parameterise url or uid and password in ajax trueclient

Hi,

It is not working because you are not using the API correctly.

You should call:

LR.getParam("ParameterName");

 


Where ParmeterName can be:

  1. configured in VuGen's Parameter Dialog beforehand
  2. set in RunTime using LR.setParam()
  3. created automatically using the replace with parameter from TruClient UI

 

Guy Rosenthal
Network Virtualization PM
Frequent Advisor

Re: how to parameterise url or uid and password in ajax trueclient

your language is quite difficult to understand: I made template parametrized as usual same as we made in case of Ajax (Click and Script) protocol and then I done Developer script and instead values I just put LR.getParam("ParameterName"); and parameterName is name behind template, but where do I use setParam that is not getting and by the way using getParam only my parameterisation is done successfully, you can please elaborate setParam where and how to use in this case
prod support
telecom

Smile tomorrow will be worse !!!