问题描述
我想在服务器(非本地主机)上检查我的硒网格测试用例.我需要在服务器中使用chrome,firefox和IE浏览器.有什么办法吗?我检查了像koding.com这样的网站,但它仅提供unix界面,我需要完整的Windows/Ubuntu界面.请让我知道是否还有其他方法可以执行我的测试用例?
I would like to check my selenium grid test cases on a server(any machine other than localhost).I need chrome , firefox and IE browsers in the server. Is there any way to do this ? I checked few sites like koding.com , but it is only offering me unix interface,I need full windows/Ubuntu interface. Please let me know if there is any other method to execute my test cases ?
推荐答案
VirtualBox很好并且可以很好地用于网格测试,我希望它是一个相当普遍的解决方案.相同的IP并不是问题,因为您可以将其与桌面上的端口转发一起使用.例如,您应该设法建立一个如下所示的网格:
VirtualBox is good and works well for grid tests, I expect it to be a fairly common solution. Same IP is not a problem as you make it work with port forwarding on your desktop. For example you should manage to build a grid like the following:
- Windows主机上端口4444上的
- -role集线器 在Firefox中,VirtualBox中端口转发为5556的Ubuntu VM上的
- -role节点 对于Safari,在VirtualBox中具有端口转发5557的OSX VM上的
- -role节点 Windows VM上的
- -role节点,在VirtualBox中具有端口转发5558,用于IE和Chrome
- 在具有端口转发5559的Android模拟器上具有socat + flynnid.py的节点
- 也许也是OSX VM内部的iPhone模拟器(我不记得我是否可以在网格中使用它)
- -role hub on your Windows host on port 4444
- -role node on an Ubuntu VM with port forward 5556 in VirtualBox, for Firefox
- -role node on an OSX VM with port forward 5557 in VirtualBox, for Safari
- -role node on a Windows VM with port forward 5558 in VirtualBox, for IE and Chrome
- node with socat+flynnid.py on an Android emulator with port forward 5559
- maybe also iPhone Simulator from inside OSX VM (I don't remember if I made it work with grid)
这篇关于需要一台机器来运行Selenium Grid测试用例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!