集成Selenium Grid和Sikuli API [英] Integrate Selenium Grid and Sikuli API

查看:84
本文介绍了集成Selenium Grid和Sikuli API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我正在研究自动化测试框架,该框架将Selenium Grid和Sikuli API结合在一起.

Currently, I am working on the automation testing framework, which combines with both Selenium Grid and Sikuli API.

我已经实现了一个包含Selenium和Sikuli功能的库,当我在同一台机器上设置集线器和节点时,它可以很好地工作.但是,这与在计算机上运行Selenium RC相同.

I already implemented a library which includes functionality of Selenium and Sikuli, and it works well when I set up my hub and node on the same machine. However, this is just the same as running Selenium RC on the machine.

因此,为了实现并行测试,我的下一步是从其他计算机启动节点并将它们注册到集线器计算机.创意环境是Amazon EC2实例.

So, in order to achieve parallel testing, my next step is to launch the nodes from other machines and register them to the hub machine. The idea environment is Amazon EC2 instance.

集线器:Linux机器

Hub: Linux box

节点:赢得服务器2008

Nodes: win server 2008

如果我仅使用仅包含Selenium函数的库运行测试,则效果很好.但是,我 收到错误消息

It works fine if I just ran the tests using the library only contains Selenium functions. However, I got error message that

未设置X11 DISPLAY变量,但是该程序执行了需要它的操作."

"NO X11 DISPLAY variable was set, but this program performed an operation which requires it."

我应该将DISPLAY变量导出到节点的ip地址吗?我是否需要将节点计算机设置为X服务器?如果有许多实例注册到集线器计算机怎么办?

Should I export DISPLAY variable to the node's ip address? And do I need to set the node machine as an X server? What if there are many instances registered to the hub machines?

对于这个模糊的问题表示抱歉...但是任何有关实现此框架的想法都值得赞赏.我正在使用Selenium网格,因为执行图形验证的动作很多.如果我可以并行测试,那将非常有效率.

Sorry for the vague question... but any idea that how to implement this framework is appreciated. I am using selenium grid since there are many action performing graph verification. It would be very efficient if I can do it parallel testings.

非常感谢您的帮助和建议.

Thanks a lot for any help and advice.

推荐答案

请参阅我的博客文章,主题是将Sikuli和AutoIt之类的工具与Selenium Grid集成.它提供了一种实现上述自动化的理论方法,尽管据我所知,还没有人实施一种可行的解决方案来进行演示.

See my blog post about the topic of integrating tools like Sikuli and AutoIt with Selenium Grid. It provides a theoretical approach to implement said automation, though to my knowledge no one has yet implemented a working solution to demonstrate.

http://autumnator.wordpress.com/2011/12/22/autoit-sikuli-and-other-tools-with-selenium-grid/

另一方面,不确定X.11问题是如何发挥作用的,最好在转换为Amazon EC2部署之前,使用带有Selenium Grid的本地计算机网络在框架上进行工作.由于EC2可能会出现自己的问题,因此它有助于设计和调试过程,因此您希望首先使用最简单的基本Grid设置(非EC2).

On a side note, not sure how your X.11 issue came into play, it would be best you work on the framework using local network of machines with Selenium Grid before you convert to an Amazon EC2 deployment. It helps in the design and debug process as EC2 may present its own issues so you want to have the simplest basic Grid setup working first (non-EC2).

这篇关于集成Selenium Grid和Sikuli API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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