Giter Site home page Giter Site logo

appperformance's Introduction

需要安装依赖包pyecharts,安装方法百度即可

打开PerConfig,修改pack_name为你需要测试的APP包名,如要测试UC浏览器即改为'com.UCMobile',xxx_Activity为APP主活动,比如UC浏览器的主活动名称为'com.UCMobile/.main.UCMobile',这里改为你自己的活动名称即可,使用adb命令即可查看,详细步骤可上网百度一下

AppPerformance

Android移动端性能测试工具

连接上手机直接运行testcase下的MonkeyTest.py 即可,自动生成测试报告

devicename_com.aliyun.alink_Medium_report

效果如下:

Alt text

appperformance's People

Contributors

jtmaxzhu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

appperformance's Issues

执行MonkeyTest报IndexError: list index out of range

--------------开始执行测试----------------
--------------设备:68de2f65 场景2:中等压力下APP性能指标----------------
logcat 完成
traces_log 完成
生成测试报告......
读取文件错误,文件内容为空
------read-------
[]
读取文件错误,文件内容为空
------read-------
[]
读取文件错误,文件内容为空
------read-------
[]
读取文件错误,文件内容为空
------read-------
[]
Exception in thread Thread-1:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/Users/didi/PycharmProjects/untitled/testCase/MonkeyTest.py", line 235, in run
start(self.dev)
File "/Users/didi/PycharmProjects/untitled/testCase/MonkeyTest.py", line 223, in start
rep.createReport(dev)
File "/Users/didi/PycharmProjects/untitled/lib/AppReport.py", line 32, in createReport
pix = lisDevinfo[0][dev]['header']['pix']
IndexError: list index out of range
@jtmaxzhu

问题

我看了下你的源码,有三点问题:
1、并非想你说了:“连接上手机直接运行testcase下的MonkeyTest.py 即可,自动生成测试报告”。比如在执行前得修改下PerConfig文件中的相关配置才行。
2、你这个代码结构比较混乱
3、没有markdown去描述一下项目的使用流程
@jtmaxzhu

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.