DelegatedInvocationExecution
  public
  
  
  
  class
  DelegatedInvocationExecution
  
  
  
  
    extends InvocationExecution
  
  
  
  
  
  
| java.lang.Object | ||
| ↳ | com.android.tradefed.invoker.InvocationExecution | |
| ↳ | com.android.tradefed.invoker.DelegatedInvocationExecution | |
InvocationExecution, yürütmeyi başka bir Tradefed ikilisine delege eder.
Özet
| Fields'ın oynadığı filmler | |
|---|---|
| 
    public
    static
    final
    String | DELEGATED_MODE_VARVarsa çağrı, yetki verilmiş bir modda yürütülüyordur. | 
| Herkese açık kurucular | |
|---|---|
| 
      DelegatedInvocationExecution()
       | |
| Herkese açık yöntemler | |
|---|---|
| 
        
        
        
        
        
        void | 
      doCleanUp(IInvocationContext context, IConfiguration config, Throwable exception)
      target_preparer ve multi_target_preparer cleanUp adımını yürütün. | 
| 
        
        
        
        
        
        void | 
      doSetup(TestInformation testInfo, IConfiguration config, ITestLogger listener)
      target_preparer ve multi_target_preparer setUp adımlarını yürütün. | 
| 
        
        
        
        
        
        void | 
      doTeardown(TestInformation testInfo, IConfiguration config, ITestLogger logger, Throwable exception)
      target_preparer ve multi_target_preparer teardown adımını yürütün. | 
| 
        
        
        
        
        
        void | 
      reportLogs(ITestDevice device, ITestLogger logger, TestInvocation.Stage stage)
      Bazı cihaz günlüklerini çağrının farklı aşamalarında raporlayın. | 
| 
        
        
        
        
        
        void | 
      runDevicePostInvocationTearDown(IInvocationContext context, IConfiguration config, Throwable exception)
      Çağrının her cihaz parçası için  | 
| 
        
        
        
        
        
        void | 
      runDevicePreInvocationSetup(IInvocationContext context, IConfiguration config, ITestLogger logger)
      Çağrının her cihaz parçası için  | 
| 
        
        
        
        
        
        void | 
      runTests(TestInformation info, IConfiguration config, ITestInvocationListener listener)
      Testi çalıştırır. | 
| 
        
        
        
        
        
        boolean | 
      shardConfig(IConfiguration config, TestInformation testInfo, IRescheduler rescheduler, ITestLogger logger)
      Yapılandırmayı alt yapılandırmalara bölmeyi deneyin. Böylece, paralel olarak birden fazla kaynakta çalışacak şekilde yeniden planlanabilir. | 
