Code Monkey home page Code Monkey logo

gauge-wdio-x-browser-test's Introduction

gauge-wdio-x-browser-test

A cross browser test automation app using Gauge and WebdriverIO

Table of Contents

Getting Started

  1. Install Active LTS (Long Term Support) version of Node.js and use npm@6

  2. Clone the repo and install dependencies

git clone https://github.com/pradeep0601/gauge-wdio-x-browser-test.git

# Switch to the project directory
cd gauge-wdio-x-browser-test

# Install project node modules.
yarn

Execute Tests

Use below grunt commands to execute test -

grunt gauge-tests [options]

It will run test as per given options.

options

  • --browser=<browserName> runs test on given browser.(supported browser: chrome(default), firefox, edge, ie and safari)
  • --bstack runs test against given browser on cloud testing platform: Browser Stack
  • --headless runs test against given browser in headless mode (supported browser: chrome, firefox)
  • --tags=<tagName> runs only those scenario which is tagged with given tagName.
  • --env=<envValue> runs test on given environment (Valid value: integration, prod).
grunt gauge-tests --browser=ie --bstack

will run tests on BrowserStack against internet explorer

grunt gauge-tests --browser=ie

will run all tests locally against internet explorer

grunt gauge-tests --browser=ie --tags=uat

will run all scenarios tagged with uat locally against internet explorer

grunt gauge-tests --browser=edge --tags=uat --bstack

will run all scenarios tagged with uat on BrowserStack against microsoft edge

yarn commands

You can use below yarn commands as well to run test cases

Syntax: yarn test:<browser>:[bstack]

Example:

yarn test:ie will run tests locally
yarn test:ie:bstack will run tests on BrowserStack

Note: To execute tests on BrowserStack you will have to keep browser stack's credentials in /env/default/gauge.propperties file like as below -

BROWSERSTACK_USERNAME = **************
BROWSERSTACK_ACCESS_KEY = *************

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.