This repository contains automated test scripts for using WebdriverIO, Selenium, and JavaScript.
Before you begin, ensure you have met the following requirements:
- Node.js installed
- WebDriver or other relevant dependencies installed
- A compatible web browser (e.g., Chrome, Firefox)
- The web application up and running
- Clone this repository:
git clone https://github.com/kuyr/sora_union.git
- Change to the project directory and install dependencies
cd webdriver.io_web_auto
npm install
To run all the tests use this command:
npm run wdio
To run the individual tests use these commands:
npm run login_test
npm run appointments_test
The project follows a standard structure:
- Config: Contains configuration files, such as wdio.conf.js.
- Test/specs: Contains the test scripts and suites.
- Pages: Contains Page Object Models (POMs) for better code organization.
- Reports: Will store test reports.
To generate a beautiful report after running the tests:
npm run report_generate