Package 

Class AfterTestSection


  • 
    public final class AfterTestSection<InitData extends Object, Data extends Object>
    
                        

    The representation of a set of actions to invoke after the test.

    • Method Summary

      Modifier and Type Method Description
      final InitSection<InitData, Data> after(Function1<BaseTestContext, Unit> actions) Wraps actions in a lambda, that will invoke these actions and make screenshot if actions will fail when it will be invoked itself, and sets this lambda as the TestBody.afterTestActions.
      • Methods inherited from class com.kaspersky.kaspresso.testcases.core.sections.AfterTestSection

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • after

         final InitSection<InitData, Data> after(Function1<BaseTestContext, Unit> actions)

        Wraps actions in a lambda, that will invoke these actions and make screenshot if actions will fail when it will be invoked itself, and sets this lambda as the TestBody.afterTestActions.

        Parameters:
        actions - actions to be wrapped and invoked after the test.