از 27 مارس 2025، توصیه می کنیم از android-latest-release
به جای aosp-main
برای ساختن و کمک به AOSP استفاده کنید. برای اطلاعات بیشتر، به تغییرات AOSP مراجعه کنید.
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
گزارشگر نتایج فرعی
public class SubprocessResultsReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.object |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
زیر کلاس های مستقیم شناخته شده LegacySubprocess ResultsReporter | اجرای منجمد گزارشگر نتایج فرعی که باید با نسخههای قبلی TF/CTS (به عنوان مثال 8+) سازگار باقی بماند، علیرغم تغییرات در سوپرکلاس آن. |
|
ITestInvocationListener
را پیاده میکند تا بهعنوان یک result_reporter مشخص شود و نتایج آزمایشها، اجراهای آزمایشی، فراخوانهای آزمایشی را از فرآیند فرعی ارسال کند.
خلاصه
روش های عمومی |
---|
void | close () |
TestSummary | getSummary () |
void | invocationEnded (long elapsedTime) |
void | invocationFailed (FailureDescription failure) |
void | invocationFailed (Throwable cause) |
void | invocationStarted (IInvocationContext context) |
void | logAssociation (String dataName, LogFile logFile) |
void | printEvent (String key, Object event) کمک کننده برای چاپ کلید رویداد و سپس شی json. |
void | setOutputTestLog (boolean outputTestLog) تعیین میکند که آیا باید از تست ثبتشده خروجی بگیریم یا نه. |
boolean | supportGranularResults () |
void | testAssumptionFailure (TestDescription testId, String trace) |
void | testAssumptionFailure (TestDescription testId, FailureDescription failure) |
void | testEnded (TestDescription testId, long endTime, metrics) testEnded (TestDescription testId, long endTime, metrics) |
void | testEnded (TestDescription testId, metrics) testEnded (TestDescription testId, metrics) |
void | testFailed (TestDescription testId, FailureDescription failure) |
void | testFailed (TestDescription testId, String reason) |
void | testIgnored (TestDescription testId) |
void | testLog (String dataName, LogDataType dataType, InputStreamSource dataStream) |
void | testModuleEnded () |
void | testModuleStarted (IInvocationContext moduleContext) |
void | testRunEnded (long time, runMetrics) testRunEnded (long time, runMetrics) |
void | testRunFailed (FailureDescription failure) |
void | testRunFailed (String reason) |
void | testRunStarted (String runName, int testCount, int attemptNumber) |
void | testRunStarted (String runName, int testCount) |
void | testRunStarted (String runName, int testCount, int attemptNumber, long startTime) |
void | testRunStopped (long arg0) |
void | testStarted (TestDescription testId, long startTime) |
void | testStarted (TestDescription testId) |
سازندگان عمومی
گزارشگر نتایج فرعی
public SubprocessResultsReporter ()
روش های عمومی
بستن
public void close ()
دریافت خلاصه
public TestSummary getSummary ()
فراخوان پایان یافت
public void invocationEnded (long elapsedTime)
پارامترها |
---|
elapsedTime | long |
فراخوان ناموفق بود
public void invocationFailed (FailureDescription failure)
پارامترها |
---|
failure | FailureDescription |
فراخوان ناموفق بود
public void invocationFailed (Throwable cause)
پارامترها |
---|
cause | Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
پارامترها |
---|
context | IInvocationContext |
logAssociation
public void logAssociation (String dataName,
LogFile logFile)
پارامترها |
---|
dataName | String |
logFile | LogFile |
printEvent
public void printEvent (String key,
Object event)
کمک کننده برای چاپ کلید رویداد و سپس شی json.
پارامترها |
---|
key | String |
event | Object |
setOutputTestLog
public void setOutputTestLog (boolean outputTestLog)
تعیین میکند که آیا باید از تست ثبتشده خروجی بگیریم یا نه.
پارامترها |
---|
outputTestLog | boolean |
supportGranular Results
public boolean supportGranularResults ()
آزمون فرض شکست
public void testAssumptionFailure (TestDescription testId,
String trace)
پارامترها |
---|
testId | TestDescription |
trace | String |
آزمون فرض شکست
public void testAssumptionFailure (TestDescription testId,
FailureDescription failure)
پارامترها |
---|
testId | TestDescription |
failure | FailureDescription |
تست پایان یافت
public void testEnded (TestDescription testId,
long endTime,
metrics)
پارامترها |
---|
testId | TestDescription |
endTime | long |
metrics | |
تست پایان یافت
public void testEnded (TestDescription testId,
metrics)
پارامترها |
---|
testId | TestDescription |
metrics | |
تست شکست خورد
public void testFailed (TestDescription testId,
FailureDescription failure)
پارامترها |
---|
testId | TestDescription |
failure | FailureDescription |
تست شکست خورد
public void testFailed (TestDescription testId,
String reason)
پارامترها |
---|
testId | TestDescription |
reason | String |
تست نادیده گرفته شد
public void testIgnored (TestDescription testId)
پارامترها |
---|
testId | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
پارامترها |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
پارامترها |
---|
moduleContext | IInvocationContext |
testRunEnded
public void testRunEnded (long time,
runMetrics)
پارامترها |
---|
time | long |
runMetrics | |
testRunFailed
public void testRunFailed (FailureDescription failure)
پارامترها |
---|
failure | FailureDescription |
testRunFailed
public void testRunFailed (String reason)
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
پارامترها |
---|
runName | String |
testCount | int |
attemptNumber | int |
testRunStarted
public void testRunStarted (String runName,
int testCount)
پارامترها |
---|
runName | String |
testCount | int |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
پارامترها |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
testRunStopped
public void testRunStopped (long arg0)
تست شروع شد
public void testStarted (TestDescription testId,
long startTime)
پارامترها |
---|
testId | TestDescription |
startTime | long |
تست شروع شد
public void testStarted (TestDescription testId)
پارامترها |
---|
testId | TestDescription |
،
گزارشگر نتایج فرعی
public class SubprocessResultsReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.object |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
زیر کلاس های مستقیم شناخته شده LegacySubprocess ResultsReporter | اجرای منجمد گزارشگر نتایج فرعی که باید با نسخههای قبلی TF/CTS (به عنوان مثال 8+) سازگار باقی بماند، علیرغم تغییرات در سوپرکلاس آن. |
|
ITestInvocationListener
را پیاده میکند تا بهعنوان یک result_reporter مشخص شود و نتایج آزمایشها، اجراهای آزمایشی، فراخوانهای آزمایشی را از فرآیند فرعی ارسال کند.
خلاصه
روش های عمومی |
---|
void | close () |
TestSummary | getSummary () |
void | invocationEnded (long elapsedTime) |
void | invocationFailed (FailureDescription failure) |
void | invocationFailed (Throwable cause) |
void | invocationStarted (IInvocationContext context) |
void | logAssociation (String dataName, LogFile logFile) |
void | printEvent (String key, Object event) کمک کننده برای چاپ کلید رویداد و سپس شی json. |
void | setOutputTestLog (boolean outputTestLog) تعیین میکند که آیا باید از تست ثبتشده خروجی بگیریم یا نه. |
boolean | supportGranularResults () |
void | testAssumptionFailure (TestDescription testId, String trace) |
void | testAssumptionFailure (TestDescription testId, FailureDescription failure) |
void | testEnded (TestDescription testId, long endTime, metrics) testEnded (TestDescription testId, long endTime, metrics) |
void | testEnded (TestDescription testId, metrics) testEnded (TestDescription testId, metrics) |
void | testFailed (TestDescription testId, FailureDescription failure) |
void | testFailed (TestDescription testId, String reason) |
void | testIgnored (TestDescription testId) |
void | testLog (String dataName, LogDataType dataType, InputStreamSource dataStream) |
void | testModuleEnded () |
void | testModuleStarted (IInvocationContext moduleContext) |
void | testRunEnded (long time, runMetrics) testRunEnded (long time, runMetrics) |
void | testRunFailed (FailureDescription failure) |
void | testRunFailed (String reason) |
void | testRunStarted (String runName, int testCount, int attemptNumber) |
void | testRunStarted (String runName, int testCount) |
void | testRunStarted (String runName, int testCount, int attemptNumber, long startTime) |
void | testRunStopped (long arg0) |
void | testStarted (TestDescription testId, long startTime) |
void | testStarted (TestDescription testId) |
سازندگان عمومی
گزارشگر نتایج فرعی
public SubprocessResultsReporter ()
روش های عمومی
بستن
public void close ()
دریافت خلاصه
public TestSummary getSummary ()
فراخوان پایان یافت
public void invocationEnded (long elapsedTime)
پارامترها |
---|
elapsedTime | long |
فراخوان ناموفق بود
public void invocationFailed (FailureDescription failure)
پارامترها |
---|
failure | FailureDescription |
فراخوان ناموفق بود
public void invocationFailed (Throwable cause)
پارامترها |
---|
cause | Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
پارامترها |
---|
context | IInvocationContext |
logAssociation
public void logAssociation (String dataName,
LogFile logFile)
پارامترها |
---|
dataName | String |
logFile | LogFile |
printEvent
public void printEvent (String key,
Object event)
کمک کننده برای چاپ کلید رویداد و سپس شی json.
پارامترها |
---|
key | String |
event | Object |
setOutputTestLog
public void setOutputTestLog (boolean outputTestLog)
تعیین میکند که آیا باید از تست ثبتشده خروجی بگیریم یا نه.
پارامترها |
---|
outputTestLog | boolean |
supportGranular Results
public boolean supportGranularResults ()
testAssumptionشکست
public void testAssumptionFailure (TestDescription testId,
String trace)
پارامترها |
---|
testId | TestDescription |
trace | String |
آزمون فرض شکست
public void testAssumptionFailure (TestDescription testId,
FailureDescription failure)
پارامترها |
---|
testId | TestDescription |
failure | FailureDescription |
تست پایان یافت
public void testEnded (TestDescription testId,
long endTime,
metrics)
پارامترها |
---|
testId | TestDescription |
endTime | long |
metrics | |
تست پایان یافت
public void testEnded (TestDescription testId,
metrics)
پارامترها |
---|
testId | TestDescription |
metrics | |
تست شکست خورد
public void testFailed (TestDescription testId,
FailureDescription failure)
پارامترها |
---|
testId | TestDescription |
failure | FailureDescription |
تست شکست خورد
public void testFailed (TestDescription testId,
String reason)
پارامترها |
---|
testId | TestDescription |
reason | String |
تست نادیده گرفته شد
public void testIgnored (TestDescription testId)
پارامترها |
---|
testId | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
پارامترها |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
پارامترها |
---|
moduleContext | IInvocationContext |
testRunEnded
public void testRunEnded (long time,
runMetrics)
پارامترها |
---|
time | long |
runMetrics | |
testRunFailed
public void testRunFailed (FailureDescription failure)
پارامترها |
---|
failure | FailureDescription |
testRunFailed
public void testRunFailed (String reason)
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
پارامترها |
---|
runName | String |
testCount | int |
attemptNumber | int |
testRunStarted
public void testRunStarted (String runName,
int testCount)
پارامترها |
---|
runName | String |
testCount | int |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
پارامترها |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
testRunStopped
public void testRunStopped (long arg0)
تست شروع شد
public void testStarted (TestDescription testId,
long startTime)
پارامترها |
---|
testId | TestDescription |
startTime | long |
تست شروع شد
public void testStarted (TestDescription testId)
پارامترها |
---|
testId | TestDescription |
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-03-26 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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"]],["تاریخ آخرین بهروزرسانی 2025-03-26 بهوقت ساعت هماهنگ جهانی."],[],[]]