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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    clean(String loggerName, File persistBehaviorIn)
    Cleans all recorded behavior for the supplied location
    static void
    cleanAll(List<File> persistBehaviorIn)
    Allows to batch process a list of #clean(File) operations
    static 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, boolean haltOnDetect)
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 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