BlueZone automation note1

本文介绍如何通过修改C:sliDataTAFzw est-packs un_jobsviarun_example_tests_smoke_test.cmd文件中的SET MARKER变量来运行Smoke Test测试案例。只需将SET MARKER=”smoke_test”映射到@pytest.mark.smoke_test,然后在cmd窗口中运行该cmd文件即可。

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.

 

转载于:https://www.cnblogs.com/Raul2018/p/9987041.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值