by找不到,明明是对的

来源:3-1 核心定位元素

qq_情随事迁_0

2018-06-10 14:44

郁闷死了.

写回答 关注

3回答

  • 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.


Android UiAutomator 2.0 入门实战

零基础学习UiAutomator 2.0自动化测试,学会编写 Android 自动化测试用例

14767 学习 · 71 问题

查看课程

相似问题