public class AbstractParallelTestBenchTest extends TestBenchHelpers
| Modifier and Type | Field and Description |
|---|---|
static int |
SERVER_PORT
Server port resolved by system property
"serverPort" or the default
.
|
static String |
SERVER_PORT_PROPERTY_KEY
System property key for the test server port.
|
static boolean |
USE_HUB |
static String |
USE_HUB_PROPERTY |
| Constructor and Description |
|---|
AbstractParallelTestBenchTest() |
| Modifier and Type | Method and Description |
|---|---|
protected List<org.openqa.selenium.remote.DesiredCapabilities> |
getBrowserCapabilities(com.vaadin.testbench.parallel.Browser... browsers)
Gets browser capabilities for the provided
browsers. |
List<org.openqa.selenium.remote.DesiredCapabilities> |
getBrowsersToTest()
Produces a collection of browsers to run the test on.
|
protected String |
getDeploymentHostname()
Used to determine what URL to initially open for the test.
|
protected int |
getDeploymentPort()
Used to determine what port the test is running on.
|
protected List<org.openqa.selenium.remote.DesiredCapabilities> |
getHubBrowsersToTest()
Gets the browsers capabilities list to execute test on the tests Hub.
|
protected Optional<LocalExecution> |
getLocalExecution()
Gets local execution (
LocalExecution) configuration for the test. |
protected String |
getRootURL()
Returns the URL to the root of the server, e.g.
|
protected com.vaadin.testbench.parallel.Browser |
getRunLocallyBrowser() |
void |
setup() |
assertEquals, blur, checkLogsForErrors, checkLogsForErrors, clickElementWithJs, clickElementWithJs, drag, dragAndDrop, dragElementOver, executeScript, getLogEntries, getScrollX, getScrollY, hasCssClass, isElementPresent, scrollBy, scrollIntoViewAndClick, scrollToElement, waitForDevServer, waitForElementNotPresent, waitForElementPresent, waitForElementVisible, waitUntilNot, waitUntilNotgetDefaultCapabilities, getDesiredCapabilities, getHubHostname, getHubURL, getRunLocallyBrowserVersion, getRunOnHub, setDesiredCapabilitiesconcatUrl, findElement, findElements, getCommandExecutor, getContext, getDriver, setDriver, testBench, waitUntil, waitUntil, wrappublic static final String SERVER_PORT_PROPERTY_KEY
public static final int SERVER_PORT
public static final String USE_HUB_PROPERTY
public static final boolean USE_HUB
public void setup()
throws Exception
setup in class com.vaadin.testbench.parallel.ParallelTestExceptionprotected String getRootURL()
protected int getDeploymentPort()
protected Optional<LocalExecution> getLocalExecution()
LocalExecution) configuration for the test.
If this method return an empty optional then test with be run on the test Hub
LocalExecutionprotected com.vaadin.testbench.parallel.Browser getRunLocallyBrowser()
getRunLocallyBrowser in class com.vaadin.testbench.parallel.ParallelTestprotected String getDeploymentHostname()
public List<org.openqa.selenium.remote.DesiredCapabilities> getBrowsersToTest()
ParallelTest.setDesiredCapabilities(DesiredCapabilities) is invoked with the
value returned by this method.protected List<org.openqa.selenium.remote.DesiredCapabilities> getHubBrowsersToTest()
This list will be used only for the tests Hub. Local test execution is
managed by LocalExecution annotation.
The method getBrowsersToTest() delegates the logic to this
method in case getLocalExecution() return value is an empty
optional (i.e. the tests Hub is used).
protected List<org.openqa.selenium.remote.DesiredCapabilities> getBrowserCapabilities(com.vaadin.testbench.parallel.Browser... browsers)
browsers.browsers - a browsers listbrowsersCopyright © 2000–2025 Vaadin Ltd. All rights reserved.