摘要:
1.安装 先安装pytest 之后安装allure-pytest 2.用法 pytest --alluredir=./results 收集执行测试用例,生成测试数据 allure server ./results 可视化,生成html报告,这种方式直接打开报告,如果我们想直接生成测试报告, 则应该这 阅读全文
摘要:
1.参数化方式一import pytest# @pytest.mark.parametries("a,b",[(1,2),(2,3),(3,4)])# @pytest.mark.parametries(("a","b"),[(1,2),(2,3),(3,4)])class TestDemo: @py 阅读全文