SubprocessResultsReporter

public class SubprocessResultsReporter
extends Object implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults

java.lang.Object
   ↳ com.android.tradefed.result.SubprocessResultsReporter


تُنفِّذ ITestInvocationListener لتحديدها كـ result_reporter وتعيد توجيه نتائج الاختبارات وعمليات تشغيل الاختبارات وطلبات تشغيل الاختبارات من العملية الفرعية.

ملخّص

وظائف الإنشاء العامة

SubprocessResultsReporter()

الطرق العامة

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)

void 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)

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 void close ()

getSummary

public TestSummary getSummary ()

المرتجعات
TestSummary

invocationEnded

public void invocationEnded (long elapsedTime)

المعلمات
elapsedTime long

invocationFailed

public void invocationFailed (FailureDescription failure)

المعلمات
failure FailureDescription

invocationFailed

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

supportGranularResults

public boolean supportGranularResults ()

المرتجعات
boolean

testAssumptionFailure

public void testAssumptionFailure (TestDescription testId, 
                String trace)

المعلمات
testId TestDescription

trace String

testAssumptionFailure

public void testAssumptionFailure (TestDescription testId, 
                FailureDescription failure)

المعلمات
testId TestDescription

failure FailureDescription

testEnded

public void testEnded (TestDescription testId, 
                long endTime, 
                 metrics)

المعلمات
testId TestDescription

endTime long

metrics

testEnded

public void testEnded (TestDescription testId, 
                 metrics)

المعلمات
testId TestDescription

metrics

testFailed

public void testFailed (TestDescription testId, 
                FailureDescription failure)

المعلمات
testId TestDescription

failure FailureDescription

testFailed

public void testFailed (TestDescription testId, 
                String reason)

المعلمات
testId TestDescription

reason String

testIgnored

public void testIgnored (TestDescription testId)

المعلمات
testId TestDescription

testLog

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)

المعلمات
reason String

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)

المعلمات
arg0 long

testStarted

public void testStarted (TestDescription testId, 
                long startTime)

المعلمات
testId TestDescription

startTime long

testStarted

public void testStarted (TestDescription testId)

المعلمات
testId TestDescription