How to Correlate Dynamic Parameter In TruClient: Below are the steps to extract dynamic values in TruClient that are seen on the HTML response page.

Example: I took the example of www.myloadtest.com, here a magical number needs to be entered in the text which can be seen on the webpage. Extracting magical number is shown in the below steps.

Step 1: Open the recorded scenario in the Chrome browser,

Step 2: Replay the script until the required page is rendered (in my case until the step magical number is displayed)

Step 3: Drag and Drop “generic object action” from toolbox

Step 4: Click to choose any object and select the dynamic value which needs to correlate.

How-to-Correlate-Dynamic-Parameter-In-TruClient

Step 5:  Change step “Click” to Step “Goto Property

Correlate-Dynamic-Parameter-In-TruClient

Step 6: Go to Argument, Give a “Property” value as ” Visible Text” and provide a Variable name as “XXX“.

How-to-Correlate-Dynamic-Parameter

Step 7: Drag and Drop an Evaluate Javascript from the Misc section and try to set the variable from JS(XXX) to LoadRunner(LR_XXX).

TC.setParam(“LR_XXX”, XXX);

Step 8: Now you can use the LR_XXX where ever you need in the script.

Thanks

Also Read: How to use Future or Past Date in Jmeter Without any Code

How to Correlate Dynamic Parameter In TruClient

4 thoughts on “How to Correlate Dynamic Parameter In TruClient

  • July 9, 2021 at 12:39 pm
    Permalink

    Drag and Drop an Evaluate Javascript from the Misc section and try to set the variable from JS(XXX) to LoadRunner(LR_XXX).

    TC.setParam(“LR_XXX”, XXX);

     

     

    Where do i find this mis scetion?

    Reply
  • May 25, 2022 at 6:47 pm
    Permalink

    Thank you for detailed steps. It worked :)

    Reply
    • May 31, 2022 at 10:16 am
      Permalink

      Thanks for Feedback

      Reply
  • November 30, 2022 at 6:09 pm
    Permalink

    How to capture value and place it in a variable

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *