线上第八期_专项测试_20190516

Crash的类型

检测

adb logcat *:S *:E
05-16 20:19:54.033 30102 30184 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
05-16 20:19:54.033 30102 30184 E AndroidRuntime: Process: io.cloudgrey.the_app, PID: 30102
05-16 20:19:54.033 30102 30184 E AndroidRuntime: java.lang.SecurityException: Looks like the app doesn't have the permission to access location.
05-16 20:19:54.033 30102 30184 E AndroidRuntime: Add the following line to your app's AndroidManifest.xml:
05-16 20:19:54.033 30102 30184 E AndroidRuntime: <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat com.facebook.react.modules.location.LocationModule.throwLocationPermissionMissing(LocationModule.java:236)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat com.facebook.react.modules.location.LocationModule.startObserving(LocationModule.java:175)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat java.lang.reflect.Method.invoke(Native Method)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:374)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:162)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat android.os.Handler.handleCallback(Handler.java:891)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat android.os.Handler.dispatchMessage(Handler.java:102)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat android.os.Looper.loop(Looper.java:207)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:194)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat java.lang.Thread.run(Thread.java:784)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: Caused by: java.lang.SecurityException: "network" location provider requires ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission.
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat android.os.Parcel.createException(Parcel.java:1953)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat android.os.Parcel.readException(Parcel.java:1921)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat android.os.Parcel.readException(Parcel.java:1871)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat android.location.ILocationManager$Stub$Proxy.requestLocationUpdates(ILocationManager.java:755)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat android.location.LocationManager.requestLocationUpdates(LocationManager.java:1155)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat android.location.LocationManager.requestLocationUpdates(LocationManager.java:709)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \tat com.facebook.react.modules.location.LocationModule.startObserving(LocationModule.java:167)
05-16 20:19:54.033 30102 30184 E AndroidRuntime: \t... 10 more
05-16 20:19:54.073 30102 30102 D ZrHung.AppEyeUiProbe: stop checker.
05-16 20:19:54.177 30102 30184 I Process : Sending signal. PID: 30102 SIG: 9
05-16 20:19:54.286   571   571 I Zygote  : Process 30102 exited due to signal (9)
05-16 20:19:54.290  1114  2505 I ActivityManager: Process io.cloudgrey.the_app (pid 30102) has died: vis  +99TOP

健壮性测试工具

monkey

获取app的入口

adb shell dumpsys activity activities top


adb shell monkey -p io.cloudgrey.the_app -v 200

maxim

cd Maxim
adb push *.jar /data/local/tmp/
adb shell CLASSPATH=/data/local/tmp/monkey.jar:/data/local/tmp/framework.jar exec app_process /system/bin tv.panda.test.monkey.Monkey -p  io.cloudgrey.the_app --uiautomatormix --running-minutes 60 -v -v

appcrawler

测试场景

模拟器方案:

emulator -avd [your-avd-image] -netdelay 20000 -netspeed gsm

真机代理方案:

charles模拟弱网

ATC

关闭