HostGTest

public class HostGTest
extends GTestBase implements IBuildReceiver

java.lang.Obiekt
com.android.tradefed.testtype.GTestBase
com.android.tradefed.testtype.HostGTest


Test, który uruchamia natywny pakiet testowy.

Streszczenie

Konstruktory publiczne

HostGTest ()

Metody publiczne

CommandResult executeHostCommand (String cmd, long timeoutMs)
CommandResult executeHostCommand (String cmd)
String loadFilter (String binaryOnHost)

Zdefiniuj metodę get filter.

void run ( TestInformation testInfo, ITestInvocationListener listener)

void setBuild ( IBuildInfo buildInfo)

Konstruktory publiczne

HostGTest

public HostGTest ()

Metody publiczne

wykonaj polecenie hosta

public CommandResult executeHostCommand (String cmd, 
                long timeoutMs)

Parametry
cmd String : polecenie, które chcesz wykonać w hoście

timeoutMs long : limit czasu dla polecenia w milisekundach

Zwroty
CommandResult CommandResult polecenia

wykonaj polecenie hosta

public CommandResult executeHostCommand (String cmd)

Parametry
cmd String : polecenie, które chcesz wykonać w hoście

Zwroty
CommandResult CommandResult polecenia

filtr wczytywania

public String loadFilter (String binaryOnHost)

Zdefiniuj metodę get filter.

Podklasa musi zaimplementować sposób uzyskania własnego filtra.

Parametry
binaryOnHost String : pełna ścieżka do pliku filtru.

Zwroty
String ciąg filtru.

uruchomić

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Parametry
testInfo TestInformation

listener ITestInvocationListener

Rzuty
DeviceNotAvailableException

zestawBuduj

public void setBuild (IBuildInfo buildInfo)

Parametry
buildInfo IBuildInfo