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 gerçekten çalıştırın.

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: İkilinin yolu veya yalnızca ikili adı.

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

Dekoratif yastıklar
DeviceNotAvailableException

getCollectTestsOnly

public boolean getCollectTestsOnly ()

İlerlemeler
boolean

getDevice

public ITestDevice getDevice ()

Test edilecek cihazı alın.

İlerlemeler
ITestDevice ITestDevice

runBinary

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

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

Parametreler
binaryPath String: İkilinin yolu.

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

description TestDescription: Test devam ediyor.

Dekoratif yastıklar
DeviceNotAvailableException

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.

İlerlemeler
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 ()

İlerlemeler
boolean

doesRunBinaryGenerateTestRuns

protected boolean doesRunBinaryGenerateTestRuns ()

İlerlemeler
boolean

getSkipBinaryCheck

protected boolean getSkipBinaryCheck ()

İlerlemeler
boolean