PythonBinaryHostTest
public
class
PythonBinaryHostTest
extends Object
implements
IRemoteTest,
IDeviceTest,
IBuildReceiver,
IInvocationContextReceiver
java.lang.Object | |
↳ | com.android.tradefed.testtype.python.PythonBinaryHostTest |
Host test meant to run a python binary file from the Android Build system (Soong)
Summary
Nested classes | |
---|---|
class |
PythonBinaryHostTest.PythonForwarder
Result forwarder to replace the run name by the binary name. |
Constants | |
---|---|
long |
PATH_TIMEOUT_MS
|
Fields | |
---|---|
protected
static
final
String |
ANDROID_SERIAL_VAR
|
protected
static
final
String |
PATH_VAR
|
Public constructors | |
---|---|
PythonBinaryHostTest()
|
Public methods | |
---|---|
ITestDevice
|
getDevice()
Get the device under test. |
final
void
|
run(ITestInvocationListener listener)
Runs the tests, and reports result to the listener. |
void
|
setBuild(IBuildInfo buildInfo)
|
void
|
setDevice(ITestDevice device)
Inject the device under test. |
void
|
setInvocationContext(IInvocationContext invocationContext)
|
Constants
PATH_TIMEOUT_MS
protected static final long PATH_TIMEOUT_MS
Constant Value: 60000 (0x000000000000ea60)
Fields
ANDROID_SERIAL_VAR
protected static final String ANDROID_SERIAL_VAR
PATH_VAR
protected static final String PATH_VAR
Public constructors
PythonBinaryHostTest
public PythonBinaryHostTest ()
Public methods
getDevice
public ITestDevice getDevice ()
Get the device under test.
Returns | |
---|---|
ITestDevice |
the ITestDevice
|
run
public final void run (ITestInvocationListener listener)
Runs the tests, and reports result to the listener.
Parameters | |
---|---|
listener |
ITestInvocationListener : the ITestInvocationListener of test results |
Throws | |
---|---|
DeviceNotAvailableException |
setDevice
public void setDevice (ITestDevice device)
Inject the device under test.
Parameters | |
---|---|
device |
ITestDevice : the ITestDevice to use
|
setInvocationContext
public void setInvocationContext (IInvocationContext invocationContext)
Parameters | |
---|---|
invocationContext |
IInvocationContext |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2019-10-02 UTC.