Skip to content

senarclens/rrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST Regression Tester (RRT)

Implemented a minimalistic tool to perform regression tests between two versions of a REST API.

Bash: Proof of Concept

The proof of concept implementation is rrt.bash.

Limitations:

  • All changes (also intentional enhancements) are shown as failures.
  • Only supports GET requests.
  • Does not support authentication.

Requirements:

$ sudo -H pip install httpie In order to run the included sample API versions, you also need sudo -H pip install flask-restful The sample APIs can be started via cd server python3 v1.py python3 v2.py

Usage

  1. Fill requests.csv with your requests.
  2. Adjust the values of $old and $new to the base urls of your rest API.
  3. Execute the tests via ./rrt.bash
  4. If you'd like to show all performed requests (not just failures), add the -v parameter

Python: Proof of Concept

Limitations:

  • All changes (also intentional enhancements) are shown as failures.
  • Only supports GET requests.
  • Does not support authentication.

Requirements:

$ sudo -H pip install requests In order to run the included sample API versions, you also need sudo -H pip install flask-restful The sample APIs can be started via cd server python3 v1.py python3 v2.py

Usage

  1. Fill requests.csv with your requests.
  2. Adjust the values of OLD and NEW to the base urls of your rest API.
  3. Execute the tests via python3 rrt.py

Run python3 rrt.py --help for additional information.

About

REST Regression Tester

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published