简体   繁体   English

迭代导致trx输出

[英]Iteration Results in trx output

I have been running tests as part of a build for quite some time now (TFS, VS2010, MTM, Lab Management) and have always received the Iteration Data results in MTM (opened in VS2010) via .trx files. 我已经将测试作为构建的一部分运行了一段时间(TFS,VS2010,MTM,实验室管理),并且始终通过.trx文件接收MTM中的迭代数据结果(在VS2010中打开)。 After applying some updates to the VMs I to deploy to and run tests (deploy to server and run tests on client within one environment) I no longer receive the iteration data results only the overall 'pass/fail' with system data and a log (as set in my Testsettings in MTM). 在将某些更新应用于VM之后,我将其部署并运行测试(部署到服务器并在一个环境中在客户端上运行测试),我不再收到迭代数据结果,而仅收到系统数据和日志的整体“通过/失败”信息(如我在MTM的测试设置中所设置的)。

I have compared the trx file output with previous builds and the past builds have lines such as: 我已经将trx文件的输出与以前的版本进行了比较,而过去的版本中包含以下行:

UnitTestResult executionId="" parentExecutionId="" testId="" testName="Login_Invalid" computerName="client" duration="" startTime="" endTime="" testType="" outcome="Passed" testListId="" relativeResultsDirectory="" dataRowInfo="0" resultType="DataDrivenDataRow"

I have removed most of the text, the fields are what's important. 我删除了大部分文本,这些字段很重要。 These lines are missing now. 这些行现在丢失了。

Is there a setting I have to change to have this data collected and returned to MTM? 是否需要更改设置以收集此数据并将其返回给MTM?

The Environment I am aiming to get iteration data results from is comprised of a Web Server (Win Server 2008 R2) and a Web Client (XP). 我旨在从中获取迭代数据结果的环境包括Web服务器(Win Server 2008 R2)和Web客户端(XP)。 Not sure what other information is relevant as there are a lot of places I have investigated thus far (Test Settings, Test Controller Config, Test Agent Configs), so feel free to comment for further info. 由于到目前为止我已经调查了很多地方(测试设置,测试控制器配置,测试代理配置),因此不确定是否还有其他信息是相关的,请随时评论以获取更多信息。

Much time has passed and I had started getting the results back without really trying anything specific. 很多时间过去了,我已经开始重新获得结果,而没有真正尝试任何具体操作。 I will list the things that have changed since then so others may benefit: 我将列出此后发生的变化,以便其他人可以从中受益:

  • Remade whole Environment 重塑整个环境
  • New Test Controller 新测试控制器
  • Double checked all permissions of ServiceAccount 仔细检查了ServiceAccount的所有权限
  • Installed all updates to VS2010 安装了VS2010的所有更新

The exact time that these result started being returned are not definite however the time we lost them seemed to correlate with the installation of a Microsoft Hotfix to reduce TFS Backup sizes. 开始返回这些结果的确切时间不确定,但是丢失它们的时间似乎与安装Microsoft修补程序以减少TFS备份大小有关。 This was not re-installed in recreating the Environments and while I cannot guarantee it, that's where I would be looking to if it happened again. 在重新创建环境时未重新安装此程序,虽然我不能保证,但是如果再次发生,这就是我要寻找的地方。

Hope this helps someone! 希望这对某人有帮助! Please post an answer if one of these methods helps you and I will update the Accepted Answer. 如果这些方法之一可以帮助您,请发布答案,我将更新“接受的答案”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM