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
Terminalfrom the project root directoryWDIO_Mocha_Javascripton the VS code. - On the terminal, Run command
npm installto install all the dependencies present in thepackage.jsonfile.
- Run command
npm run testfrom terminal to execute the scripts locally.
- Run command
npm run test:dockerto 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

