Ready-to-use UI Test Automation Project using Selenium, Webdriver IO, Javascript.
The project uses the following:
- Javascript ES2019 as the scripting language.
- Webdriver IO as the test automation framework.
- Mocha as the testing framework.
- Chai as the assertion library.
- Allure Reports as the test reporting strategy.
- IntelliJ IDEA as the IDE.
- Clone the git repo —
git clone https://github.com/humayun-ashik/webdriverio-mocha-ui-automation.git - Then copy the files to your project directory (all files in
/test,/pages,/utiland thewdio.*.conf.js) - Merge project dev dependencies with your projects dev dependencies in your
package.json - To run entire test suite just run
npm teston your terminal.
Test Website: https://flights.agoda.com/
- Search Economy class round-trip flights for 1 adult
- Search Economy class round-trip flights for multiple travellers
- Search Business class flights for one way trip
- Search First class flights for one way trip
- Search Business and First class flights for multicity trip with specific time
- Search Economy class round-trip flights without date selection
- To get allure report run
allure generate && allure openfrom terminal - Then open the generated url
webdriverio-mocha-ui-automation/
├─ pages/
│ ├─ abstract.page.js
│ ├─ flights.page.js
├─ reports/
│ ├─ html-reports/
├─ test/
│ ├─ searchflights.test.js
├─ testData/
│ ├─ searchData.js
├─ util/
│ ├─ config.js
│ ├─ Utilities.js
│ ├─ elementUtil.js
├─ .gitignore
├─ LICENSE
├─ README.md
├─ package-lock.json
├─ package.json
├─ wdio.conf.js
