ExecutableTargetTest

public class ExecutableTargetTest
extends ExecutableBaseTest implements IDeviceTest

java.lang.Object
   ↳ com.android.tradefed.testtype.binary.ExecutableBaseTest
     ↳ com.android.tradefed.testtype.binary.ExecutableTargetTest


Hedefte çalışan yürütülebilir dosya için test çalıştırıcı. İkili dosya bir cihazda çalıştığından çalıştırıcı IDeviceTest'ü uygular.

Özet

Fields'ın oynadığı filmler

public static final String DEVICE_LOST_ERROR

public static final String ROOT_LOST_ERROR

Herkese açık kurucular

ExecutableTargetTest()

Herkese açık yöntemler

String findBinary(String binary)

Çalıştırmak için ikili dosyayı arayın.

boolean getCollectTestsOnly()
ITestDevice getDevice()

Test cihazını alın.

void runBinary(String binaryPath, ITestInvocationListener listener, TestDescription description)

İkili dosyayı belirtilen yolda çalıştırın.

void setDevice(ITestDevice device)

Test edilen cihazı enjekte edin.

FailureDescription shouldAbortRun(TestDescription description)

testRun'un erken sonlandırılıp sonlandırılmayacağını kontrol edin.

Korunan yöntemler

void checkCommandResult(CommandResult result, ITestInvocationListener listener, TestDescription description)

test komutunun sonucunu kontrol edin.

boolean doesRunBinaryGenerateTestResults()
boolean doesRunBinaryGenerateTestRuns()
boolean getSkipBinaryCheck()

Fields'ın oynadığı filmler

DEVICE_LOST_ERROR

public static final String DEVICE_LOST_ERROR

ROOT_LOST_ERROR

public static final String ROOT_LOST_ERROR

Herkese açık kurucular

ExecutableTargetTest

public ExecutableTargetTest ()

Herkese açık yöntemler

findBinary

public String findBinary (String binary)

Çalıştırmak için ikili dosyayı arayın.

Parametreler
binary String: İkilinin yolu veya yalnızca ikili program adı.

İlerlemeler
String İkilinin yolu veya bulunamadıysa null.

Atışlar
DeviceNotAvailableException

getCollectTestsOnly

public boolean getCollectTestsOnly ()

İlerlemeler
boolean

getDevice

public ITestDevice getDevice ()

Test cihazını alın.

İlerlemeler
ITestDevice ITestDevice

runBinary

public void runBinary (String binaryPath, 
                ITestInvocationListener listener, 
                TestDescription description)

İkili dosyayı belirtilen yolda çalıştırın.

Parametreler
binaryPath String: İkilinin yolu.

listener ITestInvocationListener: Dinleyicinin sonuçları bildireceği yer.

description TestDescription: Devam eden test.

Atışlar
DeviceNotAvailableException

setDevice

public void setDevice (ITestDevice device)

Test edilen cihazı enjekte edin.

Parametreler
device ITestDevice: Kullanılacak ITestDevice

shouldAbortRun

public FailureDescription shouldAbortRun (TestDescription description)

testRun'un erken sonlandırılıp sonlandırılmayacağını kontrol edin.

Parametreler
description TestDescription: Devam eden test.

İlerlemeler
FailureDescription Çalıştırma döngüsü sonlandırılacaksa FailureDescription.

Korunan yöntemler

checkCommandResult

protected void checkCommandResult (CommandResult result, 
                ITestInvocationListener listener, 
                TestDescription description)

test komutunun sonucunu kontrol edin.

Parametreler
result CommandResult: CommandResult komutunun test sonucu

listener ITestInvocationListener: ITestInvocationListener

description TestDescription: Devam eden test.

doesRunBinaryGenerateTestResults

protected boolean doesRunBinaryGenerateTestResults ()

İlerlemeler
boolean

doesRunBinaryGenerateTestRuns

protected boolean doesRunBinaryGenerateTestRuns ()

İlerlemeler
boolean

getSkipBinaryCheck

protected boolean getSkipBinaryCheck ()

İlerlemeler
boolean