Setup/Teardown for Test Suite and Test Case


#1

This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/setupteardown-for-test-suite-and-test-case.html

#2

Hi , this is shiva,

I would like to add some more fields to the summary of the Report, is it possible?
If yes, where should I add my customized fields in the code?
Please help me with this.

Thanks,
Shiva


#3

Hi, this is Akshay,
Can I call testcase from setUp() method? If yes, the how can I call it?


#4

Hi Akshay,
I think you can. I called a test case from setupTestcase() instead of setup(). The code would be:

WebUI.callTestCase(findTestCase(‘path of the test case you want to call’), [:], FailureHandling.STOP_ON_FAILURE)

After you done, remember to change skipped = false instead to activate the code. @SetupTestCase(skipped = false)

Hope this would help!