/client-side-tests

a variety of client side tests and API tests

Primary LanguageJavaScript

Client Side Tests

A variety of client side tests and API tests

Prerequisites

You will need the following things properly installed on your computer.

  • Node.js - with npm
  • Mocha
  • Selenium - we need only selenium-webdriver when running without Grid
  • Firefox - with Xvfb server it can be run on machines with no display hardware and no physical input devices

Installation

Windows

  • npm install mocha -g
  • npm install selenium-webdriver --msvs_version=2012 - this depends on the actual MS Visual Studio version
  • npm install request - this is required for testing public API
  • npm install jsonschema - this is required for validating JSON messages when testing public API

Linux

  • npm install mocha -g
  • npm install selenium-webdriver
  • npm install request
  • npm install jsonschema

Mac

  • see Linux

Running Tests

'Sample' files should be copied (edited if needed) and saved as config.json and startAllTests.bat (or startAllTests.sh) correspondingly

Windows

  • startAllTests.bat - example requires selenium grid running (but can be used without it if needed)

Linux

  • ./startAllTests.sh - example does not require selenium grid running
  • ./xvAllTests.sh - example uses xvfb to run firefox on a headless machine

Mac

  • see Linux

Further Reading / Useful Links