cts/gts中一些fail项解决办法总结

本文总结了在进行Camera ITS HOST环境配置及Notification Attention Management Test时可能遇到的fail项,包括Android SDK的安装,Python环境的配置,以及特定测试用例如libcore.java.lang.DoubleTest,android.theme.cts.ThemeHostTest,android.os.cts.BuildVersionTest的解决方法。对于Location设置,强调了在缺少work profile的情况下可以申请豁免,同时提到了android.security.cts.ListeningPortsTest的豁免情况。
摘要由CSDN通过智能技术生成
14.
CTS-Verify中:

Camera ITS HOST 环境配置:

  1. 安装Android SDK,将adb路径设置到环境变量中
  2. 安装python 2.7环境
  • sudo apt-get install python-numpy
  • sudo apt-get install python-scipy
  • sudo apt-get install python-matplotlib
  • sudo apt-get install python-opencv
15 .这三项waive,截止20150909
 1)android.app.cts.ActivityManagerTest 
--testGetRunningAppProcesses   
2)android.webkit.cts.WebSettingsTest 
--testUserAgentString_default  waived
3)android.security.cts.ServicePermissionsTest 
-- testDumpProtected

16.
android.mediastress.cts.NativeMediaTest
-- test480pPlay
-- test720pPlay
-- testDefaultPlay

将视频拷贝到平板,ok

17.
关于cts-verify的测试:

Notification Attention Management Test 

test steps:
To make this test case PASS. We need to perform one extra settings.

1. When the CTS verifier APK ask to set Notification to "None".
    a. Open Settings > Sound & notification > Interrupts > Set the below settings.
       "When Calls and notifications arrive" >  Don't interrupt
       "Calls/Messages from" >  Anyone
    b. Go back to CTS verifier APK and Launch settings.

2.  When the CTS verifier APK ask to set Notification to "Priority".
    a. Open Settings > Sound & notification > Interrupts > Set the below settings.
       "When Calls and notifications arrive" >  Allow only priority interruptions 
       "Calls/Messages from" >  starred contacts only.
    b. Go back to CTS verifier APK and click IM DONE.

3. When the CTS verifier APK ask to set Notification to "All".
    a. Open Settings > Sound & notification > Interrupts > Set the below settings.
       "When Calls and notifications arrive" >  Always interruptions 
       "Calls/Messages from" >  contacts only.
    b. Go back to CTS verifier APK and click IM DONE.

另外一种解决方法: 在做deviceOwer测试的时候不让杀死BackupManagerService
   
   
   
--- a/services/devicepolicy/java/com/android/server/
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值