With AJAX Truclient, how do I capture data from the application screen, during processing? classic WEB_REG… not allowed.
Question ID: 104317
4
0

Any examples would be great… I’ll take C code or JAVAscript.
Thanks

Marked as spam
Posted by (Questions: 2, Answers: 1)
Asked on February 10, 2011 2:56 pm
784 views
Answers (3)
3
Private answer

To capture data to use in parameters, try following the this example. In the example to record the timestamp that gets placed on each order.

![alt text][1]

1. Drag out **''Evaluate JS on Object''** from the Toolbox
![alt text][2]
2. Click on **'' Click on Choose an object**'' and highlight the object wanted
3. In the **''Step''** drop down tab of the step, change the Action from **''Evaluate JavaScript''** to **''Get Property''**
4. In the **''Argument''** section of the step, In the property box select **''Visible Text''** and in the Variable box type: **''TimeStamp''** -Make sure to use quotations
6. Drag out **''Evaluate JavaScript**'' from the Toolbox and place it below
7. In the code section type: **window.alert(TimeStamp);** - This is to make sure the correct info was captured with a popup box (*disable this step when done debugging*)
8. Then Drag out a second **''Evaluate JavaScript**'' from the Toolbox and place it below the first one
9. In the code section type: **LR.setParam(''TimeParam'', TimeStamp);** -This Creates a parameter of the value

?
**Ensure you are using the latest patch for your version of loadRunner LR11.04 or LR11.51**.

[1]: /storage/temp/55-pic1.png
[2]: /storage/temp/57-pic2.png

Marked as spam
Posted by (Questions: 12, Answers: 384)
Answered on February 28, 2013 4:38 pm
0
Private answer

I dont find ''GetProperty'' in dropdown list. Can you please tell me which version of loadrunner are you using...

Marked as spam
Posted by (Questions: 0, Answers: 1)
Answered on December 6, 2013 7:48 am
0
Private answer

Excellent, and how to get the step 8. ''TimeParam'' value and pass it to the script? thanks in advance.

Marked as spam
Posted by (Questions: 0, Answers: 1)
Answered on May 28, 2014 11:42 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top