DeviceParameterizedRunner

public class DeviceParameterizedRunner
extends JUnitParamsRunner implements IAbiReceiver, ISetOptionReceiver, ITestInformationReceiver

java.lang.Object
org.junit.runner.Runner
  org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
    org.junit.runners.BlockJUnit4ClassRunner
      junitparams.JUnitParamsRunner
        com.android.tradefed.testtype.junit4.DeviceParameterizedRunner


होस्ट-साइड से चलाए जाने वाले पैरामीटर वाले टेस्ट के लिए, JUnit4 स्टाइल का पैरामीटर वाला रनर.

यह रनर, JUnitParamsRunner पर आधारित है. यह JUnit4 के नेटिव Parameterized पर आधारित नहीं है. हालांकि, नेटिव पैरामीटर वाला रनर ज़्यादा अच्छा नहीं है और इससे कोई एक मेथड नहीं चलाई जा सकती.

इन्हें भी देखें:

खास जानकारी

सार्वजनिक कंस्ट्रक्टर

DeviceParameterizedRunner(Class<?> klass)

पब्लिक मेथड

IAbi getAbi()
TestInformation getTestInformation()
void setAbi(IAbi abi)
void setTestInformation(TestInformation testInformation)

प्रोटेक्टेड मेथड

ITestDevice getDevice()
List<String> getKeyValueOptions()
Statement methodInvoker(FrameworkMethod method, Object testObj)
Statement withAfterClasses(Statement statement)
Statement withBeforeClasses(Statement statement)

सार्वजनिक कंस्ट्रक्टर

DeviceParameterizedRunner

public DeviceParameterizedRunner (Class<?> klass)

थ्रॉ
org.junit.runners.model.InitializationError
InitializationError

पब्लिक मेथड

getAbi

public IAbi getAbi ()

रिटर्न
IAbi

getTestInformation

public TestInformation getTestInformation ()

रिटर्न
TestInformation

setAbi

public void setAbi (IAbi abi)

पैरामीटर
abi IAbi

setTestInformation

public void setTestInformation (TestInformation testInformation)

पैरामीटर
testInformation TestInformation

प्रोटेक्टेड मेथड

getDevice

protected ITestDevice getDevice ()

रिटर्न
ITestDevice

getKeyValueOptions

protected List<String> getKeyValueOptions ()

रिटर्न
List<String>

methodInvoker

protected Statement methodInvoker (FrameworkMethod method, 
                Object testObj)

पैरामीटर
method FrameworkMethod

testObj Object

रिटर्न
Statement

withAfterClasses

protected Statement withAfterClasses (Statement statement)

पैरामीटर
statement Statement

रिटर्न
Statement

withBeforeClasses

protected Statement withBeforeClasses (Statement statement)

पैरामीटर
statement Statement

रिटर्न
Statement