postman-collection
postman-collection copied to clipboard
Executing multiple tests in the Postman Runner
I am running a collection runner to execute multiple testcases in postman
I have a directory there I have created a post request, In the body of the request I gave something like this, { "subscriber": {{name}}, "action": {{Action}} } I am fetching the value for fname from the json file, that I am passing in collection runner , there contains multiple test cases in it.
sample json file which I am passing,
[ { "name":"abc", "action":"add" }, { "name":"xyz", "action":"sub" } ] Its works perfectly, but what I want to do next is I want to create another request an POST req, which is hitting to another Rest API, when I pass the testcase .json file which is specific to that Request in Runner , all will get executed for the first request as well, as the second Post Req has different input body , first Request I am getting all failed.
how to create a test suite which has multiple Requests POST, and when an Json file as input is passed in runner only that perticular REquest it gets executed, dont test on other Req => as it gonna fail.