无法使用Agents for Microsoft Visual Studio 2015运行webtest [英] Unable to run webtest with Agents for Microsoft Visual Studio 2015

查看:69
本文介绍了无法使用Agents for Microsoft Visual Studio 2015运行webtest的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用VisualStudio 2015创建了一个WebTest项目,我可以从命令提示符执行测试。
$


mstest /testcontainer:WebTest2.webtest



我想从其他机器执行测试用例。所以我为Microsoft Visual Studio 2015安装了代理。



http://www.microsoft.com/en-us/download/details.aspx?id=48152+



当我尝试通过处理* .dll和* .webtest(完整的bin)来执行测试时,我收到以下错误。

$
mstest /testcontainer:Sample.WebAndLoadTestProject.dll



无需执行测试。



mstest /testcontainer:WebTest2.webtest



"文件扩展名'.webtest'不是有效的测试扩展名。"



I have created a WebTest project with VisualStudio 2015 and I was able to execute the tests from command prompt.

mstest /testcontainer:WebTest2.webtest

I want to execute the test case from other machine. So I instanlled Agents for Microsoft Visual Studio 2015.

http://www.microsoft.com/en-us/download/details.aspx?id=48152+

When I try to execute tests by coping the *.dll and *.webtest (complete bin) I'm getting the following error.

mstest /testcontainer:Sample.WebAndLoadTestProject.dll

No tests to execute.

mstest /testcontainer:WebTest2.webtest

"File extension specified '.webtest' is not a valid test extension."


推荐答案

嗨src_sakthivel,

欢迎来到MSDN论坛。

>> 当我尝试通过处理* .dll和* .webtest
(完整bin)执行测试我收到以下错误。




mstest /testcontainer:Sample.WebAndLoadTestProject.dll



无需执行测试。



mstest / testcontainer:WebTest2.webtest



"指定文件扩展名'.webtest'不是有效的测试扩展名。"

你有没有复制 Web性能应用程序项目和WebTest1.webtest文件 你安装的机器是
VS2015代理?不太确定如何使用VS2015代理运行Web测试。

一般来说,有两种使用代理运行测试的方法。

一种方法是你可以尝试在本地运行测试。您需要将Web性能测试项目和WebTest1.webtest文件复制到您安装VS2015 Agent的另一台计算机上。然后在命令行中使用mstest.exe运行* .webtest文件
或* .loadtest文件。

另一种方法是你不需要复制web性能测试项目或将WebTest1.webtest文件复制到你安装VS2015 Agent的另一台机器上,它是远程的运行测试的方法。安装VS2015测试代理后,必须配置

据我所知,我们无法在
mstest /testcontainer:TestLoopPerformanceTest.dll,您将收到"无执行测试。"错误。您需要使用在以下测试项目中运行Web测试:

Mstest /testcontainer:WebTest1.webtest

Mstest /testcontainer:WebTest1.webtest

也可以参考下面的截图:

同时,VS2015测试代理不能用于TC / TA场景。因此,我建议您使用测试代理2013其他 然后版本2015.感谢您的理解。

参考: https://blogs.msdn.microsoft.com/visualstudioalm/2016/11/23/test-controller-test-agent-versions-and-their-usage-in-different- scenario /

祝你好运,

Fletch


这篇关于无法使用Agents for Microsoft Visual Studio 2015运行webtest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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