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ı. Çalıştırıcı, cihazda ikili dosya çalıştırdığı için IDeviceTest uygular.

Özet

Sabitler

String DEVICE_LOST_ERROR

String ROOT_LOST_ERROR

Herkese açık oluşturucular

ExecutableTargetTest()

Herkese açık yöntemler

String findBinary(String binary)

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

boolean getCollectTestsOnly()
ITestDevice getDevice()

Test edilecek cihazı alın.

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

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

void setDevice(ITestDevice device)

Test edilen cihazı yerleştirin.

FailureDescription shouldAbortRun(TestDescription description)

testRun'ın erken bitirilmesi gerekip gerekmediğini kontrol edin.

Korunan yöntemler

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

Test komutunun sonucunu kontrol edin.

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

Sabitler

DEVICE_LOST_ERROR

public static final String DEVICE_LOST_ERROR

Sabit Değer: "Device was lost prior to %s; aborting run."

ROOT_LOST_ERROR

public static final String ROOT_LOST_ERROR

Sabit Değer: "Kök erişimi %s tarihinden önce kaybedildi. Çalışma durduruluyor."

Herkese açık oluşturucular

ExecutableTargetTest

public ExecutableTargetTest ()

Herkese açık yöntemler

findBinary

public String findBinary (String binary)

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

Parametreler
binary String: İkili dosyanın yolu veya yalnızca ikili dosyanın adı.

İadeler
String İkili dosyanın yolu veya bulunamadıysa boş değer.

Verdiği hatalar
DeviceNotAvailableException

getCollectTestsOnly

public boolean getCollectTestsOnly ()

İadeler
boolean

getDevice

public ITestDevice getDevice ()

Test edilecek cihazı alın.

İadeler
ITestDevice ITestDevice

runBinary

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

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

Parametreler
binaryPath String: İkilinin yolu.

listener ITestInvocationListener: Sonuçların bildirileceği dinleyici.

description TestDescription: Test devam ediyor.

Verdiği hatalar
DeviceNotAvailableException
IOException

setDevice

public void setDevice (ITestDevice device)

Test edilen cihazı yerleştirin.

Parametreler
device ITestDevice: kullanılacak ITestDevice

shouldAbortRun

public FailureDescription shouldAbortRun (TestDescription description)

testRun'ın erken bitirilmesi gerekip gerekmediğini kontrol edin.

Parametreler
description TestDescription: Test devam ediyor.

İadeler
FailureDescription Çalışma döngüsünün sonlandırılması gerekiyorsa 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: Test devam ediyor.

doesRunBinaryGenerateTestResults

protected boolean doesRunBinaryGenerateTestResults ()

İadeler
boolean

doesRunBinaryGenerateTestRuns

protected boolean doesRunBinaryGenerateTestRuns ()

İadeler
boolean

getSkipBinaryCheck

protected boolean getSkipBinaryCheck ()

İadeler
boolean