随笔- 85
文章- 0
评论- 1
阅读-
82488
随笔分类 - Pytest
使用pytest-dependency解决用例间的依赖问题
摘要:使用场景:测试B仅在测试A成功通过后方能有效进行。比如购物网站,只有登录后才可以提交订单 意思是:使用该插件可以标记一个test作为其他test的依赖,当依赖项执行失败时,那些依赖它的test将会被跳过。 安装:pytest-dependency pip install pytest-depende
阅读全文
测试框架--pytest统计case运行结果
摘要:统计case运行的结果需要使用pytest-json-report插件,需要安装 pip install pytest-json-report 1 import pytest 2 from pytest_jsonreport.plugin import JSONReport 3 4 5 6 clas
阅读全文