GithubHelp home page GithubHelp logo

chrlis-zhang / androidrobot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hoozheng/androidrobot

0.0 2.0 0.0 131.87 MB

Android自动化测试

License: Apache License 2.0

Emacs Lisp 0.60% Batchfile 0.67% Java 98.62% Python 0.11%

androidrobot's Introduction

AndroidRobot

介绍

AndroidRobot是专门为Android设计的一款自动化测试工具,采用Python脚本驱动,支持针对应用或者针对设备的测试自动化,对于应用级别他很完美的支持了Native、Webview的自动化,对于设备级别的能够很好的支持重启重连设备、交互、顺序等执行方式。他适合企业级别的APP测试,也适合运营商类型的MTBF测试,以开源的方式,提供企业级的自动化方案。
目前支持以下功能:
1, 清晰简洁的IDE界面风格
2, 支持Python脚本
3, 支持脚本编写、控件的识别、录制
4, 支持Native、Webview控件识别
5, 具有图像比较功能
6, 具有任务管理功能、流畅的自动化引擎、清晰的输出报告

支持平台

  • Android

环境配置

快速入门

AndroidRobot是用Python脚本来驱动的,一个灵活性的开源框架。测试的一开始先建一个脚本,然后根据IDE的提示,编写脚本或者通过坐标录制脚本,脚本的主入口是Python的main函数。运行的时候需要在任务管理模块新建一个任务,通过任务关联脚本,我们只需要运行这个任务,可以很顺利的编辑运行自己的各种用例的组合。

原理介绍

AndroidRobot采用Python语言为驱动脚本,通过AndroidRobot框架分发用户的命令至手机端去执行。如果是Native的API,框架会自动分发命令到UiAutomator。如果是webview的API,Android4.4.2系统及以上我们会采用Chromedriver来驱动手机,Android4.4.2以下系统采用Selendroid

架构图

Architecture

下载

[AndroidRobot API]

AndroidRobot脚本支持的API详细描述,用户可以根据自己的需求定制自己的API

1,如何写一个Hello Wrold 2,如何创建任务 3,如何运行自己的第一个用例

1,AndroidRobot详细使用说明

里程碑

2014.01 - 2015.12 完成第一版本
2016.01 - 2016.02 完成对mac机器的运行
2016.02 - 2016.05 对iphone自动化的支持

Contributor

何政(架构与开发)、陈能技(运营合作)

Contacts

分享是一种情怀

androidrobot's People

Contributors

hoozheng avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.