收到错误消息:指定的文件扩展名'.webtest'不是有效的测试扩展名 [英] Getting error: File extension specified '.webtest' is not a valid test extension
问题描述
尝试运行通过Agents For Visual Studio 2017
下载安装的MSTEST.exe
( https://www.visualstudio .com/downloads/)在TFSAgent上
Trying to run MSTEST.exe
which I installed via Agents For Visual Studio 2017
download (https://www.visualstudio.com/downloads/) on TFSAgent
尝试运行
MSTest.exe /TestContainer:C:\agent\_work\3\a\stack\tests\WebTest1.webtest /resultsfile:C:\agent\_work\3\a\stack\tests\webtest.trx /testsettings:C:\agent\_work\3\a\stack\tests\Local.testsettings
导致以下错误
Microsoft (R) Test Execution Command Line Tool Version 15.0.26208.0
Copyright (c) Microsoft Corporation. All rights reserved.
Loading C:\agent\_work\3\a\stack\tests\Local.testsettings...
Loading C:\agent\_work\3\a\stack\tests\webtest1.webtest...
C:\agent\_work\3\a\stack\tests\webtest1.webtest
File extension specified '.webtest' is not a valid test extension.
推荐答案
Web负载& Visual Studio Enterprise 2017支持性能测试,您需要使用Web性能和负载测试工具安装Visual Studio Enterprise 2017.
Web Load & Performance Testing is supported in Visual Studio Enterprise 2017, you need to install Visual Studio Enterprise 2017 with Web Performance and Load testing tools.
如果在安装VS2017 Enterprise之后仍然出现错误,请尝试以将要运行测试的用户身份打开IDE,然后调用MSTest.
If you still get the error after installing VS2017 Enterprise, try opening the IDE as the user who will be running the tests and then invoking MSTest.
有关VS 2017支持的功能的更多信息,您可以参考:比较Visual Studio 2017 IDE.
More information about VS 2017 supported features, you can refer to: Compare Visual Studio 2017 IDEs
这篇关于收到错误消息:指定的文件扩展名'.webtest'不是有效的测试扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!