MoblyBinaryHostTest
public
class
MoblyBinaryHostTest
extends Object
implements
IBuildReceiver,
IDeviceTest,
IRemoteTest,
IShardableTest,
ITestFilterReceiver
java.lang.Object | |
↳ | com.android.tradefed.testtype.mobly.MoblyBinaryHostTest |
בדיקת מארח שמטרתה להריץ קובץ בינארי של Python ל-mobly ממערכת ה-build של Android (Soong)
סיכום
קונסטרוקטורים גלויים לכולם | |
---|---|
MoblyBinaryHostTest()
|
שיטות ציבוריות | |
---|---|
void
|
addAllExcludeFilters(
הוספת |
void
|
addAllIncludeFilters(
הוספת |
void
|
addExcludeFilter(String filter)
הוספת מסנן של הבדיקות שרוצים להחריג. |
void
|
addIncludeFilter(String filter)
הוספת מסנן של הבדיקות שרוצים לכלול. |
void
|
clearExcludeFilters()
מחיקה של כל מסנני ההחרגה שנמצאים במעקב כרגע. |
void
|
clearIncludeFilters()
מחיקה של כל מסנני ההכללה שבהם מתבצע מעקב כרגע. |
ITestDevice
|
getDevice()
מקבלים את המכשיר לבדיקה. |
|
getExcludeFilters()
הפונקציה מחזירה את הערך הנוכחי של |
|
getIncludeFilters()
הפונקציה מחזירה את הערך הנוכחי של |
final
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
מפעיל את הבדיקות ומדווח על התוצאות למאזין. |
void
|
setBuild(IBuildInfo buildInfo)
|
void
|
setDevice(ITestDevice device)
מזריקים את המכשיר שנבדק. |
|
split(int shardCountHint)
גרסה חלופית של |
שיטות מוגנות | |
---|---|
String[]
|
buildCommandLineArray(String filePath, String configPath,
|
String[]
|
buildCommandLineArray(String filePath, String configPath)
|
|
filterTests(String[] testListLines, String runName, ITestInvocationListener listener)
|
String
|
getLogDirAbsolutePath()
|
File
|
getLogDirFile()
|
boolean
|
processYamlTestResults(InputStream inputStream, MoblyYamlResultParser parser, ITestInvocationListener listener, String runName)
ניתוח תוצאות הבדיקה של Mobly ודיווח על התוצאות. |
void
|
reportLogs(File logDir, ITestInvocationListener listener)
|
void
|
updateConfigFile(InputStream configInputStream, Writer writer)
|
קונסטרוקטורים גלויים לכולם
MoblyBinaryHostTest
public MoblyBinaryHostTest ()
שיטות ציבוריות
addAllExcludeFilters
public void addAllExcludeFilters (filters)
הוספת ERROR(/Set)
של מסננים של בדיקות שרוצים להחריג.
פרמטרים | |
---|---|
filters |
|
addAllIncludeFilters
public void addAllIncludeFilters (filters)
הוספת ERROR(/Set)
של מסננים של בדיקות שרוצים לכלול.
פרמטרים | |
---|---|
filters |
|
addExcludeFilter
public void addExcludeFilter (String filter)
הוספת מסנן של הבדיקות שרוצים להחריג.
פרמטרים | |
---|---|
filter |
String |
addIncludeFilter
public void addIncludeFilter (String filter)
הוספת מסנן של הבדיקות שרוצים לכלול.
פרמטרים | |
---|---|
filter |
String |
clearExcludeFilters
public void clearExcludeFilters ()
מחיקה של כל מסנני ההחרגה שנמצאים במעקב כרגע.
clearIncludeFilters
public void clearIncludeFilters ()
מחיקה של כל מסנני ההכללה שבהם מתבצע מעקב כרגע.
getExcludeFilters
publicgetExcludeFilters ()
הפונקציה מחזירה את הערך הנוכחי של ERROR(/Set)
של מסנני החרגה.
החזרות | |
---|---|
|
getIncludeFilters
publicgetIncludeFilters ()
הפונקציה מחזירה את הערך הנוכחי של ERROR(/Set)
של מסנני ההכללה.
החזרות | |
---|---|
|
ראן
public final void run (TestInformation testInfo, ITestInvocationListener listener)
מפעיל את הבדיקות ומדווח על התוצאות למאזין.
פרמטרים | |
---|---|
testInfo |
TestInformation : האובייקט TestInformation שמכיל מידע שימושי להרצת בדיקות. |
listener |
ITestInvocationListener : ITestInvocationListener של תוצאות הבדיקה |
setDevice
public void setDevice (ITestDevice device)
מזריקים את המכשיר שנבדק.
פרמטרים | |
---|---|
device |
ITestDevice : ה-ITestDevice לשימוש |
פיצול
publicsplit (int shardCountHint)
גרסה חלופית של split()
שמספקת גם את הערך של shardCount שרוצים להריץ. האפשרות הזו שימושית לחלק מכלי הבדיקה שלא יכולים לקבל החלטות באופן שרירותי לפעמים.
פרמטרים | |
---|---|
shardCountHint |
int : מספר הניסיונות ליצירת שבר. |
החזרות | |
---|---|
|
אוסף של בדיקות משנה שיופעלו בנפרד, או null אם אי אפשר לפצל את הבדיקה כרגע |
שיטות מוגנות
buildCommandLineArray
protected String[] buildCommandLineArray (String filePath, String configPath,tests)
פרמטרים | |
---|---|
filePath |
String |
configPath |
String |
tests |
|
החזרות | |
---|---|
String[] |
buildCommandLineArray
protected String[] buildCommandLineArray (String filePath, String configPath)
פרמטרים | |
---|---|
filePath |
String |
configPath |
String |
החזרות | |
---|---|
String[] |
filterTests
protectedfilterTests (String[] testListLines, String runName, ITestInvocationListener listener)
פרמטרים | |
---|---|
testListLines |
String |
runName |
String |
listener |
ITestInvocationListener |
החזרות | |
---|---|
|
getLogDirAbsolutePath
protected String getLogDirAbsolutePath ()
החזרות | |
---|---|
String |
getLogDirFile
protected File getLogDirFile ()
החזרות | |
---|---|
File |
processYamlTestResults
protected boolean processYamlTestResults (InputStream inputStream, MoblyYamlResultParser parser, ITestInvocationListener listener, String runName)
ניתוח תוצאות הבדיקה של Mobly ודיווח על התוצאות.
פרמטרים | |
---|---|
inputStream |
InputStream : אובייקט InputStream שקורא את קובץ תוצאות הבדיקה של Mobly. |
parser |
MoblyYamlResultParser : אובייקט MoblyYamlResultParser שמעבד את תוצאות הבדיקה של Mobly. |
listener |
ITestInvocationListener : מופע של ITestInvocationListener שמבצע דיווחים שונים. |
runName |
String : str, השם של ההרצה הבינארית של בדיקת Mobly. |
החזרות | |
---|---|
boolean |
reportLogs
protected void reportLogs (File logDir, ITestInvocationListener listener)
פרמטרים | |
---|---|
logDir |
File |
listener |
ITestInvocationListener |
updateConfigFile
protected void updateConfigFile (InputStream configInputStream, Writer writer)
פרמטרים | |
---|---|
configInputStream |
InputStream |
writer |
Writer |
זריקות | |
---|---|
HarnessRuntimeException |