Absent Member.. RahulKaushik Absent Member..
Absent Member..
747 views

VUGen - Java Protocol - lr.eval_string does not appear to be working.

JAVA protocol. - lr.eval_string is displaying the param name and not value. Any idea how to fix this issue in JAVA protocol.

*****SCRIPT******

lr.message("Get remote user " + lr.eval_string("<REMOTE_USER>"));

******Output *********:
Virtual User Script started at : 1/29/2016 2:04:21 PM
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Maximum number of concurrent connections per server: 4   [MsgId: MMSG-26000]
Starting action Actions.
Get remote user <REMOTE_USER>

 I am using VUGen 11.52.

0 Likes
1 Reply
BoychukM Absent Member.
Absent Member.

Re: VUGen - Java Protocol - lr.eval_string does not appear to be working.

Hi,

By default parameter delimiters in VuGen are "{" and "}". If you did not change it, than please try to use string below:

lr.message("Get remote user " + lr.eval_string("{REMOTE_USER}"));

Regards,

Mikhail

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.