[CTS_8.1] android.autofillservice.cts.PreSimpleSaveActivityTest#testTapLink_changeOrientationThenTapBack android.autofillservice.cts.SimpleSaveActivityTest#testTapLink_changeOrientationThenTapBack

如下2条Case 可以申请豁免
android.autofillservice.cts.PreSimpleSaveActivityTest#testTapLink_changeOrientationThenTapBack
android.autofillservice.cts.SimpleSaveActivityTest#testTapLink_changeOrientationThenTapBack
Fail info
java.lang.AssertionError: negative button (NO THANKS): Not true that the subject is a non-null reference
[SOLUTION]

 Google issue;

Waive Link如下:
 https://android-review.googlesource.com/#/c/platform/cts/+/649904/

验证此题可以合入如下patch:

1、请合入如下patch验证:https://android.googlesource.com/platform/cts/+/5f79c525684f9569774a5db9a83e847edc4c953d;

2、记得验证时别漏合了如下code:

src\android\autofillservice\cts\SimpleSaveActivityTest.java

@Override

    protected void saveUiRestoredAfterTappingLinkTest(PostSaveLinkTappedAction type)

            throws Exception {

。。。。

       switch (type) {

            case ROTATE_THEN_TAP_BACK_BUTTON:

                // After the device rotates, the input field get focus and generate a new session.

                sReplier.addResponse(CannedFillResponse.NO_RESPONSE);   // 这一句代码是Google新加的

// 这部分也没有

    @Override

    protected void cleanUpAfterScreenOrientationIsBackToPortrait() throws Exception {

        sReplier.getNextFillRequest();

    } 

android.security.cts.StagefrightTest# testStagefright_bug_65483665 测试失败

如下MTK平台可以直接申请对应的patch

温馨提醒

切记:MTK在提醒申请某笔patch时,尤其这种patch还不止一个的情况,请务必要重新申请,不要看到某个patch曾经拿过,就不再申请了,这样如果有的patch有更新,您会拉不到更新的,导致仍然Fail

 

刷入GSI之后无法开机或者是VTS环境下Case无法执行

[DESCRIPTION]
 刷GSI之后经常会遇到开不了机或者是在VTS环境下Case不执行,结果全为0的情况
[SOLUTION]
一、  如何确保GSI版本的正确性,刷入方法的正确性?
下载VTS,GTS,GMS的路径如下:
How to match correct system.img with MTK load(下载手机版本之后去aplog中ProjectConfig.mk文件中MTK_K64_SUPPORT和MTK_AB_OTA_UPDATER的值,如果搜索不到对应为No。去上面的路径中下载arm_a
*************************************************
MTK Feature Options GSI system.img

MTK_K64_SUPPORT=yes
MTK_AB_OTA_UPDATER=yes arm64_ab

MTK_K64_SUPPORT=yes
MTK_AB_OTA_UPDATER=no arm64_a

MTK_K64_SUPPORT=no
MTK_AB_OTA_UPDATER=no arm_a

MTK_K64_SUPPORT=no
MTK_AB_OTA_UPDATER=yes arm_ab

刷入GSI GoogleIMG的方法如下:
Use fastboot (USER / USERDEBUG load)
Phone must be unlocked before flashing GSI system.img because dm-verity is enabled in user and userdebug build.
1. MTK User load boot up to home screen
2. Please enable OEM unlocking in settings (开发者选项中设置)
3. Please enable USB debugging in settings(开发者选项中设置)
4. Press Volume up key + power key into fastboot mode,suggest to use “adb reboot bootloader”(客户手机如果不知道怎么进fastboot mode, 就输入ADB指令adb reboot bootloader)
5. Connect phone to PC, input “fastboot flashing unlock”(CMD界面中下这条命令,这里需要按一下音量上键)
6. fastboot flash system system.img (CMD界面中下这条命令,找到对应的img.查看方法:Load 版本信息里面会有一个GOogleimage包的日期,例如0205,就找对应的IMG0205system_aosp_arm_a_20180205,找与这个日期对应或者是最接近的)
7. fastboot reboot (CMD界面中下这条命令)

二、遇到VTS环境下无法执行Case情况如果排查:
1.run VTS command,在VTS环境下跑
http://blog.csdn.net/dyq1991/article/details/78327845
我这边VTS测试环境配置如下:
Python版本:2.7.13 64bit (Python安装完之后记得要在CMD中运行:
pip install virtualenv & pip install future & pip install futures & pip install enum & pip install concurrent & pip install protobuf & pip install setuptools & pip install requests & pip install httplib2 & pip install google-api-python-client & pip install google-cloud-pubsub)
adb 版本:1.0.39 64bit
Linux OS: Ubuntu 17.04 64bit
JDK: Sun JDK1.8 64bit

测试VTS前执行一遍如下命令,确保相关python 模块有更新到最新:
sudo apt-get install python-dev
sudo apt-get install python-protobuf
sudo apt-get install protobuf-compiler
sudo apt-get install python-virtualenv
sudo apt-get install python-pip

另外,请请注意:
1.现在版本的vts测试不能插SIM卡,请移除SIM卡重新再测试一下;

2. virtualenv是vts必装的一个python module,贵司在安装完python之后,请在CMD中执行如下命令:
pip install virtualenv & pip install future & pip install futures & pip install enum & pip install concurrent & pip install protobuf & pip install setuptools & pip install requests & pip install httplib2 & pip install google-api-python-client & pip install google-cloud-pubsub
3..在跑VTS前是否有执行过sudo -i,这样会得到shell 带root权限,会导致VTS 测试过程中python环境错乱 ,这种没法解,只能重装系统。

请根据以上2点先排查VTS的基本问题。遇到具体Case执行Fail的情况,请提交ES给MTK。