kuyr / webdriver.io_web_auto

WebDriver.io Test Automation Framework (can be modified to test mobile)

Home Page:https://www.webdriver.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webdriverio page object model for web automation, it can be modified to work for mobile also

This repository contains automated test scripts for using WebdriverIO, Selenium, and JavaScript.

Table of Contents

Prerequisites

Before you begin, ensure you have met the following requirements:

Installation

  1. Clone this repository:
git clone https://github.com/kuyr/sora_union.git
  1. Change to the project directory and install dependencies
   cd webdriver.io_web_auto

   npm install

Running Tests

Note: Runs on both chrome and firefox by default

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

Project Structure

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.

Reporting

To generate a beautiful report after running the tests:

      npm run report_generate

About

WebDriver.io Test Automation Framework (can be modified to test mobile)

https://www.webdriver.io

License:Apache License 2.0


Languages

Language:JavaScript 100.0%