Maybe that will help you: How to extract the test status (Pass/Fail) of a test_case/test_suite into a variable
Combine that with SetUp/TearDown TS methods.
Maybe that will help you: How to extract the test status (Pass/Fail) of a test_case/test_suite into a variable
Combine that with SetUp/TearDown TS methods.