swift - TestRail 与 XCUITest 的集成
问题描述
@Dimu4 如果您可以添加有关集成的更多详细信息,我将不胜感激。我正在尝试对 XCUITest 做同样的事情,我正在尝试与 Bots 集成,以便每次测试运行时我都会将测试结果发送到 TestRail。
我的问题:
如何将测试用例 ID 添加到 XCUITest 中的每个 func testxyz() 中,这类似于 TestRail 中的测试用例编号。如何生成预构建脚本来创建 TestRail 测试运行?如何在我的 XCUITest 中链接测试运行编号和每个测试用例 id?我将非常感谢您的帮助。
解决方案
You might have to write a test rail client which talks to test rail inside your swift code. In your TestBase's tearDown method, you could invoke a method which would report to TestRail.
Refer here for test rail API V2 documentation : http://docs.gurock.com/testrail-api2/start
Refer to this page on how to report your test result to Testrail http://docs.gurock.com/testrail-api2/reference-results
Refer to this page on how to create a test run : http://docs.gurock.com/testrail-api2/reference-runs
推荐阅读
- reactjs - 如何使用 react-sortable-tree 使节点不可拖动
- php - 在 php curl 中仅显示 1 条数据
- javascript - 尝试删除 Redux ToDo 应用程序中的状态但无法正常工作
- sharing - 在android 10中共享图像,我应该迁移到范围存储
- html - SVG 和主要内容之间的奇怪间距
- wordpress - 使 WooCommerce 缩略图图像大于主要产品图像
- python-3.x - 需要帮助解决 python 中的 selenium webdriver
- monads - 无法声明 MonadPlus 接口受 Monad 约束
- php - 使用标签的可见文本替换 qualifying 的 href 值
- c++ - 如何安全地重载 std::unique_ptr 的自定义删除器?