A variety of client side tests and API tests
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
npm install mocha -g
npm install selenium-webdriver --msvs_version=2012
- this depends on the actual MS Visual Studio versionnpm install request
- this is required for testing public APInpm install jsonschema
- this is required for validating JSON messages when testing public API
npm install mocha -g
npm install selenium-webdriver
npm install request
npm install jsonschema
- see Linux
'Sample' files should be copied (edited if needed) and saved as config.json and startAllTests.bat (or startAllTests.sh) correspondingly
startAllTests.bat
- example requires selenium grid running (but can be used without it if needed)
./startAllTests.sh
- example does not require selenium grid running./xvAllTests.sh
- example uses xvfb to run firefox on a headless machine
- see Linux