指定 TFS 测试代理执行编码 UI 测试的顺序
我正在尝试设置基于 TFS 2010 实验室管理的自动化测试系统,并且我有一个包含以下测试的“测试套件”(在 TFS 测试管理器中创建): 1) 启动并登录 2)创建群组 3)创建用户并添加到组
这些已在测试中心->计划->(测试套件)->顺序列中正确指定了顺序
但是,当它们由测试代理执行(在TFS Lab Management Build上)时,它们乱序运行:第二个,然后是第一个,然后是第三个。
有没有办法让测试代理按顺序运行这些测试?
谢谢。
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
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.
Is there a way to make Test Agent run these tests in order?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
创建一个有序测试,它是应运行哪些测试方法以及按什么顺序运行的简单列表。
Create an Ordered Test, it's a simple list of which test methods should run and in what order.
我也有同样的问题。我通过在测试控制器机器和测试代理机器上安装 VS2010 Service Pack 和 TFS 2010 Service Pack 解决了这个问题。请访问以下链接了解更多详细信息
http://social.msdn.microsoft.com/Forums/en-US/vsmantest/thread/29ac3c7b-b0cd-40f3-9992-f5f3c2285331
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. 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://blogs.msdn.com/b/vstsqualitytools/archive/2009/11/21/run-your-tests-in-the-order-you-want.aspx
Unfortunately, There's a blog regarding ordering test cases which says:
http://blogs.msdn.com/b/vstsqualitytools/archive/2009/11/21/run-your-tests-in-the-order-you-want.aspx
我不知道这是否是一个新功能,但您可以创建有序测试。只需在解决方案资源管理器中右键单击您的项目并选择“添加”->“已订购测试。按顺序选择您的测试。
在测试资源管理器中,运行您订购的测试。
详细信息位于下面的链接中,但我所要做的就是上面所说的。我使用的是 VS 2015 Enterprise。
https://msdn.microsoft.com/en-us/library/ms182631。 ASPX
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. Select you tests in order.
In Test Explorer, run you ordered test.
Details are in the link below but all I had to do is what I'd said above. I am using VS 2015 Enterprise.
https://msdn.microsoft.com/en-us/library/ms182631.aspx