编码的UI自动化-在各种机器上进行控制测试 [英] Coded UI Automation - Control test on various machines

查看:70
本文介绍了编码的UI自动化-在各种机器上进行控制测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

团队,

我们已经成功设置了测试控制器和测试代理,以便我们的CUI测试可以在3个虚拟机中运行,并且测试将根据测试设置文件中我们提到的存储桶大小进行分配.是否可以控制哪些测试在哪台计算机上运行?
目前看来,测试已按照字母顺序(Namespace.class.TestMethod)分发到多台计算机上,我们的要求是控制哪些测试在哪台计算机上运行.我们可以对CUI测试进行分类(在测试类别"属性下)吗? 在VM1中运行Category1测试,在Vm2中运行Test category2测试,在VM3中运行Test Category3测试.

例如.该代码将运行属于该测试类别的测试,但这仅在我们在一台机器上运行测试时才有用:

Mstest.exe/testcontainer:DLLPath/category:"CategoryName" /resultsfile:ResultsPath.trx"

我如何/在何处可以包括3个类别,以便测试在计算机中按类别明智地运行,而不是基于存储桶的大小或字母顺序?也许有类似的想法或您可以给我们的其他建议?

我们正在通过调用测试设置文件从"Teamcity"应用程序中调用测试,并且整个过程已启动,完成后,我们将在teamcity中查看结果.

Hi Team,

We have successfully setup test controller and test agents such that our CUI tests run in 3 virtual machines, tests get distributed based on the bucket size mentioned by us in test settings file. Is it possible to control which tests run in which machine?
For now it appears tests are getting distributed to multiple machines in alphabetical order (Namespace.class.TestMethod), our requirement is to control which tests run in which machine. Can we categorize our CUI tests (under 'Test category' attribute) such that Category1 tests run in VM1, Test category2 tests run in Vm2 and Test Category3 tests run in VM3.

E.g. This code will run tests that fall under this test category but this helps only if we run tests in one machine:

Mstest.exe /testcontainer:DLLPath /category:"CategoryName" /resultsfile:"ResultsPath.trx"

How/where can I include 3 categories so that tests run category wise in machines and not based on the bucket size or in alphabetical order? Maybe something on similar lines or any other suggestion that you can give us?

We are invoking our tests from 'Teamcity' application by invoking test settings file and the whole process gets initiated and when it is completed we view the results in teamcity.

推荐答案

Hi Nitin.jain496,

Hi Nitin.jain496,

恐怕无法实现.

当我在对我的代码UI测试进行分类时指定了我的测试控制器和测试代理时,我发现管理测试控制器"工作中只有第一个测试代理,甚至我添加了两个以上的代理.

As I specified test controller and test agents in my side, with categorizing my coded UI tests, and I found out only the first test agent in the Manage Test Controller work, even I added more than two agents.

据我所知,负载测试可以选择测试代理,而可以选择编码的UI测试.

 As far as I know, the load test could choose the test agents but the coded UI test.

最诚挚的问候

弗莱彻


这篇关于编码的UI自动化-在各种机器上进行控制测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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