InstalledInstrumentationsTest
  public
  
  
  
  class
  InstalledInstrumentationsTest
  
    extends Object
  
  
  
  
  
      implements
      
        IAutoRetriableTest, 
      
        IConfigurationReceiver, 
      
        IDeviceTest, 
      
        IMetricCollectorReceiver, 
      
        IShardableTest
      
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.InstalledInstrumentationsTest | 
Uruchamia wszystkie instrumenty znalezione na bieżącym urządzeniu.
Podsumowanie
| Konstruktory publiczne | |
|---|---|
| 
      InstalledInstrumentationsTest()
       | |
| Metody publiczne | |
|---|---|
| 
        
        
        
        
        
        ITestDevice | 
      getDevice()
      Przygotuj urządzenie do testowania. | 
| 
        
        
        
        
        
        void | 
      run(TestInformation testInfo, ITestInvocationListener listener)
      Przeprowadza testy i przekazuje wyniki do odbiorcy. | 
| 
        
        
        
        
        
        void | 
      setConfiguration(IConfiguration configuration)
      Wstrzykuje  | 
| 
        
        
        
        
        
        void | 
      setDevice(ITestDevice device)
      Wstrzyknij urządzenie testowe. | 
| 
        
        
        
        
        
        void | 
      setMetricCollectors(Ustawia listę  | 
| 
        
        
        
        
        
        boolean | 
      shouldRetry(int attemptJustExecuted,  | 
| 
        
        
        
        
        
         | 
      split(int shardCountHint)
      Alternatywna wersja  | 
Konstruktory publiczne
InstalledInstrumentationsTest
public InstalledInstrumentationsTest ()
Metody publiczne
getDevice
public ITestDevice getDevice ()
Przygotuj urządzenie do testowania.
| Zwroty | |
|---|---|
| ITestDevice | ITestDevice | 
home run
public void run (TestInformation testInfo, ITestInvocationListener listener)
Przeprowadza testy i przekazuje wyniki do odbiorcy.
| Parametry | |
|---|---|
| testInfo | TestInformation: obiektTestInformationzawierający przydatne informacje do przeprowadzania testów. | 
| listener | ITestInvocationListener:ITestInvocationListenerwyników testu | 
| Rzuty | |
|---|---|
| DeviceNotAvailableException | |
setConfiguration
public void setConfiguration (IConfiguration configuration)
Wstrzykuje IConfiguration w użyciu.
| Parametry | |
|---|---|
| configuration | IConfiguration | 
setDevice
public void setDevice (ITestDevice device)
Wstrzyknij urządzenie testowe.
| Parametry | |
|---|---|
| device | ITestDevice:ITestDevicedo użycia | 
setMetricCollectors
public void setMetricCollectors (collectors) 
Ustawia listę IMetricCollector zdefiniowanych na potrzeby testu.
| Parametry | |
|---|---|
| collectors |  | 
shouldRetry
public boolean shouldRetry (int attemptJustExecuted, 
                 previousResults, 
                 skipList)  Przekazano z: ERROR(IRetryDecision.shouldRetry(IRemoteTest, int, List)/com.android.tradefed.retry.IRetryDecision#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List) IRetryDecision.shouldRetry(IRemoteTest, int, List)). Określ, czy próba ponownego wykonania ma być podjęta. Wprowadź też wszelkie niezbędne zmiany w IRemoteTest, aby można było ponownie uruchomić proces (np. zastosowanie filtrów, przygotowanie kolejnego uruchomienia itp.).
| Parametry | |
|---|---|
| attemptJustExecuted | int: numer próby, która została właśnie uruchomiona. | 
| previousResults | : listaTestRunResulttestu, który został właśnie uruchomiony. | 
| skipList | : zbiór elementów, których nie należy ponownie próbować. | 
| Zwroty | |
|---|---|
| boolean | Wartość Prawda, jeśli należy spróbować ponownie, w przeciwnym razie wartość Fałsz. | 
| Rzuty | |
|---|---|
| DeviceNotAvailableException | |
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; | 
