-
Notifications
You must be signed in to change notification settings - Fork 34
Test case generators
Alberto Martín López edited this page Jun 1, 2020
·
4 revisions
- Abstract test case generator
- Currently supported test case generators
- How to create a new test case generator
WIP
WIP
WIP
WIP
You can implement a new test case generator extending the AbstractTestCaseGenerator
class. You have to implement—at least—the following methods:
-
Collection<TestCase> generateOperationTestCases(Operation specOperation, es.us.isa.restest.configuration.pojos.Operation testOperation, String path, HttpMethod method)
. This method must generate a collection of test cases for a specific operation you want to test. -
TestCase generateNextTestCase(Operation specOperation, es.us.isa.restest.configuration.pojos.Operation testOperation, String path, HttpMethod method, String faultyReason)
. You will use this method in the previous one to generate each test case. The method must generate a test case for a specific operation. -
boolean hasNext()
. The method must returntrue
if there are more test cases to be generated.
You will have to modify the createGenerator()
method of the IterativeExample
class to add support for your test case generator. You may have to add new parameters to the properties file to fully support your new generator.