Skip to content

Basic setup for testing any webapp using cucumber and capybara

Notifications You must be signed in to change notification settings

peter-assi/cuke4all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Contents:

petclinic/ - A generated Spring Roo sample, Roo can be downloaded at
http://s3.amazonaws.com/dist.springframework.org/release/ROO/spring-roo-1.1.3.RELEASE.zip
The app was generated with 
roo> script --file clinic.roo

integrationtest/ - A rails project setup to test the petclinic web app

Prerequisites:
- Ruby (best installed with RVM http://rvm.beginrescueend.com)
- rails and bundler gems (gem install bundler rails)
- Java (go ask Oracle)
- Maven

To get petclinic running you need to create a database
# mysql -u root
create database petclinic;

If your root user have a password or if you use another login you need to edit the files
- petclinic/src/main/resources/META-INF/spring/database.properties
- integrationtest/config/database.yml

The Java server can be started by typing
# cd petclinic
# mvn tomcat:run

The test can be run by typing
# cd integrationtest
# rake cucumber

If you want to use a headless browser edit integrationtest/features/support/env.rb and comment out the line with :selenium and uncomment the line with :akephalos





About

Basic setup for testing any webapp using cucumber and capybara

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published