[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();

    } 

作者: RESSRC

个人资源站

发表评论

电子邮件地址不会被公开。 必填项已用*标注