GithubHelp home page GithubHelp logo

chorushe / princekin Goto Github PK

View Code? Open in Web Editor NEW
52.0 10.0 13.0 319.41 MB

搜狐视频自动化测试工具——小王子

C++ 85.26% C 0.03% QMake 0.23% LLVM 0.33% Yacc 0.39% JavaScript 10.07% Batchfile 0.01% Java 3.36% Python 0.02% HTML 0.29% Makefile 0.01%

princekin's Introduction

概述

小王子是针对Android手机研发的一套自动化测试工具,可对用户的点击操作进行录制并回放,同时,还可对手机进行基于Monkey原理的压力测试,针对某一款app进行控件遍历测试,埋点统计,接口测试等,此外,还可以对手机的CPU、内存、电池温度、CPU温度、流量使用情况进行检测,返回包括日志和截图的详细测试报告,有效提高了测试效率,缩减测试周期。

环境安装及环境变量配置

相关环境安装:

  • JAVA(务必1.7版本,否则会出错)

  • ANT

  • Android-sdk

  • Python及mitmproxy(Python要求3以上版本,尽量使用3.6版本,其他版本在后续安装mitmproxy时会很麻烦)

  • plink

环境变量配置:

  • JAVA: JAVA_HOME=D:\program\oracle\JAVA7\JDK ; JRE_HOME=D:\program\oracle\JAVA7\JRE

  • ANT: ANT_HOME=D:\program\ant

  • ANDROID:ANDROID_HOME=D:\program\android

  • Python: PYTHON_HOME= D:\Program Files\Python3.6

  • WinRAR:WINRAR_HOME=C:\Program Files (x86)\WinRAR

  • Path:

    %ANDROID_HOME%\platform-tools;

    %ANDROID_HOME%\tools;

    %ANDROID_HOME%\build-tools\23.0.2;

    %ANDROID_HOME%\platforms\android-23;

    %ANT_HOME%\bin;

    %JAVA_HOME%\bin;

    %JAVA_HOME%\jre\bin;

    %JRE_HOME%\bin;

    %PYTHON_HOME%;

    %WINRAR_HOME%;

mitmprox安装

Mitmproxy是用于抓包的、基于python安装第三方工具,即可抓取http协议数据,也可抓取https协议数据。

在配置好python的环境变量的前提下,打开cmd窗口,输入命令:

python –m pip install mitmproxy

模块

  • 脚本录制

  • 脚本执行

  • 性能测试

  • 稳定性测试

  • 埋点统计

  • 遍历测试

  • 接口测试

  • 工具箱

详细使用文档可在安装后的主界面中“帮助”中查看

源代码打开方式

  • Windows系统

  • QT Creater

界面效果图

image

princekin's People

Contributors

chorushe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar kael avatar  avatar  avatar  avatar Emily avatar  avatar Nao avatar ZhangXiaoFeng avatar Chong Zhou avatar ltyd5788 avatar  avatar wyrover avatar  avatar Tonyzhang avatar  avatar  avatar  avatar 听风 avatar  avatar xuzhitong avatar hemming avatar  avatar  avatar zhangxinjian avatar michael avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Matt Reach avatar

Watchers

 avatar  avatar  avatar slidesoon avatar michael avatar ltyd5788 avatar  avatar Tonyzhang avatar  avatar  avatar

princekin's Issues

录制功能录制APP操作时不成功(脚本只输出第一步操作的代码,后续操作脚本无输出),回放时脚本输出有问题

回放脚本是脚本输出如下:
Warning: This version of UI Automator is deprecated. New tests should be written using
UI Automator 2.0 which is available as part of the Android Testing Support Library.
See https://developer.android.com/training/testing/ui-testing/uiautomator-testing.html
for more details.
Error: /sdcard/test.jar does not exist
Usage: uiautomator [options]
/sdcard/window_dump.xml
events: prints out accessibility events until terminated
replayFinished

执行D:\SDK\Android\tools\ant目录下的build.xml文件报错

在cmd下执行ANT命令报错信息:
[taskdef] Could not load definitions from resource anttasks.properties. It cou
ld not be found.
[taskdef] Could not load definitions from resource emma_ant.properties. It cou
ld not be found.
-set-mode-check:
-set-debug-files:
-check-env:
BUILD FAILED
D:\SDK\Android\tools\ant\build.xml:396: Problem: failed to create task or type c
heckenv
Cause: The name is undefined.

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.