HostGTest

public class HostGTest
extends GTestBase implements IBuildReceiver

Obiekt Java.lang.Object
com.android.tradefed.testtype.GTestBase
com.android.tradefed.testtype.HostGTest


Test uruchamiający natywny pakiet testowy.

Streszczenie

Konstruktorzy publiczni

HostGTest ()

Metody publiczne

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

Zdefiniuj metodę filtra pobierania.

void run ( TestInformation testInfo, ITestInvocationListener listener)

void setBuild ( IBuildInfo buildInfo)

Konstruktorzy publiczni

HostGTest

public HostGTest ()

Metody publiczne

wykonaj polecenie Host

public CommandResult executeHostCommand (String cmd, 
                long timeoutMs)

Parametry
cmd String : polecenie, które ma zostać wykonane na hoście

timeoutMs long : limit czasu dla polecenia w milisekundach

Zwroty
CommandResult CommandResult polecenia

wykonaj polecenie Host

public CommandResult executeHostCommand (String cmd)

Parametry
cmd String : polecenie, które ma zostać wykonane na hoście

Zwroty
CommandResult CommandResult polecenia

załaduj filtr

public String loadFilter (String binaryOnHost)

Zdefiniuj metodę filtra pobierania.

Podklasa musi wdrożyć sposób uzyskania własnego filtra.

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

Zwroty
String ciąg filtrujący.

uruchomić

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Parametry
testInfo TestInformation

listener ITestInvocationListener

Rzuca
DeviceNotAvailableException

setBuild

public void setBuild (IBuildInfo buildInfo)

Parametry
buildInfo IBuildInfo