মডিউল শ্রোতা

public class ModuleListener
extends CollectingTestListener

java.lang.অবজেক্ট
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.testtype.suite.ModuleListener


ফলাফলের তালিকা সংগ্রহ করার জন্য প্রতিটি মডিউলের প্রতিটি IRemoteTest এর সাথে শ্রোতা সংযুক্ত।

সারসংক্ষেপ

পাবলিক কনস্ট্রাক্টর

ModuleListener (ITestInvocationListener listener)

কনস্ট্রাক্টর

পাবলিক পদ্ধতি

boolean hasLastAttemptFailed ()

শ্রোতার শেষ পুনঃপ্রচেষ্টা সেশন ব্যর্থ হয়েছে কিনা তা ফেরত দেয়।

void logAssociation (String dataName, LogFile logFile)

void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)

প্রচেষ্টাটি বিচ্ছিন্ন হিসাবে রিপোর্ট করা উচিত কিনা তা সেট করে।

void setCollectTestsOnly (boolean collectTestsOnly)

আমরা শুধুমাত্র পরীক্ষা সংগ্রহ করছি কিনা তা সেট করে।

void setMarkTestsSkipped (boolean skip)

সব পরীক্ষার কেস বাদ দিয়ে চিহ্নিত করা হোক বা না হোক।

void testAssumptionFailure (TestDescription test, String trace)
void testAssumptionFailure (TestDescription test, FailureDescription failure)
void testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)

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

void testFailed (TestDescription test, FailureDescription failure)

void testFailed (TestDescription test, String trace)

void testIgnored (TestDescription test)
void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)

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

void testRunFailed (FailureDescription failure)

void testRunFailed (String errorMessage)

void testRunStarted (String name, int numTests, int attemptNumber)

void testRunStarted (String name, int numTests, int attemptNumber, long startTime)

void testStarted (TestDescription test, long startTime)

পাবলিক কনস্ট্রাক্টর

মডিউল শ্রোতা

public ModuleListener (ITestInvocationListener listener)

কনস্ট্রাক্টর

পরামিতি
listener ITestInvocationListener

পাবলিক পদ্ধতি

hasLastAttemptFailed

public boolean hasLastAttemptFailed ()

শ্রোতার শেষ পুনঃপ্রচেষ্টা সেশন ব্যর্থ হয়েছে কিনা তা ফেরত দেয়।

রিটার্নস
boolean

লগ অ্যাসোসিয়েশন

public void logAssociation (String dataName, 
                LogFile logFile)

পরামিতি
dataName String

logFile LogFile

setAttemptIsolation

public void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)

প্রচেষ্টাটি বিচ্ছিন্ন হিসাবে রিপোর্ট করা উচিত কিনা তা সেট করে।

পরামিতি
isolation CurrentInvocation.IsolationGrade

শুধুমাত্র সংকলন পরীক্ষা

public void setCollectTestsOnly (boolean collectTestsOnly)

আমরা শুধুমাত্র পরীক্ষা সংগ্রহ করছি কিনা তা সেট করে।

পরামিতি
collectTestsOnly boolean

setMarkTestsskipped

public void setMarkTestsSkipped (boolean skip)

সব পরীক্ষার কেস বাদ দিয়ে চিহ্নিত করা হোক বা না হোক।

পরামিতি
skip boolean

পরীক্ষা অনুমান ব্যর্থতা

public void testAssumptionFailure (TestDescription test, 
                String trace)

পরামিতি
test TestDescription

trace String

পরীক্ষা অনুমান ব্যর্থতা

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

পরামিতি
test TestDescription

failure FailureDescription

পরীক্ষা শেষ

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

পরামিতি
test TestDescription

endTime long

testMetrics

পরীক্ষা শেষ

public void testEnded (TestDescription test, 
                 testMetrics)

পরামিতি
test TestDescription

testMetrics

পরীক্ষায় ব্যর্থ

public void testFailed (TestDescription test, 
                FailureDescription failure)

পরামিতি
test TestDescription

failure FailureDescription

পরীক্ষায় ব্যর্থ

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

testLog সংরক্ষিত

public void testLogSaved (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream, 
                LogFile logFile)

পরামিতি
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testRunended

public void testRunEnded (long elapsedTime, 
                 runMetrics)

পরামিতি
elapsedTime long

runMetrics

testRunfailed

public void testRunFailed (FailureDescription failure)

পরামিতি
failure FailureDescription

testRunfailed

public void testRunFailed (String errorMessage)

পরামিতি
errorMessage String

testRunStarted

public void testRunStarted (String name, 
                int numTests, 
                int attemptNumber)

পরামিতি
name String

numTests int

attemptNumber int

testRunStarted

public void testRunStarted (String name, 
                int numTests, 
                int attemptNumber, 
                long startTime)

পরামিতি
name String

numTests int

attemptNumber int

startTime long

পরীক্ষা শুরু হয়েছে

public void testStarted (TestDescription test, 
                long startTime)

পরামিতি
test TestDescription

startTime long