How to create VS Load test build in TFS 2015 using command line

妖精的绣舞 提交于 2019-12-02 04:53:03

问题


I need to run Visual Studio Load test from TFS using command line. I have following setup - 1.Visual Studio 2015 Enterprise 2.TFS 2015 Update 3 3.Developer Command Prompt for VS2015

I am able to run locally by opening Developer Command Prompt and using commandline /TestContainer:Loadtest.loadtest. However, i'm not able to do the same in TFS build.

Can you please tell me what I should type in "Tool" and "Argument" fields for command line step?


回答1:


Local VS is also using MSTest.exe command to run the Load test.

To run the loadtest in vNext build, you should also use the command line task and call MSTest.exe command in the build agent.

  • Tool: You can specify a fully qualified path of MSTest.exe command
  • Argument: Specify arguments to pass to the tool. Such as /testcontainer:[ file name ]

Below is the snapshot from VNext for your reference:

Note: You need to use Test Controller/Test Agents 2013 Update 5 to run load tests on-premises according to this document.



来源:https://stackoverflow.com/questions/47395893/how-to-create-vs-load-test-build-in-tfs-2015-using-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!