Class ChromeBrowserTestWithProxy

All Implemented Interfaces:
com.vaadin.testbench.HasDriver, com.vaadin.testbench.HasElementQuery, com.vaadin.testbench.HasSearchContext, com.vaadin.testbench.HasTestBenchCommandExecutor

public abstract class ChromeBrowserTestWithProxy extends AbstractBrowserConsoleTest
  • Constructor Details

    • ChromeBrowserTestWithProxy

      public ChromeBrowserTestWithProxy()
  • Method Details

    • setup

      public void setup() throws Exception
      Overrides:
      setup in class ChromeBrowserTest
      Throws:
      Exception
    • teardownProxy

      public void teardownProxy()
    • checkIfServerAvailable

      public void checkIfServerAvailable()
      Description copied from class: AbstractTestBenchTest
      Checks that server is available before running the actual test.
      Overrides:
      checkIfServerAvailable in class AbstractTestBenchTest
    • getProxyPort

      protected Integer getProxyPort()
    • disconnectProxy

      protected void disconnectProxy()
      Disconnects the proxy if active
    • connectProxy

      protected void connectProxy() throws IOException
      Ensure the proxy is active. Does nothing if the proxy is already active.
      Throws:
      IOException - if connecting the proxy fails
    • getRootURL

      protected String getRootURL()
      Description copied from class: AbstractTestBenchTest
      Returns the URL to the root of the server, e.g. "http://localhost:8888"
      Overrides:
      getRootURL in class AbstractTestBenchTest
      Returns:
      the URL to the root