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_VAR
Varsa ç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ın IInvocationContext . |
config |
IConfiguration : Bu test çalıştırmasının IConfiguration . |
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 kurulu mu?
Parametreler | |
---|---|
testInfo |
TestInformation : Çağrının TestInformation . |
config |
IConfiguration : Bu test çalıştırmasının IConfiguration . |
listener |
ITestLogger : Kurulum hatalarını bildirmek için ITestLogger . |
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 kaldırılır mı?
Parametreler | |
---|---|
testInfo |
TestInformation : Çağrının TestInformation . |
config |
IConfiguration : Bu test çalıştırmasının IConfiguration . |
logger |
ITestLogger : Günlükleri bildirmek için ITestLogger . |
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ın IInvocationContext . |
config |
IConfiguration : Bu test çalıştırmasının IConfiguration . |
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ın IInvocationContext . |
config |
IConfiguration : Bu test çalıştırmasının IConfiguration . |
logger |
ITestLogger : Günlükleri bildirmek için ITestLogger . |
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ılacak IConfiguration |
listener |
ITestInvocationListener : test sonuçlarının ITestInvocationListener 'ü |
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 : Mevcut IConfiguration . |
testInfo |
TestInformation : Test bilgilerini içeren TestInformation . |
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 false döndürülür. |