简体   繁体   English

指定为TFS测试代理执行编码UI测试的顺序

[英]Specify Order in which Coded UI Tests are executed for TFS Test Agent

I'm trying to setup TFS 2010 Lab Management based Automated Testing system and I have a "Test suite" (Created in TFS Test Manager) with following tests: 1) Start and Login 2) Create group 3) Create user and add to the group 我正在尝试设置基于TFS 2010实验室管理的自动化测试系统,我有一个“测试套件”(在TFS测试管理器中创建),具有以下测试:1)启动和登录2)创建组3)创建用户并添加到组

These have order specified properly in Testing Center->Plan->(Test suite)->Order column 这些订单在测试中心 - >计划 - >(测试套件) - >订单列中正确指定

However, when they are executed (on TFS Lab Management Build) by Test Agent they run out of order: 2nd then 1st and then 3rd. 但是,当测试代理执行它们(在TFS实验室管理构建中)时,它们会无序运行:第二个,然后是第一个,然后是第三个。

Is there a way to make Test Agent run these tests in order? 有没有办法让测试代理按顺序运行这些测试?

Thanks. 谢谢。

Unfortunately, There's a blog regarding ordering test cases which says: 不幸的是,有一个关于订购测试案例的博客说:

Please note this only applies to the manual tests but not automated tests. 请注意,这仅适用于手动测试,但不适用于自动测试。 For automated tests, the order you set here will not be respected during test execution. 对于自动化测试,在测试执行期间不会遵守您在此处设置的顺序。

http://blogs.msdn.com/b/vstsqualitytools/archive/2009/11/21/run-your-tests-in-the-order-you-want.aspx http://blogs.msdn.com/b/vstsqualitytools/archive/2009/11/21/run-your-tests-in-the-order-you-want.aspx

创建一个有序测试,它是一个简单的列表,列出了应该运行哪些测试方法以及按什么顺序运行。

I also had the same issue. 我也有同样的问题。 I solved it by installing VS2010 Service Pack and TFS 2010 Service Pack in both the Test controller machine and Test agent machines. 我通过在测试控制器机器和测试代理机器中安装VS2010 Service Pack和TFS 2010 Service Pack解决了这个问题。 Please go through the following link for more details 请通过以下链接了解更多详情

http://social.msdn.microsoft.com/Forums/en-US/vsmantest/thread/29ac3c7b-b0cd-40f3-9992-f5f3c2285331 http://social.msdn.microsoft.com/Forums/en-US/vsmantest/thread/29ac3c7b-b0cd-40f3-9992-f5f3c2285331

I don't know if it's a new feature but you can create Ordered tests. 我不知道它是否是一个新功能,但你可以创建有序测试。 Just right click on your project in Solution Explorer and choose Add -> Ordered Test. 在Solution Explorer中右键单击您的项目,然后选择Add - > Ordered Test。 Select you tests in order. 按顺序选择测试。

In Test Explorer, run you ordered test. 在Test Explorer中,运行您订购的测试。

Details are in the link below but all I had to do is what I'd said above. 详细信息在下面的链接中,但我所要做的就是我上面所说的。 I am using VS 2015 Enterprise. 我正在使用VS 2015 Enterprise。

https://msdn.microsoft.com/en-us/library/ms182631.aspx https://msdn.microsoft.com/en-us/library/ms182631.aspx

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

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