如何在TFS 2015中使用命令行创建VS负载测试版本 [英] How to create VS Load test build in TFS 2015 using command line
问题描述
我需要使用命令行从TFS运行Visual Studio负载测试.我有以下设置- 1.Visual Studio 2015企业版 2.TFS 2015更新3 3.VS2015开发人员命令提示符
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
我可以通过打开开发人员命令提示符并使用命令行/TestContainer:Loadtest.loadtest在本地运行. 但是,我无法在TFS构建中执行相同的操作.
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.
要在vNext版本中运行负载测试,还应该使用命令行任务,然后在构建代理中调用MSTest.exe
命令.
To run the loadtest in vNext build, you should also use the command line task and call MSTest.exe
command in the build agent.
- 工具:您可以指定
MSTest.exe
命令的完全限定路径 - 自变量:指定要传递给工具的自变量.如
/testcontainer:[ file name ]
- 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 ]
下面是VNext的快照供您参考:
Below is the snapshot from VNext for your reference:
注意:您需要使用 Test Controller/Test Agents 2013 Update 5 来根据
Note: You need to use Test Controller/Test Agents 2013 Update 5 to run load tests on-premises according to this document.
这篇关于如何在TFS 2015中使用命令行创建VS负载测试版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!