2026-10-18 10:17:39 +08:00
<!DOCTYPE html>
< html lang = "zh-CN" data-theme = "light" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< title > 兼容性、弱网与异常测试 · 阶段 5 · 攻难点 模块 4 · 测试开发工程师从零到成熟< / title >
< meta name = "description" content = "兼容性、弱网与异常测试 模块目录:共 13 章、60 个小节。" >
< link rel = "stylesheet" href = "../../assets/doc.css" >
< / head >
< body >
< header class = "topbar" >
< div class = "tb-in" >
< a class = "brand" href = "../../index.html" > < span class = "logo" > QA< / span > < div > 从零到成熟< small > 测试开发 · 模块详解< / small > < / div > < / a >
< div class = "crumbs" >
< a href = "../../index.html" > 学习路径< / a > < span class = "sep" > /< / span >
< a href = "../../index.html#s5" > 阶段 5 · 攻难点< / a > < span class = "sep" > /< / span >
< b > 兼容性、弱网与异常测试< / b >
< / div >
< div class = "spacer" > < / div >
< button class = "btn" id = "tocToggle" > ☰ 导航< / button >
< button class = "btn" id = "themeBtn" title = "切换到深色主题" > 深色< / button >
< / div >
< / header >
< div class = "layout" id = "layout" >
< aside class = "sidebar" >
< h2 > 章节目录< / h2 >
< nav id = "chapters" > < a class = "toc-a" href = "01-why.html" > < i class = "cn" > 1< / i > 「我这儿是好的」:兼容性到底在补偿什么< / a > < div class = "subnav" > < a class = "toc-a lv3" href = "01-why.html#sec-1-1" > 11-05 那个白屏:只在 iOS 15.3 上出现的 4 秒空白< / a > < a class = "toc-a lv3" href = "01-why.html#sec-1-2" > 四个维度:设备、系统、浏览器容器与网络< / a > < a class = "toc-a lv3" href = "01-why.html#sec-1-3" > 长尾与投入:用占比乘损失排优先级< / a > < a class = "toc-a lv3" href = "01-why.html#sec-1-4" > 三类失败模式:渲染、交互与数据< / a > < a class = "toc-a lv3" href = "01-why.html#sec-1-5" > 交付物:矩阵、脚本、报告与对外支持范围< / a > < / div > < a class = "toc-a" href = "02-matrix.html" > < i class = "cn" > 2< / i > 兼容性矩阵:从 1,247 款机型到 24 个组合< / a > < div class = "subnav" > < a class = "toc-a lv3" href = "02-matrix.html#sec-2-1" > 现场:一份 380 行的机型清单,谁都不跑< / a > < a class = "toc-a lv3" href = "02-matrix.html#sec-2-2" > 数据来源:埋点、崩溃平台与应用商店< / a > < a class = "toc-a lv3" href = "02-matrix.html#sec-2-3" > 分层矩阵: P0 24 个、P1 38 个、P2 每季抽 12 个< / a > < a class = "toc-a lv3" href = "02-matrix.html#sec-2-4" > 维护:季度校准与版本联动< / a > < a class = "toc-a lv3" href = "02-matrix.html#sec-2-5" > 设备从哪来:云真机 120 台加自建 16 台< / a > < / div > < a class = "toc-a" href = "03-web.html" > < i class = "cn" > 3< / i > 浏览器与前端兼容:渲染、特性与存储< / a > < div class = "subnav" > < a class = "toc-a lv3" href = "03-web.html#sec-3-1" > 现场: flex gap 没生效,价格和按钮叠在一起< / a > < a class = "toc-a lv3" href = "03-web.html#sec-3-2" > 特性检测与渐进增强< / a > < a class = "toc-a lv3" href = "03-web.html#sec-3-3" > CSS 兼容: flex gap、vh、字体与滚动< / a > < a class = "toc-a lv3" href = "03-web.html#sec-3-4" > JS API 与存储:隐私模式下 localStorage 会抛异常< / a > < a class = "toc-a lv3" href = "03-web.html#sec-3-5" > 跨浏览器自动化的边界:三个内核跑不全真机< / a > < / div > < a class = "toc-a" href = "04-app.html" > < i class = "cn" > 4< / i > 移动端兼容:机型、系统版本与权限< / a > < div class = "subnav" > < a class = "toc-a lv3" href = "04-app.html#sec-4-1" > 现场: Android 14 上通知权限默认被拒,推送全丢< / a > < a class = "toc-a lv3" href = "04-app.html#sec-4-2" > 分辨率、刘海、折叠屏与大字体< / a > < a class = "toc-a lv3" href = "04-app.html#sec-4-3" > 系统版本与 targetSdk: API 差异清单< / a > < a class = "toc-a lv3" href = "04-app.html#sec-4-4" > 权限与隐私:相册、定位与剪贴板< / a > < a class = "toc-a lv3" href = "04-app.html#sec-4-5" > 小程序与 WebView 容器的四个差异< / a > < / div > < a class = "toc-a" href = "05-network.html" > < i class = "cn" > 5< / i > 弱网:把用户的网络搬进实验室< / a > < div class = "subnav" > < a class = "toc-a lv3" href = "05-network.html#sec-5-1" > 现场:地铁里 11.6 秒的转圈< / a > < a class = "toc-a lv3" href = "05-network.html#sec-5-2" > 七档网络模型: 带宽、RTT、丢包与抖动< / a > < a class = "toc-a lv3" href = "05-network.html#sec-5-3" > 注入手段: tc netem、Charles 与模拟器参数< / a > < a class = "toc-a lv3" href = "05-network.html#sec-5-4" > 弱网下的超时、重试与降级< / a > < a class = "toc-a lv3" href = "05-network.html#sec-5-5" > 弱网用例:八个必测场景< / a > < / div > < a class = "toc-a" href = "06-offline.html" > < i class = "cn" > 6< / i > 断网、切网与状态一致性< / a > < div class = "subnav" > < a class = "toc-a lv3" href = "06-offline.html#sec-6-1" > 现场: Wi-Fi 切 4G, 用户被扣了两次 100 元< / a > < a class = "toc-a lv3" href = "06-offline.html#sec-6-2" > 连接状态机: DNS、建连、传输与应用层< / a > < a class = "toc-a lv3" href = "06-offline.html#sec-6-3" > 离线缓存与冲突合并< / a > < a class = "toc-a lv3" href = "06-offline.html#sec-6-4" > 重复提交与幂等:客户端也要带 Idempotency-Key< / a > < a class = "toc-a lv3" href = "06-offline.html#sec-6-5" > 三方核对:端上、服务端与数据库< / a > < / div > < a class = "toc-a" href = "07-abnormal.html" > < i class = "cn" > 7< / i > 客户端异常:强杀、后台、低电与时间跳变< / a > < div class = "subnav" > < a class = "toc-a lv3" href = "07-abnormal.html#sec-7-1" > 现场: 强杀<EFBFBD>
< div class = "side-foot" >
< a class = "btn" href = "index.html" > ← 模块目录< / a >
< a class = "btn" href = "../../index.html" > 学习路径< / a >
< / div >
< / aside >
< div class = "mask" id = "mask" > < / div >
< main class = "main-col" >
< article >
< div class = "modhero" >
< span class = "mh-no" > 阶段 5 · 攻难点 · 模块 4 / 5< / span >
< h1 > 兼容性、弱网与异常测试< / h1 >
< p class = "mh-sub" > 兼容矩阵 · 弱网复现 · 客户端异常 · 中断场景 · 数据兼容 · 结论沉淀< / p >
< div class = "mh-meta" >
< span > 共 < b > 13< / b > 章< / span >
< span > < b > 60< / b > 个小节< / span >
< span > 约 < b > 57< / b > 千字< / span >
< span > 建议投入 18– 26 小时< / span >
< / div >
< / div >
< p class = "lead" >
< b > 模块定位:< / b > 阶段 5 的第 4 个模块,实战向。用户的网络、机型与操作习惯,比你本机的开发环境恶劣得多。< br > < br > < b > 学完之后你应该能:< / b > 用用户占比与崩溃率排出兼容性矩阵;用 < code > tc netem< / code > 或 Charles 复现 2G、丢包、高延迟与断网重连; 覆盖强杀、切后台、权限拒绝、存储不足、时区变更与来电中断; 并把结论写成「支持范围是什么、不支持会怎样」的对外依据。< br > < br > < b > 学习方式:< / b > 真机、真网络、真中断。模拟器上全绿的兼容性报告,等于没测。
< / p >
< h2 id = "chapters-list" > 章节目录< / h2 >
< ol class = "chaplist" >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 1< / span >
< a class = "ci-title" href = "01-why.html" > 「我这儿是好的」:兼容性到底在补偿什么< / a >
< a class = "ci-go" href = "01-why.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "01-why.html#sec-1-1" > 11-05 那个白屏:只在 iOS 15.3 上出现的 4 秒空白< / a > < a href = "01-why.html#sec-1-2" > 四个维度:设备、系统、浏览器容器与网络< / a > < a href = "01-why.html#sec-1-3" > 长尾与投入:用占比乘损失排优先级< / a > < a href = "01-why.html#sec-1-4" > 三类失败模式:渲染、交互与数据< / a > < a href = "01-why.html#sec-1-5" > 交付物:矩阵、脚本、报告与对外支持范围< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 2< / span >
< a class = "ci-title" href = "02-matrix.html" > 兼容性矩阵:从 1,247 款机型到 24 个组合< / a >
< a class = "ci-go" href = "02-matrix.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "02-matrix.html#sec-2-1" > 现场:一份 380 行的机型清单,谁都不跑< / a > < a href = "02-matrix.html#sec-2-2" > 数据来源:埋点、崩溃平台与应用商店< / a > < a href = "02-matrix.html#sec-2-3" > 分层矩阵: P0 24 个、P1 38 个、P2 每季抽 12 个< / a > < a href = "02-matrix.html#sec-2-4" > 维护:季度校准与版本联动< / a > < a href = "02-matrix.html#sec-2-5" > 设备从哪来:云真机 120 台加自建 16 台< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 3< / span >
< a class = "ci-title" href = "03-web.html" > 浏览器与前端兼容:渲染、特性与存储< / a >
< a class = "ci-go" href = "03-web.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "03-web.html#sec-3-1" > 现场: flex gap 没生效,价格和按钮叠在一起< / a > < a href = "03-web.html#sec-3-2" > 特性检测与渐进增强< / a > < a href = "03-web.html#sec-3-3" > CSS 兼容: flex gap、vh、字体与滚动< / a > < a href = "03-web.html#sec-3-4" > JS API 与存储:隐私模式下 localStorage 会抛异常< / a > < a href = "03-web.html#sec-3-5" > 跨浏览器自动化的边界:三个内核跑不全真机< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 4< / span >
< a class = "ci-title" href = "04-app.html" > 移动端兼容:机型、系统版本与权限< / a >
< a class = "ci-go" href = "04-app.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "04-app.html#sec-4-1" > 现场: Android 14 上通知权限默认被拒,推送全丢< / a > < a href = "04-app.html#sec-4-2" > 分辨率、刘海、折叠屏与大字体< / a > < a href = "04-app.html#sec-4-3" > 系统版本与 targetSdk: API 差异清单< / a > < a href = "04-app.html#sec-4-4" > 权限与隐私:相册、定位与剪贴板< / a > < a href = "04-app.html#sec-4-5" > 小程序与 WebView 容器的四个差异< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 5< / span >
< a class = "ci-title" href = "05-network.html" > 弱网:把用户的网络搬进实验室< / a >
< a class = "ci-go" href = "05-network.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "05-network.html#sec-5-1" > 现场:地铁里 11.6 秒的转圈< / a > < a href = "05-network.html#sec-5-2" > 七档网络模型: 带宽、RTT、丢包与抖动< / a > < a href = "05-network.html#sec-5-3" > 注入手段: tc netem、Charles 与模拟器参数< / a > < a href = "05-network.html#sec-5-4" > 弱网下的超时、重试与降级< / a > < a href = "05-network.html#sec-5-5" > 弱网用例:八个必测场景< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 6< / span >
< a class = "ci-title" href = "06-offline.html" > 断网、切网与状态一致性< / a >
< a class = "ci-go" href = "06-offline.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "06-offline.html#sec-6-1" > 现场: Wi-Fi 切 4G, 用户被扣了两次 100 元< / a > < a href = "06-offline.html#sec-6-2" > 连接状态机: DNS、建连、传输与应用层< / a > < a href = "06-offline.html#sec-6-3" > 离线缓存与冲突合并< / a > < a href = "06-offline.html#sec-6-4" > 重复提交与幂等:客户端也要带 Idempotency-Key< / a > < a href = "06-offline.html#sec-6-5" > 三方核对:端上、服务端与数据库< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 7< / span >
< a class = "ci-title" href = "07-abnormal.html" > 客户端异常:强杀、后台、低电与时间跳变< / a >
< a class = "ci-go" href = "07-abnormal.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "07-abnormal.html#sec-7-1" > 现场:强杀之后购物车少了 3 件商品< / a > < a href = "07-abnormal.html#sec-7-2" > 进程生命周期与状态保存< / a > < a href = "07-abnormal.html#sec-7-3" > 权限拒绝、系统弹窗与来电中断< / a > < a href = "07-abnormal.html#sec-7-4" > 存储不足、低电量与过热降频< / a > < a href = "07-abnormal.html#sec-7-5" > 时间与时区:把手机改到 14 天后发生的 7 单< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 8< / span >
< a class = "ci-title" href = "08-datacompat.html" > 数据与接口兼容:灰度、版本与字段< / a >
< a class = "ci-go" href = "08-datacompat.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "08-datacompat.html#sec-8-1" > 现场:老版本 App 收到新字段后崩溃< / a > < a href = "08-datacompat.html#sec-8-2" > 向后兼容六条规则< / a > < a href = "08-datacompat.html#sec-8-3" > 版本协商与灰度: 1% 到 100% 的四个台阶< / a > < a href = "08-datacompat.html#sec-8-4" > 存量数据迁移与回滚< / a > < a href = "08-datacompat.html#sec-8-5" > 契约测试:消费者驱动的一纸合同< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 9< / span >
< a class = "ci-title" href = "09-i18n.html" > 多语言、大字体与多端一致< / a >
< a class = "ci-go" href = "09-i18n.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "09-i18n.html#sec-9-1" > 现场:德语把「立即支付」挤成了三行< / a > < a href = "09-i18n.html#sec-9-2" > 文案长度、RTL、日期与货币< / a > < a href = "09-i18n.html#sec-9-3" > 大字体与无障碍< / a > < a href = "09-i18n.html#sec-9-4" > 深色模式与对比度< / a > < a href = "09-i18n.html#sec-9-5" > 多端一致: H5、小程序与 App 的三份实现< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 10< / span >
< a class = "ci-title" href = "10-process.html" > 执行与沉淀:两周内测完 24 个组合< / a >
< a class = "ci-go" href = "10-process.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "10-process.html#sec-10-1" > 现场:兼容性测试被排到提测最后一天< / a > < a href = "10-process.html#sec-10-2" > 分层执行:冒烟乘矩阵 46 分钟,全量乘 P0 一天半< / a > < a href = "10-process.html#sec-10-3" > 缺陷归因:兼容问题、真 bug 与环境问题< / a > < a href = "10-process.html#sec-10-4" > 结论怎么写:支持范围、已知问题与规避方案< / a > < a href = "10-process.html#sec-10-5" > 度量: 57 个兼容缺陷、18.4% 占比与 3.5% 逃逸率< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 11< / span >
< a class = "ci-title" href = "11-lab.html" > 实操:一次弱网与异常的组合测试< / a >
< a class = "ci-go" href = "11-lab.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "11-lab.html#sec-11-1" > 准备:矩阵、设备、网络档位与账号< / a > < a href = "11-lab.html#sec-11-2" > 实验一:弱网下的下单与超时< / a > < a href = "11-lab.html#sec-11-3" > 实验二:断网恢复、切网与重复支付< / a > < a href = "11-lab.html#sec-11-4" > 实验三:时区跳变与大字体下的支付页< / a > < a href = "11-lab.html#sec-11-5" > 交付:证据、分级与一份兼容性报告< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 12< / span >
< a class = "ci-title" href = "12-cheat.html" > 速查表与高频坑< / a >
< a class = "ci-go" href = "12-cheat.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "12-cheat.html#sec-12-1" > 命令、工具与网络档位速查< / a > < a href = "12-cheat.html#sec-12-2" > 二十个高频坑< / a > < a href = "12-cheat.html#sec-12-3" > 一页纸对照表< / a > < / div >
< / li >
< li class = "chap-item" >
< div class = "ci-head" >
< span class = "ci-no" > 13< / span >
< a class = "ci-title" href = "13-checklist.html" > 完成标准与自测< / a >
< a class = "ci-go" href = "13-checklist.html" > 进入 →< / a >
< / div >
< div class = "ci-secs" > < a href = "13-checklist.html#sec-13-1" > 完成标准: 12 条可勾选清单< / a > < a href = "13-checklist.html#sec-13-2" > 自测题与答案要点< / a > < / div >
< / li >
< / ol >
< div class = "box tip" >
< span class = "bt" > 怎么用这一模块< / span >
< p > 左侧第一栏是< b > 章节< / b > ,可以在整章之间跳转;第二栏是< b > 本章小节< / b > ,进入某章后会显示该章的内容大纲并跟随滚动高亮。< / p >
< p > 每章结尾都可以用底部的「上一章 / 下一章」连续阅读。每章内部的代码块右上角可以直接复制,点顶栏的「深色 / 浅色」可以切换主题。< / p >
< / div >
< / article >
< nav class = "pager" >
< a class = "prev" href = "../s5-03-security/index.html" > < span class = "k" > ← 上一模块< / span > < span class = "v" > 安全测试< / span > < / a >
2026-10-18 14:38:03 +08:00
< a class = "next" href = "../s5-05-data-llm/index.html" > < span class = "k" > 下一模块 →< / span > < span class = "v" > 数据与大模型测试< / span > < / a >
2026-10-18 10:17:39 +08:00
< / nav >
< p class = "foot" >
兼容性、弱网与异常测试 · 模块目录< br >
< a href = "../../index.html" > 返回学习路径< / a >
< / p >
< / main >
< / div >
< button id = "toTop" title = "回到顶部" > ↑< / button >
< script src = "../../assets/doc.js" > < / script >
< script src = "../../../../assets/back.js" data-portal-back = "testdev/testdev-learning-path" data-portal-label = "测试开发工程师 › 测试开发从零到成熟学习路径" > < / script >
< / body >
< / html >