AdbStopServerPreparer
public
class
AdbStopServerPreparer
extends BaseTargetPreparer
| java.lang.Object | ||
| ↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
| ↳ | com.android.tradefed.targetprep.adb.AdbStopServerPreparer | |
Target preparer per arrestare il server adb sull'host prima e dopo l'esecuzione dei test adb.
Questo preparatore deve essere utilizzato con cautela, in quanto arresta e riavvia adb sugli host. In genere, deve
essere stretto con SemaphoreTokenTargetPreparer per evitare che altri test vengano eseguiti
contemporaneamente.
Riepilogo
Costanti | |
|---|---|
String |
ADB_BINARY_KEY
|
Costruttori pubblici | |
|---|---|
AdbStopServerPreparer()
|
|
Metodi pubblici | |
|---|---|
void
|
setUp(TestInformation testInfo)
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
Metodi protetti | |
|---|---|
File
|
findAdbLog()
|
Costanti
ADB_BINARY_KEY
public static final String ADB_BINARY_KEY
Constant Value: "adb_path"
Costruttori pubblici
AdbStopServerPreparer
public AdbStopServerPreparer ()
Metodi pubblici
setUp
public void setUp (TestInformation testInfo)
| Parametri | |
|---|---|
testInfo |
TestInformation |
| Lanci | |
|---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
|
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
| Parametri | |
|---|---|
testInfo |
TestInformation |
e |
Throwable |
| Lanci | |
|---|---|
DeviceNotAvailableException |
|
Metodi protetti
findAdbLog
protected File findAdbLog ()
| Ritorni | |
|---|---|
File |
|