简体   繁体   English

跨机器的UI自动化框架?

[英]Cross-machine UI automation frameworks?

Good time of day, 一天中的好时光

Tried to google it but haven't found an answer - are there any free or paid UI automation frameworks that can give me ability to automate an applications that installed on different computers but communicate with each other? 尝试使用Google进行搜索,但没有找到答案-是否有任何免费或付费的UI自动化框架可以使我自动化安装在不同计算机上但彼此通信的应用程序的功能?

Ideally what I want is: 理想情况下,我想要的是:

  1. Do something on Machine A 在机器A上做某事
  2. Wait for event on Machine B 等待机器B上的事件
  3. Do something on Machine B after event occured 事件发生后在机器B上执行某些操作
  4. Wait for event on A 等待A上的事件

I'm a bit lazy to write and run different tests on both machines (eg test1 with steps 1 and 4 and test2 with steps 2 and 3 so I'm looking for other solution. 我有点懒于在两台机器上编写和运行不同的测试(例如,带有步骤1和4的test1和带有步骤2和3的test2,所以我正在寻找其他解决方案。

Perhaps you could set something like this up using Jenkins: http://jenkins-ci.org/ 也许您可以使用Jenkins进行如下设置: http : //jenkins-ci.org/

One idea for how it might be done: 如何做到的一个想法:

  • The Jenkins master node launches a job on Machine A Jenkins主节点在机器A上启动作业
  • The program running on Machine A contacts the master node (via the Jenkins REST API ) to launch a job on Machine B 在机器A上运行的程序(通过Jenkins REST API )联系主节点以在机器B上启动作业
  • Machine A then starts polling the master node, waiting for Machine B's job to go into a completed state 然后,机器A开始轮询主节点,等待机器B的作业进入完成状态
  • Machine A continues with its work once the Machine B job is complete 一旦机器B的工作完成,机器A便继续工作

Note that you might be able to dispense with the need for a third machine on which to run the Jenkins server software, and instead make your A or B machine serve a double role as the Jenkins master node as well as a job runner. 请注意,您也许可以省去运行Jenkins服务器软件的第三台机器,而让您的A或B机器同时充当Jenkins主节点和工作运行者。

This approach means you'd end up with code specific to the Jenkins API code in the processes you're launching on A and B, but nonetheless it might be fairly quick to implement. 这种方法意味着您将在A和B上启动的流程中最终得到特定于Jenkins API代码的代码,但是尽管如此,实现起来还是相当快的。

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

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