API testing
This package has the ability to test APIs, API testing at different levels.
[!IMPORTANT]
This package is currently in Alpha.
Levels that the package can test:
- Simple test sending a json file to the api
- Test sending token with Jason to API
The names of the packages used along with the licenses for each are as follows:
1-gin License == License
Copyright (c) 2014 Manuel Martínez-Almeida
Well, after fully understanding this package, now it's time to learn how to use it:
Package features:
Installation
[!IMPORTANT]
It is definitely recommended to install the packages mentioned above separately and then install the package below.
To install the package, simply enter the following command:
go get -u github.com/Mreza2020/API-Testing
API-1-test
[!IMPORTANT]
This test is simple.
API-1-test consists of several parts:
TestPostApi:
- The method type is post.
- And to use it, you need to store the destination address in env.(Address)
API-2-Concurrency
API-2-Concurrency consists of several parts:
- The method type is post.
- And to use it, you need to store the destination address in env.(Address)
- To use it, you need to send
Concurrency along with the content, like this example:
{
"name" : "admin",
"Concurrency" : "1"
}
Concurrency : Number of cycles or number of simultaneous file transfers