NameMangleListener

public abstract class NameMangleListener
extends Object implements ITestInvocationListener

java.lang.Object
com.android.tradefed.result.NameMangleListener


مستمع وكيل لترجمة طريقة الاختبار والفئات وأسماء الحزم عند الإبلاغ عن النتائج.

ملخص

المقاولين العامة

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

المقاولين العامة

NameMangleListener

public NameMangleListener (ITestInvocationListener listener)

حدود
listener ITestInvocationListener

الأساليب العامة

getSummary

public TestSummary getSummary ()

عائدات
TestSummary

انتهت الدعوة

public void invocationEnded (long elapsedTime)

حدود
elapsedTime long

فشل الاستدعاء

public void invocationFailed (Throwable cause)

حدود
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

حدود
context IInvocationContext

testAssumptionFailure

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

testIgnored

public void testIgnored (TestDescription test)

حدود
test TestDescription

testLog

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

testRunStopped

public void testRunStopped (long elapsedTime)

حدود
elapsedTime long

testStarted

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