goutamm
2 years agoNew Contributor
Different Assertion output for a loop testcase
Hello, I am new to Readyapi, I have test requirement for huge api testing, possibly 1000s of testcases. I have a scenario where I need to test a Post request with 10 for valid and invalid outputs. ...
- 2 years ago
specifying and organizing test cases is part of the testing art, so there is no simple answer.
I would ask myself at least:
- Which way is more understandable for test structure, running tests and checking results?
- Will I need to run the positive and negative test case separately, or rather as a single test case?
- Is it easier to put it all into a single test case or does it complicate the stuff?
From what you write, I would choose to create two test cases, one for positive and second for negative. Each of them would have a data source/loop, request and appropriate assertions. I would probably need only one simple set of assertions in each test case.