Robotium_出错信息收集

来源:互联网 发布:淘宝天猫商城怎么开 编辑:程序博客网 时间:2024/05/14 09:42

1. [2013-05-26 16:27:50 - RoboProTest] Android Launch!

[2013-05-26 16:27:50 - RoboProTest] adb is running normally.
[2013-05-26 16:27:50 - RoboProTest] Performing android.test.InstrumentationTestRunner JUnit launch
[2013-05-26 16:27:50 - RoboProTest] Automatic Target Mode: using device '0123456789ABCDEF'
[2013-05-26 16:27:50 - RoboProTest] Application already deployed. No need to reinstall.
[2013-05-26 16:27:50 - RoboProTest] Project dependency found, installing: RoboPro
[2013-05-26 16:27:51 - RoboPro] Application already deployed. No need to reinstall.
[2013-05-26 16:27:51 - RoboProTest] Launching instrumentation android.test.InstrumentationTestRunner on 0123456789ABCDEF

[2013-05-26 16:27:56 - RoboProTest] Test run failed: Instrumentation run failed due to 'Process crashed.'

错误原因: targetPackage与要测试的apk的targetPackage不一致,需要修改一致即可
更多robotium内容请参考:http://www.robotium.cn/archives/476

2.android工程运行错误

[2013-06-09 08:52:38 - MyApp] Android Launch!
[2013-06-09 08:52:38 - MyApp] The connection to adb is down, and a severe error has occured.
[2013-06-09 08:52:38 - MyApp] You must restart adb and Eclipse.
[2013-06-09 08:52:38 - MyApp] Please ensure that adb is correctly located at 'E:\xxx\android-sdk-windows\platform-tools\adb.exe' and can be executed.

解决方法:

cmd跳到sdk tools文件路径下 
adb kill-server 
然后再adb start-server