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?
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