If you're using cucumber framework for test automation, by integrating testingbot -- easily you can cover or request multiple browser test execution in cloud. For more details visit this link https://sakib.wordpress.com/2016/05/07/testingbot-configuration-for-cloud-testing-in-multiple-browser
Ruby Gherkin
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
features
lib
Gemfile
Gemfile.lock
README.md

README.md

Introduction

If you're using cucumber framework for test automation, by integrating testingbot -- easily you can cover or request multiple browser test execution in cloud.

Setup

Install ruby.

And then install gems by the following command.

bundle install

Run cucumber by,

cucumber

Directory structure

.
├── features
│   ├── *.feature
│   └── step_definitions
│       └── *_steps.rb
└── lib
    └── cucumber_helper.rb

Features

Create features in features directory, with the extension of feature.

Step definitions

Create step definitions in the step_definitions directory. A sample step definition is given with the project.

Configuration

You can configure the capybara options in cucumber_helper.rb. Change Capybara.app_host to run the same test in different host.

Others

To generate report by using cucumber cucumber features --format html --out reports

To run specific scenario from a feature cucumber features/social_auto_posting.feature --tags @active

To skip/ignore specific scenario with tags cucumber features/social_auto_posting.feature --tags ~@wip or ~@todo

To run only failed scenario by using cucumber cucumber features/social_direct_posting.feature --tags ~@wip -f rerun --out rerun.txt and it will create rerun.txt file. Execute by following this way cucumber @rerun.txt

References