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

HostGTest

public class HostGTest
extends GTestBase implements IBuildReceiver

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


Test, który uruchamia 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ę pobierania filtra.

void run ( TestInformation testInfo, ITestInvocationListener listener)

void setBuild ( IBuildInfo buildInfo)

Konstruktorzy publiczni

HostGTest

public HostGTest ()

Metody publiczne

wykonaćHostCommand

public CommandResult executeHostCommand (String cmd, 
                long timeoutMs)

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

timeoutMs long : limit czasu dla polecenia w milisekundach

Zwroty
CommandResult CommandResult polecenia

wykonaćHostCommand

public CommandResult executeHostCommand (String cmd)

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

Zwroty
CommandResult CommandResult polecenia

LoadFilter

public String loadFilter (String binaryOnHost)

Zdefiniuj metodę pobierania filtra.

Klasa podrzędna musi zaimplementować sposób uzyskania własnego filtra.

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

Zwroty
String filtruj ciąg.

biegać

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Parametry
testInfo TestInformation

listener ITestInvocationListener

Rzuty
DeviceNotAvailableException

setBuild

public void setBuild (IBuildInfo buildInfo)

Parametry
buildInfo IBuildInfo