1

I want to turn off the bluetooth at the end of testcase even if any intermidiate step in testcase get failed, it should turn off the bluetooth (i.e. achieve it as teardown step).

How to achieve teardown in Opentest?

vina
  • 19
  • 1
  • Have you tried anything yet ? – ricky Feb 13 '20 at 10:50
  • I have tried "checkpoint : true" keyword. – vina Feb 13 '20 at 11:20
  • The test execution should jump to Tear Down step after the very first failed test step. But checkpoint continues the test execution even if one of the step get failed which is unnecessarily increasing execution time. – vina Feb 13 '20 at 11:30
  • Can you post the yaml that is not working with any variations and the results from each? – dmcgill50 Feb 17 '20 at 17:08

1 Answers1

0

Create a macro for your teardown process and run it as the last step of every test. For every step prior to this macro call, you will have to include the checkpoint: true keyword.

awesame
  • 84
  • 2
  • 13