python包提供Robot框架与Jira测试管理(tm4j)云的集成

tm4j-reporter-robot的Python项目详细描述


项目总结

为TM4J提供了云监听框架Robot。在

安装

如何构建

python setup.py sdist

如何安装

^{pr2}$

使用

为了使用Robot框架TM4J监听器,它应该安装到与Robot框架本身相同的PYTHONPATH上。 运行Robot Framework时,将TM4JRobotListener作为--listener参数的值,以及访问和项目密钥:

robot --listener tm4j_reporter_robot.TM4JRobotListener:<tm4j_access_key>:<tm4j_project_key>:<tm4j_test_cycle_name> test.robot
ParamMandatoryDescriptionTypeExample
tm4j_access_keyYesAPI key to access TM4j. To get it see Instructionstr
tm4j_project_keyYesJira / TM4J project prefix without trailing dashstrQT
tm4j_test_cycle_nameNoTM4J test cycle name. If not passed, listener will create a new one test cycle with default name "Robot run YYYY-mm-DD HH-MM-SS"strMy test cycle

为了监听器向TM4J报告测试执行情况,请使用标记TM4J:<tm4j_test_case_key>标记Robot测试用例:

My Robot Test Case
    [Tags]  Some tag 1  Some tag 2  TM4J:QT-001
    test code goes here

例外情况

TM4J配置异常

如果测试未使用TM4J测试用例键标记,则由侦听器引发:

tm4j_reporter_api.tm4j_exceptions.tm4j_configuration_exceptions.TM4JConfigurationException: Test case key is not found in list of tags. Please mark robot test with tag 'TM4J:<test_case_key>'.

TM4J测试循环描述关键字

库提供了使用特殊关键字Set Tm4j Test Cycle Description设置TM4J测试周期描述的可能性。在

使用

先导入库,然后使用关键字:

*** Settings ***
Library  tm4j_reporter_robot.TM4JCycleDescriptor
Suite Setup  Setting Cycle Description


*** Keywords ***
Setting Cycle Description
    Set Tm4j Test Cycle Description  My test cycle description

关键字在全局范围内,因此在整个测试执行期间只创建一个实例,并由所有测试用例和测试套件共享。在

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

推荐PyPI第三方库


热门话题
java何时可以运行。toString()是否有可能返回重复的字符串?   使用REST进行Java应用程序登录验证?   java测试onErrorResume()Spring Webflux   java设置一个单元格样式,使数字显示为百分比ApachePOI   java仅替换regex az09   java将字符串附加到文件   java Hibernate:如何在集合中查找对象   当独立客户端为Web服务实例化代理时,java WebSphere会生成ClassNotFoundException   java简单算法。我做不好   java我的代码有什么问题?我想用Android制作一个“cardflip”动画   java如何模拟Springbean及其自动连接的参数?   java在Android中将arraylist对象的某些参数显示到列表视图中   java setOnclickListener(此)错误   java自动连接未按类型连接bean   java如何禁止在Viewpager上滑动?   java代码检查每个if语句吗?   java NIO选择器OP_READ和OP_WRITE,关于处理它们的一些问题   java如何在不锁定文件的情况下获取文件大小   Oculus Rift的Java API?   java是一种选择。仍然需要fork来设置bootClasspath