I am trying to automate the testing of different APIs. I have created collection in postman. There are multiple APIs present inside a collection and each API has different body structure (inputs) and different test cases. Each API should be tested for multiple testcases. e.g. API 1 has 2 Test cases and API 2 has 5.
API1
Testcase1
input a
input b
Testcase2
input c
input d
I have created JSON file for “LogIn” API, which looks like,
Request body for “Search” API is as follows,
{
"Input":"{{value}}"
}
There is an another JSON file for “Search” API is as follows
I want to run login API for two iterations(refer JSON for login) and search API for 5 iterations(refer JSON for search).
I want to automate testing of these two APIs using single JSON file (combination of these two files). Please suggest how should I achieve it?
Both the APIs are currently in same collection runner.