鲁工你好,我是最近才接触自动化测试,问下Cafe是不是在4.4下面录制的时候出现空指针
- Dominant language
- Java
- Stars
- 367
- Forks
- 209
- PR merge metrics
- No merged PRs in 30d
Description
05-27 16:18:53.063: E/AndroidRuntime(8442): FATAL EXCEPTION: monitorCurrentActivity
05-27 16:18:53.063: E/AndroidRuntime(8442): Process: com.example.android.apis, PID: 8442
05-27 16:18:53.063: E/AndroidRuntime(8442): java.lang.NullPointerException
05-27 16:18:53.063: E/AndroidRuntime(8442): at com.baidu.cafe.local.record.ViewRecorder.setOnTouchListenerOnDecorView(ViewRecorder.java:563)
05-27 16:18:53.063: E/AndroidRuntime(8442): at com.baidu.cafe.local.record.ViewRecorder.updateCurrentActivity(ViewRecorder.java:552)
05-27 16:18:53.063: E/AndroidRuntime(8442): at com.baidu.cafe.local.record.ViewRecorder.access$500(ViewRecorder.java:69)
05-27 16:18:53.063: E/AndroidRuntime(8442): at com.baidu.cafe.local.record.ViewRecorder$2.run(ViewRecorder.java:540)
05-27 16:18:53.063: E/AndroidRuntime(8442): at
java.lang.Thread.run(Thread.java:864)
这是错误日志
还有关于录制的点击是不是基于坐标级别的还是控件级别的?原理是根据getevent做的吗?如果想做控件级别的话点击下去在测试的程序中获取到点击的控件?
谢谢
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with ViewRecorder.java at setOnTouchListenerOnDecorView line 563 and updateCurrentActivity line 552, then trace the Android 4.4 recording path that reaches them. Reproduce recording with the reported application and inspect the resulting activity and touch-listener state. Done means the null-pointer failure is addressed and the recording behavior is documented clearly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100