我想用诱惑力标签来安排我的测试。因此,我尝试使用allure.epic和allure.feature标记来标记它们。我发现我必须给所有的考试打分(我没有考试课)。是否有可能用@allure.epic("")标记一个测试文件,而不是让每个测试都使用装饰器?
@allure.epic("critical_tests")
@pytest.mark.run(order=1901)
@pytest.mark.dependency()
def test_open_page(app):
page = AnalyticChart(app)
page.open_page()
@allure.epic("critical_tests")
@pytest.mark.run(order=1902)
@pytest.mark.dependency(depends=['test_open_page'])
def test_select_sdo(app):
select_sdo_by_name(sdo_name, app.wd)发布于 2022-07-02 13:27:13
尝试创建包含此行的allure.properties文件或yaml文件,allure.label.epic=critical_tests
https://stackoverflow.com/questions/58379383
复制相似问题