Skip to content

Easily write integration and load tests against a website or rest service

Notifications You must be signed in to change notification settings

dnajd/ruby_tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Test

Test web applications or rest services

Getting Started

The test folder has examples of:

  • testing a rest service
  • testing a webpage with selenium
  • testing a webpage using selenium and the page object pattern

Running the Tests

Run all tests

bundle execute rake test

Interactive Selenium

The default rake task will:

  • load up irb
  • include selnium
  • include any page objects you've created

Get started by running

bundle exec rake

Once in the irb, use selenium

driver = Selenium::WebDriver.for :firefox
driver.navigate.to "http://google.com"

And page objects

# create page object
page_obj = GoogleHomePage.new(driver)

# use page object
page_obj.search("Santa Rosa")

Logs & Reports

ci_report can be generated for build automation; refer to the Rakefile to see an example

r4log can be used to send output to

  • the console
  • a log file
  • splunk storm

Additional Notes

To test with chrome you need:

About

Easily write integration and load tests against a website or rest service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages