Highlighted
Absent Member.
Absent Member.
357 views

RE:TRUCLIENT value capture & substitution

Hi Experts,

We have been working on a application using HP LoadRunner TruClient protocol, were we come across an issue with substituting a captured value.

It comes like this.

1. We are capturing a value(Transaction number, which differs on each iteration) from a pop-up window after saving the data.

2. The captured value is being saved to a variable(TranNo) and need to be used around   3-4 steps later, in a search text box.

How do we call the variable, so that it can be used in the text box arguement.

Any suggestions welcome.

Tried using LR.getParam method and all, but it is typing the variable name itself, instead of typing the captured value.

 

Thanks in Advance

AjKumar 

0 Likes
1 Reply
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: RE:TRUCLIENT value capture & substitution

Hi,

If I understand correctly you need to type the text in a search box, right?

if that is the case you just need to use TranNo as the value for that text box and change the toggle located on the right side of the argument from Plain Text to JavaScript value.

Regards,

Shlomi

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.