קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ISandbox
public
interface
ISandbox
com.android.tradefed.sandbox.ISandbox
|
ממשק שמגדיר ארגז חול שיכול לשמש להרצת הפעלה.
סיכום
שיטות ציבוריות |
abstract
String
|
createClasspath(File workingDir)
יצירת נתיב כיתה שמבוסס על הסביבה וספריית העבודה שהוחזרה על ידי getTradefedSandboxEnvironment(com.android.tradefed.invoker.IInvocationContext, com.android.tradefed.config.IConfiguration, String[]) .
|
abstract
IConfiguration
|
createThinLauncherConfig(String[] args, IKeyStoreClient keyStoreClient, IRunUtil runUtil, File globalConfig)
מצב מיוחד מנותק מההפעלה הראשית: כאשר נראה שלא קיימת הגדרה בתוך
ההורה, אנחנו נעזרים במרכז אפליקציות דק שבו אנחנו מנסים להגדיר את ה-Sandbox בינתיים
ולמלא את ספריית העבודה כדי ליצור את ההגדרות באופן מלא
גרסאות dir.
|
default
|
discoverTests(IInvocationContext context, IConfiguration configuration)
שלב משנה של prepareEnvironment(com.android.tradefed.invoker.IInvocationContext, com.android.tradefed.config.IConfiguration, com.android.tradefed.result.ITestInvocationListener) שמזהה בדיקות אם SandboxOptions.shouldUseTestDiscovery() מופעלת.
|
default
|
discoverTests(IInvocationContext context, IConfiguration configuration, ITestLogger logger)
|
default
IFolderBuildInfo
|
fetchSandboxExtraArtifacts(IInvocationContext context, IConfiguration configuration, String[] args)
שלב משנה של prepareEnvironment(com.android.tradefed.invoker.IInvocationContext, com.android.tradefed.config.IConfiguration, com.android.tradefed.result.ITestInvocationListener) שמאחזר קבצים נוספים שדרושים ל-Sandbox.
|
default
File
|
getTradefedSandboxEnvironment(IInvocationContext context, IConfiguration nonVersionedConfig, String[] args)
מחזירה את TF של סביבת ארגז החול לשימוש בהסתמך על הארגומנטים בשורת הפקודה.
|
default
File
|
getTradefedSandboxEnvironment(IInvocationContext context, IConfiguration nonVersionedConfig, ITestLogger logger, String[] args)
|
abstract
Exception
|
prepareEnvironment(IInvocationContext context, IConfiguration configuration, ITestInvocationListener listener)
מכינים את הסביבה לפעולה תקינה של ארגז החול.
|
abstract
CommandResult
|
run(TestInformation info, IConfiguration configuration, ITestLogger logger)
מפעילים את ארגז החול עם הסביבה שהוגדרה.
|
abstract
void
|
tearDown()
מוחקים מצבים, קבצים או סביבה שהשתנו.
|
שיטות ציבוריות
createThinLauncherConfig
public abstract IConfiguration createThinLauncherConfig (String[] args,
IKeyStoreClient keyStoreClient,
IRunUtil runUtil,
File globalConfig)
מצב מיוחד מנותק מההפעלה הראשית: כאשר נראה שלא קיימת הגדרה בתוך
ההורה, אנחנו נעזרים במרכז אפליקציות דק שבו אנחנו מנסים להגדיר את ה-Sandbox בינתיים
ולמלא את ספריית העבודה כדי ליצור את ההגדרות באופן מלא
גרסאות dir.
פרמטרים |
args |
String : הארגומנטים בשורת הפקודה המקורית. |
keyStoreClient |
IKeyStoreClient : לקוח מאגר המפתחות הנוכחי שבו צריך להשתמש כדי ליצור הגדרות אישיות. |
runUtil |
IRunUtil : ה-IRunUtil הנוכחי להרצת פקודות מארח. |
globalConfig |
File : ההגדרה הגלובלית שמשמשת להרצת תהליכי משנה של TF. |
החזרות |
IConfiguration |
קובץ שמצביע על קובץ ה-XML של התצורה TF עבור אובייקטים מסוג NON_VERSIONED. החזרות
null אם לא ניתן ליצור הגדרה דקה של מרכז האפליקציות. |
סביבת getTradeifiedSandbox
public File getTradefedSandboxEnvironment (IInvocationContext context,
IConfiguration nonVersionedConfig,
String[] args)
מחזירה את TF של סביבת ארגז החול לשימוש בהסתמך על הארגומנטים בשורת הפקודה.
פרמטרים |
context |
IInvocationContext : IInvocationContext של ההורה. |
nonVersionedConfig |
IConfiguration : ה-IConfiguration שמייצג את האובייקטים ללא גרסאות. |
args |
String : הארגומנטים בשורת הפקודה. |
החזרות |
File |
ספריית ERROR(/File) שמכילה את צנצנות סביבת ה-TF של ארגז החול. |
סביבת getTradeifiedSandbox
public File getTradefedSandboxEnvironment (IInvocationContext context,
IConfiguration nonVersionedConfig,
ITestLogger logger,
String[] args)
פרמטרים |
context |
IInvocationContext |
nonVersionedConfig |
IConfiguration |
logger |
ITestLogger |
args |
String |
פירעון
public abstract void tearDown ()
מוחקים מצבים, קבצים או סביבה שהשתנו.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-22 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2024-08-22 (שעון UTC)."],[],[]]