YürütülebilirTargetTest

public class ExecutableTargetTest
extends ExecutableBaseTest implements IDeviceTest

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


Hedefte çalıştırılabilir dosya için test çalıştırıcısı. Koşucu, bir cihazdaki ikili çalıştırmadan bu yana IDeviceTest uygular.

Özet

Kamu inşaatçıları

ExecutableTargetTest ()

Genel yöntemler

String findBinary (String binary)

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

ITestDevice getDevice ()

Cihazı teste tabi tutun.

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

Aslında ikili dosyayı verilen yolda çalıştırın.

void setDevice ( ITestDevice device)

Test edilen cihazı enjekte edin.

Korumalı yöntemler

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

Test komutunun sonucunu kontrol edin.

boolean getSkipBinaryCheck ()

Kamu inşaatçıları

YürütülebilirTargetTest

public ExecutableTargetTest ()

Genel yöntemler

bulİkili

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 adı.

İadeler
String İkili dosyanın yolu veya bulunamazsa null.

Atar
DeviceNotAvailableException

cihaz al

public ITestDevice getDevice ()

Cihazı teste tabi tutun.

İadeler
ITestDevice ITestDevice

runİkili

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

Aslında ikili dosyayı verilen yolda çalıştırın.

Parametreler
binaryPath String : İkili dosyanın yolu.

listener ITestInvocationListener : Sonuçların raporlanacağı dinleyici.

description TestDescription : Test devam ediyor.

Atar
DeviceNotAvailableException

setCihaz

public void setDevice (ITestDevice device)

Test edilen cihazı enjekte edin.

Parametreler
device ITestDevice : kullanılacak ITestDevice

Korumalı yöntemler

kontrolKomutSonucu

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.

getSkipBinaryCheck

protected boolean getSkipBinaryCheck ()

İadeler
boolean