单项选择题在PyTest中,可以使用哪个装饰器来指定测试用例的优先级()

A.pytest.allure.priority()
B.pytest.allure.severity()
C.pytest.mark.priority()
D.pytest.mark.severity()


你可能感兴趣的试题

1.单项选择题如何在PyTest中使用allure进行测试()

A.使用pytest-allure插件
B.使用pytest-report插件
C.使用pytest-html插件
D.使用pytest-xdist插件

2.单项选择题allure是一种什么类型的测试报告工具()

A.命令行工具
B.图形化工具
C.数据分析工具
D.代码审查工具

3.单项选择题Allure测试报告框架可以生成什么类型的测试报告()

A.HTML报告
B.JSON报告
C.XML报告
D.以上都是

4.单项选择题Pytest是一种什么类型的测试框架()

A.单元测试框架
B.集成测试框架
C.端到端测试框架
D.手动测试框架

5.单项选择题如何在PyTest中跳过测试用例()

A.使用pytest.ignore(reason)装饰器
B.使用pytest.skip(reason)装饰器
C.使用pytest.fail(reason)装饰器
D.使用pytest.pass(reason)装饰器

6.单项选择题PyTest中如何运行单个测试模块()

A.pytest test_module.py
B.pytest test_module
C.pytest -m test_module
D.pytest -k test_module

7.单项选择题下面哪个是PyTest中用于判断是否不抛出异常的断言()

A.assertRaises
B.assertDoesNotRaise
C.assertWarns
D.assertDoesNotWarn

9.单项选择题在PyTest中,以下哪种断言用于判断某个列表是否为空()

A.assert []
B.assert not []
C.assert {}
D.assert not {}

10.单项选择题在PyTest中,以下哪个方法可以检查一个字典中是否存在某个键()

A.assertKey()
B.assertExists()
C.assertIn()
D.assertTrue()