TestRail的PyTest插件

pytest-testrail-plugin的Python项目详细描述


pytest testrail插件

用于与TestRail集成的PyTest插件

使用

  1. 安装 pip install pytestrail插件

  2. 创建配置文件.cfg test/testrail_config.cfg

[API]
url = https://cashwagon.testrail.io
email = name@cashwagon.com
password = pass

[TESTRUN]
project_id = your ID
root_section = directory_name
  1. 使用@pytestrail.case()装饰器进行测试

    from pytest_testrail_plugin.plugin import pytestrail

  2. 如果您想定制测试用例,请使用yamljson格式的docstring

    ^{pr2}$ 在
  3. 使用标志运行测试

    py.test --testrail --tr-config=path/to/config/file.cfg

    如果要删除未使用的事例和节,请使用--tr-unsafe标志:

    py.test --testrail --tr-config=path/to/config/file.cfg --tr-unsafe

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java不兼容类型:MainActivity无法转换为LifecycleOwner   java安卓是一种更有效的读取大文本文件的方法   java导出LWJGL本地人与项目?(IntelliJ IDEA)   JDK更新后,JavaJShell不再在下一行打印输出   父类对象上的继承Java比较子属性   Java:有没有一个容器可以有效地结合HashMap和ArrayList?   安卓 Java对象指针   java在annotationdriven Spring MVC应用程序中实现大气   java 安卓源代码构建应用找不到安卓supportv4。罐子   文件系统上的抽象层和Java中的jar/zip   java在水平滚动视图中添加多个图像?   java如何从firebase实时数据库中获取字符串数组   WIndows 10工作站上的java未满足链接错误   java命令在终端中工作,但在使用过程中出现“无结束引号”错误。执行官