Hi everyone, I’m really struggling with something that feels like it should be simple. I have Test Case A which generates a random dynamic string (like a unique user ID or an order number). I need to use that exact same string in Test Case B right after it.
I’ve been trying to figure this out for two days. I read online that I should use Data Binding, but that requires setting up an external Excel spreadsheet or a CSV file. I don’t want to do that because this value is generated on the fly, and managing a spreadsheet just for one dynamic variable feels like total overkill and ruins the automation flow.
I tried creating a local variable in Test Case A and then using the callTestCase keyword to run Test Case B inside it, but Test Case B just uses its own default variable value and completely ignores what happened in Test Case A. I also tried setting a variable in the local “Variables” tab of the script, but I can’t seem to access it from the other script.
How do I pass a piece of data from one test case to another purely in the script? Please help, I’m completely stuck!