Forum Discussion
- KarelHusaChampion Level 1
The setUp script of the suite is executed when the test suite is launched. Similarly a test case setUp script is started when a test case is started. So if you launch the test case or a test step, the test suite setuUp script is not executed.
If you open the setUp script (via test suite editor), you can execute the setUp script manually (by the green arrow button). If you want to do the same with scripting, you can use the API:
testSuite.runSetupScript(context, runner)
I suggest either to launch the whole test suite or to use a more suitable place where to put the script (on test case level, Groovy script test step or other option).
- nmraoChampion Level 3At what (test suite / test case or project) level setup script is placed?
- ankushOccasional Contributor
Setup script is placed at test suite level .
Related Content
Recent Discussions
- 11 hours ago