This program is meant to test apis automatically by providing a file with urls and expected status, it will so query all urls and compare what is expected for every case returning it in the console
Warning
Only work with JSON for now, and response comparaison not supported yet
- Add option to export test cases to excel or other files
First you'll need to write all your cases in a file with the following syntax
[testName]
<Method> url
ExpectedStatus
then simply execute api-tester fileName
Note
please not that you will need to remove all <> but not any []
requests.http
[Try to get cats]
GET localhost:3000/cats
200
### POST Request
[Try to upload cats]
POST localhost:3000/cats
DATA {...}
201
api-tester requests.http
As this is a first project in rust it might not be optimal, expect bugs and not full functionalities