Cloud9 Watir /硒测试 [英] Cloud9 Watir/Selenium Testing

查看:60
本文介绍了Cloud9 Watir /硒测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为简单的持续集成和交付系统设置了Cloud9和Codeship。它非常适合开发我的网站/应用程序。有谁能够在Cloud9 IDE中开发和运行基于浏览器的Cucumber测试?如果是这样,它需要哪种设置?

I have set up Cloud9 and Codeship for a simple Continuous Integration and Delivery system. It works well for developing my website/app. Has anyone been able to develop and run browser based Cucumber tests from within the Cloud9 IDE? If so, what kind of set-up did it require?

PS。我一直在尝试安装Watir / Selenium chromedriver并使用无头宝石。

PS. I have been trying to get the Watir/Selenium chromedriver installed and working with the 'headless' gem.

推荐答案

首先进行说明。我发现使用Cucumber在Codeship上进行验收测试为CI和CD设置github,c9.io和codeship非常容易。不幸的是,开发Cucumber测试很困难,因为我必须提交,推送和检查失败的Codeship集成测试。我希望能够在IDE中快速运行和调试Cucumber方案。但是,没有打开watir /硒的浏览器。这样的问题。

First an explanation. I found it very easy to set up github, c9.io, and codeship for CI and CD using Cucumber for acceptance testing on Codeship. Unfortunately, developing the Cucumber tests was difficult, because I had to commit, push, and examin the failing Integration tests on codeship. I wanted to be able to quickly run and debug Cucumber scenarios in the IDE. But, there is no browser for watir/selenium to open. Thus the question.

经过c9.io在Twitter上的搜索和提示的一天,我将解决方案归结为两步...

After a day of searching and hint from c9.io on twitter, I have consensed the solution down to two steps ...


  1. 安装firefox和xvfb: sudo apt-get install firefox xvfb

  2. 在其中运行黄瓜xvfb上下文: xvfb运行的黄瓜

  1. Install firefox and xvfb: sudo apt-get install firefox xvfb
  2. Run cucumber in an xvfb context: xvfb-run cucumber

这篇关于Cloud9 Watir /硒测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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