IInstrumentationResultParser

public interface IInstrumentationResultParser
implements IShellOutputReceiver

com.android.ddmlib.testrunner.IInstrumentationResultParser


यह शेल से चलाए गए इंस्ट्रुमेंटेशन टेस्ट के नतीजों को पार्स करने के लिए इंटरफ़ेस है.

खास जानकारी

नेस्टेड क्लास

class IInstrumentationResultParser.SessionResultCodes

किसी इंस्ट्रुमेंट सेशन के नतीजे के कोड. 

class IInstrumentationResultParser.StatusCodes

टेस्ट के नतीजे के स्टेटस कोड. 

class IInstrumentationResultParser.StatusKeys

टेस्ट के स्टेटस की काम की कुंजियां. 

पब्लिक मेथड

abstract void cancel()

टेस्ट रन को रद्द करने का अनुरोध करता है.

abstract void handleTestRunFailed(String errorMsg)

इस तरीके को तब कॉल किया जाता है, जब "am instrument" कमांड किसी अपवाद की वजह से क्रैश हो जाती है.

पब्लिक मेथड

अभी नहीं

public abstract void cancel ()

टेस्ट रन को रद्द करने का अनुरोध करता है.

handleTestRunFailed

public abstract void handleTestRunFailed (String errorMsg)

इस तरीके को तब कॉल किया जाता है, जब "am instrument" कमांड किसी अपवाद की वजह से क्रैश हो जाती है. अगर टेस्ट के दौरान क्रैश होता है, तो रजिस्टर किए गए सभी लिसनर को ITestRunListener.testRunFailed और फिर ITestRunListener.testRunEnded की सूचना दी जानी चाहिए.

पैरामीटर
errorMsg String