Visual Studio 2015通过命令行执行Loadtest问题 [英] Visual Studio 2015 Issue with Loadtest execution via command line

查看:174
本文介绍了Visual Studio 2015通过命令行执行Loadtest问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用VS 2015中的命令行实用程序mstest.exe执行loadtest。但是,当我尝试启动测试结果时,我遇到了错误。当我在VS 2015 Enterprise中使用相同的本地设置执行相同的测试时,它完美地工作
罚款。下面是我用于执行的命令。结果存储也已正确配置。这可能是什么问题? VSTest.Console.exe是否支持Loadtest的命令行执行?



mstest.exe /testcontainer:Performance.loadtest / noisolation / testsettings:Local.testsettings的路径



错误:无法读取结果存储库:在负载测试结果存储库中找不到此负载测试的详细结果;它们可能已被删除






I am trying to execute a loadtest with a command line utility mstest.exe in VS 2015. However, I am getting below error when I am trying to launch Test Results. Same test when I execute with same local settings in VS 2015 Enterprise, Its perfectly working fine. Below is the command I am using for the execution. Result store is configured properly as well. What can be the issue here? Does VSTest.Console.exe support Command line execution of Loadtest?

mstest.exe /testcontainer:Performance.loadtest /noisolation /testsettings:Path to Local.testsettings

Error: Could not read result repository: The detailed results for this load test were not found in the load test results repository; they may have been deleted



推荐答案

您好VishalPatel4,

Hi VishalPatel4,

感谢您的发布。

我只是想知道你是否指定了lodtest的正确参数。

I just wonder if you've specified the right parameter of lodtest.

你可以通过mstest运行负载测试,就像这样: mstest / testcontainer:LoadTest1.loadtest

Could you run the load test via mstest just simple like: mstest /testcontainer: LoadTest1.loadtest,

当然,您需要确保使用
cd + path 命令重定向到正确的路径。

and of course you need make sure that the you've redirect to the right path by using cd + path command.

<强>>> VSTest.Console.exe是否支持Loadtest的命令行执行?

不,如果您想通过命令行运行负载测试或Web测试,我们只能使用mstest。

No, we could only use mstest if you want to run load test or web test via command line.

顺便说一句,要排除权限问题,请尝试以管理员身份启动命令提示符。

Btw, to exclude the permission issues, please also try to start command prompt as administrator.

 

祝你好运,

Fletcher


这篇关于Visual Studio 2015通过命令行执行Loadtest问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