2
votes

We know that robot framework provides us suit setup, teardown and Test Setup, teardown option while we execute out Robot test script. But, I am stuck in a situation where I have few test cases for which the test teardown is different and some other set for with some other set of Tear down. The main constraint is I have to execute all these test cases in the single suite at a stretch to make some dependency test cases to execute.

How to do custom Test Setup/Teardown with respect to different test sets in the same Test suite?

1
Have you read the user guide? There is a whole section on test specific setups and teardowns.Bryan Oakley

1 Answers

4
votes

As suggested by @Bryan Oakley, read the manual. In the first section you'll find this sentence which I believe answers your question:

Individual test cases can also have their own setup or teardown. They are defined with the [Setup] or [Teardown] settings in the test case table and they override possible Test Setup and Test Teardown setting...