Fields'ın oynadığı filmler
DELEGATED_MODE_VAR
public static final String DELEGATED_MODE_VAR
Varsa çağrı, yetki verilmiş bir modda yürütülüyordur.
Herkese açık kurucular
DelegatedInvocationExecution
public DelegatedInvocationExecution ()
Herkese açık yöntemler
doCleanUp
public void doCleanUp (IInvocationContext context, IConfiguration config, Throwable exception)
target_preparer ve multi_target_preparer cleanUp adımını yürütün. Cihazlar temizlenir.
| Parametreler | |
|---|---|
| context | IInvocationContext: ÇağrınınIInvocationContext. | 
| config | IConfiguration: Bu test çalıştırmasınınIConfiguration. | 
| exception | Throwable: Testin çalışmasıyla ortaya çıkan orijinal istisna. | 
doSetup
public void doSetup (TestInformation testInfo, IConfiguration config, ITestLogger listener)
target_preparer ve multi_target_preparer setUp adımlarını yürütün. Testin çalışması için gereken tüm cihazlar kuruldu mu?
| Parametreler | |
|---|---|
| testInfo | TestInformation: ÇağrınınTestInformation. | 
| config | IConfiguration: Bu test çalıştırmasınınIConfiguration. | 
| listener | ITestLogger: Kurulum hatalarını bildirmek içinITestLogger. | 
| Atışlar | |
|---|---|
| BuildError | |
| DeviceNotAvailableException | |
| TargetSetupError | |
doTeardown
public void doTeardown (TestInformation testInfo, IConfiguration config, ITestLogger logger, Throwable exception)
target_preparer ve multi_target_preparer teardown adımını yürütün. Kurulumla ilişkili cihazlar sökülür.
| Parametreler | |
|---|---|
| testInfo | TestInformation: ÇağrınınTestInformation. | 
| config | IConfiguration: Bu test çalıştırmasınınIConfiguration. | 
| logger | ITestLogger: Günlükleri bildirmek içinITestLogger. | 
| exception | Throwable: Testin çalışmasıyla ortaya çıkan orijinal istisna. | 
reportLogs
public void reportLogs (ITestDevice device, ITestLogger logger, TestInvocation.Stage stage)
Bazı cihaz günlüklerini çağrının farklı aşamalarında raporlayın. Örneğin: logcat.
| Parametreler | |
|---|---|
| device | ITestDevice: Günlüklerin raporlanacağı cihaz. | 
| logger | ITestLogger: Günlüklerin günlüğe kaydedicisi. | 
| stage | TestInvocation.Stage: Çağrının hangi aşamasında olduğumuzu belirtir. | 
runDevicePostInvocationTearDown
public void runDevicePostInvocationTearDown (IInvocationContext context, IConfiguration config, Throwable exception)
Çağrının her cihaz parçası için ITestDevice.postInvocationTearDown(Throwable) çağrısı yapın.
| Parametreler | |
|---|---|
| context | IInvocationContext: ÇağrınınIInvocationContext. | 
| config | IConfiguration: Bu test çalıştırmasınınIConfiguration. | 
| exception | Throwable: Çalışan test tarafından oluşturulan orijinal istisna (varsa). | 
runDevicePreInvocationSetup
public void runDevicePreInvocationSetup (IInvocationContext context, IConfiguration config, ITestLogger logger)
Çağrının her cihaz parçası için ERROR(ITestDevice.preInvocationSetup(IBuildInfo)/com.android.tradefed.device.ITestDevice#preInvocationSetup(com.android.tradefed.build.IBuildInfo) ITestDevice.preInvocationSetup(IBuildInfo)) çağrısı yapın.
| Parametreler | |
|---|---|
| context | IInvocationContext: ÇağrınınIInvocationContext. | 
| config | IConfiguration: Bu test çalıştırmasınınIConfiguration. | 
| logger | ITestLogger: Günlükleri bildirmek içinITestLogger. | 
| Atışlar | |
|---|---|
| DeviceNotAvailableException | |
| TargetSetupError | |
runTests
public void runTests (TestInformation info, IConfiguration config, ITestInvocationListener listener)
Testi çalıştırır.
| Parametreler | |
|---|---|
| info | TestInformation: Testlerin çalıştırılacağıTestInformation. | 
| config | IConfiguration: çalıştırılacakIConfiguration | 
| listener | ITestInvocationListener: test sonuçlarınınITestInvocationListener'ü | 
shardConfig
public boolean shardConfig (IConfiguration config, TestInformation testInfo, IRescheduler rescheduler, ITestLogger logger)
Yapılandırmayı alt yapılandırmalara bölmeyi deneyin. Böylece, paralel olarak birden fazla kaynakta çalışacak şekilde yeniden planlanabilir.
Bir bölüm sayısı 1'den fazlaysa bölüm dizinlerini ayarlayarak her bölüm için yapılandırmalar oluşturur ve bunları yeniden planlar. Bir bölüm sayısı ayarlanmazsa IShardHelper.shardConfig değerine geri döner.
| Parametreler | |
|---|---|
| config | IConfiguration: MevcutIConfiguration. | 
| testInfo | TestInformation: Test bilgilerini içerenTestInformation. | 
| rescheduler | IRescheduler:IRescheduler. | 
| logger | ITestLogger:ITestLogger, bölümleme sırasında dosyayı günlüğe kaydetmek için kullanılır. | 
| İlerlemeler | |
|---|---|
| boolean | Test bölmelere ayrıldıysa doğru değerini döndürür. Aksi takdirde falsedöndürülür. | 
