Visual studio 是否可以使用MSTest命令行执行负载测试(使用web测试插件)?

Visual studio 是否可以使用MSTest命令行执行负载测试(使用web测试插件)?,visual-studio,plugins,mstest,performance-testing,load-testing,Visual Studio,Plugins,Mstest,Performance Testing,Load Testing,我有一个web性能测试,它使用web测试插件。基于这个web性能测试,我创建了一个负载测试。当我从Visual Studio 2013运行负载测试时,负载测试会在我的所有远程代理上正确运行。但是,当我使用MSTest命令行运行相同的测试时,我得到一个错误,指示插件(C#)未加载。我的问题是,是否可以使用命令行MSTest执行负载测试(带插件)?如果是,那么我需要做什么来消除错误 请注意,我已经在我的VisualStudio项目(web性能项目和负载测试项目)中引用了该插件 Thx 以下是我得到的

我有一个web性能测试,它使用web测试插件。基于这个web性能测试,我创建了一个负载测试。当我从Visual Studio 2013运行负载测试时,负载测试会在我的所有远程代理上正确运行。但是,当我使用MSTest命令行运行相同的测试时,我得到一个错误,指示插件(C#)未加载。我的问题是,是否可以使用命令行MSTest执行负载测试(带插件)?如果是,那么我需要做什么来消除错误

请注意,我已经在我的VisualStudio项目(web性能项目和负载测试项目)中引用了该插件

Thx 以下是我得到的错误:

运行时出现以下问题:


当VisualStudio从解决方案中运行测试时,它了解部署项,例如插件的DLL,并自动部署它们。相比之下,mstest.exe不会进行任何自动部署。因此,您需要自己部署文件。这通常通过
.testrunconfig
.testsettings
文件的“部署”部分完成

指定要在这两种文件类型之一中部署的DLL后,将相应的
/testsettings:{file name}
/runconfig:{file name}
选项添加到调用mstest.exe

例如,见本文件第3节

  Could not run load test 'ABC' on agent 'XYZ': Could not load
  file or assembly 'PlugIn, Version=1.0.0.0, Culture=neutral,PublicKeyToken=null
 ' or one of its dependencies. The system cannot find the file  specified.
  Could not load file or assembly 'PlugIn, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
The system cannot find the file specified.