How to create VS Load test build in TFS 2015 using

2019-02-26 01:10发布

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条回答
该账号已被封号
2楼-- · 2019-02-26 01:13

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:

enter image description here

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

查看更多
登录 后发表回答