I am running a collection runner to execute multiple test cases in Postman
I have a Postman folder, where I have created a POST request. In the body of the request, I provide something like this:
{
"subscriber": {{name}},
"action": {{action}}
}
I am fetching the value for a name
from the .json
file, that I am passing in Collection Runner, which contains multiple test cases in it.
Sample JSON file I'm passing:
[
{
"name":"abc",
"action":"add"
},
{
"name":"xyz",
"action":"sub"
}
]
It works perfectly, but what I want to do next is to create another POST request, which is hitting another REST API.
When I pass the test case .json
file, which is specific to that Request in Collection Runner, all will get executed for the first request as well, as the second POST Request has a different input body, the first Request I am getting all failed.
How to create a test suite that has multiple POST Requests, and when a .json
file as input is passed in the Collection Runner, only that particular Request gets executed, don't test on other Req => as it gonna fail.