51Testing软件测试论坛

标题: Robotium测试问题征集 [打印本页]

作者: 风动雨静    时间: 2012-5-3 13:59
标题: Robotium测试问题征集
单开一帖,旨在收集使用robotium测试过程中遇到的问题并给予解答
面向对象,入门,进阶皆可。
请勿回复“支持,顶,加油等词汇”
谢谢
作者: wyz0123852    时间: 2012-7-26 18:04
你好:初次使用robotium 出现如下问题:
[2012-07-26 17:51:55 - TestDemo] ------------------------------
[2012-07-26 17:51:55 - TestDemo] Android Launch!
[2012-07-26 17:51:55 - TestDemo] adb is running normally.
[2012-07-26 17:51:55 - TestDemo] Performing android.test.InstrumentationTestRunner JUnit launch
[2012-07-26 17:51:55 - TestDemo] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'android_2'
[2012-07-26 17:51:56 - TestDemo] Application already deployed. No need to reinstall.
[2012-07-26 17:51:56 - TestDemo] Launching instrumentation android.test.InstrumentationTestRunner on device emulator-5554
[2012-07-26 17:51:57 - TestDemo] Collecting test information
[2012-07-26 17:51:59 - TestDemo] Test run failed: Instrumentation run failed due to 'Process crashed.'
不管我换哪一个apk去测试,都会出现
[2012-07-26 17:51:57 - TestDemo] Collecting test information
[2012-07-26 17:51:59 - TestDemo] Test run failed: Instrumentation run failed due to 'Process crashed.'
这样的提示,请问是怎么回事
作者: wyz0123852    时间: 2012-7-26 18:05
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.yanzhao.demo"
    android:versionCode="1"
    android:versionName="1.0" >

   
   
    <uses-sdk android:minSdkVersion="8" />

    <instrumentation
        android:name="android.test.InstrumentationTestRunner"
        android:targetPackage="cn.com.ppapp.merchant.plugin" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <uses-library android:name="android.test.runner" />
    </application>

</manifest>


这个是Mainifest.xml




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2