Changing Data
Recently my organisation has decided that data in our test will not be static and will change every month. Which means that my automation test its going to fail because it is unable to find the data I had specified.
I want to know if there is any way TC can recognise and copy the data displayed on the screen into my keyword test script ?
Example:
I search for a client using a client id.
The search returns client details including name, address, dob.
This above client details will change every month and only the client id will remain static
I want to design my test in such a way that that client name displayed on the screen is copied automatically elsewhere into my test script
Looking forward to hear a possible solution to this. Thanks
Regards
G
You would essentially use the "Set Variable Value" operation and, when selecting the variable, select your project level variable. And, in the value, you'd select an Object property (see below screenshots)
Then, let's say you want to enter that variable value into something else, like via a Keys operation. Then, you would do something like this: