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)
סיכום
constructors ציבוריים | |
|---|---|
MoblyBinaryHostTest()
|
|
methods ציבוריים | |
|---|---|
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)
|
MoblyArtifactReporter
|
getArtifactReporter()
|
String
|
getLogDirAbsolutePath()
|
File
|
getLogDirFile()
|
boolean
|
processYamlTestResults(InputStream inputStream, MoblyYamlResultParser parser, ITestInvocationListener listener, String runName)
מנתח את תוצאות הבדיקה של Mobly ומדווח על התוצאות. |
void
|
updateConfigFile(InputStream configInputStream, Writer writer)
|
Constructors ציבוריים
MoblyBinaryHostTest
public MoblyBinaryHostTest ()
methods ציבוריים
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) הנוכחי של מסנני החרגה.
| החזרות | |
|---|---|
|
|
ראן
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 |
| החזרות | |
|---|---|
|
|
getArtifactReporter
protected MoblyArtifactReporter getArtifactReporter ()
| החזרות | |
|---|---|
MoblyArtifactReporter |
|
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 |
|
updateConfigFile
protected void updateConfigFile (InputStream configInputStream,
Writer writer)| פרמטרים | |
|---|---|
configInputStream |
InputStream |
writer |
Writer |
| זריקות | |
|---|---|
HarnessRuntimeException |
|