नाममंगलश्रोता

public abstract class NameMangleListener
extends Object implements ITestInvocationListener

java.lang.ऑब्जेक्ट
com.android.tradefed.result.NameMangelListener


परिणाम रिपोर्ट किए जाने पर परीक्षण विधि, वर्ग और पैकेज नामों का अनुवाद करने के लिए एक प्रॉक्सी श्रोता।

सारांश

सार्वजनिक निर्माणकर्ता

NameMangleListener (ITestInvocationListener listener)

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

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void testAssumptionFailure (TestDescription test, String trace)

void testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics)

void testFailed (TestDescription test, String trace)

void testIgnored (TestDescription test)

void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (String errorMessage)

void testRunStarted (String runName, int testCount)

void testRunStopped (long elapsedTime)

void testStarted (TestDescription test)

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

TestDescription mangleTestId (TestDescription test)

यह विधि उन सभी TestDescription पर चलती है जो testStarted(com.android.tradefed.result.TestDescription) , testFailed(com.android.tradefed.result.TestDescription, String) और ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, HashMap) कॉलबैक।

String mangleTestRunName (String name)

यह विधि उन सभी टेस्ट रन नामों पर चलती है जो testRunStarted(String, int) कॉलबैक में पास किए जाते हैं।

सार्वजनिक निर्माणकर्ता

नाममंगलश्रोता

public NameMangleListener (ITestInvocationListener listener)

पैरामीटर
listener ITestInvocationListener

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

सारांश प्राप्त करें

public TestSummary getSummary ()

रिटर्न
TestSummary

मंगलाचरणसमाप्त

public void invocationEnded (long elapsedTime)

पैरामीटर
elapsedTime long

मंगलाचरणविफल

public void invocationFailed (Throwable cause)

पैरामीटर
cause Throwable

मंगलाचरणशुरू हुआ

public void invocationStarted (IInvocationContext context)

पैरामीटर
context IInvocationContext

परीक्षणधारणाविफलता

public void testAssumptionFailure (TestDescription test, 
                String trace)

पैरामीटर
test TestDescription

trace String

परीक्षण समाप्त

public void testEnded (TestDescription test, 
                 testMetrics)

पैरामीटर
test TestDescription

testMetrics

परीक्षण विफल

public void testFailed (TestDescription test, 
                String trace)

पैरामीटर
test TestDescription

trace String

परीक्षणअनदेखा

public void testIgnored (TestDescription test)

पैरामीटर
test TestDescription

परीक्षणलॉग

public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)

पैरामीटर
dataName String

dataType LogDataType

dataStream InputStreamSource

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

पैरामीटर
elapsedTime long

runMetrics

परीक्षण चलाने में विफल

public void testRunFailed (String errorMessage)

पैरामीटर
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

पैरामीटर
runName String

testCount int

टेस्टरनस्टॉप किया गया

public void testRunStopped (long elapsedTime)

पैरामीटर
elapsedTime long

परीक्षण प्रारंभ

public void testStarted (TestDescription test)

पैरामीटर
test TestDescription

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

mangleTestId

protected TestDescription mangleTestId (TestDescription test)

यह विधि उन सभी TestDescription पर चलती है जो testStarted(com.android.tradefed.result.TestDescription) , testFailed(com.android.tradefed.result.TestDescription, String) और ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, HashMap) कॉलबैक। विधि को संभावित रूप से भिन्न TestDescription लौटाना चाहिए जिसे निर्माण के दौरान निर्दिष्ट डाउनस्ट्रीम ITestInvocationListener को पास किया जाएगा।

कार्यान्वयन में सावधानी बरतनी चाहिए कि मूल TestDescription संशोधित न किया जाए।

डिफ़ॉल्ट कार्यान्वयन आने वाले पहचानकर्ता को असंशोधित के माध्यम से पास करता है।

पैरामीटर
test TestDescription

रिटर्न
TestDescription

mangleTestRunName

protected String mangleTestRunName (String name)

यह विधि उन सभी टेस्ट रन नामों पर चलती है जो testRunStarted(String, int) कॉलबैक में पास किए जाते हैं। विधि को संभावित रूप से भिन्न परीक्षण रन नाम लौटाना चाहिए जिसे निर्माण के दौरान निर्दिष्ट डाउनस्ट्रीम ITestInvocationListener को पास किया जाएगा।

कार्यान्वयन में सावधानी बरतनी चाहिए कि मूल रन नाम को संशोधित न किया जाए।

डिफ़ॉल्ट कार्यान्वयन आने वाले टेस्ट रन नाम को अनमॉडिफाइड के माध्यम से पास करता है।

पैरामीटर
name String

रिटर्न
String