vina
vina

Reputation: 19

How can I achieve tear down in OpenTest framework

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?

Upvotes: 1

Views: 85

Answers (1)

awesame
awesame

Reputation: 94

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.

Upvotes: 0

Related Questions