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)

void testFailed(TestDescription test, String trace)

void testIgnored(TestDescription test)

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

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

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

NameMangleListener

public NameMangleListener (ITestInvocationListener listener)

المعلمات
listener ITestInvocationListener

الطرق العامة

getSummary

public TestSummary getSummary ()

المرتجعات
TestSummary

invocationEnded

public void invocationEnded (long elapsedTime)

المعلمات
elapsedTime long

invocationFailed

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

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

المعلمات
test TestDescription

testMetrics

testFailed

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

testRunFailed

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) callback. من المفترض أن تُعرِض الطريقة اسم اختبار مختلفًا ربما، والذي سيتم تمريره إلى ITestInvocationListener في مرحلة ما بعد المعالجة والتي تم تحديدها أثناء الإنشاء.

يجب أن يحرص فريق التنفيذ على عدم تعديل اسم التنفيذ الأصلي.

يُرسِل التنفيذ التلقائي اسم عملية تنفيذ الاختبار الواردة بدون تعديل.

المعلمات
name String

المرتجعات
String