ZIJ / nightwatch-cucumber

Demonstartion project for Cucumber.js and Nightwatch.js integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alt-tag

nightwatch-cucumber

Demonstartion project for Cucumber.js and Nightwatch.js integration. This demonstrates how to use a BDD-style approach for crossbrowser testing:

  • Describe user stories in Cucumber
  • Map them to HTML/DOM operations in Nightwatchjs
  • Run using either local Selenium driver or cloud based webdriverJs services such as SauceLabs or BrowserStack

Installation

$ git clone git@github.com:mucsi96/nightwatch-cucumber.git
$ cd nightwatch-cucumber
$ npm install

Running

$ node nightwatch.js

Features

Feature Tags

You can selectively run features based on tags. More details

// google.feature

@google @search
Feature: Google Search

Scenario: Searching Google

    Given I open Google's search page
    Then the title is "Google"
    And the Google search form exists
$ node nightwatch.js --tag google

You can also skip features based on tags

node nightwatch.js --skiptags google

About

Demonstartion project for Cucumber.js and Nightwatch.js integration

License:MIT License


Languages

Language:JavaScript 93.1%Language:Gherkin 6.9%