Ask a Question

How to get value from object in tested application

Not applicable

How to get value from object in tested application

Hi. I've problem with create a variable. How can I save value from fested object and use it as a variable in next steps of my keyword test? That's the first problem. Next one is that I would like to save that value in external file (*.txt or *.csv). Of course solution of the second problem is also solution of the first problem.
SmartBear Alumni (Retired)

Hi Krzysztof,


To set the value of the variable, you need to add the Set Variable Value operation to your test. On the Set New Value step, select the Object Property mode, catch the object and specify the property from where you need to get the value:


As for saving the results to external files, I recommend that you read the "Working With Files From Scripts" article that describes the possible approaches.


Tanya Yatskovskaya
SmartBear Community and Education Manager

Showing results for 
Search instead for 
Did you mean: