an array list variable is declared in the setup script of a test case. To use this list variable in other test steps of this test case, what is needed to do?
Thanks for any answer!
Solved! Go to Solution.
Your question made to create this sample project hosted on github
This smaple project has multiple sample test cases.
Hope you may find it helpful.
Actually I want to load external data to a list in the test case setup script, then use this list in the "Groovy Script - Data Source" step. But it seems that the variable declared in setup script cannot be accessbile from test step.
Your question made to create this sample project hosted on github
This smaple project has multiple sample test cases.
Hope you may find it helpful.
The best way is to store the list value in custom properties at TestCase level or store it in Properties step in your testcase.
Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓
I have awared of that. thanks!
Subject | Author | Latest Post |
---|---|---|