An Insurance Quote app for the Sydney Testers "Faster Tests, Faster Feedback" workshop.
####URL for the webapp, hosted on heroku: http://sydneytesters.herokuapp.com/
####Things to have setup on your machine (just google them to find installers):
- git
- ruby 2.0.x
- bundler gem
- chrome
NOTE: The below three things can be downloaded for free from the internet, but you dont necessarily have to, as I have included the files in the "grid" folder.
-
Selenium Server standalone library (The latest version available appears to be 2.42.2. This version has a known issue with its http implementation. So, if you have no other compelling reason, try to use the version I provided in the "grid" folder, which has this issue fixed. This version is not released publicly yet)
-
chromedriver* (If you do download this, copy it into any folder in your PATH and then make it executable.)
-
phantomjs* (If you do download this, copy it into any folder in your PATH and then make it executable.)
####To set up the project on your machine:
git clone https://github.com/hdushan/quickquote.git
bundle install
####Rake targets to run tests locally:
rake unit
runs unit tests onlyrake chrome
runs cucumber tests using chromerake headless
runs cucumber tests using phantomjsrake
runs unit tests and cucumber tests headless
####To run the app locally (The tests will automatically start the sydneytesters server on your local machine, so you dont need to start it manually prior to running prior to test):
- In the quickquote folder, run '
shotgun
' - Use a browser to navigate to http://localhost:9393
####Rake targets to run tests against the heroku-hosted app:
rake qa_chrome
runs cucumber tests using chromerake qa_headless
runs cucumber tests using phantomjs
####Selenium Grid: ######To start hub In folder quickquote/grid:
java -jar selenium-server-standalone-2.42.2x.jar -role hub
######To start node (Chrome/OSX) In folder quickquote/grid:
java -jar selenium-server-standalone-2.42.2x.jar -role node -nodeConfig osxchrome.json -port 5556
ps: change the "port" number as required for each node. Each node on the same machine needs a unique port number.
######To start node (Chrome/Win7) In folder quickquote\grid:
java -jar selenium-server-standalone-2.42.2x.jar -role node -nodeConfig win7chrome.json -Dwebdriver.chrome.driver=Y:\Workspace\quickquote\grid\chromedriver.exe
####Rake targets to run tests parallely against heroku-hosted app (NOTE: Please have at least 3 nodes running, otherwise tests may time out intermittently):
rake qa_chromeparallel
runs cucumber tests parallely using chromerake qa_headlessparallel
runs cucumber tests parallely using phantomjs
####Rake targets to run tests parallely against local sydneytesters app (The tests will automatically start the sydneytesters server on your local machine, so you dont need to start it manually prior to running prior to test): (NOTE: Please have at least 3 nodes running, all on the same machine as the server):
rake chromeparallel
runs cucumber tests parallely using chromerake headlessparallel
runs cucumber tests parallely using phantomjs
####Travis build for above webapp: Search for the public repository “quickquote” at https://travis-ci.org/