BlueZone automation note1

To run the patch test cases in C:sliDataTAFzw est-packs un_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.

原文地址:https://www.cnblogs.com/Raul2018/p/9987041.html