|
蛋疼啊
小弟刚刚接触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] |
|