Enum Class AutotestSupport

java.lang.Object
java.lang.Enum<AutotestSupport>
jp.co.moneyforward.autotest.framework.action.AutotestSupport
All Implemented Interfaces:
Serializable, Comparable<AutotestSupport>, Constable

public enum AutotestSupport extends Enum<AutotestSupport>
A facade class of the "autotest" framework.
  • Method Details

    • values

      public static AutotestSupport[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AutotestSupport valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • sceneToSceneCall

      public static SceneCall sceneToSceneCall(Scene scene, String variableStoreName)

      Returns a Call object for a given scene.

      This method internally calls new SceneCall(Scene, String, ResolverBundle). A ResolverBundle is created from scene.inputVariableDisplayNames() and scene.outputVariableNames().

      Parameters:
      scene - A scene for which a call is created.
      variableStoreName - A name of a variable store in which the scene is performed. variables are resolved in the variable store specified by this parameter.
      Returns:
      A created SceneCall object.
      See Also:
    • sceneToSceneCall

      public static SceneCall sceneToSceneCall(Scene scene, String outputVariableStoreName, ResolverBundle resolverBundle)

      Returns a Call object for a given scene.

      A resolverBundle is responsible for figuring out values of input and output variables of scene. The working area is usually specified by outputVariableStoreName. Note, it is outputVariableStoreName.

      Parameters:
      scene - A scene for which a call is created
      outputVariableStoreName - A name of variable store, where the children of scene write there output variables.
      resolverBundle - A resolver bundle which gives values of variables during the execution of the returned scene call.
      Returns:
      A SceneCall object for scene.
    • actCall

      public static <T,R> ActCall<T,R> actCall(String outputVariableName, Act<T,R> act, String inputVariableName)
      Returns an Call object for a given act. The returned call performs the act by passing a variable specified by inputVariableName. Also, the call assigns the output of the act to the given outputVariableName except when act is a Sink. If it is a Sink, it will discard it by assigning it to a dummy variable Scene.DUMMY_OUTPUT_VARIABLE_NAME.
      Type Parameters:
      T - Input type of act.
      R - Output type of act.
      Parameters:
      outputVariableName - A name of an output variable, to which act writes its output to.
      act - An act, for which a call is created.
      inputVariableName - A name of variable from which an act takes its input.
      Returns:
      An ActCall object.
    • assertionCall

      public static <T,R> AssertionCall<R> assertionCall(String outputVariableName, Act<T,R> act, List<Function<R, com.github.valid8j.pcond.fluent.Statement<R>>> assertions, String inputVariableName)
      Creates an AssertionCall object which executes act, then validates it using assertions. An output from act will be stored in a context with outputVariableName.
      Type Parameters:
      T - Type of the input to act.
      R - Type of the output from act.
      Parameters:
      outputVariableName - A name of a variable, where an output from act is stored.
      act - An act whose output should be validated.
      assertions - A list of functions each of which creates a Statement that validates an output from act.
      inputVariableName - A name of a variable, whose value is given to act.
      Returns:
      An AssertionCall object.
      See Also:
    • retryCall

      public static RetryCall retryCall(Call call, int times, Class<? extends Throwable> onException, int interval)
      Returns a call that retries a given call.
      Parameters:
      call - A call to be retried on a failure.
      times - Number of retried to be attempted.
      onException - An exception class on which call should be retried.
      interval - Interval between tries.
      Returns:
      A call that retries a given call.