问答详情
源自:3-1 核心定位元素

by找不到,明明是对的

郁闷死了.

提问者:qq_情随事迁_0 2018-06-10 14:44

个回答

  • qq_fly_5
    2018-06-12 14:39:40

    什么意思,我也出现这个情况

  • qq_情随事迁_0
    2018-06-10 17:09:15

    知道了这玩意不能测试自己本身

  • qq_情随事迁_0
    2018-06-10 14:55:11

    lang.NullPointerException: Attempt to invoke virtual method 'void android.support.test.uiautomator.UiObject2.setText(java.lang.String)' on a null object reference

    at cn.qssq666.androidtest.QssqTest.findView(QssqTest.java:54)

    at java.lang.reflect.Method.invoke(Native Method)

    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)

    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)

    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)

    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)

    at android.support.test.internal.runner.junit4.statement.RunBefores.evaluate(RunBefores.java:80)

    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)

    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)

    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)

    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)

    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)

    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)

    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)

    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)

    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)

    at android.