dunxtand / integration-tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hickies Integration Tests

Testing site functionality and scanning for bugs for Hickies sites in the United States, the United Kingdom, the European Union, Germany, and Australia.

Requirements

The tests use Node.js, npm, Java, and Firefox 50.

Setup

Download the Selenium standalone server:

curl -O http://selenium-release.storage.googleapis.com/3.0/selenium-server-standalone-3.0.1.jar

Download geckodriver for OSX...

curl -L https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-macos.tar.gz | tar xz

...or find other versions at https://github.com/mozilla/geckodriver/releases

An executable named 'geckodriver' should be in the root of the project.

Install WebdriverIO globally (npm scripts rely on the 'wdio' terminal command):

npm install -g webdriverio

Install necessary npm modules:

npm install

Usage

Start the Selenium server:

npm start

Run all tests:

npm test

Run site all tests for a particular site:

npm run us

npm run uk

npm run eu

npm run de

npm run au

Run cart tests for all sites:

npm run cart

Run offers tests for all sites:

npm run offers

Run translation file tests for all sites:

npm run trans

Run As Seen On page tests for all sites:

npm run seenon

Run site search tests for all sites:

npm run sitesearch

Development

When developing a particular test, you can assign it to the dev suite:

// in wdio.conf.js:
suites: {
  dev: ["./test/US/test_you_are_developing.js"]
}

...and then run it from the command line:

npm run dev

About


Languages

Language:JavaScript 100.0%