Class RemoteTestHttpClient

java.lang.Object
org.apache.sling.junit.remote.httpclient.RemoteTestHttpClient

public class RemoteTestHttpClient extends Object
HTTP client that executes tests remotely
  • Constructor Details

    • RemoteTestHttpClient

      public RemoteTestHttpClient(String junitServletUrl, boolean consumeContent)
    • RemoteTestHttpClient

      public RemoteTestHttpClient(String junitServletUrl, String username, String password, boolean consumeContent)
  • Method Details

    • setRequestCustomizer

      public void setRequestCustomizer(org.apache.sling.testing.tools.http.RequestCustomizer c)
    • runTests

      public org.apache.sling.testing.tools.http.RequestExecutor runTests(String testClassesSelector, String testMethodSelector, String extension) throws org.apache.http.client.ClientProtocolException, IOException
      Throws:
      org.apache.http.client.ClientProtocolException
      IOException
    • runTests

      public org.apache.sling.testing.tools.http.RequestExecutor runTests(String testClassesSelector, String testMethodSelector, String extension, Map<String,String> requestOptions) throws org.apache.http.client.ClientProtocolException, IOException
      Throws:
      org.apache.http.client.ClientProtocolException
      IOException
    • getTestExecutionPath

      public String getTestExecutionPath()
      If called after runTests, returns the path used to run tests on the remote JUnit servlet