ExecutableTargetTest
public class ExecutableTargetTest
extends ExecutableBaseTest
implements IDeviceTest
java.lang.Object | ||
↳ | com.android.tradefed.testtype.binary.ExecutableBaseTest | |
↳ | com.android.tradefed.testtype.binary.ExecutableTargetTest |
רץ בדיקה להפעלה של קובץ הפעלה על היעד. הרץ מיישם את IDeviceTest
מאז הריצה הבינארית במכשיר.
סיכום
בנאים ציבוריים | |
---|---|
ExecutableTargetTest () |
שיטות ציבוריות | |
---|---|
String | findBinary (String binary) חפש את הבינארי כדי להיות מסוגל להפעיל אותו. |
ITestDevice | getDevice () קבל את המכשיר בבדיקה. |
void | runBinary (String binaryPath, ITestInvocationListener listener, TestDescription description) למעשה הפעל את הבינארי בנתיב הנתון. |
void | setDevice ( ITestDevice device) הזרקו את המכשיר הנבדק. |
שיטות מוגנות | |
---|---|
void | checkCommandResult ( CommandResult result, ITestInvocationListener listener, TestDescription description) בדוק את התוצאה של פקודת הבדיקה. |
בנאים ציבוריים
ExecutableTargetTest
public ExecutableTargetTest ()
שיטות ציבוריות
findBinary
public String findBinary (String binary)
חפש את הבינארי כדי להיות מסוגל להפעיל אותו.
פרמטרים | |
---|---|
binary | String : הנתיב של השם הבינארי או פשוט השם הבינארי. |
החזרות | |
---|---|
String | הנתיב לבינארי, או null אם לא נמצא. |
זורק | |
---|---|
DeviceNotAvailableException |
runBinary
public void runBinary (String binaryPath, ITestInvocationListener listener, TestDescription description)
למעשה הפעל את הבינארי בנתיב הנתון.
פרמטרים | |
---|---|
binaryPath | String : הנתיב של הבינארי. |
listener | ITestInvocationListener : המאזין היכן לדווח על התוצאות. |
description | TestDescription : הבדיקה בתהליך. |
זורק | |
---|---|
DeviceNotAvailableException |
setDevice
public void setDevice (ITestDevice device)
הזרקו את המכשיר הנבדק.
פרמטרים | |
---|---|
device | ITestDevice : ה- ITestDevice לשימוש |
שיטות מוגנות
checkCommandResult
protected void checkCommandResult (CommandResult result, ITestInvocationListener listener, TestDescription description)
בדוק את התוצאה של פקודת הבדיקה.
פרמטרים | |
---|---|
result | CommandResult : תוצאת בדיקה של הפקודה CommandResult |
listener | ITestInvocationListener : ה- ITestInvocationListener |
description | TestDescription : הבדיקה בתהליך. |