Actually this code is not working properly either. My test case hierarchy is as follows:
- Code: Select all
Master Test Suite
Parent Test
TestA
Test1
Test2
Test3
teardownA <user code module containing your code>
TestB
Test1
Test2
Test3
teardownB <user code module containing your code>
If Test 1,2, or 3 fail in TestA then teardownA will run (as I would expect), however this has the unwanted affect of making TestA, Parent Test, and Master Test Suite's states "Failure". When TestB is run after TestA and Tests 1-3 pass, teardownB is run (even though TestB test case is actually a success).
This upwards failing effect bug I noted in the following post: turning-off-test-case-pass-fail-status-t2138.html
But the issue I have remains regardless as I want to know if any of the Tests in the CURRENT Test Case ( ie. TestA or TestB ) failed regardless of the state of the Parent Test. Is this possible?