简体   繁体   English

无法在Visual Studio 2017 Enterprise MSTest硒单元测试C#中向我的项目中找到/添加订购的测试项目

[英]Unable to find/add ordered test item to my project in Visual Studio 2017 Enterprise MSTest Selenium Unit Tests C#

I am unable to find and add the Ordered Test item to my project (MSTest based Selenium Tests in C#) in Visual Studio 2017 Enterprise Edition. 我无法在Visual Studio 2017企业版中找到有序测试项并将其添加到我的项目(C#中基于MSTest的硒测试)中。 I have tried the following steps to find and add the Ordered Test item to my project but I don't see the Ordered Test item. 我尝试了以下步骤来查找“已订购的测试”项并将其添加到我的项目中,但是看不到“已订购的测试”项。 Please see the screenshot below. 请查看下面的屏幕截图。

Solution Explorer -> Right Click Project -> Add 解决方案资源管理器->右键单击项目->添加

Visual Studio -> Right Click Project -> Add -> New Item -> Test (Visual C# Items) Visual Studio->右键单击Project-> Add-> New Item-> Test(Visual C#项)

Turns out MSTest V2 doesn't support ordered tests. 事实证明,MSTest V2不支持有序测试。 That is the reason I am unable to find the ordered test option. 这就是我无法找到有序测试选项的原因。 Refer to the link below for more details: 请参阅下面的链接以获取更多详细信息:

MSTestv2 does not support orderedTests #25 MSTestv2不支持orderedTests#25

Cannot run ordered tests since upgrading to new MSTestV2 由于升级到新的MSTestV2,因此无法运行有序测试

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM