Raul2018

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

To run the patch test cases in C:\sliData\TAF\bzw\test-packs\run_jobs via run_example_tests_smoke_test.cmd, just modify the file content: SET MARKER=”smoke_test”(can set any name) which maps the @pytest.mark.smoke_test added before def xxx in the test_xxx.py.

Eg:

@pytest.mark.smoke_test
def test_logout(self):

To run the cmd file, open cmd windows, drag the run_example_tests_smoke_test.cmd to cmd, confirm the curse in cmd, then Enter, it will run like this.

 

posted on 2018-11-20 09:20  Raul2018  阅读(117)  评论(0编辑  收藏  举报