Giter Club home page Giter Club logo

sel-workshop's Introduction

sel-workshop

====================

Introduction:

This project is to demonstrate creating a test framework for sample application using webdriverio

  • IDE Used: WebStorm/VS Code Community Edition
  • Programming language: typescript
  • Browser Driver: Chrome
  • Build/Dependency Management Tool: node.js with node package manager

Prerequisites:

  • For easy install use https://nodejs.org/en/download/ to download Node.js and NPM
  • To be more in control of each version use Node Version Manager, see instructions here https://github.com/nvm-sh/nvm
  • If you run node -v you could see the version installed
  • If you run npm -v you could see the node package manager version installed

Getting Started: We would be executing the following commands during demo to perform setup and get started

  • npm init -y This will generate package.json
  • npm i -D @wdio/cli typescript ts-node chai mocha @types/chai @types/mocha
  • npx wdio config
  • npx tsc --init this will create a tsconfig.json file

Run Test:

  • $ npx wdio run wdio.conf.js
  • Once you have configured the test script in package.json descriptor under scripts section,then you could run your test using command

    $ npm test

Reporting:

  • We would integrate allure reporting to our app https://webdriver.io/docs/allure-reporter.html

  • Run the following command to install allure

    $ npm install @wdio/allure-reporter --save-dev
    $ npm install allure-commandline --save-dev
  • Generate a report using

    $ allure generate -c -o allure-report
  • Open a report using

    $ allure open allure-report

Workshop Demo

  • During workshop you could checkout chapters in different branch

    $ git checkout chapter1
    $ git checkout chapter2
    $ git checkout chapter3 
    $ git checkout chapter4 

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.