MoblyBinaryHostTest
public
class
MoblyBinaryHostTest
extends Object
implements
IBuildReceiver,
IDeviceTest,
IRemoteTest,
IShardableTest,
ITestFilterReceiver
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.mobly.MoblyBinaryHostTest |
Test hosta służący do uruchamiania pliku binarnego Pythona Mobly z systemu Android Build (Soong)
Podsumowanie
Konstruktory publiczne | |
|---|---|
MoblyBinaryHostTest()
|
|
Metody publiczne | |
|---|---|
void
|
addAllExcludeFilters(
Dodaje |
void
|
addAllIncludeFilters(
Dodaje |
void
|
addExcludeFilter(String filter)
Dodaje filtr, który określa, które testy mają być wykluczone. |
void
|
addIncludeFilter(String filter)
Dodaje filtr określający, które testy mają być uwzględnione. |
void
|
clearExcludeFilters()
usunąć wszystkie filtry wykluczeń, które są obecnie śledzone; |
void
|
clearIncludeFilters()
Usuń wszystkie filtry uwzględniania, które są obecnie śledzone. |
ITestDevice
|
getDevice()
Przygotuj urządzenie do testowania. |
|
getExcludeFilters()
Zwraca bieżącą |
|
getIncludeFilters()
Zwraca bieżącą wartość |
final
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
Przeprowadza testy i przekazuje wyniki do odbiorcy. |
void
|
setBuild(IBuildInfo buildInfo)
|
void
|
setDevice(ITestDevice device)
Wstrzyknij urządzenie testowe. |
|
split(int shardCountHint)
Alternatywna wersja |
Chronione metody | |
|---|---|
String[]
|
buildCommandLineArray(String filePath, String configPath,
|
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)
Parsuje wyniki testów Mobly i generuje raporty z ich wynikami. |
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, które testy mają być wykluczone.
| Parametry | |
|---|---|
filters |
|
addAllIncludeFilters
public void addAllIncludeFilters (filters)
Dodaje ERROR(/Set) filtrów, których testy mają być uwzględnione.
| Parametry | |
|---|---|
filters |
|
addExcludeFilter
public void addExcludeFilter (String filter)
Dodaje filtr, który określa, które testy mają być wykluczone.
| Parametry | |
|---|---|
filter |
String |
addIncludeFilter
public void addIncludeFilter (String filter)
Dodaje filtr określający, które testy mają być uwzględnione.
| Parametry | |
|---|---|
filter |
String |
clearExcludeFilters
public void clearExcludeFilters ()
usunąć wszystkie filtry wykluczeń, które są obecnie śledzone;
clearIncludeFilters
public void clearIncludeFilters ()
Usuń wszystkie filtry uwzględniania, które są obecnie śledzone.
getDevice
public ITestDevice getDevice ()
Przygotuj urządzenie do testowania.
| Zwroty | |
|---|---|
ITestDevice |
ITestDevice |
getIncludeFilters
publicgetIncludeFilters ()
Zwraca bieżącą wartość ERROR(/Set) filtrów uwzględniania.
| Zwroty | |
|---|---|
|
|
home run
public final void run (TestInformation testInfo, ITestInvocationListener listener)
Przeprowadza testy i przekazuje wyniki do odbiorcy.
| Parametry | |
|---|---|
testInfo |
TestInformation: obiekt TestInformation zawierający przydatne informacje do przeprowadzania testów. |
listener |
ITestInvocationListener: ITestInvocationListener wyników testu |
setDevice
public void setDevice (ITestDevice device)
Wstrzyknij urządzenie testowe.
| Parametry | |
|---|---|
device |
ITestDevice: ITestDevice do użycia |
podziel
publicsplit (int shardCountHint)
Alternatywna wersja split(), która zawiera również parametr shardCount, który próbuje się uruchomić. Jest to przydatne w przypadku niektórych narzędzi testowych, które czasami nie mogą podejmować arbitralnych decyzji.
| Parametry | |
|---|---|
shardCountHint |
int: liczba prób fragmentacji. |
| Zwroty | |
|---|---|
|
kolekcję testów podrzędnych do wykonania osobno lub null, jeśli test nie jest obecnie podzielony na części; |
Chronione metody
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[] |
|
filterTests
protectedfilterTests (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)Parsuje wyniki testów Mobly i generuje raporty z tymi wynikami.
| Parametry | |
|---|---|
inputStream |
InputStream: obiekt InputStream odczytujący plik wyników testu Mobly. |
parser |
MoblyYamlResultParser: obiekt MoblyYamlResultParser, który przetwarza wyniki testów Mobly. |
listener |
ITestInvocationListener: instancja ITestInvocationListener, która wykonuje różne funkcje raportowania. |
runName |
String: str, nazwa testu binarnego Mobly. |
| Zwroty | |
|---|---|
boolean |
|
reportLogs
protected void reportLogs (File logDir,
ITestInvocationListener listener)| Parametry | |
|---|---|
logDir |
File |
listener |
ITestInvocationListener |
updateConfigFile
protected void updateConfigFile (InputStream configInputStream,
Writer writer)| Parametry | |
|---|---|
configInputStream |
InputStream |
writer |
Writer |
| Rzuty | |
|---|---|
HarnessRuntimeException |
|