Package com.vaadin.flow.testutil
Class AbstractComponentIT
- java.lang.Object
-
- com.vaadin.testbench.TestBenchTestCase
-
- com.vaadin.testbench.parallel.ParallelTest
-
- com.vaadin.flow.testutil.TestBenchHelpers
-
- com.vaadin.flow.testutil.AbstractTestBenchTest
-
- com.vaadin.flow.testutil.ViewOrUITest
-
- com.vaadin.flow.testutil.ChromeBrowserTest
-
- com.vaadin.flow.testutil.AbstractComponentIT
-
- All Implemented Interfaces:
com.vaadin.testbench.HasDriver,com.vaadin.testbench.HasElementQuery,com.vaadin.testbench.HasSearchContext,com.vaadin.testbench.HasTestBenchCommandExecutor
- Direct Known Subclasses:
AbstractValidationTest
public class AbstractComponentIT extends ChromeBrowserTest
Abstract base class for integration tests.- Since:
- 1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.flow.testutil.AbstractTestBenchTest
AbstractTestBenchTest.ClientChecker
-
-
Field Summary
-
Fields inherited from class com.vaadin.flow.testutil.AbstractTestBenchTest
BROWSERSTACK_IDENTIFIER, BROWSERSTACK_IDENTIFIER_PROPERTY, SERVER_PORT, SERVER_PORT_PROPERTY_KEY, testName, USE_BROWSERSTACK, USE_BROWSERSTACK_PROPERTY, USE_HUB, USE_HUB_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description AbstractComponentIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckIfServerAvailable()Checks that server is available before running the actual test.protected intgetDeploymentPort()Used to determine what port the test is running on.StringgetProperty(org.openqa.selenium.WebElement element, String propertyName)protected StringgetTestPath()Gets the absolute path to the test, starting with a "/".-
Methods inherited from class com.vaadin.flow.testutil.ChromeBrowserTest
customizeCapabilities, getBrowserCapabilities, getHubBrowsersToTest, setup, updateHeadlessChromeOptions
-
Methods inherited from class com.vaadin.flow.testutil.ViewOrUITest
getUIClass, getViewClass
-
Methods inherited from class com.vaadin.flow.testutil.AbstractTestBenchTest
getBrowsersToTest, getCurrentHostAddress, getDeploymentHostname, getHubHostname, getLocalExecution, getRootURL, getRunLocallyBrowser, getRunLocallyBrowserVersion, getTestURL, getTestURL, isClientRouter, open, open, openForEs6Url, openProduction, openProductionWithTiming, openUrl, verifyScreenshot, waitForClientRouter
-
Methods inherited from class com.vaadin.flow.testutil.TestBenchHelpers
assertEquals, blur, checkLogsForErrors, checkLogsForErrors, clickElementWithJs, clickElementWithJs, drag, dragAndDrop, dragElementOver, executeScript, getLogEntries, getScrollX, getScrollY, hasCssClass, isElementPresent, scrollBy, scrollIntoViewAndClick, scrollToElement, waitForDevServer, waitForElementNotPresent, waitForElementPresent, waitForElementVisible, waitUntilNot, waitUntilNot
-
Methods inherited from class com.vaadin.testbench.parallel.ParallelTest
getDefaultCapabilities, getDesiredCapabilities, getHubURL, getRunOnHub, setDesiredCapabilities
-
Methods inherited from class com.vaadin.testbench.TestBenchTestCase
concatUrl, findElement, findElements, getCommandExecutor, getContext, getDriver, setDriver, testBench, waitUntil, waitUntil, wrap
-
-
-
-
Method Detail
-
checkIfServerAvailable
public void checkIfServerAvailable()
Description copied from class:AbstractTestBenchTestChecks that server is available before running the actual test.- Overrides:
checkIfServerAvailablein classAbstractTestBenchTest
-
getTestPath
protected String getTestPath()
Description copied from class:AbstractTestBenchTestGets the absolute path to the test, starting with a "/".- Overrides:
getTestPathin classViewOrUITest- Returns:
- the path to the test, appended to
AbstractTestBenchTest.getRootURL()for the full test URL.
-
getDeploymentPort
protected int getDeploymentPort()
Description copied from class:AbstractTestBenchTestUsed to determine what port the test is running on.- Overrides:
getDeploymentPortin classAbstractTestBenchTest- Returns:
- The port the test is running on, by default AbstractTestBenchTest.DEFAULT_SERVER_PORT
-
-