【发布时间】:2014-03-03 12:50:35
【问题描述】:
我的问题似乎与这里的 Test run failed: Instrumentation run failed due to 'Process crashed.' when testing multiple Android activity 略有不同
我已按照in the pdf 给出的步骤进行操作。我已经创建了测试项目“TestAndroidCalculatorBlackbox”(我们是否需要有两个项目一个测试和一个主项目,也许这可能是原因,因为在 Robotium“入门”链接中他们希望我们为记事本创建项目),
并添加了罐子robotium-solo-5.0.1.jar,robotium-solo-1.6.0.jar,以消除solo. 函数和jay.way package 下方的红色错误行。
我附上错误截图:
y AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.testcalculator"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<instrumentation
android:name="android.test.InstrumentationTestRunner"
android:targetPackage="com.testcalculator" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" android:debuggable="true">
<uses-library android:name="android.test.runner" />
</application>
</manifest>
我已经在检测列表中添加了包:
c:\> adb shell pm list instrumentation
instrumentation:PACKAGE.test.test/android.test.InstrumentationTestRunner (target=PACKAGE)
instrumentation:PACKAGE.test.test.test.test.test.test/android.test.InstrumentationTestRunner (target=PACKAGE.test.test)
instrumentation:com.example.android.apis/.app.LocalSampleInstrumentation (target=com.example.android.apis)
>> instrumentation:com.testcalculator/android.test.InstrumentationTestRunner (target=com.testcalculator) <<
【问题讨论】:
标签: android automation robotium