简体   繁体   中英

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 (ie achieve it as teardown step).

How to achieve teardown in Opentest?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM