Skip to content
UI, API and iOS testing with Nightwatch and CucumberJS4
JavaScript Gherkin
Branch: master
Clone or download
Pull request Compare This branch is 418 commits ahead, 1 commit behind glazar:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf
features
step-definitions
support
.gitignore
.travis.yml
API-README.md
README.md
generate-report.js
package-lock.json
package.json

README.md

Build Status

e2e-testing

End-to-End Testing with Nightwatch and Cucumber. Nightwatch is a browser automation framework component, supporting many browsers (inlcuding Electron). Tests are coded in Nodejs, and run against a Selenium/WebDriver server. API testing is also supported.

Step 1

Install all dependencies

$ npm install

Step 23

To run (and generate html report):

$ node_modules/.bin/nightwatch -c ./conf/nightwatch-cucumber.conf.js -e default && node generate-report.js

To run tests in parallel (and generate html report):

$ node_modules/.bin/nightwatch -c ./conf/nightwatch-cucumber-parallel.conf.js && node generate-report.js

To run by tag

$ node_modules/.bin/nightwatch -c ./conf/nightwatch-cucumber-parallel.conf.js -- --tag tagname

Step 3

Generate HTML report (with screenshots)

$ node generate-report.js

iOS testing

Using Appium - in order to run tests against, you will need Xcode installed, to use the simulators.

Prequisistes: XCode 9.2+

There are enough emulators that come with XCode package, but to install new ones, you will need to open from Xmcode app:

  • Xcode > Open Developer Tool > Simulator
  • In Simulator go to: Hardware > Device > Manage Devices
  • In devices window at the bottom of the left column, click the Add button (+)
  • Now follow the dialog.

To run:

$ npm install -g appium $ appium [NEW CONSOLE TAB] $ npm run nightwatch-cucumber-ios -- --tag iostest

You can’t perform that action at this time.