I was wondering if someone can tell me how to pass a variable that is gotten in one testcase and use it in another testcase.
For example,
In testcase 1 we get a value from a post command and assign it to a variable. So value = xyz
I then want to take the variable called value and use the content of value in testcase 2.
value2 = value
If you are passing variables from one Test Case to another Test Case within a Test Suite, you can do it with Global Variables or static variables, as discussed in the link below.
If you are passing variables from one Test Case to another Test Case outside of a Test Suite, then you need to Save those variables to a spreadsheet or data file. There are examples of this on this forum, such as: