找回密码
 注册
搜索
查看: 1687|回复: 1

[讨论] 各位各位大虾,android的cts问题求教!指点下啊~

[复制链接]
发表于 2011-5-4 14:25:33 | 显示全部楼层 |阅读模式
蛋疼啊

小弟刚刚接触android,老大让搞cts,目前跑整个plan的时候出现的现象是只有少数pass 很多fail,log如下:
CTS_DEBUG >>> 1304478858571 installing TestDeviceSetup apk

CTS_DEBUG >>> 1304478858571 install get info ...

CTS_DEBUG >>> 1304478858571 adb -s emulator-5554 install -r ./../cts/android-cts/repository/testcases/TestDeviceSetup.apk

CTS_DEBUG >>> 1304478858571 start(), action=install,mTimer=null,timeout=120000

CTS_DEBUG >>> 1304478858578 ObjectSync.waitOn() is called, mNotifySent=false

CTS_DEBUG >>> 1304478859718 device emulator-5554 changed with changeMask=2

CTS_DEBUG >>> 1304478859718 Device state:ONLINE
install met failure [install_failed_older_sdk]

CTS_DEBUG >>> 1304478861098 install calls stopPackageActionTimer()

CTS_DEBUG >>> 1304478861098 stop() , mTimer=java.util.Timer@186db54

CTS_DEBUG >>> 1304478861099 ObjectSync.sendNotify() is called, mNotifySent=false

CTS_DEBUG >>> 1304478861099 stop() , mTimer=null

CTS_DEBUG >>> 1304478861103 run device information collector

CTS_DEBUG >>> 1304478861104 am instrument -w -e bundle true android.tests.devicesetup/android.tests.getinfo.DeviceInfoInstrument

CTS_DEBUG >>> 1304478861104 start(), action=getDeviceInfo,mTimer=null,timeout=120000

CTS_DEBUG >>> 1304478861106 ObjectSync.waitOn() is called, mNotifySent=false

CTS_DEBUG >>> 1304478861191 device emulator-5554 changed with changeMask=2

CTS_DEBUG >>> 1304478861191 Device state:ONLINE



测试一个plan 出现的现象如下:
android.accounts.cts.AccountManagerTest#testGetAccountsAndGetAccountsByType....(fail)
Unable to find instrumentation info for: ComponentInfo{android.accounts.cts/android.test.InstrumentationTestRunner}

android.accounts.cts.AccountManagerTest#testGetAuthenticatorTypes....(fail)
Unable to find instrumentation info for: ComponentInfo{android.accounts.cts/android.test.InstrumentationTestRunner}

android.accounts.cts.AccountManagerTest#testSetAndGetAndClearPassword....(fail)
Unable to find instrumentation info for: ComponentInfo{android.accounts.cts/android.test.InstrumentationTestRunner}

android.accounts.cts.AccountManagerTest#testSetAndGetUserData....(fail)
Unable to find instrumentation info for: ComponentInfo{android.accounts.cts/android.test.InstrumentationTestRunner}

android.accounts.cts.AccountManagerTest#testGetAccountsByTypeAndFeatures....(fail)
Unable to find instrumentation info for: ComponentInfo{android.accounts.cts/android.test.InstrumentationTestRunner}

android.accounts.cts.AccountManagerTest#testGetAccountsByTypeAndFeaturesWithCallbackAndHandler....(fail)
Unable to find instrumentation info for: ComponentInfo{android.accounts.cts/android.test.InstrumentationTestRunner}

android.accounts.cts.AccountManagerTest#testSetAndPeekAndInvalidateAuthToken....(fail)
Unable to find instrumentation info for: ComponentInfo{android.accounts.cts/android.test.InstrumentationTestRunner}

android.accounts.cts.AccountManagerTest#testBlockingGetAuthToken....(fail)
Unable to find instrumentation info for: ComponentInfo{android.accounts.cts/android.test.InstrumentationTestRunner}
单独跑一个测试包的时候出现如下现象:
install met failure [install_failed_older_sdk]
android.bluetooth.cts.BasicAdapterTest#test_getDefaultAdapter....(fail)
Unable to find instrumentation info for: ComponentInfo{com.android.cts.bluetooth/android.test.InstrumentationTestRunner}





在网上搜答案 androidmanifest.xml <minsdkversion="4">注释掉   version_default.mk修改相应的api登记也改过,都不起什么作用!

cts版本是2.2_r1  目前sdk版本是 android2.0 -api level 5[em03][em03]
 楼主| 发表于 2011-5-4 14:27:14 | 显示全部楼层
求各种解释 求大虾打酱油!~
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-12-23 14:38 , Processed in 0.046433 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表