how to parameterise url or uid and password in ajax trueclient (393 Views)
Reply
Frequent Advisor
himanshuk
Posts: 64
Registered: ‎12-17-2013
Message 1 of 5 (393 Views)
Accepted Solution

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 !!!
HP Expert
Guy_Rosenthal
Posts: 245
Registered: ‎10-24-2011
Message 2 of 5 (380 Views)

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
TruClient RnD Team Manager
TruClient-StormRunner Load RnD
Frequent Advisor
himanshuk
Posts: 64
Registered: ‎12-17-2013
Message 3 of 5 (359 Views)

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 !!!
HP Expert
Guy_Rosenthal
Posts: 245
Registered: ‎10-24-2011
Message 4 of 5 (355 Views)

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
TruClient RnD Team Manager
TruClient-StormRunner Load RnD
Frequent Advisor
himanshuk
Posts: 64
Registered: ‎12-17-2013
Message 5 of 5 (341 Views)

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 !!!
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.