ProtoResultReporter

public abstract class ProtoResultReporter
extends Object implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults

java.lang.Object
   ↳ com.android.tradefed.result.proto.ProtoResultReporter


नतीजे की जानकारी देने वाला टूल, सभी नतीजों के साथ एक TestRecord प्रोटोबबल बनाता है. processFinalProto(com.android.tradefed.result.proto.TestRecordProto.TestRecord) में फ़ाइनल प्रोटो के साथ क्या करना है, यह तय करने के लिए इसे बड़ा किया जाना चाहिए.

खास जानकारी

पब्लिक कंस्ट्रक्टर

ProtoResultReporter()

सार्वजनिक तरीके

final void invocationEnded(long elapsedTime)
void invocationFailed(FailureDescription failure)
void invocationFailed(Throwable cause)
final void invocationStarted(IInvocationContext context)
final void logAssociation(String dataName, LogFile logFile)
void processFinalProto(TestRecordProto.TestRecord finalRecord)

सभी नतीजों के साथ फ़ाइनल प्रोटो को मैनेज करना.

void processStartInvocation(TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)

invocationStarted(com.android.tradefed.invoker.IInvocationContext) होने के बाद, कुछ हिस्से के लिए अनुरोध करने वाले टेस्ट रिकॉर्ड प्रोटो को मैनेज करना.

void processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)

ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) होने के बाद, फ़ाइनल किए गए टेस्ट केस रिकॉर्ड प्रोटो को मैनेज करना.

void processTestCaseStarted(TestRecordProto.TestRecord testCaseStartedRecord)

testStarted(com.android.tradefed.result.TestDescription, long) होने के बाद, टेस्ट केस के रिकॉर्ड प्रोटो के कुछ हिस्से को मैनेज करना.

void processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)

testModuleEnded() होने के बाद, फ़ाइनल किए गए मॉड्यूल रिकॉर्ड प्रोटो को मैनेज करना.

void processTestModuleStarted(TestRecordProto.TestRecord moduleStartRecord)

testModuleStarted(com.android.tradefed.invoker.IInvocationContext) होने के बाद, मॉड्यूल के रिकॉर्ड प्रोटो के कुछ हिस्से को मैनेज करना.

void processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

ITestLifeCycleReceiver.testRunEnded(long, HashMap) के होने के बाद, प्रोटोटाइप के तौर पर तैयार किए गए रन रिकॉर्ड को मैनेज करना.

void processTestRunStarted(TestRecordProto.TestRecord runStartedRecord)

testRunStarted(String, int) होने के बाद, टेस्ट रन के कुछ हिस्से के रिकॉर्ड प्रोटो को मैनेज करना.

boolean supportGranularResults()
final void testAssumptionFailure(TestDescription test, String trace)
final void testAssumptionFailure(TestDescription test, FailureDescription failure)
final void testEnded(TestDescription test, long endTime, testMetrics)
void testEnded(TestDescription test, testMetrics)
final void testFailed(TestDescription test, FailureDescription failure)
final void testFailed(TestDescription test, String trace)
final void testIgnored(TestDescription test)
final void testModuleEnded()
final void testModuleStarted(IInvocationContext moduleContext)
final void testRunEnded(long elapsedTimeMillis, runMetrics)
final void testRunFailed(FailureDescription failure)
final void testRunFailed(String errorMessage)
void testRunStarted(String runName, int testCount, int attemptNumber)
final void testRunStarted(String runName, int testCount)
void testRunStarted(String runName, int testCount, int attemptNumber, long startTime)
final void testStarted(TestDescription test, long startTime)
final void testStarted(TestDescription test)

सुरक्षित तरीके

TestRecordProto.ChildReference createModuleChildReference(TestRecordProto.TestRecord record)

किसी मॉड्यूल के लिए चाइल्ड रेफ़रंस बनाता है.

पब्लिक कंस्ट्रक्टर

ProtoResultReporter

public ProtoResultReporter ()

सार्वजनिक तरीके

invocationEnded

public final void invocationEnded (long elapsedTime)

पैरामीटर
elapsedTime long

invocationFailed

public void invocationFailed (FailureDescription failure)

पैरामीटर
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

पैरामीटर
cause Throwable

invocationStarted

public final void invocationStarted (IInvocationContext context)

पैरामीटर
context IInvocationContext

logAssociation

public final void logAssociation (String dataName, 
                LogFile logFile)

पैरामीटर
dataName String

logFile LogFile

processFinalProto

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

सभी नतीजों के साथ फ़ाइनल प्रोटो को मैनेज करना.

पैरामीटर
finalRecord TestRecordProto.TestRecord: सभी इंवोकेशन के नतीजों के साथ, प्रोटोटाइप का फ़ाइनल वर्शन.

