GithubHelp home page GithubHelp logo

ruby_cucumber's Introduction

Example Repository to test out using cucumber,Ruby and Selenium Webdriver

Installation

  1. Clone the Repository using [email protected]:JellyfishGroup/ruby_cucumber.git
  2. Open the terminal and naviagate to the base folder the project was cloned into
  3. Ensure you have the Bundler installed. If not, install info here https://bundler.io/
  4. Once installed run the following command in the terminal: bundle install
  5. This should install the gems required to run the project

Executing the tests

Once the project dependencies have been installed, run a test to verify all is well.

To do this run the following command line instruction bundle exec cucumber You should see the following if everything runs as expected.

Feature: Contact us
  Test both routes to selecting and completing the site contactus.

  Background:                                              # features/home_page.feature:5
    Given I vist "https://jellyfish-test.jellyfish.co.uk/" # features/step_definitions/home_page.rb:1

  Scenario: Verify home page has loaded                                            # features/home_page.feature:8
    Then I can see the footer has loaded                                           # features/step_definitions/home_page.rb:5
    And the copyright text of "© Copyright Jellyfish Group 1999-2018" is displayed # features/step_definitions/home_page.rb:9

1 scenario (1 passed)
3 steps (3 passed)
0m6.396s

Running tests on different environments

There is a config.yml file (config/config.yml) in the project. Inside this file, the different URL's are listed for the supported environments. In order to specify which environment to run the tests on you can add a command line switch TEST_ENV=production to the end of the run command. EG. bundle exec cucumber features TEST_ENV=production

By default the tests run on the test url unless you add the command line switch

ruby_cucumber's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.