Class 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 Detail

      • RtFacade

        public RtFacade()
    • 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 on
        buildReportIn - 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 on
        buildReportIn - 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 process
        buildReportIn - 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 process
        buildReportIn - 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