تقرير نتائج العمليات الفرعية
public class SubprocessResultsReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.Object |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
الفئات الفرعية المباشرة المعروفة LegacySubprocessResultsReporter | تنفيذ مجمد لمراسل نتائج العملية الفرعية والذي يجب أن يظل متوافقًا مع الإصدارات السابقة من TF/CTS (على سبيل المثال 8+)، على الرغم من التغييرات في فئته الفائقة. |
|
ينفذ ITestInvocationListener
ليتم تحديده كنتيجة_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 ()
getSummary
public TestSummary getSummary ()
انتهت الدعوة
public void invocationEnded (long elapsedTime)
فشل الاستدعاء
public void invocationFailed (FailureDescription failure)
حدود |
---|
failure | FailureDescription |
فشل الاستدعاء
public void invocationFailed (Throwable cause)
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 |
supportGranularResults
public boolean supportGranularResults ()
testAssumptionFailure
public void testAssumptionFailure (TestDescription testId,
String trace)
حدود |
---|
testId | TestDescription |
trace | String |
testAssumptionFailure
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 |
testIgnored
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 | |
فشل تشغيل الاختبار
public void testRunFailed (FailureDescription failure)
حدود |
---|
failure | FailureDescription |
فشل تشغيل الاختبار
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)
testStarted
public void testStarted (TestDescription testId,
long startTime)
حدود |
---|
testId | TestDescription |
startTime | long |
testStarted
public void testStarted (TestDescription testId)
حدود |
---|
testId | TestDescription |