Zadbaj o dobrą organizację dzięki kolekcji Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.

AdbStopServerPreparer

public class AdbStopServerPreparer
extends BaseTargetPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.adb.AdbStopServerPreparer


Przygotowujący docelowy, aby zatrzymać serwer adb na hoście przed i po uruchomieniu testów adb.

Tego programu przygotowawczego należy używać ostrożnie, ponieważ zatrzymuje się i ponownie uruchamia adb na hostach. Zwykle powinien być ciasny z SemaphoreTokenTargetPreparer , aby uniknąć uruchamiania innych testów w tym samym czasie.

Streszczenie

Pola

public static final String ADB_BINARY_KEY

Konstruktorzy publiczni

AdbStopServerPreparer ()

Metody publiczne

void setUp ( TestInformation testInfo)

void tearDown ( TestInformation testInfo, Throwable e)

Metody chronione

File findAdbLog ()

Pola

ADB_BINARY_KEY

public static final String ADB_BINARY_KEY

Konstruktorzy publiczni

AdbStopServerPreparer

public AdbStopServerPreparer ()

Metody publiczne

organizować coś

public void setUp (TestInformation testInfo)

Parametry
testInfo TestInformation

Rzuty
BuildError
DeviceNotAvailableException
TargetSetupError

zburzyć

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parametry
testInfo TestInformation

e Throwable

Rzuty
DeviceNotAvailableException

Metody chronione

findAdbLog

protected File findAdbLog ()

Zwroty
File