SubprocessResultsReporter
public class SubprocessResultsReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.Object |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
คลาสย่อยโดยตรงที่รู้จัก LegacySubprocessResultsReporter | การใช้งานแบบแช่แข็งของผู้รายงานผลลัพธ์กระบวนการย่อยซึ่งควรยังคงเข้ากันได้กับ 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) |
ผู้รับเหมาก่อสร้างสาธารณะ
SubprocessResultsReporter
public SubprocessResultsReporter ()
วิธีการสาธารณะ
รับสรุป
public TestSummary getSummary ()
การร้องขอสิ้นสุดแล้ว
public void invocationEnded (long elapsedTime)
พารามิเตอร์ |
---|
elapsedTime | long |
การร้องขอล้มเหลว
public void invocationFailed (FailureDescription failure)
พารามิเตอร์ |
---|
failure | FailureDescription |
การร้องขอล้มเหลว
public void invocationFailed (Throwable cause)
พารามิเตอร์ |
---|
cause | Throwable |
การร้องขอเริ่มต้นแล้ว
public void invocationStarted (IInvocationContext context)
พารามิเตอร์ |
---|
context | IInvocationContext |
สมาคมล็อก
public void logAssociation (String dataName,
LogFile logFile)
พารามิเตอร์ |
---|
dataName | String |
logFile | LogFile |
งานพิมพ์
public void printEvent (String key,
Object event)
ตัวช่วยในการพิมพ์คีย์เหตุการณ์แล้วตามด้วยวัตถุ json
พารามิเตอร์ |
---|
key | String |
event | Object |
setOutputTestLog
public void setOutputTestLog (boolean outputTestLog)
กำหนดว่าเราควรส่งออกการทดสอบที่บันทึกไว้หรือไม่
พารามิเตอร์ |
---|
outputTestLog | boolean |
สนับสนุนผลลัพธ์แบบละเอียด
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 |
ทดสอบโมดูลสิ้นสุดแล้ว
public void testModuleEnded ()
ทดสอบโมดูลเริ่มต้นแล้ว
public void testModuleStarted (IInvocationContext moduleContext)
พารามิเตอร์ |
---|
moduleContext | IInvocationContext |
ทดสอบรันสิ้นสุดแล้ว
public void testRunEnded (long time,
runMetrics)
พารามิเตอร์ |
---|
time | long |
runMetrics | |
testRunFailed
public void testRunFailed (FailureDescription failure)
พารามิเตอร์ |
---|
failure | FailureDescription |
testRunFailed
public void testRunFailed (String reason)
พารามิเตอร์ |
---|
reason | String |
ทดสอบ RunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
พารามิเตอร์ |
---|
runName | String |
testCount | int |
attemptNumber | int |
ทดสอบ RunStarted
public void testRunStarted (String runName,
int testCount)
พารามิเตอร์ |
---|
runName | String |
testCount | int |
ทดสอบ RunStarted
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 |