在TFS构建选项卡中呈现TRX文件的内容 [英] Render contents of TRX file in TFS build tab

查看:62
本文介绍了在TFS构建选项卡中呈现TRX文件的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用TFS 2015 Update 3(但我们计划迁移到TFS 2017),我们发现查看测试运行的日志记录是疯了click-fest。

We use TFS 2015 Update 3 (But we have plans to move to TFS 2017) and we are finding that viewing of logging for test runs is an insane click-fest.

例如,在构建结果页面中,您需要点击"详细报告"。

For example, from the build results page, you need to click "Detailed Report".

然后在下一页上,点击"结果:失败",然后更改它为"全部"......

Then on the next page, click "Outcome: Failed", and change it to "All"...

然后点击"6/6传递..."链接

Then click the "6/6 passed..." link




然后点击TRX链接下载:

Then click the TRX link to download:

然后单击浏览器中的TRX链接,然后打开TRX VS(删除你在VS副本中打开的任何TRX)。

Then click the TRX link in the browser, which then opens the TRX in VS (Removing any TRX you had open in that copy of VS).

即使这样,它也不会显示TRX文件中的所有内容(例如,如果您将信息记录到控制台作为[BeforeFeature] SpecFlow挂钩的一部分,然后日志将不会在VS中可见。但是,来自SpecFlow
挂钩的日志数据在TRX文件中是IS PRESENT,只是VS没有显示它。

And even then, it does not show everything that is in the TRX file (For example, if you logged information to the console as part of a [BeforeFeature] SpecFlow hook, then the logging WILL NOT be visible in VS. However, the logging data from the SpecFlow hook IS PRESENT in the TRX file, just VS does not show it.

要添加侮辱伤害,即使您在VS中查看TRX,它也会截断日志记录,这意味着您必须单击VS中的"复制"链接并将日志粘贴到记事本中或者什么。

To add insult to injury, even when you view the TRX in VS, it will truncate the logging, meaning you have to click a "Copy" link in VS and paste the log into Notepad or something.

3个应用程序,十几个单击 - 全部到只查看(不完整)信息!疯狂!

3 applications, a dozen odd clicks - all to just view (incomplete) information! Utter madness!

所以......

我们想知道是否有可能制作一个VSTS扩展,它将TRX文件的内容添加为在TFS中有一个额外的标签。

We are wondering if it is possible to craft a VSTS extension which adds the contents of the TRX file as an extra tab right in TFS.

我在VSTS GitHub仓库中发现了这个,这似乎是在构建摘要页面上添加一个额外的标签:

I found this in the VSTS GitHub repo which seems to be talking about adding an extra tab on the build summary page:

https://github.com/Microsoft/vsts-extension-samples#build-results-enhancer

https://github.com/Microsoft/vsts-extension-samples#build-results-enhancer

这是我们想要的吗?还有其他人已经这样做了吗?

Is this what we want? Has anyone else done this already?

非常感谢任何帮助或建议。

Any assistance or advice would be greatly appreciated.

澄清 - 我们希望以某种方式查看< StdOut>的内容来自TRX文件的节点 - 嵌入在该构建的TFS网页中,并且点击次数最少。

我们不仅需要查看< StdOut>的内容。每个测试的节点(来自< Results\UnitTestResult\Output\StdOut>),以及< ResultSummary \ Oututting \StdOut>的内容保存pre和
后续步骤的记录的节点(即[BeforeFeature] specflow hook)

To clarify - all we wish is for some way to view the contents of the <StdOut> nodes from the TRX file - embedded within TFS web page for that build, and with a minimal number of clicks.
We will not only need to see the contents of the <StdOut> node for each test (From <Results\UnitTestResult\Output\StdOut>) for each test, but also the contents of the <ResultSummary\Output\StdOut> node which holds the logging for the pre and post steps (ie the [BeforeFeature] specflow hook)

推荐答案

hi evilC1,

Hi evilC1,

根据您的要求显示< StdOut> .TRX文件中的元素内容,我在这里找到了一个相关的功能请求: https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/17178380-show-test-output-and-trace-file-trx-content-und

According to your requirement to show <StdOut> element contents in .TRX file, I found a related feature request here:https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/17178380-show-test-output-and-trace-file-trx-content-und

您可以投票或提交新的功能请求。 TFS开发团队正在这里倾听用户的声音。

You could vote it or submit a new feature request. The TFS developer team is listening to users voice here.

最好的问候

         ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;

                                                                                                                                             


这篇关于在TFS构建选项卡中呈现TRX文件的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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