arkaonline
New Member.
306 views

How to get RTS Additional Attribute value in Tru Client script

Jump to solution

Hi,

 

I have a need to execute a particular script in both IE and Chrome and get their respective response times.

I was thinking of passing an additional attribute called "iBrowser" = "chrome" or "IE" and append it at the end of LR_Start_Transaction("TranName" + iBrowser).

Howervr I am not able to fetch this value in my TC script. I tried using LR.getLRattr in a CFunction or a JS Code , but I am getting error in both. (Exception occured : Type Error : LR.getAttr is not a function)

If this can be done in someother way , please suggest.

 

 

 

 

 

 

 

 

Thanks

Arka

 

0 Likes
1 Solution

Accepted Solutions
Highlighted
Edo Nir Outstanding Contributor.
Outstanding Contributor.

Re: How to get RTS Additional Attribute value in Tru Client script

Jump to solution

Obtaining attribute values in JS is done via the TC.getAttr API.

In a C function, you should use one of the lr_get_attrib_X APIs (like lr_get_attrib_string)

 

Edo 

0 Likes
1 Reply
Highlighted
Edo Nir Outstanding Contributor.
Outstanding Contributor.

Re: How to get RTS Additional Attribute value in Tru Client script

Jump to solution

Obtaining attribute values in JS is done via the TC.getAttr API.

In a C function, you should use one of the lr_get_attrib_X APIs (like lr_get_attrib_string)

 

Edo 

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.