Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.
Here’s an outline with best practices for making your inquiry.
I’m having a login API where I need to send an E-mail and Password in the request body. Now I need to test negative scenarios in the same single request. Generally, for the valid login, I’m getting 200 and for the invalid, I’m getting 400. I need to send an invalid email and password in the request body for this and need to capture the result and accordingly tests as well. How this can be achieved in a single request?
Details (like screenshots):
How I found the problem:
I’ve already tried:
Tried with Data-driven at the time postman runner but then how to manage tests accordingly? I mean Iteration-wise tests and I can upload a single file for each API how to handle this situation when we will plan to run all APIs as a whole where we may require to send different request bodies every time for each API? We might need those numbers of csvs and separate collections.