Regression test is a tool for validate existent functionality with each new release of code.
Supports only CSV responses of API.
Clone this repository
git clone [email protected]:simcaq/lde-api-regression-test.git
Go to this repository
cd lde-api-regression-test
Create a virtual environment
virtualenv -p python3.5 env
Activate the virtual environment
source env/bin/activate
Install dependencies
pip install -r requirements.txt
Set base url to the running API. Default route of LDE:
BASE_URL="https://simcaq.c3sl.ufpr.br/api/v1/"
Local environment route:
BASE_URL="localhost:PORT"
usage: manage.py <command> [<args>]
positional arguments:
command the command to run
optional arguments:
-h, --help show this help message and exit
available commands:
compare Compare multiple or one CSV route
save Save multiple or one CSV route
-h, --help show this help message and exit
--route ROUTE no description
The command save will save files of all routes in the list at settings file.
python manage.py save
To save specific base route
python manage.py save --route enrollment
The command compare will compare all requisitions of routes in the list at settings file with the saved files at route_result path. If it has some difference between the saved file and actual response of API then the command will return fail with the number of failures.
python manage.py compare
To compare specific base route with files of this specific route at route_result path.
python manage.py compare --route enrollment