在分布式机器上运行自动化测试 [英] Running automated tests on distributed machines

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

问题描述

您好,

   我们使用VS2015和SmartBear TestComplete进行测试自动化开发。我已成功将TestComplete集成到Visual Studio中,并在构建任务中将VS解决方案绑定到TFS 2015。当我对构建进行排队时,我可以成功运行测试。
我遇到的问题是如果我们有一大套自动化测试要运行并希望它们在几台不同的机器上运行,以减少执行时间?这是否有构建任务?我知道这是一个VS论坛,但我想在这里发布这个
来看看我是否能得到一个建议。 

   We use VS2015 and SmartBear TestComplete for Test Automation Development. I have successfully integrated TestComplete to Visual Studio and tied the VS Solution to TFS 2015 in a build task. When I queue a build, I can run tests successfully. The issue Im running up against is what if we have a large suite of automated tests to run and want them to be ran on several different machines, to reduce execution time? Is there a build task for this? I know this is a VS forum but thought Id post this here to see if I can get a suggestion. 

谢谢

推荐答案

SD SD左撇子,

Hi SD Southpaw,

欢迎来到MSDN论坛。

Welcome to MSDN forum.

根据您的描述,我们建议您使用
测试控制器和测试代理
远程在不同的机器上运行测试。

According to your description, we suggest you could use test controller and test agent to run test in different machines remotely.

>>什么是测试控制器和测试代理? 

测试控制器提供了运行测试的通用体系结构,它可以连接不同机器中的多个测试代理。它主要用于管理测试代理并接受测试代理的测试结果。 

Test controller provides a general architecture for running tests, it can connect multiple test agents which are in different machines. It mainly is used to manage test agents and accept the test results from test agents. 

测试代理用于运行测试项目。当它收到来自控制器的请求时,代理将启动一个运行测试的过程。 

Test agent is used to run the test project. When it receives the request from the controller, the agent will start a process on which to run the test. 

注意:它们可以在没有visual studio的机器上运行。

Note:They can run on the machine without visual studio.

>>如何配置?

请参阅
doc
以配置它们。 

Please refer to the doc to configure them. 

然后你需要添加
testsettings
文件到visual studio的解决方案中,然后将角色分配给控制器和代理。

Then you need to add a testsettings file into your solution in visual studio, then assign the role to a controller and agents.

请查看有关控制器和代理商表格的更多信息
here

Please check more information about controller and agent form here.

希望它可以帮到你。

最好的问候,

Dylan


这篇关于在分布式机器上运行自动化测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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