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

MoblyBinaryHostTest

public class MoblyBinaryHostTest
extends Object implements IRemoteTest , IDeviceTest , IBuildReceiver , ITestFilterReceiver

java.lang.Obiekt
com.android.tradefed.testtype.mobly.MoblyBinaryHostTest


Test hosta mający na celu uruchomienie pliku binarnego mobly python z systemu Android Build (Soong)

Streszczenie

Konstruktory publiczne

MoblyBinaryHostTest ()

Metody publiczne

void addAllExcludeFilters ( filters) addAllExcludeFilters ( filters)

Dodaje ERROR(/Set) filtrów, z których testy mają zostać wykluczone.

void addAllIncludeFilters ( filters) addAllIncludeFilters ( filters)

Dodaje ERROR(/Set) filtrów, z których testy mają zostać uwzględnione.

void addExcludeFilter (String filter)

Dodaje filtr testów do wykluczenia.

void addIncludeFilter (String filter)

Dodaje filtr określający, które testy mają zostać uwzględnione.

void clearExcludeFilters ()

Usuń wszystkie aktualnie śledzone filtry wykluczeń.

void clearIncludeFilters ()

Usuń wszystkie aktualnie śledzone filtry uwzględniania.

ITestDevice getDevice ()

Przetestuj urządzenie.

getExcludeFilters ()

Zwraca bieżący ERROR(/Set) filtrów wykluczeń.

getIncludeFilters ()

Zwraca bieżący ERROR(/Set) filtrów dołączania.

final void run ( TestInformation testInfo, ITestInvocationListener listener)

Uruchamia testy i przekazuje wyniki słuchaczowi.

void setBuild ( IBuildInfo buildInfo)
void setDevice ( ITestDevice device)

Wstrzyknij testowane urządzenie.

Metody chronione

String[] buildCommandLineArray (String filePath, String configPath)
String getLogDirAbsolutePath ()
File getLogDirFile ()
void processYamlTestResults (InputStream inputStream, MoblyYamlResultParser parser, ITestInvocationListener listener, String runName)

Analizuje wyniki testów Mobly i raportuje wyniki.

void reportLogs (File logDir, ITestInvocationListener listener)
void updateConfigFile (InputStream configInputStream, Writer writer)

Konstruktory publiczne

MoblyBinaryHostTest

public MoblyBinaryHostTest ()

Metody publiczne

addAllExcludeFilters

public void addAllExcludeFilters ( filters)

Dodaje ERROR(/Set) filtrów, z których testy mają zostać wykluczone.

Parametry
filters

dodaj filtry AllInclude

public void addAllIncludeFilters ( filters)

Dodaje ERROR(/Set) filtrów, z których testy mają zostać uwzględnione.

Parametry
filters

dodaj filtr wykluczenia

public void addExcludeFilter (String filter)

Dodaje filtr testów do wykluczenia.

Parametry
filter String

addIncludeFilter

public void addIncludeFilter (String filter)

Dodaje filtr określający, które testy mają zostać uwzględnione.

Parametry
filter String

wyczyść filtry wykluczające

public void clearExcludeFilters ()

Usuń wszystkie aktualnie śledzone filtry wykluczeń.

wyczyść filtry uwzględnienia

public void clearIncludeFilters ()

Usuń wszystkie aktualnie śledzone filtry uwzględniania.

pobierzUrządzenie

public ITestDevice getDevice ()

Przetestuj urządzenie.

Zwroty
ITestDevice ITestDevice

getExcludeFilters

public  getExcludeFilters ()

Zwraca bieżący ERROR(/Set) filtrów wykluczeń.

Zwroty

getIncludeFilters

public  getIncludeFilters ()

Zwraca bieżący ERROR(/Set) filtrów dołączania.

Zwroty

uruchomić

public final void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Uruchamia testy i przekazuje wyniki słuchaczowi.

Parametry
testInfo TestInformation : Obiekt TestInformation zawierający informacje przydatne do uruchamiania testów.

listener ITestInvocationListener : ITestInvocationListener wyników testu

zestawBuduj

public void setBuild (IBuildInfo buildInfo)

Parametry
buildInfo IBuildInfo

ustaw urządzenie

public void setDevice (ITestDevice device)

Wstrzyknij testowane urządzenie.

Parametry
device ITestDevice : ITestDevice do użycia

Metody chronione

buildCommandLineArray

protected String[] buildCommandLineArray (String filePath, 
                String configPath)

Parametry
filePath String

configPath String

Zwroty
String[]

getLogDirAbsolutePath

protected String getLogDirAbsolutePath ()

Zwroty
String

getLogDirFile

protected File getLogDirFile ()

Zwroty
File

ProcessYamlTestResults

protected void processYamlTestResults (InputStream inputStream, 
                MoblyYamlResultParser parser, 
                ITestInvocationListener listener, 
                String runName)

Analizuje wyniki testów Mobly i raportuje wyniki.

Parametry
inputStream InputStream : obiekt InputStream odczytujący plik wyników testu Mobly.

parser MoblyYamlResultParser : obiekt MoblyYamlResultParser, który przetwarza wyniki testu Mobly.

listener ITestInvocationListener : instancja ITestInvocationListener, która wykonuje różne raporty.

runName String : str, nazwa uruchomionego pliku binarnego testu Mobly.

raportLogi

protected void reportLogs (File logDir, 
                ITestInvocationListener listener)

Parametry
logDir File

listener ITestInvocationListener

zaktualizuj plik konfiguracyjny

protected void updateConfigFile (InputStream configInputStream, 
                Writer writer)

Parametry
configInputStream InputStream

writer Writer

Rzuty
HarnessRuntimeException