Skip to content

gtavasoli/testing-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing Workshop

Application testing methods workshop material.

Website gtavasoli.com Ask Me Anything !

Table of Contents

Topics covered

  1. Unit Testing with unittest
  2. Mocking
  3. Performance Test

System Requirements

  • git v2.14.1 or greater
  • python3 v3.x
  • jre-8 or greater (To Run JMeter in Development Environment)

All of these must be available in your PATH. To verify things are set up properly, you can run this:

git --version
python --version
java --version (development env.)

Setup

After you've made sure to have the correct things (and versions) installed, you should be able to just run a few commands to get set up:

git clone https://github.com/gtavasoli/testing-workshop.git
cd testing-workshop

Workshop Plan

  • Introduction
  • Unit Testing
    • Calculator Sample
    • Employee Sample
    • Flaskr
  • Mocking
    • Random person sample
    • Employee Sample
    • Error sample
  • Performance Test
    • JMeter Intro
      • Sample 1 - Simple test
      • Sample 2 - Using assertions
    • Flaskr
      • Parametric requests
      • Single Thread (with or without wait)
      • Multi Thread (GIL)
      • NGINX + uWSGI (worker)
    • JMeter plugins
    • Profiling

LICENSE

All of the codebase are MIT licensed unless otherwise specified.

GitHub license