可以将JUnit“失败"测试映像添加到TFS仪表板吗? [英] Possible to add JUnit 'Failed' Test Images to TFS Dashboard?

查看:112
本文介绍了可以将JUnit“失败"测试映像添加到TFS仪表板吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将JUnit失败的测试映像添加到TFS?

Possible to add JUnit Failed Test Images to TFS?

  1. 我的TFS仪表板执行我的webdriver测试套件
  2. 一旦所有测试在批处理套件中执行,TFS就会读取输出的JUnit结果
  3. 当测试失败时,TFS仪表板将突出显示失败的测试,如下图所示.
  4. 有人知道我如何将失败的"图像绑定到JUnit报表,然后将图像链接到失败的测试吗?
  1. My TFS Dashboard executes my webdriver test suites
  2. Once all tests have executed within the test suite batches the TFS will then read the outputted JUnit results
  3. When there is a test failure the TFS dashboard will highlight the failed test as illustrated within the image below.
  4. Does anyone know how i can bind 'failed' images to the JUnit report and in turn link the image to a test which fails?

感谢您的帮助

推荐答案

默认情况下,没有任何方法可以实现此功能.您必须添加PowerShell任务或创建您的自己的构建任务,以通过调用 VSTS Rest API .

There isn't any way to achieve this feature by default. You have to add a PowerShell task or create your own build task to upload the image to the related test result by calling VSTS Rest API.

这篇关于可以将JUnit“失败"测试映像添加到TFS仪表板吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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