Class ViewOrUITest

java.lang.Object
com.vaadin.testbench.TestBenchTestCase
com.vaadin.testbench.parallel.ParallelTest
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 (remove IT, add View or UI).
Since:
1.0
Author:
Vaadin Ltd
  • Constructor Details

    • ViewOrUITest

      public ViewOrUITest()
  • Method Details

    • getTestPath

      protected String getTestPath()
      Description copied from class: AbstractTestBenchTest
      Gets the absolute path to the test, starting with a "/".
      Specified by:
      getTestPath in class AbstractTestBenchTest
      Returns:
      the path to the test, appended to AbstractTestBenchTest.getRootURL() for the full test URL.
    • getViewClass

      protected Class<? extends com.vaadin.flow.component.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
    • getUIClass

      protected Class<? extends com.vaadin.flow.component.UI> getUIClass()
      Returns the UI class the current test is connected to.

      Uses name matching and replaces "IT" with "UI"

      Returns:
      the UI class the current test is connected to or null if no UI class was found