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 JList侦听器找不到符号   多点触摸跨平台java应用程序(Windows、Mac和Linux(Ubuntu)(可能是Android))   在UnitTest中找不到java类加载器资源   java当我尝试在Eclipse中运行我的minecraft mod时,我总是遇到这个错误,这是什么意思?   内部有一个同步块的静态方法,在java中阻止整个类?   不支持java操作:具有BillableStatus的费用在采购中应具有AccountBasedExpenseLineDetail行的CustomerRef   java运行时常量池GC集合   java无法解析配置“:app:\u debugApk”的所有依赖项。找不到名为“default”的配置   在GCP计算引擎中托管Neo4j的java   java如何从BroadcastReceiver更新片段选项卡?   线程“main”组织中的java异常。冬眠注释异常:@org。冬眠注释。表引用未知表:ProductForPractice   在Java/Groovy中嵌入处理   java Android REST教程/示例项目   java我可以在同一测试中在一个模拟器上启动应用程序,在另一个模拟器上启动移动浏览器吗?   java如何更改通知横幅的方向?   安卓 Java帮助实现Firebase授权   if else之后的rs.next()中出现java错误?