美文网首页互联网软件测试
Android测试资源集合,测试工具,测试开源项目

Android测试资源集合,测试工具,测试开源项目

作者: 北疆_ | 来源:发表于2016-03-27 12:13 被阅读534次

测试第三方服务


国内

国外

第三方性能采集SDK

自动化测试

  • CircleCI 一个基于Github的自动化测试,单元测试工具,提供一个免费的私有仓库。

Google官方学习资料


优秀博客


RxJava Test**

测试框架


Unit Testing

Tools for UI Testing: Robotium, Appium, Calabash, Robolectric.

UI Testing

  • Espresso Android 官方推荐使用的UI测试库
  • UIAutomator 可以夸应用进行测试
  • Robolectric is a unit test framework that de-fangs the Android SDK jar so you can test-drive the development of your Android app. Tests run inside the JVM on your workstation in seconds

More

  • RoboSpock Github A testing framework which brings powers of Spock and Groovy to Android app testing http://robospock.org
  • Hamcrest matchers
    What is Hamcrest?
    Hamcrest is a library of matchers, which can be combined in to create flexible expressions of intent in tests. They've also been used for other purposes.

开源库


Collection

Sample

Google Sample

  1. android-testing-templates
  2. android-testing A collection of samples demonstrating different frameworks and techniques for automated testing

Tools 测试工具

square/spoon

在adb devices 检测到的设备跑测试程序,并提供截屏,文件,数据库操作:

Screenshots
Files
最最重要的是生成简单明了的测试报告:
displaying the results in a meaningful way

Android Studio 2.2 Preview new feature:

  • Espresso Test Recorder 菜单/run/Recorder Expresso Test 选项可以记录你的操作并转化为Espresso 的测试代码
  • APK Analyzer 菜单/build/Analyzer APK 提供APK大小分析工具,清楚的知道代码体积变换的趋势。
    .png

screengrab 当UI Tests 时自动化截屏

STF 远程控制,一台电脑控制测试多个测试设

openstf.github.io Control and manage Android devices from your browser

开发时的调试工具

stetho

Facebook开源,很强大的Android网络和数据库调试工具,能像调试WebApp一样调试Android原生应用。借助Stetho在Chrome上调试Android网络&数据库
常用配置:

  • 初始化
public class MyApplication extends Application {
  public void onCreate() {
    super.onCreate();
    Stetho.initializeWithDefaults(this);
  }
}
  • Chrome浏览器打开chrome://inspect/#devices

augmented-traffic-control

Fackbook开源项目模拟移动网络,对App的调试及网络优化有很大的帮助,主要参数有:

网络带宽(bandwidth)
延迟(latency)
丢包率(packet loss)
错包率(corrupted packets)
乱序率(packets ordering)

GT(随身调) 腾讯开源的测试套件

能Android设备上安装,进行移动调试,确保测试数据的真实有效性
开源地址: https://github.com/TencentOpen/GT
官网地址

使用GT APP进行快速的性能测试(CPU、内存、流量、电量、帧率/流畅度等等)、开发日志的查看、Crash日志查看、网络数据包的抓取、APP内部参数的调试、真机代码耗时统计等。

一. 基本功能测试
1. CPU占有率;
2 jiffes(CPU时间片);
3. 内存PSS值稳定在36M;
4. 网络上行流量和下行流量;
5. "数据存档"
二. 电量测试
再启动电流监控观察,1分钟后平均电流是220mA
三. crash
- 保存了抓包文件后;
- Logcat查看界面,立即把手机缓存的Logcat日志保存下来;
四. Net
- 系统提供的流量查看也包括局域网socket的流量,而且不能分时段统计;
- tcpdump抓包(需要手机root) + Wiresharek 抓包分析;
疑问点:
1. 激活FPS(帧率)的监测;

Purchase UI Tool (付费工具)

相关文章

网友评论

    本文标题:Android测试资源集合,测试工具,测试开源项目

    本文链接:https://www.haomeiwen.com/subject/tqkskttx.html