Automated tests 为jira将机器人框架与Zephyr集成

Automated tests 为jira将机器人框架与Zephyr集成,automated-tests,robotframework,jira-zephyr,Automated Tests,Robotframework,Jira Zephyr,我想知道是否有将自动化测试用例与zephyr de jira集成的选项 目前,我在robot框架中有一组自动化测试。同时,我在Zephyr中为jira定义了测试用例。我希望能够从Zephyr启动自动测试用例的执行,否则执行的结果将反映在Zephyr测试用例中 谢谢。您需要解析Robot Framework生成的output.xml文件,以获得测试套件的结果。或者,可以使用-x参数生成JUnit xml报告文件: robot -x junit.xml test1.robot 要更新Zephyr测

我想知道是否有将自动化测试用例与zephyr de jira集成的选项

目前,我在robot框架中有一组自动化测试。同时,我在Zephyr中为jira定义了测试用例。我希望能够从Zephyr启动自动测试用例的执行,否则执行的结果将反映在Zephyr测试用例中


谢谢。

您需要解析Robot Framework生成的output.xml文件,以获得测试套件的结果。或者,可以使用-x参数生成JUnit xml报告文件:

robot -x junit.xml test1.robot
要更新Zephyr测试用例中的结果,请将ZAPI用于Jira。请查收

执行状态更新 按测试用例名称(问题密钥)查找测试用例id(问题id):

正文:

状态“1”表示通过

步骤状态更新 按执行id查找步骤id:

https://<jira_server>/rest/zapi/latest/stepResult?executionId=<execution_id>&expand=
https:///rest/zapi/latest/stepResult?executionId=&expand=
请求:

PUT https://<jira_server>/rest/zapi/latest/execution/<execution_id>/execute
PUT https://<jira_server>/rest/zapi/latest/stepResult/<step_id>
PUThttps:///rest/zapi/latest/stepResult/
标题和正文同上

Content-Type: application/json
{
  "status": "1"
}
https://<jira_server>/rest/zapi/latest/stepResult?executionId=<execution_id>&expand=
PUT https://<jira_server>/rest/zapi/latest/stepResult/<step_id>