Class AbstractParallelTest

java.lang.Object
com.vaadin.testbench.TestBenchTestCase
com.vaadin.testbench.parallel.ParallelTest
com.vaadin.tests.AbstractParallelTest
All Implemented Interfaces:
com.vaadin.testbench.HasDriver, com.vaadin.testbench.HasElementQuery, com.vaadin.testbench.HasSearchContext, com.vaadin.testbench.HasTestBenchCommandExecutor

public abstract class AbstractParallelTest extends com.vaadin.testbench.parallel.ParallelTest
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.openqa.selenium.Dimension
     
    static final org.openqa.selenium.Dimension
     
    static final org.openqa.selenium.Dimension
     

    Fields inherited from class com.vaadin.testbench.parallel.ParallelTest

    screenshotOnFailure

    Fields inherited from class com.vaadin.testbench.TestBenchTestCase

    driver, maxAttempts
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    compareScreen(String screenshotName)
     
    protected String
     
    List<org.openqa.selenium.remote.DesiredCapabilities>
     
    protected String
    Copied from com.vaadin.flow.testutil.AbstractTestBenchTest
    protected String
    getDeploymentPath(Class<?> viewClass)
     
    protected String
     
    protected String
    getTestUrl(Class<?> viewClass)
     
    void
    open(Class<?> viewClass, org.openqa.selenium.Dimension size)
     
    void
     

    Methods inherited from class com.vaadin.testbench.parallel.ParallelTest

    getDefaultCapabilities, getDesiredCapabilities, getHubHostname, getHubURL, getRunLocallyBrowser, getRunLocallyBrowserVersion, getRunOnHub, setDesiredCapabilities

    Methods inherited from class com.vaadin.testbench.TestBenchTestCase

    concatUrl, executeScript, findElement, findElements, getCommandExecutor, getContext, getDriver, setDriver, testBench, waitUntil, waitUntil, wrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.testbench.HasElementQuery

    $, $
  • Field Details

    • WINDOW_SIZE_LARGE

      public static final org.openqa.selenium.Dimension WINDOW_SIZE_LARGE
    • WINDOW_SIZE_MEDIUM

      public static final org.openqa.selenium.Dimension WINDOW_SIZE_MEDIUM
    • WINDOW_SIZE_SMALL

      public static final org.openqa.selenium.Dimension WINDOW_SIZE_SMALL
  • Constructor Details

    • AbstractParallelTest

      public AbstractParallelTest()
  • Method Details

    • setup

      public void setup() throws Exception
      Overrides:
      setup in class com.vaadin.testbench.parallel.ParallelTest
      Throws:
      Exception
    • compareScreen

      public void compareScreen(String screenshotName) throws Exception
      Throws:
      Exception
    • open

      public void open(Class<?> viewClass, org.openqa.selenium.Dimension size)
    • getBaseURL

      protected String getBaseURL()
    • getTestUrl

      protected String getTestUrl(Class<?> viewClass)
    • getDeploymentPath

      protected String getDeploymentPath(Class<?> viewClass)
    • getPort

      protected String getPort()
    • getBrowserConfiguration

      public List<org.openqa.selenium.remote.DesiredCapabilities> getBrowserConfiguration()
    • getCurrentHostAddress

      protected String getCurrentHostAddress()
      Copied from com.vaadin.flow.testutil.AbstractTestBenchTest
      Returns:
      current host address if running in a hub or localhost otherwise