简体   繁体   English

Azure devops 管道测试运行结果将在 testrail 中更新

[英]Azure devops pipeline testrun results to be updated in testrail

Hi we run the azure devops pipeline having all the test cases.嗨,我们运行包含所有测试用例的 azure devops 管道。 We are using jmeter scripts to run and producing the run results for all the test cases.我们正在使用 jmeter 脚本来运行并生成所有测试用例的运行结果。 Is there any possibility that we could update these test results in TESTRAIL automatically after every run?每次运行后我们是否有可能在 TESTRAIL 中自动更新这些测试结果? Testrail is where we store our test cases. Testrail 是我们存储测试用例的地方。

TestRail has an API so you should be able to submit results from JMeter directly, take a look at the Example POST Request TestRail 有一个API ,所以你应该能够直接从 JMeter 提交结果,看看Example POST Request

POST /index.php?/api/v2/add_result/1 HTTP/1.1
Host: example.testrail.com
Content-Type: application/json

{ "status_id": 1 }

The equivalent JMeter's HTTP Request sampler setup would be something like:等效的 JMeter 的HTTP 请求采样器设置类似于:

在此处输入图像描述

you will also need to add a HTTP Header Manager and configure it to send the relevant Content-Type header您还需要添加一个HTTP 标头管理器并将其配置为发送相关的Content-Type标头

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM