automated-tests - 更新 TestRail 中的 TestCafe 脚本执行状态(通过/失败)

标签 automated-tests e2e-testing web-testing testcafe testrail

我正在尝试将 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 相同

最佳答案

据我了解 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 上,所以您可以联系该模块的作者。

关于automated-tests - 更新 TestRail 中的 TestCafe 脚本执行状态(通过/失败),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55262356/

相关文章:

c# - 在 C# 应用程序中从 Azure DevOps 获取构建测试结果

testing - 选择器应该用一个函数初始化

angularjs - Protractor 从 dom 中移除元素

javascript - Cypress 测试的随机元素选择

firefox - 在 Firefox 中的测试操作中使用变量时出现问题

azure - 如何使用依赖于 C# 自定义提取类的 Webtest

testing - 实验室环境中的编码 UI 测试

node.js - Selenium WebDriver : Login to a website

testing - testcafe 预期点击失败

ios - Appium 检查器 - 应用程序不反射(reflect)在屏幕上