AdbStopServerPreparer
public class AdbStopServerPreparer
extends BaseTargetPreparer
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
ADB_BINARY_KEY
public static final String ADB_BINARY_KEY
Konstruktorzy publiczni
AdbStopServerPreparer
public AdbStopServerPreparer ()
Metody publiczne
public void setUp (TestInformation testInfo)
Parametry |
---|
testInfo | TestInformation |
public void tearDown (TestInformation testInfo,
Throwable e)
Parametry |
---|
testInfo | TestInformation |
e | Throwable |
Metody chronione
findAdbLog
protected File findAdbLog ()