Repository navigation
test(android): 补齐 API 35 失焦失败现场与采证回归 - #15
Merged
Merged
Conversation
在测试异常后的 Activity 清理前保存完整窗口、输入、Activity 状态和截图,记录焦点时间线并保留原异常及清理错误。 使用 shell 内建命令解释采证脚本,并直接调用 Java 异常 API,兼容压缩后的测试包。 API 35 退出时拉回诊断目录,附加回归验证采证失败不覆盖测试退出码,同步中英文验收说明。 验证:release 与 releaseAndroidTest 构建通过;一加 API 33 的采证回归及登录测试共 5 项通过;API 35 脚本回归 9 项通过;bash -n 与 git diff --check 通过。 本地核验 5 份非空采证文件、清理前状态、全局焦点及有效 PNG;真实失焦根因仍待 API 35 现场。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
API 35 偶发 UI 失焦时,原规则只打印
dumpsys window windows,缺少全局焦点和输入状态,整批测试结束后的窗口现场也无法定位失败时的占用方。本次在测试或启动异常后的 Activity 清理前保存完整现场,便于下一次失败时判断原因。RESUMED时的焦点和后续焦点变化,保存 Activity 状态、完整 window/input/activities dump 和截图。printf传递脚本,正确处理 UiAutomation 不解释引号/重定向的限制;Java 辅助方法避免压缩后的测试包引用已被裁掉的 Kotlin 异常扩展。验证:
:app:assembleRelease :app:assembleReleaseAndroidTest构建通过。bash -n与git diff --check通过。verify门禁。controlledFailure自检,5 个文件均非空;核验完整全局焦点、Input Dispatcher、清理前 Activity 状态及可正常查看的 PNG。没有真实失焦失败现场。controlledFailure目录来自主动抛错后捕获的回归自检,不能视为真实失焦复现。当前只补齐诊断能力,真实失焦根因尚未确认。变更仅涉及测试、采证脚本及验收文档,不更改生产库、公共 API、版本或发布产物。合并后验收:
130c4aa375155917fdd296e312d4dfab14acee66合入main。controlledFailure自检,本轮仍未复现真实失焦。