How to capture a value that is generated during execution time and create a filter?

Document ID : KB000014958
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

To capture a property value that is generated from the execution result, you can run the test in the ITR and export the properties.

Question:

How to capture a value that is generated during execution time and create a filter?

Environment:
All DevTest Supported Releases.
Answer:

Below are the steps to capture a property value that is generated during execution time:

1. Execute the test case or the VSM in the ITR.

2. Send some requests to it and stop the ITR execution by using the stop button or Cancel option.

VSM ITR Execution

 

3. Select the step under Execution History, and go to the Properties tab:

VSM ITR Execution Properties

In this case the property we are looking for is the "lisa.vse.request" which contains the request payload.

4. Still in the Properties tab, at the bottom of the ITR, scroll to the right to find the arrow icon "Export the value of these properties from runtime to design time" and select it.

VSM ITR Execution Export Button

The "Select Properties" window will open:

VSM ITR Execution Export Button

5. Select "Select All" option and "Export".

VSM ITR Execution Export Button

6. The message "This will save the selected properties into the design time. Do you also want ".rsp" selected properties to be saved as the step responses?" Select "Yes".

VSM ITR Execution Expor tButton

7. Minimize the ITR and go to the step where the filter will be added. In this case the Listener Step is being used.

8. The filter added was "Created Properties Based on Surrounding Values". In this example the "lisa.vse.request" is the property being used:

Create Property Based On Surrounding Values

The property {{request_User}} is now the property that can be used during the VSM or test case execution.

 

Additional Information:

For more information regarding the "Created Properties Based on Surrounding Values" filter, you can check our documentation: Create Property Based on Surrounding Values