Package 

Class BeforeTestSection


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

    The representation of a set of actions to be invoked before the test.

    • Method Summary

      Modifier and Type Method Description
      final AfterTestSection<InitData, Data> beforeTest(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.beforeTestActions.
      • Methods inherited from class com.kaspersky.kaspresso.testcases.core.sections.BeforeTestSection

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

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

      • beforeTest

         final AfterTestSection<InitData, Data> beforeTest(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.beforeTestActions.

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