MoblyBinaryHostTest

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

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.

split (int shardCountHint)

Alternatywna wersja metody split() zawierająca również liczbę shardCount, która ma zostać uruchomiona.

Metody chronione

String[] buildCommandLineArray (String filePath, String configPath, tests) buildCommandLineArray (String filePath, String configPath, tests)
String[] buildCommandLineArray (String filePath, String configPath)
filterTests (String[] testListLines, String runName, ITestInvocationListener listener)
String getLogDirAbsolutePath ()
File getLogDirFile ()
boolean 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 wykluczających.

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

podział

public  split (int shardCountHint)

Alternatywna wersja metody split() zawierająca również liczbę shardCount, która ma zostać uruchomiona. Jest to przydatne dla niektórych biegaczy testowych, którzy czasami nie mogą arbitralnie decydować.

Parametry
shardCountHint int : próba zliczenia odłamków.

Zwroty
zbiór podtestów do wykonania osobno lub null , jeśli test nie jest aktualnie dzielony

Metody chronione

buildCommandLineArray

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

Parametry
filePath String

configPath String

tests

Zwroty
String[]

buildCommandLineArray

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

Parametry
filePath String

configPath String

Zwroty
String[]

filtruj Testy

protected  filterTests (String[] testListLines, 
                String runName, 
                ITestInvocationListener listener)

Parametry
testListLines String

runName String

listener ITestInvocationListener

Zwroty

getLogDirAbsolutePath

protected String getLogDirAbsolutePath ()

Zwroty
String

getLogDirFile

protected File getLogDirFile ()

Zwroty
File

ProcessYamlTestResults

protected boolean 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.

Zwroty
boolean

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