testing - How to test remote server deployment of Rails app with Cucumber and Capybara -


i developing rails 3.x app under windows 7 , using cucumber , capybara testing.

i have set ubuntu vm , deployed app that.

i want use cucumber / capybara test app on vm after each deployment - after all, different os , want leverage power of test suite test different browsers (firefox, chrome , ie) against deployed site.

in theory, seems though have 3 main options:

1) run cucumber locally, local browser , hit remote server (vm guest) 2) run cucumber locally remote browser hitting remote server 3) connect vm guest , run cucumber locally under vm

it seems me option 1) best simulates real world, ie not running browser on remote server.

however, not sure if possible, or how configure things achieve it. in particular not clear whether or not need selenium server in case, , if do, whether should deploying locally (on windows dev machine) or remotely (in guest vm app deployed).

i have done fair bit of google searching issue , have looked @ such posts as:

problems connecting vm cucumber remote test

https://github.com/leonid-shevtsov/headless

and while these give clues such use of (which described in official capybara docs @ http://rubydoc.info/github/jnicklas/capybara)

  capybara.app_host = "http://hostname:4444"   capybara.default_driver = :selenium   capybara.run_server = false 

the examples given seem referring browser running remotely (eg options 2 or 3) , still not sure best approach take.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -