Git Product home page Git Product logo

automation-practice's Introduction

automation_practice

Installation

This practice is tested on Node v10.16.0. While earlier versions of nodejs may be compatible, they have not been tested or verified.

1. Install required Software

  • JDK 1.8+
  • NodeJS (version is equal or greater than v10.16.0)

You can download these software directly from our google drive and then install them on your computer https://drive.google.com/open?id=1_v8ZQkK7aSANTh6aOtyCu8qQb8eyDnrj

Or, download them from their websites.

JDK 1.8: Install JDK 1.8+. JAVA is require to start Selenium Server nothing else. https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Node.JS: Install from the site - https://nodejs.org/en/ take the LTS version based on your Operating system. Please make sure you install NodeJS globally.

2. Install packages for practice

  1. Open Terminal and cd to automation-practice repository.
  2. Run the command npm install to install dependencies packages
  3. That's all.

3. Update TESTING_HOST (Garoon Testing URL)

  1. Open file wdio.conf.js by any your IDE or Text Editor, such as PhpStorm, Notepad++, ...
  2. Update the value of the variable process.env.TESTING_HOST. (This value will be provided in the workshop)
  3. Follow the section How to run tests to make sure your installation is correct.

How to run tests

Firstly, opening a terminal and cd to automation-practice repository, then execute below command:

Run acceptance testing

The below command will execute all spec files - with extension is '*.spec.js' - in folder 'acceptance/src/**/test-specs/**/*.spec.js'

npm test ./acceptance/wdio.conf.js

Run testing with the specific suite

npm test ./acceptance/wdio.conf.js -- --suite demo

Run acceptance testing with the specific spec file

npm test ./acceptance/wdio.conf.js -- --spec src/demo/test-specs/login-onpremise.spec.js

Run RestAPI testing

The below command will execute all spec files - with extension is '*.spec.js' - in folder 'rest-api/src/**/test-specs/**/*.spec.js'

npm test ./rest-api/wdio.conf.js

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.