‫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 وليس إلى Parameterized الأصلي في JUnit4، ولكن برنامج التشغيل الأصلي للاختبارات المحدّدة المَعلمات ليس جيدًا ولا يسمح بتشغيل طريقة واحدة.

يُرجى الاطّلاع أيضًا على:

ملخّص

طُرق وضع التصميم العامة

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