HostGTest

public class HostGTest
extends GTestBase implements IBuildReceiver

java.lang.Object
   ↳ com.android.tradefed.testtype.GTestBase
     ↳ com.android.tradefed.testtype.HostGTest


בדיקה שמריצה חבילת בדיקה מקורית.

סיכום

קונסטרוקטורים גלויים לכולם

HostGTest()

שיטות ציבוריות

CommandResult executeHostCommand(String cmd, long timeoutMs)
CommandResult executeHostCommand(String cmd)
String loadFilter(String binaryOnHost)

מגדירים את שיטת הסינון של ה-get.

void run(TestInformation testInfo, ITestInvocationListener listener)

void setBuild(IBuildInfo buildInfo)

קונסטרוקטורים גלויים לכולם

HostGTest

public HostGTest ()

שיטות ציבוריות

executeHostCommand

public CommandResult executeHostCommand (String cmd, 
                long timeoutMs)

פרמטרים
cmd String: הפקודה שרוצים להריץ במארח

timeoutMs long: זמן קצוב לתפוגה של הפקודה באלפיות השנייה

החזרות
CommandResult CommandResult של הפקודה

executeHostCommand

public CommandResult executeHostCommand (String cmd)

פרמטרים
cmd String: הפקודה שרוצים להריץ במארח

החזרות
CommandResult CommandResult של הפקודה

loadFilter

public String loadFilter (String binaryOnHost)

מגדירים את שיטת הסינון של ה-get.

במחלקת המשנה צריך להטמיע את האופן שבו מקבלים את המסנן שלה.

פרמטרים
binaryOnHost String: הנתיב המלא של קובץ המסנן.

החזרות
String מחרוזת סינון.

ראן

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

פרמטרים
testInfo TestInformation

listener ITestInvocationListener

זריקות
DeviceNotAvailableException

setBuild

public void setBuild (IBuildInfo buildInfo)

פרמטרים
buildInfo IBuildInfo