डिवाइसJUnit4ClassRunner

public class DeviceJUnit4ClassRunner
extends BlockJUnit4ClassRunner implements IAbiReceiver , ISetOptionReceiver , ITestInformationReceiver

java.lang.ऑब्जेक्ट
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
com.android.tradefed.testtype.DeviceJUnit4ClassRunner


JUnit4 परीक्षण धावक जो IDeviceTest भी समायोजित करता है। रनविथ एनोटेशन के साथ JUnit4 टेस्ट के ऊपर निर्दिष्ट किया जाना चाहिए।

सारांश

नेस्टेड कक्षाएं

class DeviceJUnit4ClassRunner.LogAnnotation

फर्जी एनोटेशन का मतलब पत्रकारों तक लॉग ले जाना था।

class DeviceJUnit4ClassRunner.MetricAnnotation

नकली एनोटेशन का मतलब पत्रकारों तक मेट्रिक्स पहुंचाना था।

class DeviceJUnit4ClassRunner.TestLogData

ExternalResource और TestRule का कार्यान्वयन।

class DeviceJUnit4ClassRunner.TestMetrics

ExternalResource और TestRule का कार्यान्वयन।

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

DeviceJUnit4ClassRunner (Class<?> klass)

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

IAbi getAbi ()
TestInformation getTestInformation ()
void run (RunNotifier notifier)
void setAbi ( IAbi abi)
void setTestInformation ( TestInformation testInformation)

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

Object createTest ()

डिवाइस को सेट करने के लिए हम createTest को ओवरराइड करते हैं।

void runChild (FrameworkMethod method, RunNotifier notifier)
Statement withAfterClasses (Statement statement)
Statement withBeforeClasses (Statement statement)

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

डिवाइसJUnit4ClassRunner

public DeviceJUnit4ClassRunner (Class<?> klass)

पैरामीटर
klass Class

फेंकता
InitializationError

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

GetAbi

public IAbi getAbi ()

रिटर्न
IAbi

परीक्षण जानकारी प्राप्त करें

public TestInformation getTestInformation ()

रिटर्न
TestInformation

दौड़ना

public void run (RunNotifier notifier)

पैरामीटर
notifier RunNotifier

setAbi

public void setAbi (IAbi abi)

पैरामीटर
abi IAbi

सेटटेस्टसूचना

public void setTestInformation (TestInformation testInformation)

पैरामीटर
testInformation TestInformation

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

क्रिएटटेस्ट

protected Object createTest ()

डिवाइस को सेट करने के लिए हम createTest को ओवरराइड करते हैं।

रिटर्न
Object

runChild

protected void runChild (FrameworkMethod method, 
                RunNotifier notifier)

पैरामीटर
method FrameworkMethod

notifier RunNotifier

AfterClasses के साथ

protected Statement withAfterClasses (Statement statement)

पैरामीटर
statement Statement

रिटर्न
Statement

withBeforeClasses

protected Statement withBeforeClasses (Statement statement)

पैरामीटर
statement Statement

रिटर्न
Statement