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 |
Yürütülebilir dosyanın hedef üzerinde çalıştırılması için çalıştırıcıyı test edin. Çalıştırıcı, ikili bir cihaz üzerinde çalıştığından beri 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 alın. |
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. |
kamu inşaatçılar
YürütülebilirTargetTest
public ExecutableTargetTest ()
Genel yöntemler
BulBinary
public String findBinary (String binary)
Çalıştırabilmek için ikili dosyayı arayın.
parametreler | |
---|---|
binary | String : ikili dosyanın yolu veya yalnızca ikili ad. |
İadeler | |
---|---|
String | İkili dosyanın yolu veya bulunmazsa null. |
Atar | |
---|---|
DeviceNotAvailableException |
runBinary
public void runBinary (String binaryPath, ITestInvocationListener listener, TestDescription description)
Aslında ikili dosyayı verilen yolda çalıştırın.
parametreler | |
---|---|
binaryPath | String : İkiliğin yolu. |
listener | ITestInvocationListener : Sonuçların bildirileceği 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
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. |