MoblyBinaryHostTest
public
class
MoblyBinaryHostTest
extends Object
implements
IBuildReceiver,
IDeviceTest,
IRemoteTest,
IShardableTest,
ITestFilterReceiver
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.mobly.MoblyBinaryHostTest |
Test hosta przeznaczony do uruchamiania pliku binarnego w Pythonie Mobly z systemu kompilacji Androida (Soong).
Podsumowanie
Publiczne konstruktory | |
|---|---|
MoblyBinaryHostTest()
|
|
Metody publiczne | |
|---|---|
void
|
addAllExcludeFilters(
Dodaje |
void
|
addAllIncludeFilters(
Dodaje |
void
|
addExcludeFilter(String filter)
Dodaje filtr określający, które testy mają zostać wykluczone. |
void
|
addIncludeFilter(String filter)
Dodaje filtr określający, które testy mają być uwzględnione. |
void
|
clearExcludeFilters()
Usuń wszystkie obecnie śledzone filtry wykluczeń. |
void
|
clearIncludeFilters()
Usuń wszystkie obecnie śledzone filtry uwzględniania. |
ITestDevice
|
getDevice()
Przygotuj testowane urządzenie. |
|
getExcludeFilters()
Zwraca bieżącą |
|
getIncludeFilters()
Zwraca bieżący |
final
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
Przeprowadza testy i przekazuje wyniki odbiorcy. |
void
|
setBuild(IBuildInfo buildInfo)
|
void
|
setDevice(ITestDevice device)
Wstrzyknij testowane urządzenie. |
|
split(int shardCountHint)
Alternatywna wersja |
Metody chronione | |
|---|---|
String[]
|
buildCommandLineArray(String filePath, String configPath,
|
String[]
|
buildCommandLineArray(String filePath, String configPath)
|
|
filterTests(String[] testListLines, String runName, ITestInvocationListener listener)
|
MoblyArtifactReporter
|
getArtifactReporter()
|
String
|
getLogDirAbsolutePath()
|
File
|
getLogDirFile()
|
boolean
|
processYamlTestResults(InputStream inputStream, MoblyYamlResultParser parser, ITestInvocationListener listener, String runName)
Analizuje wyniki testów Mobly i tworzy raporty z wynikami. |
void
|
updateConfigFile(InputStream configInputStream, Writer writer)
|
Publiczne konstruktory
MoblyBinaryHostTest
public MoblyBinaryHostTest ()
Metody publiczne
addAllExcludeFilters
public void addAllExcludeFilters (filters)
Dodaje ERROR(/Set) filtrów, które określają, które testy mają zostać wykluczone.
| Parametry | |
|---|---|
filters |
|
addAllIncludeFilters
public void addAllIncludeFilters (filters)
Dodaje ERROR(/Set) filtrów, które określają, jakie testy mają być uwzględnione.
| Parametry | |
|---|---|
filters |
|
addExcludeFilter
public void addExcludeFilter (String filter)
Dodaje filtr określający, które testy mają zostać 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 ()
Usuń wszystkie obecnie śledzone filtry wykluczeń.
clearIncludeFilters
public void clearIncludeFilters ()
Usuń wszystkie obecnie śledzone filtry uwzględniania.
getDevice
public ITestDevice getDevice ()
Przygotuj testowane urządzenie.
| Zwroty | |
|---|---|
ITestDevice |
ITestDevice |
getIncludeFilters
publicgetIncludeFilters ()
Zwraca bieżący ERROR(/Set) filtrów uwzględniania.
| Zwroty | |
|---|---|
|
|
home run
public final void run (TestInformation testInfo, ITestInvocationListener listener)
Przeprowadza testy i przekazuje wyniki 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 testowane urządzenie.
| Parametry | |
|---|---|
device |
ITestDevice: ITestDevice, którego chcesz użyć |
podziel
publicsplit (int shardCountHint)
Alternatywna wersja split(), która zawiera też liczbę fragmentów, które mają zostać uruchomione. Jest to przydatne w przypadku niektórych programów do uruchamiania testów, które nie mogą czasami podejmować arbitralnych decyzji.
| Parametry | |
|---|---|
shardCountHint |
int: liczba fragmentów, które próbowano utworzyć. |
| Zwroty | |
|---|---|
|
zbiór podtestów do wykonania osobno lub null, jeśli test nie jest obecnie podzielony na części. |
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[] |
|
filterTests
protectedfilterTests (String[] testListLines, String runName, ITestInvocationListener listener)
| Parametry | |
|---|---|
testListLines |
String |
runName |
String |
listener |
ITestInvocationListener |
| Zwroty | |
|---|---|
|
|
getArtifactReporter
protected MoblyArtifactReporter getArtifactReporter ()
| Zwroty | |
|---|---|
MoblyArtifactReporter |
|
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 tworzy raporty.
| 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 generuje różne raporty. |
runName |
String: str, nazwa uruchomionego pliku binarnego testu Mobly. |
| Zwroty | |
|---|---|
boolean |
|
updateConfigFile
protected void updateConfigFile (InputStream configInputStream,
Writer writer)| Parametry | |
|---|---|
configInputStream |
InputStream |
writer |
Writer |
| Zgłasza | |
|---|---|
HarnessRuntimeException |
|