Keacey
17 years agoContributor
Common teardown script for test cases
Hi,
I have created a groovy script for test case teardown. But since the script is common for all test cases and i do not change anything in it, i copy-paste the same script for all the test case teardown.
Is there any way, by writing another groovy script (and probably running it initially before the i run the test cases), i can send this script to all the testcase teardown in a test suite? also can i write this script externally, maybe a .txt file and then import the content to the teardown script window.
Thanks in advance.
Kusuma.
I have created a groovy script for test case teardown. But since the script is common for all test cases and i do not change anything in it, i copy-paste the same script for all the test case teardown.
Is there any way, by writing another groovy script (and probably running it initially before the i run the test cases), i can send this script to all the testcase teardown in a test suite? also can i write this script externally, maybe a .txt file and then import the content to the teardown script window.
Thanks in advance.
Kusuma.