ExecutableTargetTest

public class ExecutableTargetTest
extends ExecutableBaseTest implements IDeviceTest

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


Runner pengujian untuk file yang dapat dieksekusi yang berjalan di target. Runner mengimplementasikan IDeviceTest karena biner berjalan di perangkat.

Ringkasan

Konstanta

String DEVICE_LOST_ERROR

String ROOT_LOST_ERROR

Konstruktor publik

ExecutableTargetTest()

Metode publik

String findBinary(String binary)

Telusuri biner agar dapat menjalankannya.

boolean getCollectTestsOnly()
ITestDevice getDevice()

Dapatkan perangkat yang sedang diuji.

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

Jalankan biner di jalur yang ditentukan.

void setDevice(ITestDevice device)

Suntikkan perangkat yang sedang diuji.

FailureDescription shouldAbortRun(TestDescription description)

Periksa apakah testRun harus diakhiri lebih awal.

Metode yang dilindungi

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

Periksa hasil perintah pengujian.

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

Konstanta

DEVICE_LOST_ERROR

public static final String DEVICE_LOST_ERROR

Nilai Konstan: "Perangkat hilang sebelum %s; membatalkan operasi."

ROOT_LOST_ERROR

public static final String ROOT_LOST_ERROR

Nilai Konstan: "Akses root hilang sebelum %s; membatalkan eksekusi."

Konstruktor publik

ExecutableTargetTest

public ExecutableTargetTest ()

Metode publik

findBinary

public String findBinary (String binary)

Telusuri biner agar dapat menjalankannya.

Parameter
binary String: jalur biner atau cukup nama biner.

Hasil
String Jalur ke biner, atau null jika tidak ditemukan.

Menampilkan
DeviceNotAvailableException

getCollectTestsOnly

public boolean getCollectTestsOnly ()

Hasil
boolean

getDevice

public ITestDevice getDevice ()

Dapatkan perangkat yang sedang diuji.

Hasil
ITestDevice ITestDevice

runBinary

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

Jalankan biner di jalur yang ditentukan.

Parameter
binaryPath String: Jalur biner.

listener ITestInvocationListener: Pemroses tempat melaporkan hasil.

description TestDescription: Pengujian sedang berlangsung.

Menampilkan
DeviceNotAvailableException

setDevice

public void setDevice (ITestDevice device)

Suntikkan perangkat yang sedang diuji.

Parameter
device ITestDevice: ITestDevice yang akan digunakan

shouldAbortRun

public FailureDescription shouldAbortRun (TestDescription description)

Periksa apakah testRun harus diakhiri lebih awal.

Parameter
description TestDescription: Pengujian sedang berlangsung.

Hasil
FailureDescription FailureDescription jika loop run harus dihentikan.

Metode yang dilindungi

checkCommandResult

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

Periksa hasil perintah pengujian.

Parameter
result CommandResult: hasil pengujian perintah CommandResult

listener ITestInvocationListener: ITestInvocationListener

description TestDescription: Pengujian sedang berlangsung.

doesRunBinaryGenerateTestResults

protected boolean doesRunBinaryGenerateTestResults ()

Hasil
boolean

doesRunBinaryGenerateTestRuns

protected boolean doesRunBinaryGenerateTestRuns ()

Hasil
boolean

getSkipBinaryCheck

protected boolean getSkipBinaryCheck ()

Hasil
boolean