MoblyBinaryHostTest
public class MoblyBinaryHostTest
extends Object
implements IRemoteTest , IDeviceTest , IBuildReceiver , ITestFilterReceiver
java.lang.Object | |
↳ | com.android.tradefed.testtype.mobly.MoblyBinaryHostTest |
מבחן מארח נועד להריץ קובץ בינארי mobly python ממערכת Android Build (Soong)
סיכום
בנאים ציבוריים | |
---|---|
MoblyBinaryHostTest () |
שיטות ציבוריות | |
---|---|
void | addAllExcludeFilters ( filters) addAllExcludeFilters ( filters) מוסיף את ה- |
void | addAllIncludeFilters ( filters) addAllIncludeFilters ( filters) מוסיף את ה- |
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) הזרקו את המכשיר הנבדק. |
שיטות מוגנות | |
---|---|
String[] | buildCommandLineArray (String filePath, String configPath, tests) buildCommandLineArray (String filePath, String configPath, tests) |
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)
הנוכחי של מסנני אי הכללה.
החזרות | |
---|---|
לָרוּץ
public final void run (TestInformation testInfo, ITestInvocationListener listener)
מפעיל את הבדיקות ומדווח על התוצאה למאזין.
פרמטרים | |
---|---|
testInfo | TestInformation : אובייקט TestInformation המכיל מידע שימושי להפעלת בדיקות. |
listener | ITestInvocationListener : ה- ITestInvocationListener של תוצאות הבדיקה |
setDevice
public void setDevice (ITestDevice device)
הזרקו את המכשיר הנבדק.
פרמטרים | |
---|---|
device | ITestDevice : ה- ITestDevice לשימוש |
שיטות מוגנות
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[] |
מסנן בדיקות
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 |
דוח יומני
protected void reportLogs (File logDir, ITestInvocationListener listener)
פרמטרים | |
---|---|
logDir | File |
listener | ITestInvocationListener |
updateConfigFile
protected void updateConfigFile (InputStream configInputStream, Writer writer)
פרמטרים | |
---|---|
configInputStream | InputStream |
writer | Writer |
זורק | |
---|---|
HarnessRuntimeException |