گزارشگر نتایج فرعی
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 |