WebdriverIO is a progressive automation framework built to automate modern web and mobile applications. It simplifies the interaction with your app and provides a set of plugins that help you create a scalable, robust and flakiness test suite.
This is a sample WebdriverIO (v8) Mocha framework project to automate web applications using Javascript. This framework was designed with Page Object Pattern.
- Clone the project from GitHub.
- Open
Terminal
from the project root directoryWDIO_Mocha_Javascript
on the VS code. - On the terminal, Run command
npm install
to install all the dependencies present in thepackage.json
file.
- Run command
npm run test
from terminal to execute the scripts locally.
- Run command
npm run test:docker
to execute the scripts on docker container.
- allure-reporter
- spec-reporter
- video-reporter
On the terminal, Run command npm run generateAllureReport
to open allure report. Report will be opened in the default browser.
On the terminal, Run command npm run cleanup
to clean the "Reporting" directory. Execute this command before the execution of test.
- Mocha framework
- expect-webdriverio assertions
- Page Object design pattern
- Support for cross browser testing and Parallel execution
- Babel Setup
- Docker (Grid - Hub + Node)
- Dockerized Jenkins
- GitHub actions