processStartInvocation

public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, 
                IInvocationContext invocationContext)

invocationStarted(com.android.tradefed.invoker.IInvocationContext) होने के बाद, कुछ हिस्से के लिए अनुरोध करने वाले टेस्ट रिकॉर्ड प्रोटो को मैनेज करना.

पैरामीटर
invocationStartRecord TestRecordProto.TestRecord: invocationStart के बाद, आंशिक प्रोटो पॉप्युलेट होता है.

invocationContext IInvocationContext: कॉल करने का तरीका IInvocationContext.

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) होने के बाद, फ़ाइनल किए गए टेस्ट केस रिकॉर्ड प्रोटो को मैनेज करना.

पैरामीटर
testCaseRecord TestRecordProto.TestRecord: टेस्ट केस दिखाने वाला प्रोटोटाइप.

processTestCaseStarted

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

testStarted(com.android.tradefed.result.TestDescription, long) होने के बाद, टेस्ट केस के रिकॉर्ड प्रोटो के कुछ हिस्से को मैनेज करना.

पैरामीटर
testCaseStartedRecord TestRecordProto.TestRecord: टेस्ट केस को दिखाने वाला प्रोटो का हिस्सा.

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

testModuleEnded() होने के बाद, फ़ाइनल किए गए मॉड्यूल रिकॉर्ड प्रोटो को मैनेज करना.

पैरामीटर
moduleRecord TestRecordProto.TestRecord: मॉड्यूल को दिखाने वाला प्रोटोटाइप.

processTestModuleStarted

public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

testModuleStarted(com.android.tradefed.invoker.IInvocationContext) होने के बाद, मॉड्यूल के रिकॉर्ड प्रोटो के कुछ हिस्से को मैनेज करना.

पैरामीटर
moduleStartRecord TestRecordProto.TestRecord: मॉड्यूल को दिखाने वाला प्रोटो का कुछ हिस्सा.

processTestRunEnded

public void processTestRunEnded (TestRecordProto.TestRecord runRecord, 
                boolean moduleInProgress)

ITestLifeCycleReceiver.testRunEnded(long, HashMap) के होने के बाद, प्रोटोटाइप के तौर पर तैयार किए गए रन रिकॉर्ड को मैनेज करना.

पैरामीटर
runRecord TestRecordProto.TestRecord: रन को दिखाने वाला प्रोटोटाइप.

moduleInProgress boolean: मॉड्यूल की प्रोसेस जारी है या नहीं.

processTestRunStarted

public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

testRunStarted(String, int) होने के बाद, टेस्ट रन के कुछ हिस्से के रिकॉर्ड प्रोटो को मैनेज करना.

पैरामीटर
runStartedRecord TestRecordProto.TestRecord: रन को दिखाने वाला प्रोटो का हिस्सा.

supportGranularResults

public boolean supportGranularResults ()

रिटर्न
boolean

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                String trace)

पैरामीटर
test TestDescription

trace String

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

पैरामीटर
test TestDescription

failure FailureDescription

testEnded

public final void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

पैरामीटर
test TestDescription

endTime long

testMetrics

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

पैरामीटर
test TestDescription

testMetrics

testFailed

public final void testFailed (TestDescription test, 
                FailureDescription failure)

पैरामीटर
test TestDescription

failure FailureDescription

testFailed

public final void testFailed (TestDescription test, 
                String trace)

पैरामीटर
test TestDescription

trace String

testIgnored

public final void testIgnored (TestDescription test)

पैरामीटर
test TestDescription

testModuleEnded

public final void testModuleEnded ()

testModuleStarted

public final void testModuleStarted (IInvocationContext moduleContext)

पैरामीटर
moduleContext IInvocationContext

testRunEnded

public final void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

पैरामीटर
elapsedTimeMillis long

runMetrics

testRunFailed

public final void testRunFailed (FailureDescription failure)

पैरामीटर
failure FailureDescription

testRunFailed

public final void testRunFailed (String errorMessage)

पैरामीटर
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber)

पैरामीटर
runName String

testCount int

attemptNumber int

testRunStarted

public final 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

testStarted

public final void testStarted (TestDescription test, 
                long startTime)

पैरामीटर
test TestDescription

startTime long

testStarted

public final void testStarted (TestDescription test)

पैरामीटर
test TestDescription

सुरक्षित तरीके

createModuleChildReference

protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

किसी मॉड्यूल के लिए चाइल्ड रेफ़रंस बनाता है.

पैरामीटर
record TestRecordProto.TestRecord

रिटर्न
TestRecordProto.ChildReference