用于扑面集成测试的记者
我正在寻找扑动集成库和测试管理工具(例如TestRail或XRARY)之间集成的示例。 对于柏树和其他浏览器自动化工具,我可以找到大量的解决方案,但是对于扑动的集成基本上什么都没有。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我正在寻找扑动集成库和测试管理工具(例如TestRail或XRARY)之间集成的示例。 对于柏树和其他浏览器自动化工具,我可以找到大量的解决方案,但是对于扑动的集成基本上什么都没有。
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
对于Xray,还没有教程。但是,应该很简单。
使用
flutter Test
运行测试,然后传递- 机器
参数以生成JSON报告。使用 junitreport软件包生成Junit XML报告。
然后,您可以将其添加到您的命令中:
flutter Test -machine | tojunit -o junit.xml
如果将其重定向到文件,则可以将其提交给XRAY的报告。
对于XRAY SERVER/DATACENTER,您需要调用,类似:
curl -h“ content-type:multipart/form-data” -u用户名:password -f“ [email  procearted] ”
对于语法略有不同。您必须制作“ noreferrer”> authentication请求提交JUNIT XML报告。
For Xray, there's no tutorial yet. However, it should be fairly simple.
Run your tests using
flutter test
and pass the--machine
argument to generate a JSON report.Use the junitreport package to generate a JUnit XML report.
Then you can add it to your command as such:
flutter test --machine | tojunit -o junit.xml
If you redirect this to a file, then you have the report that you can submit to Xray for example.
For Xray server/datacenter, you need to call the REST API endpoint, something like:
curl -H "Content-Type: multipart/form-data" -u username:password -F "[email protected]" http://yourserver/rest/raven/1.0/import/execution/junit?projectKey=JIRAPROJECTKEY
For Xray on Jira Cloud, the syntax is slightly different. You have to make an authentication request first, and then do another submiting the JUnit XML report.
对于“颤振集成测试”中的报告,您可以使用 testrail 的第三方工具。
现在创建了testrail帐户后,然后在我们的测试设置中配置:
For Report in flutter integration testing you can use 3rd party tools like TESTRAIL.
Now once you created your TestRail Account then configure in our test setup: