InstalledInstrumentationsTest
public
class
InstalledInstrumentationsTest
extends Object
implements
IAutoRetriableTest,
IConfigurationReceiver,
IDeviceTest,
IMetricCollectorReceiver,
IShardableTest
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.InstalledInstrumentationsTest |
Uruchamia wszystkie instrumentacje znalezione na bieżącym urządzeniu.
Podsumowanie
Konstruktory publiczne | |
|---|---|
InstalledInstrumentationsTest()
|
|
Metody publiczne | |
|---|---|
ITestDevice
|
getDevice()
Przygotuj urządzenie testowe. |
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
Przeprowadza testy i przekazuje wyniki odbiorcy. |
void
|
setConfiguration(IConfiguration configuration)
Wstawia używaną wartość |
void
|
setDevice(ITestDevice device)
Wstrzyknij testowane urządzenie. |
void
|
setMetricCollectors(List<IMetricCollector> collectors)
Ustawia listę |
boolean
|
shouldRetry(int attemptJustExecuted, List<TestRunResult> previousResults, Set<String> skipList)
Przekazano z: |
Collection<IRemoteTest>
|
split(int shardCountHint)
Alternatywna wersja |
Konstruktory publiczne
InstalledInstrumentationsTest
public InstalledInstrumentationsTest ()
Metody publiczne
getDevice
public ITestDevice getDevice ()
Przygotuj urządzenie testowe.
| Zwraca | |
|---|---|
ITestDevice |
ITestDevice |
home run
public 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 |
| Zgłasza | |
|---|---|
DeviceNotAvailableException |
|
setConfiguration
public void setConfiguration (IConfiguration configuration)
Wstawia używaną wartość IConfiguration.
| Parametry | |
|---|---|
configuration |
IConfiguration |
setDevice
public void setDevice (ITestDevice device)
Wstrzyknij testowane urządzenie.
| Parametry | |
|---|---|
device |
ITestDevice: ITestDevice, którego chcesz użyć. |
setMetricCollectors
public void setMetricCollectors (List<IMetricCollector> collectors)
Ustawia listę IMetricCollector zdefiniowanych dla testu.
| Parametry | |
|---|---|
collectors |
List |
shouldRetry
public boolean shouldRetry (int attemptJustExecuted,
List<TestRunResult> previousResults,
Set<String> skipList)Przekazano z: IRetryDecision.shouldRetry(IRemoteTest,int,List). Zdecyduj, czy należy ponowić próbę. Wprowadź też niezbędne zmiany w IRemoteTest, aby ponowić próbę (zastosuj filtry, przygotuj następne uruchomienie itp.).
| Parametry | |
|---|---|
attemptJustExecuted |
int: numer próby, którą właśnie przeprowadziliśmy. |
previousResults |
List: lista TestRunResult testu, który właśnie został przeprowadzony. |
skipList |
Set: zestaw elementów, których nie należy ponawiać. |
| Zwraca | |
|---|---|
boolean |
Wartość true, jeśli należy ponowić próbę. W przeciwnym razie wartość false. |
| Zgłasza | |
|---|---|
DeviceNotAvailableException |
|
podziel
public Collection<IRemoteTest> split (int shardCountHint)
Alternatywna wersja split(), która podaje 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órych utworzenie zostało podjęte. |
| Zwraca | |
|---|---|
Collection<IRemoteTest> |
zbiór podtestów do wykonania osobno lub null, jeśli test nie jest obecnie podzielony na części. |