Package de.hsh.graja.regression.runner
Class RtFacade
- java.lang.Object
-
- de.hsh.graja.regression.runner.RtFacade
-
public class RtFacade extends Object
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)
-
-
Constructor Summary
Constructors Constructor Description RtFacade()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clean(String loggerName, File persistBehaviorIn)
Cleans all recorded behavior for the supplied locationstatic void
cleanAll(List<File> persistBehaviorIn)
Allows to batch process a list of#clean(File)
operationsstatic void
record(RtReq rr, File buildReportIn, int concurrentTasks)
Execute the operation of record.static void
recordAll(ArrayList<RtReq> rrs, File buildReportIn, int concurrentTasks)
Allows to batch process a list of requests with#record(RtReq, File)
behavior.static void
test(RtReq rr, File buildReportIn, int concurrentTasks)
Execute the operation of test.static void
testAll(ArrayList<RtReq> rrs, File buildReportIn, int concurrentTasks)
Allows to batch process a list of requests with#test(RtReq, File)
behavior.
-
-
-
Method Detail
-
test
public static void test(RtReq rr, File buildReportIn, int concurrentTasks) 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
public static void record(RtReq rr, File buildReportIn, int concurrentTasks) throws IOException
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
public static void clean(String loggerName, File persistBehaviorIn) throws IOException
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
public static void cleanAll(List<File> persistBehaviorIn) throws IOException
Allows to batch process a list of#clean(File)
operations- Parameters:
persistBehaviorIn
- list of persisted behavior paths that should be cleaned- Throws:
IOException
-
-