com.android.builder.testing.api
Class TestServer

java.lang.Object
  extended by com.android.builder.testing.api.TestServer

@Beta
public abstract class TestServer
extends java.lang.Object

Base interface for Remote CI Servers.


Constructor Summary
TestServer()
           
 
Method Summary
abstract  java.lang.String getName()
          Returns the name of the server.
abstract  boolean isConfigured()
          Returns true if the server is configured and able to run.
abstract  void uploadApks(java.lang.String variantName, java.io.File testApk, java.io.File testedApk)
          Uploads the APKs to the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestServer

public TestServer()
Method Detail

getName

@NonNull
public abstract java.lang.String getName()
Returns the name of the server. Must be unique, not contain spaces, and start with a lower case.

Returns:
the name of the provider.

uploadApks

public abstract void uploadApks(@NonNull
                                java.lang.String variantName,
                                @NonNull
                                java.io.File testApk,
                                @Nullable
                                java.io.File testedApk)
Uploads the APKs to the server.

Parameters:
variantName - the name of the variant being tested.
testApk - the APK containing the tests.
testedApk - the APK to be tested. This is optional in case the test apk is self-tested.

isConfigured

public abstract boolean isConfigured()
Returns true if the server is configured and able to run.

Returns:
if the server is configured.