Skip to content

vishalm/demo_watir_cucumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

Basic Watir Webdriver Cucumber and Page Object Design Pattern implementation.

Build Status: localhost

Requirements

  • Bundle and Ruby with Devkit on Windows

Installation and Usage

  1. Clone this repository from Github

Windows

  1. Install Ruby 1.9
  2. In root directory, run 'bundle install'
  3. Then run 'rake'

Jenkins Setting

Plugin : HTML Publisher plugin Build

  1. Execute Windows batch command : @REM File to be deleted SET FileToDelete="E:\Training\CucumberWatir\Project\demo_watir_cucumber\report\features_report.html" IF EXIST %FileToDelete% del /F %FileToDelete%

  2. Execute Windows batch command : set PATH=C:\Ruby193\bin cd E:\Training\CucumberWatir\Project\demo_watir_cucumber bundle install

  3. Execute Windows batch command : set PATH=C:\Ruby193\bin cd C:..\demo_watir_cucumber cucumber --no-source --format pretty --format json --out=report\features_report.json

  4. Execute Windows batch command : set PATH=C:\Ruby193\bin cd C:..\demo_watir_cucumber cucumber --no-source --format pretty --format html --out=report\features_report.html

  5. Post-build Actions Publish HTML reports HTML directory to archive : C:..\demo_watir_cucumber\report Index page[s] : features_report.html Report title: Cucumber Report

  6. Alternate way Install ruby plugin SET RUBY_HOME in path Install rake plugin Give Rake Task Name

Some Handy URL

    https://github.com/cucumber/cucumber/wiki/Tutorials-and-Related-Blog-Posts
    https://github.com/watir/watir/wiki/Cheat-Sheet-for-Ruby
    https://github.com/watir/watir/wiki/Cheat-Sheet

Run the grid

HUB : java -jar selenium-server-standalone-2.45.0.jar -role hub NODE : java -jar selenium-server-standalone-2.45.0.jar -role node -hub http://localhost:4444/grid/register

About

demo_watir_cucumber

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published