共享测试结果TRX文件 [英] Share test result TRX file

查看:129
本文介绍了共享测试结果TRX文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拥有Visual Studio的企业版,但不是每个人都拥有.

I have the Enterprise edition of Visual Studio, but not everyone does.

我如何共享TRX,以便其他人可以看到结果?我已经看到有好几个Trx到HTML的转换器,但是它们都已经很老了,要么不再工作,要么不显示测试的详细信息.

How can I share the TRX so that other people can see the results? I've seen that there are several Trx to HTML convertors but they're all quite old and either don't work any more or don't show the details of the test.

推荐答案

大多数负载测试结果都存储在数据库中. TRX文件只包含很小一部分结果-通过在记事本中打开文件即可轻松查看其实际包含的内容,它只是XML.

Most of the results of a load test are stored in a database. The TRX file has only a very small portion of the results - you can easily see what it actually contains by opening the file in Notepad, it is just XML.

Visual Studio试用版对负载测试提供了一些支持. (它们仅支持少量虚拟用户,不支持插件.)它们可能允许查看和分析在其他计算机上完成的运行结果.负载测试的这种有限支持也可以在许可的非企业版本上使用.

Visual Studio trial versions have some support for load tests. (They only support a small number of virtual users and do not support plugins.) They might allow viewing and analysis of the results of runs done on other computers. This limited support of load tests might also be available on licenced Non-Enterprise versions.

通过使用打开和管理负载测试结果"窗口中的导出和导入命令,可以将单个负载测试运行或一组运行的结果从一台计算机复制到另一台计算机.这些创建和读取LTRAR文件.有关更多详细信息,请参见此处.

The results of individual load test runs, or groups of runs, can be copioed from one computer to another by using the Export and Import commands in the "Open and manage load test results" window. These create and read LTRAR files. See here for more details.

TRX文件包含SQL数据库的连接字符串,因此该文件通常无法复制,然后可以在另一台计算机上正常工作.编码的连接字符串位于TRX文件的resultsRepositoryConnectString=...属性内.将复制的文件中的值更改为在目标计算机上有效的TRX文件中找到的值可以使复制的文件正常工作.有关更多详细信息,请参见此处

The TRX file contains a connection string to the SQL database and so the file cannot normally be copied and then work properly on another computer. The encoded connection string is located within the resultsRepositoryConnectString=... attribute within the TRX file. Changing the value in a copied file to a value found in a working TRX file on the destination computer allows the copied file to work. See here for more details.

在其他计算机上查看结果的唯一其他选项是通过使用创建Excel报告"命令在Excel中导出结果. (通过负载测试结果查看器中摘要-图形-表-详细信息-..."行上的图标进行访问.)

The only other options for viewing results on other computers would be by exporting the results in Excel by using the "Create Excel Report" command. (Access it via the icons on the "Summary - Graphs - Tables - Details - ..." line in the load test results viewer.)

这篇关于共享测试结果TRX文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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