GithubHelp home page GithubHelp logo

mbeider / webdriverio-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jaykishoreduvvuri/webdriverio-v5

0.0 0.0 0.0 1.65 MB

JavaScript-Node.js Automation with Page Objects

HTML 1.67% JavaScript 97.52% CSS 0.82%

webdriverio-1's Introduction

[WebDriverIO - Automation tests with JavaScript-Node.js(Page Object Model)]

Design Page Objects and run Tests

Run application

Clone the repository

git clone https://github.com/JayKishoreDuvvuri/WebdriverIO

Install dependencies

Install Node modules with command : npm i

Start Selenium Server

Install Selenium standalone: npm i -D selenium-standalone
Install web drivers: npx selenium-standalone install
Start selenium server before running the test with command : npm run selenium-server (OR) npx selenium-standalone start

Run test

npm run test (OR) npm test                   #For sequential Execution of tests
npm test -- --spec ./test/homePage.test.js   #For running individual test
(OR)
npm test -- --spec=homePage.test.js          #For running individual test

Folder Structure

├── ...
│
├── pages                        # Generic functionality for tests
|   |
│   ├── basePage.js              # Base page testing functionality
|   ├── homePage.js              # Login page testing functionality
|   ├── hotelsPage.js            # Hotels page testing functionality
|   ├── hotelSearchPage.js       # Hotel search page testing functionality
|   ├── hotelSelectionPage.js    # Hotel selection page testing functionality
|
|
├── test                         # Test suite
│    ├── homePage.test.js        # Automated Test Script
|    ├── hotels.test.js          # Automated Test Script
│ 
|
├── utils                        # Utility files for testing
│    ├──locators.js              # HTML and CSS identifier for elements to test
|
|
├── allure-results               # allure generate {Directory} [on terminal]
|
├── allure-report                # allure open                 [on terminal]
|
└─── errorShots                  # Screenshot captured for failed tests

Generate Allure Test Report

Run on Terminal :
        |
        ├── allure generate --clean
        |
        ├── allure generate C:/Users/{username}/Desktop/WebdriverIO-Project/allure-results
        |
        ├── allure open

webdriverio-1's People

Contributors

jaykishoreduvvuri avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.