Parameterize in TruClient Protocol

Question ID: 104685

How to parameterize a value in the LoadRunner TRUCLIENT protocol ? Our testing team, is currently using this LoadRunner 11.04 AJAX TruClient Protocol to test an application, but this is a new protocol to the team. Any tips on this subject would be great.

Marked as spam
Posted by (Questions: 107, Answers: 6)
Asked on November 7, 2012 2:08 pm
Answers (1)
Private answer

1. In LoadRunner, highlight the value to be parameterize
2. Right click the highlighted value and select ''replace with parameter''
3. Add more values in the Vugen ''parameter list'' windows


1. Create a parameter in VuGen... just like before.
2. Hit Develop Script icon to launch FireFox
3. Find the step/data to parameterize
4. Replace the data with LR.getParam(''paramname'')

You can just put the LR.getParam statement where you need it.

BTW. If you flip back and forth between the FireFox browser and VuGen it doesn't always pick up the parameter changes. You need to close FireFox and do the Develop Script again.

Note - Not all things are able to be parameterized. For example when clicking on a Link... you want to be able to parameterize the Name of the link... but that does not seem to work. Basically anywhere you hover over the data and get the JS (JavaScript) icon to appear.. you should be able to parameterize.

Marked as spam
Posted by (Questions: 17, Answers: 253)
Answered on November 7, 2012 2:10 pm