Class 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 (remove IT, add View or UI).
    Since:
    1.0
    Author:
    Vaadin Ltd
    • Constructor Detail

      • ViewOrUITest

        public ViewOrUITest()
    • Method Detail

      • 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
      • getUIClass

        protected Class<? extends 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