Class ApplicationPerClassWebSessionTest<C extends WebDriverConfiguration,​GIVEN extends WebDriverFixtures<?>,​WHEN extends WebDriverActions<?>,​THEN extends WebDriverVerifications<?>>

  • Type Parameters:
    C - type of WebDriverConfiguration
    GIVEN - type of fixtures
    WHEN - type of actions
    THEN - type of verification

    public abstract class ApplicationPerClassWebSessionTest<C extends WebDriverConfiguration,​GIVEN extends WebDriverFixtures<?>,​WHEN extends WebDriverActions<?>,​THEN extends WebDriverVerifications<?>>
    extends ApplicationPerMethodWebSessionTest<C,​GIVEN,​WHEN,​THEN>
    Manages the application lifecycle (WebDriver) to span the entire testcase. This requires all test methods to run on same thread.

    IMPORTANT: running all test methods on same WebDriver instance means holding a long session, hence more susceptible to emulator/application crashes or network drops. We provide here the means to recover from such failures via continuing_section(Runnable)

    Author:
    Adrian Herscu