Pushlish TestNG 在 TFS 中的结果 [英] Pushlish TestNG results in TFS

查看:30
本文介绍了Pushlish TestNG 在 TFS 中的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经使用 Selenium、Java 和 TestNG 框架创建了一个 Maven 项目和自动化测试脚本.

We have created a Maven project and automated test scripts using Selenium, Java and TestNG framework.

使用 TEE 插件在 tfs 中检查代码,我们能够在 tfs 中创建 maven 构建.现在我们需要在 TFS 中发布测试脚本的结果.

The code is checked in tfs using TEE plugin and we are able to create maven build in tfs. Now we need to publish the results of the test scripts in TFS.

请告知我们如何在 TFS 中发布结果并生成报告.

Please advise how could we publish the results in TFS and generate reports.

推荐答案

从 TestNG 生成自定义报告非常简单:只需实现您自己的 IReporter.查看相关文档:http://testng.org/doc/documentation-main.html#记录

Generate a custom report from TestNG is pretty easy: just implements your own IReporter. See the related documentation: http://testng.org/doc/documentation-main.html#logging

现在,您必须找到将测试报告发送到 TFS 的最佳方式.它可以通过生成特定文件或使用像 https://www.visualstudio.com/en-us/docs/integrate/api/test/results#add-test-results-to-a-test-run

Now, you have to find what is the best way for sending test reports to TFS. It could be by generating a specific file or by using an API like https://www.visualstudio.com/en-us/docs/integrate/api/test/results#add-test-results-to-a-test-run

这篇关于Pushlish TestNG 在 TFS 中的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