1. 背景
App的兼容性问题可能会导致流失潜在的客户,为了尽量减少因兼容性问题导致的同类问题,进一步提高产品的质量,提升用户体验,所以进行兼容性测试,尽可能多的保证更多的用户都可以正常使用app。经过短期和持续的兼容性测试投入换取更多的合作机会和使用用户。
备注:目前主流云测平台提供的功能和服务,在多种测试设备上自动安装、卸载及运行被测APP,遍历APP的每个界面(功能、UI),检查APP是否会报错或者崩溃
备注:兼容性测试本质上属于功能测试,只不过侧重在不同的软硬件环境。
2. 目的
本兼容性测试方案的目的如下:
1)明确测试目标:app的兼容性测试
2)确定app兼容性测试的测试策略
3)确定所需的资源,并对测试的工作量进行评估
4)预估存在的风险和成本,制定应对措施
5)列出测试项目的可交付元素
3. 测试范围
APP兼容性的测试主要包含硬件设备兼容性、操作系统兼容性、分辨率兼容性、网络运营商兼容性、其他软件兼容性几个大类,下面对测试方法逐一进行详细的说明。
3.1 硬件兼容性
![](http://upload-images.jianshu.io/upload_images/7488174-24c3886930704bae.png)
3.2 操作系统兼容性(ROM)
3.3 分辨率兼容性
![](http://upload-images.jianshu.io/upload_images/7488174-ba637a12a6331de2.png)
3.4 网络运营商兼容性
![](http://upload-images.jianshu.io/upload_images/7488174-9a2bcf366a1ad877.png)
3.5 与其他软件的兼容性
![](http://upload-images.jianshu.io/upload_images/7488174-c723cdd8e40a319d.png)
3.6 软件本身向前或向后兼容
![](http://upload-images.jianshu.io/upload_images/7488174-5ff084d0ac05aa19.png)
3.7 数据兼容测试
![](http://upload-images.jianshu.io/upload_images/7488174-dc7271c6ab1e6891.png)
4. 市场分析
主要介绍各影响因素最新的市场占有率排行。
移动互联网的产品,常见的app兼容性考虑主要有以下几个方面:硬件、操作系统及版本、分辨率、网络运营商,与其他软件的兼容性等
4.1 硬件(厂商、型号)
4.1.1 Android设备厂商分布情况
2018年4月安卓手机厂商市场份额排行榜(TOP10,国内)(来自百度移动统计)
参考:http://www.search1990.com/other/201607192019.html
![](http://upload-images.jianshu.io/upload_images/7488174-76320f1690e42f92.png)
![](http://upload-images.jianshu.io/upload_images/7488174-92d5e976cef7a671.png)
4.1.1.1 华为手机销量排行榜
http://top.zol.com.cn/compositor/57/manu_613.html
![](http://upload-images.jianshu.io/upload_images/7488174-a6066d6a407576a4.png)
4.1.1.2 OPPO手机销量排行榜
![](http://upload-images.jianshu.io/upload_images/7488174-bfbfdf6e46cbac1d.png)
4.1.1.3 Vivo手机销量排行榜
![](http://upload-images.jianshu.io/upload_images/7488174-8ad9441dcbf58afe.png)
4.1.1.4 小米手机销量排行榜
![](http://upload-images.jianshu.io/upload_images/7488174-618b7dff04b38dae.png)
4.1.1.5 三星手机销量排行榜
![](http://upload-images.jianshu.io/upload_images/7488174-4e40bae451dae35d.png)
4.1.1.6 金立手机销量排行榜
![](http://upload-images.jianshu.io/upload_images/7488174-caa1581c99c61f01.png)
4.1.1.7 酷派手机销量排行榜
![](http://upload-images.jianshu.io/upload_images/7488174-92fd85a0daf35eb7.png)
4.1.1.8 魅族手机销量排行榜
![](http://upload-images.jianshu.io/upload_images/7488174-1b74d875959a71ad.png)
4.1.2 iPhone手机的机型分布情况
2018年4月,各款iPhone市场份额排行榜(国内)(来自百度移动统计)
参考:http://www.search1990.com/other/201607192019.html
![](http://upload-images.jianshu.io/upload_images/7488174-af752c8c7b4c6d27.png)
![](http://upload-images.jianshu.io/upload_images/7488174-710301abc3e3be0c.png)
4.2 操作系统、版本
2018年Q2季度全球安兔兔用户手机系统版本的分布情况
详见:https://tech.sina.com.cn/roll/2018-07-12/doc-ihfefkqq7954811.shtml
![](http://upload-images.jianshu.io/upload_images/7488174-7d1b45cc45e48613.png)
基于技术层面分析支持的最低版本为Android 4.4.0,所以增加Android 4.4.0,目前最新的操作系统已到9,所以增加Android 9.0.0
![](http://upload-images.jianshu.io/upload_images/7488174-f3756a72619dc26b.png)
2018年第一季度国内网络访问情况抽样分析排行(来自国家互联网应急中心(简称CNCERT))
详见:https://www.sohu.com/a/232393561_354899
![](http://upload-images.jianshu.io/upload_images/7488174-c4cf1457678f48f3.png)
基于技术层面考虑IOS>=9.0,支持的机型无限制,所以IOS9以下的版本不做考虑
![](http://upload-images.jianshu.io/upload_images/7488174-1ca51256f531b469.png)
4.3 分辨率
参考:https://tech.sina.com.cn/roll/2018-07-12/doc-ihfefkqq7954811.shtml
![](http://upload-images.jianshu.io/upload_images/7488174-b79fc013246c9ffb.png)
![](http://upload-images.jianshu.io/upload_images/7488174-199da70c7dfde373.png)
4.4 网络运营商类型
![](http://upload-images.jianshu.io/upload_images/7488174-488ee895b84ffdb3.png)
详见:http://www.china-10.com/china/4861sjrj_index.html
![](http://upload-images.jianshu.io/upload_images/7488174-94f864a1e7a07ad7.png)
5. 测试策略制定
主要根据app兼容性测试的影响因素、分析业务得出测试策略,并借助云测平台、Monkey工具等辅助测试
![](http://upload-images.jianshu.io/upload_images/7488174-8b60d03154933979.png)
备注:
1)优先真机测试,真机测试至少要覆盖到每一个厂商(目前的测试机已满足)
2)如果型号无法覆盖全,可以使用同系列的进行测试,例如如果没有华为Mate 10,可使用华为Mate 9代替
3)云测试只能拿来做个参考,不能取代人工测试
![](http://upload-images.jianshu.io/upload_images/7488174-9c86518be39b645b.png)
摘自:飘丹