Highlighted
Absent Member.. Absent Member..
Absent Member..
1510 views

Descriptors Editor not accepting TC.getParam("param") value. Object identification failing

Hi I'm on 12.50 version.

Using descriptors for identification but it cant find objects. 

1)  Tested TC.getParam("param") and it does work everywhere else. 

2) Manually specifying pram in clear text works.

My conclusion that Descriptor editor does not evaluate string from TC.getParam("param").

Tried both JS and Plain editors. 

Please assist. 

Thanks

Jason

0 Likes
1 Reply
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Descriptors Editor not accepting TC.getParam("param") value. Object identification fai

Hi Jason,

You need to use the following syntax to get it working

ArgsContext.TC.getParam("DisplayID")

ArgsContext prefix is required when accessing variables and objects defined in the arguments section of the step or cached in memory in TruClient. You can see an example for that here

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.