Highlighted
Trusted Contributor.
Trusted Contributor.
791 views

TruClient radio button parameter selection by Descriptor object identification

Jump to solution

I'm trying to record as scenario based on a specific radio button option selection based on a parameter lookup.  Can someone guide me how this can be acheived using the descriptor method to locate objects?  I've attached a screenshot of what I have configured.

0 Likes
1 Solution

Accepted Solutions
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: TruClient radio button parameter selection by Descriptor object identificati

Jump to solution

Please check this screenshot. https://cl.ly/pxmi

Create a parameter and add the attached code in the Descriptors in the form of js. 


Thank you,
NaveenKumar Namachivayam | www.QAInsights.com
Learn TruWeb - my Udemy Course "Performance Testing using TruWeb" | https://www.udemy.com/performance-testing-using-truweb/?couponCode=YOUTUBE

View solution in original post

4 Replies
Highlighted
Super Contributor.
Super Contributor.

Re: TruClient radio button parameter selection by Descriptor object identificati

Jump to solution

Hi Junior,

You can call the TruClient Parameter API in Descriptor dialog with the "ArgsContext" prefix. e.g.  ArgsContext.TC.getParam("term");

please take a look at below post, in which I answered the similar question:

Using parameters in descriptors or javascript in list boxes

Thanks,

Penn

Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: TruClient radio button parameter selection by Descriptor object identificati

Jump to solution

Please check this screenshot. https://cl.ly/pxmi

Create a parameter and add the attached code in the Descriptors in the form of js. 


Thank you,
NaveenKumar Namachivayam | www.QAInsights.com
Learn TruWeb - my Udemy Course "Performance Testing using TruWeb" | https://www.udemy.com/performance-testing-using-truweb/?couponCode=YOUTUBE

View solution in original post

Highlighted
Trusted Contributor.
Trusted Contributor.

Re: TruClient radio button parameter selection by Descriptor object identificati

Jump to solution

Hi, 

Thanks for the reply.  I tried what you suggested and receive an error as illustrated on error4.png.  Can you see anything wrong with the configuration I made in error2.png and error3.png?  Also, whats the reason for the error, "Can not be used in "Play this step only" mode in error1.png?  Note I was able to get this working with the descriptor method.

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: TruClient radio button parameter selection by Descriptor object identificati

Jump to solution

Thanks, got it to read from the parameter value.

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.