01 2023 档案

pytest 获取测试用例的markers
摘要:python自动化测试脚本中,测试用例被不同的marker name装饰,那么如果获取这些marker name呢? 1.测试文件: tests/ --conftest.py --test_demo.py 2.代码实现 test_demo.py import pytest class TestDem 阅读全文
posted @ 2023-01-10 20:46 ananmy 阅读(392) 评论(0) 推荐(0) 编辑

 
点击右上角即可分享
微信分享提示