在TestRail中更新TestCafe脚本执行状态(已通过/未通过)

问题描述 投票:3回答:2

我试图将TestRail与TestCafe集成,以便更新TestRail上的测试脚本执行状态。我按照下面的链接,但没有成功https://www.npmjs.com/package/testcafe-reporter-html-testrail尝试下面一个,但没有成功。

test('<< Group Name >> | << Test Name >> | << Testrail Case_ID >>',async t => {....});

你能帮我解决这个问题吗?

注意:我的问题与:https://testcafe-discuss.devexpress.com/t/is-there-anyway-to-post-test-results-from-a-run/377相同

automated-tests e2e-testing web-testing testcafe testrail
2个回答
2
投票

据我所知,从https://testcafe-discuss.devexpress.com/t/is-there-anyway-to-post-test-results-from-a-run/377线程中,只需向TestRail API发送一些请求即可解决问题。

我看了看testcafe-reporter-html-testrail,乍一看,它应该发送这样的请求。

我建议你查看testcafe-reporter-html-testrail的代码并调试它,找出它无效的原因。我建议你从这些记者方法开始:https://devexpress.github.io/testcafe/documentation/extending-testcafe/reporter-plugin/reporter-methods.html

由于testcafe-reporter-html-testrail不是TestCafe的官方记者,我们无法提供任何有关它的详细信息。我在GitHub上找不到testcafe-reporter-html-testrail的存储库,但它仍然存在于npm,所以你可以联系这个模块的作者。


0
投票

如果您使用TestCafe CLI运行测试,那么您可以通过以下方式传递testcafe-reporter-html-testrail插件所需的testrail环境变量:

TESTRAIL_ENABLE=true TESTRAIL_HOST=http://example.net/ [email protected] TESTRAIL_PASS=password PROJECT_NAME='ABC' testcafe chrome test.js
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.