Skip to content

Shugenya/testing_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test examples

This is a sample project of automating different testing tyes. It's divided into 3 parts:

  1. Website testing
  2. REST API testing
  3. Load testing

Website testing

Scope

Website testing part includes selected automated test cases for webpage http://automationpractice.multiformis.com/.

Technologies

The framework used for test automation is Webdriver.io with Mocha test framework included.

How to run

To run locally, you need to have node.js and npm installed.

  1. Open terminal
  2. Navigate to website_testing folder
  3. Run command "npx wdio run ./wdio.conf.js"
  4. Follow the wizard:
  • Where is your automation backend located: On my local machine
  • Which framework do you want to use: mocha
  • Do you want to use the compiler: no
  • Where are your test specs located: press Enter
  • Do you want WebdriverIO to autogenerate some test files? n
  • Which reporter do you want to use? timeline
  • Do you want to add a plugin to your test setup? press Enter
  • Do you want to add a service to your test setup? press Enter
  • Do you want me to run npm install? n
  1. Run command again: "npx wdio run ./wdio.conf.js"
  2. Find the results in results/timeline-report.hmtl

Results

Test results are printed in HTML report using Timeline Reporter package. This is an example of a test report.

Currently 2 tests (001_search and 002_sorting) are failing due to bugs.

Test documentation

The test documentation is available here. It includes the test cases definition and test flows that are part of this project. Please note this is only a sample of all possible test cases and flows and doesn't provide sufficient coverage of all basic functionalities.

REST api testing

Scope

REST api testing part includes selected automated test cases for Food data central API.

Technologies

The tool used for REST api test automation is Postman.

How to run

  1. Import this collection into Postman.
  2. Click ... on the collection and select "Run collection"
  3. Click "Run Food data" button

Test documentation

The test documentation is available here.

LOAD testing

Scope

Load testing part includes load test for Blaze demo web application. More details about this load test can be found here.

Technologies

The tool used for Load testing is k6.

How to run

To run locally, you need to have k6 installed. See instructions.

  1. Open terminal
  2. Navigate to load_testing folder
  3. Run command: "k6 run script.js"
  4. The result is printed in the terminal

About

Sample project of automating different testing tyes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors