I have an issue with local variables, that they are unknown in the same test case, when i declare it in one “Called test case” and try to use it in another . Let me explain my problem in detail:
I have a testcase which includes multiple test steps. I used the “Call test case” functionality to call all my test steps. I declare and set a local variable (e.g. numberOfDisplayedItems) in test step a and then try to verify the value of the variable “numberOfDisplayedItems” in test step 2.
Unfortunatly I was not successful The variable numberOf DisplayedItems is not known in test step 2.
The other possible approach is to store your variable to a permanent memory - to a file.
The advantage of this approach is that you can reuse the variable in multiple tests and you don’t need to call first test again and again. You can also store multiple variables and read them as you want.
Finally, at the end of your test suite, just delete the file to clean a mess.