Pushlish TestNG results in TFS

£可爱£侵袭症+ 提交于 2019-12-11 00:56:19

问题


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

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.

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


回答1:


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

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



来源:https://stackoverflow.com/questions/39275652/pushlish-testng-results-in-tfs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!