Package com.vaadin.tests
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 org.openqa.selenium.DimensionWINDOW_SIZE_LARGEstatic org.openqa.selenium.DimensionWINDOW_SIZE_MEDIUMstatic org.openqa.selenium.DimensionWINDOW_SIZE_SMALL
-
Constructor Summary
Constructors Constructor Description AbstractParallelTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompareScreen(String screenshotName)protected StringgetBaseURL()List<org.openqa.selenium.remote.DesiredCapabilities>getBrowserConfiguration()protected StringgetCurrentHostAddress()Copied from com.vaadin.flow.testutil.AbstractTestBenchTestprotected StringgetDeploymentPath(Class<?> viewClass)protected StringgetPort()protected StringgetTestUrl(Class<?> viewClass)voidopen(Class<?> viewClass, org.openqa.selenium.Dimension size)voidsetup()-
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
-
-
-
-
Method Detail
-
setup
public void setup() throws Exception- Overrides:
setupin classcom.vaadin.testbench.parallel.ParallelTest- Throws:
Exception
-
open
public void open(Class<?> viewClass, org.openqa.selenium.Dimension size)
-
getBaseURL
protected String getBaseURL()
-
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
-
-