Interface StepExecutionInvocationHandler

    • Method Detail

      • handlePreInvoke

        StepExecutionInvocationHandler.Result handlePreInvoke​(TestStep testStep,
                                                              java.lang.Object testInstance)
        This method is called before a step is executed. By returning PROCEED the step is executed afterwards. By returning SKIP the step is skipped. Moreover it's possible to throw a RuntimeException in order to mark the step as failed.
        Parameters:
        testStep - the step which should be executed
        testInstance - the test instance which is used to execute the step
        Returns:
        the result
        Throws:
        java.lang.RuntimeException - an exception leads to a step failure
        Since:
        2.0.0
      • handlePostInvoke

        void handlePostInvoke​(TestStep testStep,
                              java.lang.Object testInstance)
        This method is called after a step is executed successfully. It's possible to throw a RuntimeException in order to mark the step as failed.
        Parameters:
        testStep - the step which has been executed successfully
        testInstance - the test instance which has been used to execute the step
        Throws:
        java.lang.RuntimeException - an exception leads to a step failure
        Since:
        2.0.0