This is a sample automated test framework project. It has implemented a few test cases for reddit's main page search engine.
It uses Javascript and NodeJS.
It uses Jasmine to write the tests.
It uses WebdriverIO to run the tests through a selenium server.
It uses Grunt as the task runner.
- Download repository
- install dependencies with 'npm install'
- run tests using Grunt.
Grunt is setup to launch the tests defined in wdio.reddit.config
'grunt run'
or to run without grunt from the command line: ./node_modules/.bin/wdio conf/wdio.reddit.conf.js
The tests are located in ./src/features/*.spec.js
Page objects are located in ./src/page_objects/*.page.js
The config files are in the ./conf/wdio.*.conf.js files.
wdio.conf.js is the base file. It has the settings that all the configurations share.
Any other config file has specific settings that are merged with the base file.
You can include/exclude specific features/specs in each configuration. Right now the only differences are the environments.