Package com.vaadin.flow.testutil
Class ViewOrUITest
- 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
-
- All Implemented Interfaces:
com.vaadin.testbench.HasDriver,com.vaadin.testbench.HasElementQuery,com.vaadin.testbench.HasSearchContext,com.vaadin.testbench.HasTestBenchCommandExecutor
- Direct Known Subclasses:
ChromeBrowserTest,ChromeDeviceTest
public class ViewOrUITest extends AbstractTestBenchTest
Base class for TestBench tests which use a UI/View matched to the test name according to the convention (removeIT, addVieworUI).- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
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 ViewOrUITest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetTestPath()Gets the absolute path to the test, starting with a "/".protected Class<? extends UI>getUIClass()Returns the UI class the current test is connected to.protected Class<? extends Component>getViewClass()Returns the View class the current test is connected to.-
Methods inherited from class com.vaadin.flow.testutil.AbstractTestBenchTest
checkIfServerAvailable, getBrowserCapabilities, getBrowsersToTest, getCurrentHostAddress, getDeploymentHostname, getDeploymentPort, getHubBrowsersToTest, 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, setup
-
Methods inherited from class com.vaadin.testbench.TestBenchTestCase
concatUrl, findElement, findElements, getCommandExecutor, getContext, getDriver, setDriver, testBench, waitUntil, waitUntil, wrap
-
-
-
-
Method Detail
-
getTestPath
protected String getTestPath()
Description copied from class:AbstractTestBenchTestGets the absolute path to the test, starting with a "/".- Specified by:
getTestPathin classAbstractTestBenchTest- Returns:
- the path to the test, appended to
AbstractTestBenchTest.getRootURL()for the full test URL.
-
getViewClass
protected Class<? extends Component> getViewClass()
Returns the View class the current test is connected to.Uses name matching and replaces "IT" with "View"
- Returns:
- the View class the current test is connected to or null if no View class was found
-
-