Package de.hsh.graja.regression.runner
Class RtFacade
java.lang.Object
de.hsh.graja.regression.runner.RtFacade
Public facing regression testing API for the gradle build script.
Can also be used from other systems to interact with the Graja regression testing mechanism (Old name: RegressionTestingOperations)
Can also be used from other systems to interact with the Graja regression testing mechanism (Old name: RegressionTestingOperations)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Cleans all recorded behavior for the supplied locationstatic void
Allows to batch process a list of#clean(File)
operationsstatic void
Execute the operation of record.static void
Allows to batch process a list of requests with#record(RtReq, File)
behavior.static void
Execute the operation of test.static void
Allows to batch process a list of requests with#test(RtReq, File)
behavior.
-
Constructor Details
-
RtFacade
public RtFacade()
-
-
Method Details
-
test
public static void test(RtReq rr, File buildReportIn, int concurrentTasks, boolean haltOnDetect) throws IOException Execute the operation of test. This will test a single request (or persist the behavior, if not done yet).- Parameters:
rr
- to operate onbuildReportIn
- report output folder- Throws:
IOException
-
record
Execute the operation of record. This will record the behavior of the requests assignment if not done yet or overwrite existing behavior.- Parameters:
rr
- to operate onbuildReportIn
- report output folder- Throws:
IOException
-
clean
Cleans all recorded behavior for the supplied location- Parameters:
persistBehaviorIn
- path to persist behavior in that should be cleaned- Throws:
IOException
-
testAll
public static void testAll(ArrayList<RtReq> rrs, File buildReportIn, int concurrentTasks) throws IOException Allows to batch process a list of requests with#test(RtReq, File)
behavior.- Parameters:
rrs
- to processbuildReportIn
- report output folder- Throws:
IOException
-
recordAll
public static void recordAll(ArrayList<RtReq> rrs, File buildReportIn, int concurrentTasks) throws IOException Allows to batch process a list of requests with#record(RtReq, File)
behavior.- Parameters:
rrs
- to processbuildReportIn
- report output folder- Throws:
IOException
-
cleanAll
Allows to batch process a list of#clean(File)
operations- Parameters:
persistBehaviorIn
- list of persisted behavior paths that should be cleaned- Throws:
IOException
-