CN105204981A - Application performance test method and device - Google Patents
Application performance test method and device Download PDFInfo
- Publication number
- CN105204981A CN105204981A CN201410232622.7A CN201410232622A CN105204981A CN 105204981 A CN105204981 A CN 105204981A CN 201410232622 A CN201410232622 A CN 201410232622A CN 105204981 A CN105204981 A CN 105204981A
- Authority
- CN
- China
- Prior art keywords
- mobile device
- performance
- application
- information
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000011056 performance test Methods 0.000 title description 18
- 238000012360 testing method Methods 0.000 claims abstract description 188
- 238000012544 monitoring process Methods 0.000 claims description 63
- 230000008569 process Effects 0.000 claims description 14
- 230000008859 change Effects 0.000 abstract description 16
- 230000014509 gene expression Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010924 continuous production Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种应用性能测试方法和装置,其中的方法包括:获取被测应用在移动设备运行过程中移动设备性能信息以及所述性能信息的采集时间;获取被测应用在移动设备运行过程中用户历史操作信息以及历史操作发生时间;根据所述移动设备性能信息、所述采集时间、所述用户历史操作信息以及所述历史操作发生时间确定所述被测应用的应用性能随所述采集时间、所述用户历史操作信息以及所述历史操作发生时间的变化情况;输出所述被测应用的应用性能的变化情况。
The invention discloses a method and device for testing application performance, wherein the method includes: obtaining the performance information of the mobile device during the operation of the mobile device under test and the collection time of the performance information; obtaining the performance information of the application under test during the operation of the mobile device User historical operation information and historical operation occurrence time; according to the mobile device performance information, the collection time, the user historical operation information and the historical operation occurrence time, it is determined that the application performance of the application under test changes with the collection time , the historical operation information of the user and the change of the historical operation time; output the change of the application performance of the tested application.
Description
技术领域technical field
本发明涉及性能测试技术,特别是涉及一种应用性能测试方法以及相应的应用性能测试装置。The invention relates to performance testing technology, in particular to an application performance testing method and a corresponding application performance testing device.
背景技术Background technique
应用(也可以称为应用程序)通常需要进行性能测试,如在针对移动电话或者平板电脑等移动设备而开发的应用被正式投入使用之前,需要对应用的性能进行测试。Applications (also referred to as application programs) usually need to be tested for performance. For example, before an application developed for a mobile device such as a mobile phone or a tablet computer is officially put into use, the performance of the application needs to be tested.
现有的对移动设备中的应用性能进行测试的方法通常为:在移动设备中运行被测应用,并在被测应用的运行过程中根据预定时间间隔多次获取移动设备的性能信息,之后,通过对一段时间内获取到的移动设备的所有性能信息进行分析获得被测应用的性能。Existing methods for testing application performance in mobile devices generally include: running the application under test in the mobile device, and obtaining performance information of the mobile device multiple times according to a predetermined time interval during the running of the application under test, and then, The performance of the application under test is obtained by analyzing all the performance information of the mobile device acquired within a period of time.
发明人在实现本发明过程中发现,应用的种类以及数量已日渐繁多,用户对应用的要求也日渐提高,这促使应用应尽可能地具有更优的性能,以提升其市场竞争力;为了使应用具有更优的性能,这需要对应用进行更精细化的性能测试,以有针对性的改进应用;然而,利用现有的应用性能测试方法所获得的被测应用性能并不能够很好的满足当前的应用测试需求。In the process of implementing the present invention, the inventors found that the types and quantities of applications have become increasingly numerous, and users' requirements for applications have also increased, which prompts applications to have better performance as much as possible to enhance their market competitiveness; in order to make The application has better performance, which requires a more refined performance test for the application to improve the application; however, the performance of the tested application obtained by using the existing application performance testing method is not very good Meet current application testing needs.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的应用性能测试方法和装置。In view of the above problems, the present invention is proposed to provide an application performance testing method and device that overcome the above problems or at least partially solve the above problems.
依据本发明的一个方面,提供了一种应用性能测试方法,包括:获取被测应用在移动设备运行过程中移动设备性能信息以及所述性能信息的采集时间;获取被测应用在移动设备运行过程中用户历史操作信息以及历史操作发生时间;根据所述移动设备性能信息、所述采集时间、所述用户历史操作信息以及所述历史操作发生时间确定所述被测应用的应用性能随所述采集时间、所述用户历史操作信息以及所述历史操作发生时间的变化情况;输出所述被测应用的应用性能的变化情况。According to one aspect of the present invention, a method for testing application performance is provided, including: obtaining the performance information of the mobile device during the running of the mobile device of the tested application and the collection time of the performance information; User historical operation information and historical operation occurrence time; according to the mobile device performance information, the collection time, the user historical operation information and the historical operation occurrence time, determine that the application performance of the application under test changes with the collection time , the historical operation information of the user and the change of the historical operation time; output the change of the application performance of the tested application.
根据本发明的另一方面,提供了一种应用性能测试装置,包括:性能监测模块,适于获取被测应用在移动设备运行过程中移动设备性能信息以及所述性能信息的采集时间;操作监测模块,适于获取被测应用在移动设备运行过程中用户历史操作信息以及历史操作发生时间;确定性能模块,适于根据所述移动设备性能信息、所述采集时间、所述用户历史操作信息以及所述历史操作发生时间确定所述被测应用的应用性能随所述采集时间、所述用户历史操作信息以及所述历史操作发生时间的变化情况;输出性能模块,适于输出所述被测应用的应用性能的变化情况。According to another aspect of the present invention, an application performance testing device is provided, including: a performance monitoring module, adapted to obtain the performance information of the mobile device and the collection time of the performance information of the application under test during the operation of the mobile device; an operation monitoring module is adapted to acquire user history operation information and historical operation occurrence time of the application under test during the running process of the mobile device; the determining performance module is adapted to obtain the user's historical operation information and the The occurrence time of the historical operation determines the application performance of the application under test according to the collection time, the user historical operation information and the change of the historical operation occurrence time; the output performance module is adapted to output the application performance of the application under test Changes in application performance.
本发明的应用性能测试方法以及装置通过获取被测应用在移动设备运行过程中移动设备性能信息以及采集时间,可以获知被测应用的运行对移动设备性能的影响;通过获取被测应用在移动设备运行过程中用户历史操作信息以及历史操作发生时间,可以通过采集时间与历史操作发生时间的关联来获知用户历史操作对移动设备性能的影响,这样,可以清楚的获知被测应用性能波动的具体原因以及使被测应用的运行产生异常的具体操作等;从而本发明能够较好的满足当前的应用测试需求,有利于应用性能的提升。The application performance testing method and device of the present invention can know the impact of the running of the tested application on the performance of the mobile device by acquiring the mobile device performance information and the collection time of the tested application in the running process of the mobile device; During the process, the user's historical operation information and the time when the historical operation occurred can be used to know the impact of the user's historical operation on the performance of the mobile device through the association between the collection time and the historical operation time. In this way, the specific reasons for the performance fluctuation of the tested application and the Specific operations that cause abnormalities in the running of the application under test, etc.; thus, the present invention can better meet the current application testing requirements and is beneficial to the improvement of application performance.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。说明书附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings in the description are for the purpose of illustrating preferred embodiments only and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1示出了根据本发明实施例一的应用性能测试方法流程图;FIG. 1 shows a flowchart of an application performance testing method according to Embodiment 1 of the present invention;
图2示出了本发明实施例一的针对移动设备CPU占用百分比和用户历史操作信息所生成的折线图;FIG. 2 shows a line chart generated for the CPU usage percentage of a mobile device and historical user operation information according to Embodiment 1 of the present invention;
图3示出了本发明实施例一的针对移动设备内存已占用空间和用户历史操作信息生成的折线图;FIG. 3 shows a line chart generated for the occupied space of the mobile device memory and user history operation information according to Embodiment 1 of the present invention;
图4示出了本发明实施例一的针对移动设备电池电量和用户历史操作信息生成的折线图;FIG. 4 shows a line graph generated for the battery power of the mobile device and user historical operation information according to Embodiment 1 of the present invention;
图5示出了本发明实施例一的针对移动设备网络流量和用户历史操作信息生成的折线图;FIG. 5 shows a line graph generated for mobile device network traffic and user historical operation information according to Embodiment 1 of the present invention;
图6示出了本发明实施例一的针对移动设备CPU占用百分比、移动设备内存已占用空间、移动设备电池电量、移动设备网络流量和用户历史操作信息生成的一折线图;FIG. 6 shows a line graph generated for the CPU occupation percentage of the mobile device, the occupied space of the memory of the mobile device, the battery power of the mobile device, the network traffic of the mobile device, and the historical operation information of the user according to Embodiment 1 of the present invention;
图7示出了本发明实施例一的针对移动设备CPU占用百分比、移动设备内存已占用空间、移动设备电池电量、移动设备网络流量和用户历史操作信息生成的另一折线图;FIG. 7 shows another line graph generated for the CPU occupation percentage of the mobile device, the occupied space of the memory of the mobile device, the battery power of the mobile device, the network traffic of the mobile device, and the historical operation information of the user according to Embodiment 1 of the present invention;
图8示出了根据本发明实施例二的应用性能测试装置示意图。FIG. 8 shows a schematic diagram of an application performance testing device according to Embodiment 2 of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
实施例一、应用性能测试方法。下面结合图1对本实施例的方法进行详细说明。Embodiment 1, application performance testing method. The method of this embodiment will be described in detail below with reference to FIG. 1 .
图1中,S100、获取被测应用在移动设备运行过程中移动设备性能信息以及移动设备性能信息的采集时间。In FIG. 1 , S100 , acquire the performance information of the mobile device and the collection time of the performance information of the mobile device when the application under test is running on the mobile device.
具体的,本实施例中的获取移动设备性能信息以及移动设备性能信息的采集时间的主体应为应用性能测试设备;这里的应用性能测试设备可以为运行被测应用的移动设备,也可以为独立于运行被测应用的移动设备的其他设备,例如,上述其他设备可以为与运行被测应用的移动设备无线连接或者有线连接的服务器等设备。Specifically, in this embodiment, the subject of acquiring the performance information of the mobile device and the collection time of the performance information of the mobile device should be the application performance testing device; the application performance testing device here can be a mobile device running the application under test, or it can be an independent Other devices based on the mobile device running the application under test, for example, the above other devices may be devices such as a server connected wirelessly or wired to the mobile device running the application under test.
在应用性能测试设备为运行被测应用的移动设备的情况下,该移动设备(如该移动设备中安装的应用性能测试程序等)可以在被测应用的运行过程中,根据预先设定的时间间隔定时采集移动设备性能信息,并将采集到的移动设备性能信息和采集时间本地存储于移动设备性能日志中,之后,移动设备(如应用性能测试程序)可以在需要进行应用性能分析时,方便地从其本地存储的移动设备性能日志中获取被测应用在移动设备运行过程中移动设备性能信息以及移动设备性能信息的采集时间。In the case that the application performance test device is a mobile device running the application under test, the mobile device (such as the application performance test program installed in the mobile device, etc.) Collect mobile device performance information at regular intervals, and store the collected mobile device performance information and collection time locally in the mobile device performance log. After that, mobile devices (such as application performance test programs) can conveniently analyze application performance The performance information of the mobile device and the collection time of the performance information of the mobile device during the operation of the mobile device of the application under test are obtained accurately from the mobile device performance log stored locally.
在应用性能测试设备为与运行被测应用的移动设备连接的其他设备如服务器的情况下,移动设备(如该移动设备中安装的应用性能测试程序等)可以在被测应用的运行过程中,根据预先设定的时间间隔定时地采集其性能信息,并将采集到的移动设备性能信息和采集时间本地存储于移动设备性能日志中,之后,移动设备(如应用性能测试程序)可以将移动设备性能日志上传给服务器;例如,移动设备(如应用性能测试程序)在被测应用运行结束后主动地将本地存储的移动设备性能日志上传给服务器;再例如,无论被测应用是否在运行或者是否运行结束,移动设备在接收到服务器传输来的移动设备性能测试信息上传请求后,将其本地存储的移动设备性能日志上传给服务器;这样,服务器可以在需要进行应用性能分析时,方便地从其接收到的移动设备性能日志中获取被测应用在移动设备运行过程中移动设备性能信息以及移动设备性能信息的采集时间。In the case that the application performance testing device is other equipment connected to the mobile device running the application under test, such as a server, the mobile device (such as the application performance testing program installed in the mobile device, etc.) can be in the running process of the application under test, The performance information of the mobile device is regularly collected according to the preset time interval, and the collected mobile device performance information and collection time are stored locally in the mobile device performance log. After that, the mobile device (such as an application performance test program) can log the mobile device The performance log is uploaded to the server; for example, the mobile device (such as an application performance test program) actively uploads the locally stored mobile device performance log to the server after the application under test finishes running; another example, no matter whether the application under test is running or not After running, the mobile device uploads the locally stored mobile device performance log to the server after receiving the mobile device performance test information upload request transmitted from the server; The performance information of the mobile device and the collection time of the performance information of the mobile device during the operation of the mobile device by the tested application are obtained from the received mobile device performance log.
上述移动设备性能信息通常包含有移动设备的多个性能指标,移动设备性能信息具体包含的性能指标可以根据应用的实际测试需求确定;例如,移动设备性能信息可以具体包括:移动设备CPU使用情况、移动设备内存使用情况、移动设备网络流量以及移动设备电池使用情况中的任意一个或者任意两个或者任意三个或者所有等等。The above mobile device performance information usually includes multiple performance indicators of the mobile device, and the specific performance indicators included in the mobile device performance information can be determined according to the actual test requirements of the application; for example, the mobile device performance information can specifically include: mobile device CPU usage, Any one or any two or any three or all of mobile device memory usage, mobile device network traffic, and mobile device battery usage, etc.
上述移动设备CPU使用情况可以具体为:移动设备CPU占用率(即移动设备占用百分比)或者移动设备CPU空闲率(即移动设备CPU空闲百分比),且移动设备CPU占用率可以具体为被测应用对移动设备CPU的占用率;上述移动设备内存使用情况可以具体为:移动设备内存占用率(即移动设备内存占用百分比)或者移动设备内存空闲率(即移动设备内存空闲百分比)或者移动设备内存已占用空间大小或者移动设备内存空闲空间大小,且移动设备内存占用率可以具体为被测应用对移动设备内存的占用率,移动设备内存已占用空间大小可以具体为被测应用对移动设备内存的占用空间大小;上述移动设备网络流量可以具体为被测应用所消耗的网络流量:且移动设备网络流量可以是Wi-Fi数据流量以及2G/3G/4G数据流量中的任意一个或者两个;也就是说,本实施例中的移动设备可以区分出其当前网络流量的类型,从而移动设备性能日志中的移动设备网络流量可以明确表示出移动设备当前所消耗网络流量是Wi-Fi数据流量,还是2G/3G/4G数据流量;上述移动设备电池使用情况可以具体为移动设备电池电量(即移动设备电池的剩余电量),且移动设备电池电量可以使用电池电压来表示。The CPU usage of the above mobile device can be specifically: the CPU usage rate of the mobile device (that is, the percentage occupied by the mobile device) or the CPU idle rate of the mobile device (that is, the CPU idle percentage of the mobile device), and the CPU usage rate of the mobile device can be specifically defined as The CPU usage rate of the mobile device; the memory usage of the above mobile device can be specifically: the memory usage rate of the mobile device (that is, the percentage of memory occupied by the mobile device) or the idle rate of the memory of the mobile device (that is, the free percentage of the memory of the mobile device) or the memory usage of the mobile device The size of the space or the free space of the mobile device memory, and the mobile device memory occupancy rate can be specified as the mobile device memory occupancy rate of the application under test, and the occupied space of the mobile device memory can be specified as the mobile device memory occupancy space of the application under test size; the above-mentioned mobile device network traffic can be specifically the network traffic consumed by the application under test: and the mobile device network traffic can be any one or both of Wi-Fi data traffic and 2G/3G/4G data traffic; that is to say , the mobile device in this embodiment can distinguish the type of its current network traffic, so that the network traffic of the mobile device in the performance log of the mobile device can clearly indicate whether the network traffic currently consumed by the mobile device is Wi-Fi data traffic or 2G/ 3G/4G data traffic; the battery usage of the above-mentioned mobile device may specifically be the battery power of the mobile device (that is, the remaining power of the battery of the mobile device), and the battery power of the mobile device may be represented by the battery voltage.
移动设备可以利用其内部安装的应用性能测试程序中的性能监测模块来采集被测应用在移动设备运行过程中的移动设备性能信息,并将采集到的移动设备性能信息以及相应的采集时间本地存储在移动设备性能日志中。性能监测模块可以通过调用移动设备操作系统中相应的API(ApplicationProgrammingInterface,应用程序编程接口)来采集被测应用在移动设备运行过程中的移动设备性能信息。上述应用性能测试程序可以作为安装于移动设备中的某个应用的一部分功能,如应用性能测试程序可以作为移动设备中安装的优化大师的一个优化功能。The mobile device can use the performance monitoring module in the application performance test program installed inside it to collect the mobile device performance information of the tested application during the operation of the mobile device, and store the collected mobile device performance information and the corresponding collection time locally in the mobile device performance log. The performance monitoring module can collect the mobile device performance information of the tested application during the running of the mobile device by calling a corresponding API (Application Programming Interface, Application Programming Interface) in the mobile device operating system. The above application performance testing program can be used as a part of the function of an application installed in the mobile device, for example, the application performance testing program can be used as an optimization function of the optimization master installed in the mobile device.
本实施例的采集被测应用在移动设备运行过程中的移动设备性能信息并本地存储移动设备性能信息及采集时间的一个具体的例子为:应用性能测试程序在预先设定的时间间隔到达后,调用操作系统中的SystemProperties.java来获取当前移动设备CPU占用率,调用操作系统中的ActivityManager.java来获得当前移动设备内存已占用空间大小,调用操作系统中的ConnectivityManager.java来获得当前移动设备网络流量,调用操作系统中的BatteryManager.java来获得当前移动设备电池电量,上述四个调用操作在通常情况下可以同时进行;应用性能测试程序在执行上述调用操作时或者接收到操作系统返回的当前移动设备CPU占用率、当前移动设备内存已占用空间大小、当前移动设备网络流量以及当前移动设备电池电量时,获取移动设备的当前时间(即给移动设备性能信息打时间戳),然后,应用性能测试程序将当前移动设备CPU占用率、当前移动设备内存占用率、当前移动设备网络流量、当前移动设备电池电量以及移动设备的当前时间作为一条记录存储在移动设备性能日志中。本实施例可以利用移动设备的操作系统所提供的API来获取移动设备的当前时间,如利用操作系统中的System.currentTimeMillis()来获取移动设备的当前时间。A specific example of collecting the mobile device performance information of the application under test during the operation of the mobile device in this embodiment and locally storing the mobile device performance information and the collection time is as follows: after the application performance test program arrives at a preset time interval, Call SystemProperties.java in the operating system to obtain the CPU usage of the current mobile device, call ActivityManager.java in the operating system to obtain the occupied space of the current mobile device memory, and call ConnectivityManager.java in the operating system to obtain the current mobile device network Traffic, call BatteryManager.java in the operating system to obtain the battery power of the current mobile device. The above four calling operations can be performed at the same time under normal circumstances; when the application performance test program executes the above calling operations or receives the current mobile device returned by the operating system When the CPU usage of the device, the occupied space of the current mobile device memory, the current network traffic of the mobile device, and the current battery level of the mobile device are used, the current time of the mobile device is obtained (that is, the time stamp is given to the performance information of the mobile device), and then the application performance test is performed. The program stores the current mobile device CPU usage, current mobile device memory usage, current mobile device network traffic, current mobile device battery power, and the current time of the mobile device as a record in the mobile device performance log. In this embodiment, the API provided by the operating system of the mobile device can be used to obtain the current time of the mobile device, for example, the current time of the mobile device can be obtained by using System.currentTimeMillis() in the operating system.
本实施例中的移动设备性能信息日志可以为txt格式的文件,也可以为其他格式的文件;且移动设备性能信息日志可以存储在移动设备的SD卡中。The performance information log of the mobile device in this embodiment may be a file in txt format, or a file in other formats; and the performance information log of the mobile device may be stored in an SD card of the mobile device.
S110、获取被测应用在移动设备运行过程中用户历史操作信息以及历史操作发生时间。S110. Obtain historical operation information of the user during the running of the application under test on the mobile device and the time at which the historical operation occurred.
具体的,本实施例中的获取用户历史操作信息以及历史操作发生时间的主体同样应为应用性能测试设备;同理,本实施例中的应用性能测试设备可以为运行被测应用的移动设备,也可以为独立于运行被测应用的移动设备的其他设备,例如,上述其他设备可以为与运行被测应用的移动设备无线连接或者有线连接的服务器等设备。Specifically, in this embodiment, the subject that acquires user historical operation information and historical operation occurrence time should also be an application performance testing device; similarly, the application performance testing device in this embodiment can be a mobile device running the application under test, It may also be other devices independent of the mobile device running the application under test. For example, the above other devices may be devices such as a server connected wirelessly or wiredly to the mobile device running the application under test.
需要特别说明的是,获取用户历史操作信息以及历史操作发生时间的主体通常与上述获取移动设备性能信息以及移动设备性能信息的采集时间的主体为同一个主体;另外,虽然S100和S110是带有顺序编号的两个步骤,然而,S100和S110之间在实际应用中并没有必然的执行顺序限制,这两个步骤通常应同时执行,当然也可以先后执行,但是,在测试的整个时间段内最好应有部分移动设备性能信息与部分用户历史操作信息是同时获得的。It should be noted that the subject that obtains the user's historical operation information and the time when the historical operation occurred is usually the same subject as the above-mentioned subject that obtains the mobile device performance information and the collection time of the mobile device performance information; in addition, although S100 and S110 are with The two steps of sequential numbering, however, there is no necessary execution sequence restriction between S100 and S110 in practical applications, these two steps should usually be executed at the same time, of course, can also be executed successively, but, within the entire time period of the test Preferably, part of the mobile device performance information and part of the user's historical operation information should be obtained at the same time.
在应用性能测试设备为运行被测应用的移动设备的情况下,该移动设备(如该移动设备中安装的应用性能测试程序等)可以在被测应用的运行过程中,实时监测用户的操作(这里的用户的操作通常是指针对应用性能测试而设计的测试逻辑所模拟的用户的操作),并在监测到用户执行了相应的操作时,获取移动设备的当前时间,并将监测到的用户执行的操作所对应的操作信息以及上述当前时间作为用户历史操作信息以及历史操作发生时间本地存储于用户历史操作日志中;从而移动设备在需要进行应用性能分析时,可以方便地从其本地存储的用户历史操作日志中获取被测应用在移动设备运行过程中用户历史操作信息以及历史操作发生时间。In the case where the application performance test device is a mobile device running the application under test, the mobile device (such as the application performance test program installed in the mobile device, etc.) can monitor the user's operation in real time during the running of the application under test ( The user's operation here usually refers to the user's operation simulated by the test logic designed for application performance testing), and when it is detected that the user has performed the corresponding operation, the current time of the mobile device is obtained, and the monitored user The operation information corresponding to the executed operation and the above-mentioned current time are locally stored in the user history operation log as the user history operation information and the time when the history operation occurred; thus, when the mobile device needs to perform application performance analysis, it can conveniently store it from its locally stored The user history operation log obtains the user history operation information and the time when the application under test is running on the mobile device.
在应用性能测试设备为与运行被测应用的移动设备连接的其他设备如服务器的情况下,移动设备(如该移动设备中安装的应用性能测试程序等)可以在被测应用的运行过程中,实时监测用户的操作(这里的用户的操作通常是指针对应用性能测试而设计的测试逻辑所模拟的用户的操作),并在监测到用户执行了相应的操作时,获取移动设备的当前时间(即给用户历史操作信息打时间戳),并将用户执行的操作对应的操作信息以及上述当前时间作为用户历史操作信息以及历史操作发生时间本地存储于用户历史操作日志中,之后,移动设备可以将用户历史操作日志上传给服务器;例如,移动设备在被测应用运行结束后主动地将本地存储的用户历史操作日志上传给服务器;再例如,移动设备在接收到服务器传输来的移动设备性能测试信息上传请求后,将其本地存储的用户历史操作日志上传给服务器;这样,服务器在需要进行应用性能分析时,可以方便地从其接收到的用户历史操作日志中获取被测应用在移动设备运行过程中用户历史操作信息以及历史操作发生时间。同样的,本实施例可以利用移动设备的操作系统所提供的API来获取移动设备的当前时间,如利用操作系统中的System.currentTimeMillis()来获取移动设备的当前时间。In the case that the application performance testing device is other equipment connected to the mobile device running the application under test, such as a server, the mobile device (such as the application performance testing program installed in the mobile device, etc.) can be in the running process of the application under test, Monitor the user's operation in real time (the user's operation here usually refers to the user's operation simulated by the test logic designed for application performance testing), and when it is detected that the user has performed the corresponding operation, obtain the current time of the mobile device ( That is, time stamp the user's historical operation information), and store the operation information corresponding to the operation performed by the user and the above-mentioned current time locally in the user's historical operation log as the user's historical operation information and the time when the historical operation occurred. After that, the mobile device can store the User history operation logs are uploaded to the server; for example, the mobile device actively uploads the locally stored user history operation logs to the server after the application under test finishes running; another example, the mobile device receives the mobile device performance test information transmitted by the server After uploading the request, upload the user history operation log stored locally to the server; in this way, when the server needs to perform application performance analysis, it can easily obtain the application under test from the received user history operation log during the running process of the mobile device. The user's historical operation information and the time when the historical operation occurred. Similarly, this embodiment can use the API provided by the operating system of the mobile device to obtain the current time of the mobile device, for example, use System.currentTimeMillis() in the operating system to obtain the current time of the mobile device.
上述S100中的移动设备性能信息日志和S110中的用户历史操作日志通常应同时上传至服务器,例如,移动设备在被测应用运行结束后主动地将本地存储的移动设备性能信息日志和用户历史操作日志同时上传至服务器;再例如,移动设备在接收到服务器传输来的移动设备性能测试信息上传请求后,将本地存储的移动设备性能信息日志和用户历史操作日志同时上传至服务器。本实施例可以通过在应用性能测试程序中设置Upload()函数将上述两日志上传至服务器。另外,移动设备可以清空已经成功上传的移动设备性能信息日志和用户历史操作日志中的记录。The above-mentioned mobile device performance information log in S100 and user history operation log in S110 should usually be uploaded to the server at the same time. The log is uploaded to the server at the same time; for another example, after the mobile device receives the mobile device performance test information upload request transmitted from the server, it simultaneously uploads the locally stored mobile device performance information log and user history operation log to the server. In this embodiment, the above two logs can be uploaded to the server by setting the Upload() function in the application performance test program. In addition, the mobile device can clear records in the successfully uploaded mobile device performance information log and user history operation log.
上述用户历史操作日志通常包含有用户执行的多种操作(包括测试逻辑所模拟的用户的操作)所对应的用户历史操作信息,且用户执行的多种操作可以具体包括:点击、滑动以及输入事件等等。本实施例不限制用户执行的操作的具体内容。The above-mentioned user history operation log usually contains user history operation information corresponding to various operations performed by the user (including the user's operation simulated by the test logic), and the various operations performed by the user may specifically include: click, slide, and input events etc. This embodiment does not limit the specific content of the operations performed by the user.
移动设备可以利用其内部安装的应用性能测试程序中的操作监测模块来获取被测应用在移动设备运行过程中的用户历史操作信息以及操作发生时间,并将获取到的用户历史操作信息以及相应的操作发生时间本地存储在用户历史操作日志中。应用性能测试程序通常可以获取并辨识被测应用中的UI(UserInterface,用户界面)控件,并按照相应的测试逻辑来调用被测应用中的相应UI控件,以对被测应用进行测试。应用性能测试程序在调用被测应用的相应UI控件时,应用性能测试程序中的操作监测模块可以将相应的UI控件信息以及当前调用的时间作为用户历史操作信息以及操作发生时间记录到用户历史操作日志中。The mobile device can use the operation monitoring module in the application performance test program installed inside it to obtain the user's historical operation information and the operation time of the tested application during the operation of the mobile device, and the obtained user historical operation information and corresponding The operation occurrence time is stored locally in the user history operation log. The application performance testing program can usually obtain and identify UI (User Interface, user interface) controls in the application under test, and call corresponding UI controls in the application under test according to corresponding test logic, so as to test the application under test. When the application performance test program calls the corresponding UI control of the application under test, the operation monitoring module in the application performance test program can record the corresponding UI control information and the current call time as user historical operation information and operation occurrence time to the user historical operation in the log.
本实施例中的应用性能测试程序可以是在Robotium的基础上开发的应用程序。Robotium是一个基于Android平台的UI自动化测试框架,利用Robotium提供的API(如Solo.java)可以通过多种方式来对被测应用的UI控件进行辨识以及对被测应用的UI的操作,如点击操作、长按操作或者滑动操作等。The application performance testing program in this embodiment may be an application program developed on the basis of Robotium. Robotium is a UI automation testing framework based on the Android platform. The API provided by Robotium (such as Solo.java) can be used in various ways to identify the UI controls of the application under test and operate the UI of the application under test, such as clicking operation, long press operation or slide operation, etc.
移动设备采集被测应用在移动设备运行过程中的用户操作信息,并本地存储用户操作信息以及操作发生时间的一个具体的例子为:应用性能测试程序在运行后通过向操作系统查询可以获知被测应用的所有UI控件(如应用性能测试程序通过利用操作系统的Robotium所提供的API可以查询获知被测应用的所有UI控件),然后,应用性能测试程序会按照其预先设置的测试逻辑调用相应的UI控件,使被测应用针对当前调用的相应的UI控件执行相应的操作(如应用性能测试程序通过利用操作系统的Robotium所提供的API可以使被测应用执行UI控件所对应的操作),从而本实施例通过模仿用户对被测应用的实际操作而对被测应用进行性能测试;应用性能测试程序在调用相应的UI控件并使被测应用执行相应的操作时,应用性能测试程序中的操作监测模块可以记录该UI控件对应的操作信息,并同时获取移动设备的当前时间(即为该UI控件增加相应的时间戳),然后,操作监测模块将UI控件对应的操作信息以及当前时间作为一条记录存储在用户历史操作日志中。上述用户历史操作日志可以为txt格式的文件,也可以为其他格式的文件。A specific example of the mobile device collecting the user operation information of the application under test during the running of the mobile device, and locally storing the user operation information and the time when the operation occurred is: after the application performance test program is running, it can query the operating system to know the All UI controls of the application (for example, the application performance test program can query all UI controls of the application under test by using the API provided by Robotium of the operating system), and then the application performance test program will call the corresponding test logic according to its preset test logic. UI controls, so that the application under test performs the corresponding operation for the corresponding UI control of the current call (such as the application performance test program can make the application under test perform the corresponding operation of the UI control by using the API provided by the Robotium of the operating system), thereby In this embodiment, the performance test is performed on the application under test by simulating the user's actual operation on the application under test; The monitoring module can record the operation information corresponding to the UI control, and at the same time obtain the current time of the mobile device (that is, add a corresponding time stamp for the UI control), and then, the operation monitoring module will use the operation information corresponding to the UI control and the current time as an item The records are stored in the user history operation log. The above-mentioned user history operation log can be a file in txt format, or a file in other formats.
S120、根据上述移动设备性能信息、采集时间、用户历史操作信息以及历史操作发生时间确定被测应用的应用性能随采集时间、用户历史操作信息以及历史操作发生时间的变化情况。S120. According to the above mobile device performance information, collection time, user historical operation information, and historical operation occurrence time, determine changes in the application performance of the tested application with collection time, user historical operation information, and historical operation occurrence time.
具体的,本实施例的被测应用的应用性能随采集时间、用户历史操作信息以及历史操作发生时间的变化情况可以以折线图的形式体现;当然,该变化情况也可以采用其他形式来体现,如柱状图、统计表或者文本文件等。Specifically, the application performance of the application under test in this embodiment changes with the collection time, user historical operation information, and historical operation occurrence time can be reflected in the form of a line graph; of course, the change can also be reflected in other forms, Such as histograms, statistical tables, or text files.
由于本实施例中的采集时间和历史操作发生时间完全可以拟合在同一时间轴上,因此,本实施例中的移动设备性能信息和用户历史操作信息是可以基于时间轴中的时间而关联起来的。Since the collection time and historical operation occurrence time in this embodiment can be fitted on the same time axis, the mobile device performance information and user historical operation information in this embodiment can be associated based on the time in the time axis of.
本实施例可以先利用移动设备性能信息和采集时间来形成折线图或者柱状图或者统计表等,然后,再利用历史操作发生时间,将相应的用户历史操作信息标记在折线图或者柱状图或者统计表中的相应位置处。In this embodiment, the performance information of the mobile device and the collection time can be used to form a line graph, histogram, or statistical table, and then, the corresponding user historical operation information can be marked on the line graph, histogram, or statistical table by using the historical operation occurrence time. corresponding position in the table.
本实施例在获取的移动设备性能信息包含有多种性能指标的情况下,可以分别确定出每一个性能指标随采集时间、用户历史操作信息以及历史操作发生时间的变化情况;一个具体的例子,在获取的移动设备性能信息包括移动设备CPU使用情况、移动设备内存使用情况、移动设备网络流量以及移动设备电池使用情况的实际应用场景中,本实施例可以从移动设备性能信息日志中读取出所有的被测应用消耗CPU的百分比、被测应用消耗内存的百分比、被测应用消耗的网络流量、移动设备电池电量以及各信息对应的采集时间,并利用读取出的所有的被测应用消耗CPU的百分比、被测应用消耗内存的百分比、被测应用消耗的网络流量、移动设备电池电量以及各信息对应的采集时间生成四条折线,这四条折线通常应位于四个不同的坐标系中,当然也可以位于同一个坐标系中;不论四条折线是位于同一个坐标系中,还是位于四个不同的坐标系中,坐标系的横坐标均表示采集时间,且坐标系的纵坐标均表示性能指标的具体量化数值;然后,从用户历史操作日志中读取所有的用户历史操作信息以及历史操作发生时间,确定各历史操作发生时间在坐标系中的横坐标的位置,并在历史操作发生时间对应在折线的位置处或者历史操作发生时间在横坐标位置处标记相应的用户历史操作信息,本实施例可以基于用户历史操作信息对应的文字表述来进行标记,也可以基于用户历史操作信息对应的标识符等来进行标记。In this embodiment, when the obtained mobile device performance information contains multiple performance indicators, the change of each performance indicator with the collection time, user historical operation information, and historical operation occurrence time can be determined respectively; a specific example, In an actual application scenario where the obtained mobile device performance information includes mobile device CPU usage, mobile device memory usage, mobile device network traffic, and mobile device battery usage, this embodiment can read out from the mobile device performance information log The percentage of CPU consumed by all tested applications, the percentage of memory consumed by the tested application, the network traffic consumed by the tested application, the battery power of the mobile device, and the collection time corresponding to each information, and the read consumption of all the tested applications The percentage of CPU, the percentage of memory consumed by the application under test, the network traffic consumed by the application under test, the battery power of the mobile device, and the collection time corresponding to each information generate four polylines. These four polylines should usually be located in four different coordinate systems, of course It can also be located in the same coordinate system; no matter whether the four polylines are located in the same coordinate system or in four different coordinate systems, the abscissa of the coordinate system indicates the acquisition time, and the ordinate of the coordinate system indicates the performance index The specific quantitative value; then, read all the user's historical operation information and historical operation occurrence time from the user historical operation log, determine the position of the abscissa of each historical operation occurrence time in the coordinate system, and correspond to the historical operation occurrence time Mark the corresponding user historical operation information at the position of the broken line or the occurrence time of the historical operation at the position of the abscissa. This embodiment can mark based on the textual expression corresponding to the user historical operation information, or based on the identification corresponding to the user historical operation information characters, etc. to mark.
本实施例可以利用现有的绘图插件来绘制上述折线图,如将读取的数据按照预先设定的方式提供给绘图插件,从而绘图插件可以根据其接收到的数据绘制出上述折线图。In this embodiment, an existing drawing plug-in can be used to draw the above-mentioned line graph, for example, the read data is provided to the drawing plug-in in a preset manner, so that the drawing plug-in can draw the above-mentioned line graph according to the data it receives.
S130、输出被测应用的应用性能的变化情况。S130. Output the change situation of the application performance of the application under test.
具体的,本实施例的应用性能测试设备可以通过其显示屏显示被测应用的应用性能随采集时间、用户历史操作信息以及历史操作发生时间的变化情况(如显示上述折线图),也可以通过打印机输出该变化情况(如打印统计表),当然,本实施例还可以通过其他方式输出该变化情况。Specifically, the application performance testing device of this embodiment can display the application performance of the application under test with the collection time, user historical operation information, and historical operation time changes through its display screen (such as displaying the above-mentioned line graph), or through The printer outputs the change situation (such as printing a statistical table), of course, this embodiment can also output the change situation in other ways.
本实施例在采用显示屏输出被测应用的应用性能的变化情况的实际应用场景中,可以采用多种方式显示标记在坐标系中的用户历史操作信息,如在应用性能测试设备的鼠标指向折线中的某一点处(或者触碰位置为折线中的某一点处)时,该点附近的用户历史操作信息对应的文字表述或者标识符被显性地显示出来,而位于其他位置的用户历史操作信息对应的文字表述或者标识符处于隐藏显示状态;再如,在应用性能测试设备的鼠标指向折线中的某一点处(或者触碰位置为折线中的某一点处)时,标记在该折线中的所有的用户历史操作信息对应的文字表述或者标识符都被显性地显示出来。In this embodiment, in the actual application scenario where the display screen is used to output the change of the application performance of the application under test, various methods can be used to display the user's historical operation information marked in the coordinate system, such as the mouse pointing to the broken line of the application performance testing device When at a certain point in (or the touch position is at a certain point in the broken line), the textual expression or identifier corresponding to the user history operation information near this point is displayed explicitly, while the user history operation information at other positions The text expression or identifier corresponding to the information is in the hidden display state; for another example, when the mouse of the application performance testing device points to a certain point in the polyline (or the touch position is a certain point in the polyline), the mark is in the polyline The text expressions or identifiers corresponding to all the user history operation information are displayed explicitly.
另外,在多条折线(如四条折线)位于同一个坐标系中的情况下,纵坐标可以分别显示出四条折线所对应的单位刻度,如利用四条纵坐标来显示四条折线所对应的单位刻度;当然,本实施例也可以采用其他方式来显示四条折线所对应的单位刻度,例如,在应用性能测试设备的鼠标指向某一条折线中的某一点处(或者触碰位置为某一条折线中的某一点处)时,该坐标系的纵坐标的单位刻度值应显示该折线所对应的单位刻度值;而在应用性能测试设备的鼠标未指向任意一条折线中的任意一点处(或者触碰位置不是任意一条折线中的任意一点处)时,该坐标系的纵坐标的单位刻度值可以为预先设定的某一条折线所对应的单位刻度值。In addition, when multiple polylines (such as four polylines) are located in the same coordinate system, the ordinates can respectively display the unit scales corresponding to the four polylines, such as using four ordinates to display the unit scales corresponding to the four polylines; Of course, this embodiment can also use other methods to display the unit scales corresponding to the four broken lines, for example, when the mouse of the application performance testing device points to a certain point in a certain broken line (or the touch position is a certain point in a certain broken line). point), the unit scale value of the ordinate of the coordinate system should display the unit scale value corresponding to the polyline; while the mouse of the application performance testing device does not point to any point in any polyline (or the touch position is not At any point in any polyline), the unit scale value of the ordinate of the coordinate system can be the unit scale value corresponding to a certain polyline set in advance.
下面结合附图2-7对本实施例的一个实际应用进行说明。本实施例在被测应用运行过程中所采集到的移动设备CPU占用百分比、移动设备内存已占用空间、移动设备电池电量和移动设备网络流量以及所监测到的用户历史操作信息如下述表1所示。A practical application of this embodiment will be described below with reference to the accompanying drawings 2-7. In this embodiment, the CPU usage percentage of the mobile device, the occupied space of the memory of the mobile device, the battery power of the mobile device, the network traffic of the mobile device, and the monitored historical user operation information collected during the running of the application under test are shown in Table 1 below. Show.
表1Table 1
针对上述表1需要特别说明的是,在监控用户操作过程中,一个用户操作可能会影响一段持续的时间,因此,一个用户历史操作信息对应的操作发生时间可能会对应多个采集时间,例如,在第1秒监控到的“输入用户名”的操作所产生的影响是一个持续过程,所以,可以认为在下一个历史操作发生之前所采集到的多个移动设备性能信息均与“输入用户名”这一用户历史操作信息相对应。For the above table 1, it needs to be specially explained that during the monitoring of user operations, a user operation may affect a continuous period of time. Therefore, the operation occurrence time corresponding to a user's historical operation information may correspond to multiple collection times, for example, The impact of the "input user name" operation monitored in the first second is a continuous process, so it can be considered that the performance information of multiple mobile devices collected before the next historical operation occurs is related to the "input user name" This user history operation information corresponds.
本实施例在利用四个坐标系来展示上述表1中的具体内容的情况下,所生成的四个折线图如图2-5所示。具体的,本实施例利用采集时间、历史操作发生时间以及上述表1中的移动设备CPU占用百分比和用户历史操作信息所生成的折线图如图2所示,图2中的横坐标表示时间,单位为秒(s),纵坐标表示CPU占用百分比,单位为百分比数值;本实施例利用采集时间、历史操作发生时间以及上述表1中的移动设备内存已占用空间和用户历史操作信息生成的折线图如图3所示,图3中的横坐标表示时间,单位为秒,纵坐标表示内存占用空间大小,单位为MB(MByte,兆);本实施例利用采集时间、历史操作发生时间以及上述表1中的移动设备电池电量和用户历史操作信息生成的折线图如图4所示,图4中的横坐标表示时间,单位为秒,纵坐标表示电池电压,单位为Mv(毫伏);本实施例利用采集时间、历史操作发生时间以及上述表1中的移动设备网络流量和用户历史操作信息生成的折线图如图5所示,图5中的横坐标表示时间,单位为秒,纵坐标表示移动设备网络流量,单位为KB。In this embodiment, when four coordinate systems are used to display the specific content in Table 1 above, the four generated line graphs are shown in FIGS. 2-5 . Specifically, this embodiment uses the collection time, historical operation occurrence time, and the line graph generated by the mobile device CPU occupation percentage and user historical operation information in Table 1 above, as shown in Figure 2, where the abscissa in Figure 2 represents time, The unit is seconds (s), and the ordinate represents the CPU occupation percentage, and the unit is a percentage value; this embodiment utilizes the collection time, the historical operation occurrence time, and the polyline generated by the occupied space of the mobile device memory and the user historical operation information in Table 1 above As shown in Fig. 3, the abscissa in Fig. 3 represents the time, the unit is second, and the ordinate represents the size of the memory footprint, the unit is MB (MByte, mega); The line graph generated by the battery power of the mobile device in Table 1 and the user's historical operation information is shown in Figure 4. The abscissa in Figure 4 represents time in seconds, and the ordinate represents battery voltage in Mv (millivolts); In this embodiment, the line graph generated by using the collection time, historical operation occurrence time, and the mobile device network traffic and user historical operation information in Table 1 above is shown in Figure 5. The abscissa in Figure 5 represents time in seconds, and the vertical Coordinates represent mobile device network traffic in KB.
本实施例在利用一个坐标系来展示上述表1中的具体内容的情况下,所生成的折线图如图6-7所示。具体的,本实施例利用采集时间、历史操作发生时间以及上述表1中的移动设备CPU占用百分比、移动设备内存已占用空间、移动设备电池电量、移动设备网络流量和用户历史操作信息生成的折线图如图6和图7所示,图6和图7中的横坐标表示时间,单位为秒,纵坐标可以分别表示出CPU占用百分比、内存占用空间大小、电池电压、移动设备网络流量。In this embodiment, when a coordinate system is used to display the specific content in Table 1 above, the generated line chart is shown in Figure 6-7. Specifically, this embodiment uses the collection time, historical operation occurrence time, and the polyline generated by the CPU usage percentage of the mobile device, the occupied space of the mobile device memory, the battery power of the mobile device, the network traffic of the mobile device, and the historical user operation information in Table 1 above As shown in Figure 6 and Figure 7, the abscissa in Figure 6 and Figure 7 represents the time in seconds, and the ordinate can respectively represent the CPU usage percentage, memory footprint, battery voltage, and mobile device network traffic.
实施例二、应用性能测试装置。下面结合图8对本实施例的装置进行详细说明。Embodiment 2, application performance testing device. The device of this embodiment will be described in detail below with reference to FIG. 8 .
图8中的应用性能测试装置可以设置于运行被测应用的移动设备中,也可以设置于与运行被测应用的移动设备无线连接或者有线连接的服务器等设备中,还可以一部分设置于运行被测应用的移动设备中,另一部分设置于与运行被测应用的移动设备无线连接或者有线连接的服务器等设备中。The application performance testing device in Fig. 8 can be set in the mobile device running the application under test, also can be set in equipment such as a server connected wirelessly or wiredly with the mobile device running the application under test, or can be set partly in the mobile device running the application under test In the mobile device of the application under test, the other part is set in a device such as a server connected wirelessly or wired to the mobile device running the application under test.
本实施例的应用性能测试装置主要包括:性能监测模块200、操作监测模块210、确定性能模块220以及输出性能模块230。The application performance testing device of this embodiment mainly includes: a performance monitoring module 200 , an operation monitoring module 210 , a performance determination module 220 and an output performance module 230 .
性能监测模块200可以完全设置于移动设备中,也可以完全设置于服务器中,还可以部分设置于移动设备中部分设置于服务器中。性能监测模块200主要适于获取被测应用在移动设备运行过程中移动设备性能信息以及移动设备性能信息的采集时间。The performance monitoring module 200 may be completely set in the mobile device, may be completely set in the server, or may be partially set in the mobile device and partly set in the server. The performance monitoring module 200 is mainly adapted to acquire the performance information of the mobile device and the collection time of the performance information of the mobile device when the application under test is running on the mobile device.
具体的,在性能监测模块200完全设置于运行被测应用的移动设备的情况下,性能监测模块200可以在被测应用的运行过程中,根据预先设定的时间间隔定时采集移动设备性能信息,并将采集到的移动设备性能信息和采集时间本地存储于移动设备性能日志中,之后,确定性能模块220可以在需要进行应用性能分析时,方便地从移动设备本地存储的移动设备性能日志中获取被测应用在移动设备运行过程中移动设备性能信息以及移动设备性能信息的采集时间。Specifically, in the case that the performance monitoring module 200 is completely set on the mobile device running the application under test, the performance monitoring module 200 can regularly collect performance information of the mobile device according to a preset time interval during the running of the application under test, And the collected mobile device performance information and collection time are stored locally in the mobile device performance log. Afterwards, the performance determination module 220 can be conveniently obtained from the mobile device performance log stored locally on the mobile device when application performance analysis is required. The performance information of the mobile device and the collection time of the performance information of the mobile device during the operation of the mobile device by the application under test.
在性能监测模块200完全设置于与运行被测应用的移动设备连接的其他设备如服务器的情况下,移动设备(如该移动设备中安装的应用性能测试程序等)可以在被测应用的运行过程中,根据预先设定的时间间隔定时地采集其性能信息,并将采集到的移动设备性能信息和采集时间本地存储于移动设备性能日志中,之后,移动设备(如应用性能测试程序)可以将移动设备性能日志上传给服务器,以使性能监测模块200从服务器接收的信息中获取到移动设备性能信息和采集时间;如性能监测模块200通过服务器向移动设备发送移动设备性能测试信息上传请求,移动设备在接收到服务器传输来的移动设备性能测试信息上传请求后,将其本地存储的移动设备性能日志上传给服务器,使性能监测模块200成功获取到移动设备性能信息和采集时间,且性能监测模块200可以将服务器接收到的移动设备性能日志本地存储于服务器中;这样,服务器中的确定性能模块220在需要进行应用性能分析时,可以方便地从本地存储的移动设备性能日志中获取被测应用在移动设备运行过程中移动设备性能信息以及移动设备性能信息的采集时间。In the case where the performance monitoring module 200 is completely set on other devices connected to the mobile device running the application under test, such as a server, the mobile device (such as the application performance testing program installed in the mobile device, etc.) , regularly collect its performance information according to a preset time interval, and store the collected mobile device performance information and collection time locally in the mobile device performance log. After that, the mobile device (such as an application performance test program) can save the The mobile device performance log is uploaded to the server, so that the performance monitoring module 200 obtains the mobile device performance information and collection time from the information received by the server; if the performance monitoring module 200 sends a mobile device performance test information upload request to the mobile device through the server, the After the device receives the mobile device performance test information upload request transmitted from the server, it uploads its locally stored mobile device performance log to the server, so that the performance monitoring module 200 successfully obtains the mobile device performance information and collection time, and the performance monitoring module 200 can store the mobile device performance log received by the server locally in the server; in this way, when the performance determination module 220 in the server needs to perform application performance analysis, it can easily obtain the tested application from the locally stored mobile device performance log. The performance information of the mobile device and the collection time of the performance information of the mobile device during the operation of the mobile device.
在性能监测模块200部分设置于移动设备中,部分设置于与运行被测应用的移动设备连接的其他设备如服务器的情况下,性能监测模块200的设置于移动设备中的部分(下述称为第一单元)在被测应用的运行过程中,根据预先设定的时间间隔定时地采集其性能信息,并将采集到的移动设备性能信息和采集时间本地存储于移动设备性能日志中,之后,第一单元可以将移动设备性能日志上传给服务器,以使性能监测模块200的设置于服务器中的部分(下述称为第二单元)从服务器接收的信息中获取到移动设备性能信息和采集时间;如第二单元通过服务器向移动设备发送移动设备性能测试信息上传请求,第一单元在移动设备接收到服务器传输来的移动设备性能测试信息上传请求后,将移动设备本地存储的移动设备性能日志上传给服务器,使第二单元成功获取到移动设备性能信息和采集时间,且第二单元可以将服务器接收到的移动设备性能日志本地存储于服务器中;这样,设置于服务器中的确定性能模块220在需要进行应用性能分析时,可以方便地从本地存储的移动设备性能日志中获取被测应用在移动设备运行过程中移动设备性能信息以及移动设备性能信息的采集时间。In the case that the performance monitoring module 200 is partly set in the mobile device and partly set in other devices connected to the mobile device running the application under test, such as a server, the part of the performance monitoring module 200 set in the mobile device (hereinafter referred to as The first unit) regularly collects performance information of the application under test according to a preset time interval during the running process of the application under test, and locally stores the collected mobile device performance information and collection time in the mobile device performance log, and then, The first unit may upload the mobile device performance log to the server, so that the part of the performance monitoring module 200 set in the server (hereinafter referred to as the second unit) obtains the mobile device performance information and collection time from the information received by the server ; If the second unit sends a mobile device performance test information upload request to the mobile device through the server, after the mobile device receives the mobile device performance test information upload request transmitted by the server, the first unit will store the mobile device performance log locally stored in the mobile device Upload to the server, so that the second unit successfully obtains the mobile device performance information and collection time, and the second unit can store the mobile device performance log received by the server locally in the server; thus, the determining performance module 220 set in the server When application performance analysis is required, the performance information of the mobile device and the collection time of the performance information of the mobile device during the operation of the mobile device of the tested application can be easily obtained from the locally stored mobile device performance log.
本实施例的移动设备性能信息通常包含有移动设备的多个性能指标,移动设备性能信息具体包含的性能指标可以根据应用的实际测试需求确定;例如,移动设备性能信息可以具体包括:移动设备CPU使用情况、移动设备内存使用情况、移动设备网络流量以及移动设备电池使用情况中的任意一个或者任意两个或者任意三个或者所有。The performance information of the mobile device in this embodiment usually includes multiple performance indicators of the mobile device, and the specific performance indicators included in the performance information of the mobile device can be determined according to the actual test requirements of the application; for example, the performance information of the mobile device can specifically include: the CPU of the mobile device Any one or any two or any three or all of usage, mobile device memory usage, mobile device network traffic, and mobile device battery usage.
上述移动设备CPU使用情况可以具体为:移动设备CPU占用率(即移动设备占用百分比)或者移动设备CPU空闲率(即移动设备CPU空闲百分比),且移动设备CPU占用率可以具体为被测应用对移动设备CPU的占用率;上述移动设备内存使用情况可以具体为:移动设备内存占用率(即移动设备内存占用百分比)或者移动设备内存空闲率(即移动设备内存空闲百分比)或者移动设备内存已占用空间大小或者移动设备内存空闲空间大小,且移动设备内存占用率可以具体为被测应用对移动设备内存的占用率,移动设备内存已占用空间大小可以具体为被测应用对移动设备内存的占用空间大小;上述移动设备网络流量可以具体为被测应用所消耗的网络流量:且移动设备网络流量可以是Wi-Fi数据流量以及2G/3G/4G数据流量中的任意一个或者两个;也就是说,本实施例中的移动设备可以区分出其当前网络流量的类型,从而移动设备性能日志中的移动设备网络流量可以明确表示出移动设备当前所消耗网络流量是Wi-Fi数据流量,还是2G/3G/4G数据流量;上述移动设备电池使用情况可以具体为移动设备电池电量(即移动设备电池的剩余电量),且移动设备电池电量可以使用电池电压来表示。The CPU usage of the above mobile device can be specifically: the CPU usage rate of the mobile device (that is, the percentage occupied by the mobile device) or the CPU idle rate of the mobile device (that is, the CPU idle percentage of the mobile device), and the CPU usage rate of the mobile device can be specifically defined as The CPU usage rate of the mobile device; the memory usage of the above mobile device can be specifically: the memory usage rate of the mobile device (that is, the percentage of memory occupied by the mobile device) or the idle rate of the memory of the mobile device (that is, the free percentage of the memory of the mobile device) or the memory usage of the mobile device The size of the space or the free space of the mobile device memory, and the mobile device memory occupancy rate can be specified as the mobile device memory occupancy rate of the application under test, and the occupied space of the mobile device memory can be specified as the mobile device memory occupancy space of the application under test size; the above-mentioned mobile device network traffic can be specifically the network traffic consumed by the application under test: and the mobile device network traffic can be any one or both of Wi-Fi data traffic and 2G/3G/4G data traffic; that is to say , the mobile device in this embodiment can distinguish the type of its current network traffic, so that the network traffic of the mobile device in the performance log of the mobile device can clearly indicate whether the network traffic currently consumed by the mobile device is Wi-Fi data traffic or 2G/ 3G/4G data traffic; the battery usage of the above-mentioned mobile device may specifically be the battery power of the mobile device (that is, the remaining power of the battery of the mobile device), and the battery power of the mobile device may be represented by the battery voltage.
性能监测模块200可以通过调用移动设备的操作系统中相应的API(ApplicationProgrammingInterface,应用程序编程接口)来采集被测应用在移动设备运行过程中的移动设备性能信息。The performance monitoring module 200 can collect the mobile device performance information of the tested application during the running of the mobile device by calling a corresponding API (Application Programming Interface, Application Programming Interface) in the operating system of the mobile device.
本实施例的性能监测模块200采集被测应用在移动设备运行过程中的移动设备性能信息并本地存储移动设备性能信息及采集时间的一个具体的例子为:性能监测模块200在预先设定的时间间隔到达后,调用操作系统中的SystemProperties.java来获取当前移动设备CPU占用率,调用操作系统中的ActivityManager.java来获得当前移动设备内存占用率,调用操作系统中的ConnectivityManager.java来获得当前移动设备网络流量,调用操作系统中的BatteryManager.java来获得当前移动设备电池电量,上述四个调用操作在通常情况下可以同时进行;性能监测模块200在执行上述调用操作时或者接收到操作系统返回的当前移动设备CPU占用率、当前移动设备内存占用率、当前移动设备网络流量以及当前移动设备电池电量时,获取移动设备的当前时间(即给移动设备性能信息打时间戳),然后,性能监测模块200将当前移动设备CPU占用率、当前移动设备内存占用率、当前移动设备网络流量、当前移动设备电池电量以及移动设备的当前时间作为一条记录存储在移动设备性能日志中。本实施例的性能监测模块200可利用移动设备的操作系统所提供的API来获取移动设备的当前时间,如利用操作系统中的System.currentTimeMillis()来获取移动设备的当前时间。A specific example in which the performance monitoring module 200 of this embodiment collects the mobile device performance information of the application under test during the operation of the mobile device and locally stores the mobile device performance information and the collection time is: the performance monitoring module 200 After the interval arrives, call SystemProperties.java in the operating system to obtain the current mobile device CPU usage, call ActivityManager.java in the operating system to obtain the current mobile device memory usage, and call ConnectivityManager.java in the operating system to obtain the current mobile device usage. Device network traffic, call BatteryManager.java in the operating system to obtain the battery power of the current mobile device, the above four calling operations can be carried out at the same time under normal circumstances; when the performance monitoring module 200 executes the above calling operations or receives the return from the operating system When the current mobile device CPU usage rate, current mobile device memory usage rate, current mobile device network traffic, and current mobile device battery power, obtain the current time of the mobile device (that is, time stamp the performance information of the mobile device), and then, the performance monitoring module 200 stores the current CPU usage rate of the mobile device, the current memory usage rate of the mobile device, the network traffic of the current mobile device, the battery power of the current mobile device, and the current time of the mobile device as a record in the performance log of the mobile device. The performance monitoring module 200 of this embodiment can use the API provided by the operating system of the mobile device to obtain the current time of the mobile device, for example, use System.currentTimeMillis() in the operating system to obtain the current time of the mobile device.
本实施例中的移动设备性能信息日志可以为txt格式的文件,也可以为其他格式的文件;且移动设备性能信息日志可以存储在移动设备的SD卡中。The performance information log of the mobile device in this embodiment may be a file in txt format, or a file in other formats; and the performance information log of the mobile device may be stored in an SD card of the mobile device.
操作监测模块210可以完全设置于移动设备中,也可以完全设置于服务器中,还可以部分设置于移动设备中部分设置于服务器中。操作监测模块210主要适于获取被测应用在移动设备运行过程中用户历史操作信息以及历史操作发生时间。The operation monitoring module 210 may be completely set in the mobile device, may be completely set in the server, or may be partially set in the mobile device and partly set in the server. The operation monitoring module 210 is mainly adapted to obtain the user's historical operation information and the time when the tested application is running on the mobile device.
具体的,在操作监测模块210完全设置于运行被测应用的移动设备的情况下,操作监测模块210可以在被测应用的运行过程中,实时监测用户的操作(这里的用户的操作通常是指针对应用性能测试而设计的测试逻辑所模拟的用户的操作),并在监测到用户执行了相应的操作时,获取移动设备的当前时间,并将监测到的用户执行的操作所对应的操作信息以及上述当前时间作为用户历史操作信息以及历史操作发生时间本地存储于用户历史操作日志中;从而确定性能模块220在需要进行应用性能分析时,可以方便地从移动设备本地存储的用户历史操作日志中获取被测应用在移动设备运行过程中用户历史操作信息以及历史操作发生时间。Specifically, in the case that the operation monitoring module 210 is completely set on the mobile device running the tested application, the operation monitoring module 210 can monitor the user's operation in real time during the running of the tested application (the user's operation here usually refers to The user's operation simulated by the test logic designed for application performance testing), and when it is detected that the user has performed the corresponding operation, the current time of the mobile device is obtained, and the operation information corresponding to the monitored user's operation is obtained And the above-mentioned current time is locally stored in the user historical operation log as user historical operation information and historical operation occurrence time; thus when the performance determination module 220 needs to perform application performance analysis, it can be conveniently obtained from the user historical operation log stored locally in the mobile device. Obtain the user's historical operation information and the time when the tested application is running on the mobile device.
在操作监测模块210完全设置于与运行被测应用的移动设备连接的其他设备如服务器的情况下,操作监测模块210可以在被测应用在移动设备的运行过程中,实时监测用户的操作(这里的用户的操作通常是指针对应用性能测试而设计的测试逻辑所模拟的用户的操作),并在监测到用户执行了相应的操作时,操作监测模块210获取移动设备的当前时间(即给用户历史操作信息打时间戳),并将用户执行的操作对应的操作信息以及上述当前时间作为用户历史操作信息以及历史操作发生时间本地存储于用户历史操作日志中,之后,操作监测模块210可以将用户历史操作日志上传给服务器;如操作监测模块210在被测应用运行结束后主动地将本地存储的用户历史操作日志上传给服务器;再如,操作监测模块210在移动设备接收到服务器传输来的移动设备性能测试信息上传请求后,将移动设备本地存储的用户历史操作日志上传给服务器;这样,设置于服务器中的确定性能模块220在需要进行应用性能分析时,可以方便地从服务器接收并本地存储的用户历史操作日志中获取被测应用在移动设备运行过程中用户历史操作信息以及历史操作发生时间。同样的,本实施例中的操作监测模块210可以利用移动设备的操作系统所提供的API来获取移动设备的当前时间,如操作监测模块210利用操作系统中的System.currentTimeMillis()来获取移动设备的当前时间。In the case that the operation monitoring module 210 is completely set on other devices such as a server connected to the mobile device running the application under test, the operation monitoring module 210 can monitor the user's operation in real time during the running process of the application under test on the mobile device (here The user's operation usually refers to the user's operation simulated by the test logic designed for application performance testing), and when it is detected that the user has performed a corresponding operation, the operation monitoring module 210 obtains the current time of the mobile device (that is, gives the user Historical operation information is time stamped), and the operation information corresponding to the operation performed by the user and the above-mentioned current time are stored locally in the user historical operation log as user historical operation information and historical operation occurrence time. After that, the operation monitoring module 210 can log the user Upload the historical operation log to the server; for example, the operation monitoring module 210 actively uploads the locally stored user historical operation log to the server after the application under test runs; After the device performance test information upload request, the user history operation log stored locally on the mobile device is uploaded to the server; in this way, when the performance determination module 220 set in the server needs to perform application performance analysis, it can conveniently receive and locally store the log from the server. From the user history operation log of the tested application, the user history operation information and the time when the history operation occurred during the operation of the mobile device are obtained. Similarly, the operation monitoring module 210 in this embodiment can use the API provided by the operating system of the mobile device to obtain the current time of the mobile device, such as the operation monitoring module 210 using System.currentTimeMillis () in the operating system to obtain the current time of the mobile device the current time of .
在操作监测模块210部分设置于移动设备中,部分设置于与运行被测应用的移动设备连接的其他设备如服务器的情况下,操作监测模块210的设置于移动设备中的部分(下述称为第三单元)在被测应用的运行过程中,实时监测用户的操作(这里的用户的操作通常是指针对应用性能测试而设计的测试逻辑所模拟的用户的操作),并在监测到用户执行了相应的操作时,第三单元获取移动设备的当前时间(即给用户历史操作信息打时间戳),并将用户执行的操作对应的操作信息以及上述当前时间作为用户历史操作信息以及历史操作发生时间本地存储于用户历史操作日志中,之后,第三单元可以将用户历史操作日志上传给服务器,以使操作监测模块210的设置于服务器中的部分(下述称为第四单元)从服务器接收的信息中获取到用户历史操作信息以及历史操作发生时间;如第四单元通过服务器向移动设备发送移动设备性能测试信息上传请求,第三单元在移动设备接收到服务器传输来的移动设备性能测试信息上传请求后,将移动设备本地存储的用户历史操作日志上传给服务器,使第四单元成功获取用户历史操作信息及历史操作发生时间,且第四单元可以将服务器接收到的用户历史操作日志本地存储于服务器中;这样,设置于服务器中的确定性能模块220在需要进行应用性能分析时,可以方便地从服务器本地存储的用户历史操作日志中获取被测应用在移动设备运行过程中用户历史操作信息以及历史操作发生时间。In the case that the operation monitoring module 210 is partly set in the mobile device and partly set in other devices connected to the mobile device running the application under test, such as a server, the part of the operation monitoring module 210 set in the mobile device (hereinafter referred to as Unit 3) During the running of the application under test, monitor the user's operation in real time (the user's operation here usually refers to the user's operation simulated by the test logic designed for application performance testing), and monitor the user's execution When the corresponding operation is performed, the third unit acquires the current time of the mobile device (that is, time stamps the user's historical operation information), and uses the operation information corresponding to the operation performed by the user and the above-mentioned current time as the user's historical operation information and historical operation occurrence The time is locally stored in the user history operation log, and then the third unit can upload the user history operation log to the server, so that the part of the operation monitoring module 210 set in the server (hereinafter referred to as the fourth unit) receives from the server The user's historical operation information and historical operation occurrence time are obtained from the information of the user; for example, the fourth unit sends a mobile device performance test information upload request to the mobile device through the server, and the third unit receives the mobile device performance test information transmitted by the server on the mobile device After uploading the request, upload the user historical operation log locally stored on the mobile device to the server, so that the fourth unit can successfully obtain the user historical operation information and the time when the historical operation occurred, and the fourth unit can store the user historical operation log received by the server locally in the server; in this way, when the performance determination module 220 set in the server needs to perform application performance analysis, it can conveniently obtain the user history operation information of the application under test during the operation of the mobile device from the user history operation log stored locally in the server And the time when the historical operation occurred.
本实施例中的移动设备性能信息日志和用户历史操作日志通常应同时上传至服务器,例如,性能监测模块200和/或操作监测模块210在被测应用运行结束后主动地将本地存储的移动设备性能信息日志和用户历史操作日志同时上传至服务器;再例如,性能监测模块200和/或操作监测模块210在移动设备接收到服务器传输来的移动设备性能测试信息上传请求后,将本地存储的移动设备性能信息日志和用户历史操作日志同时上传至服务器。本实施例的性能监测模块200和/或操作监测模块210可以通过利用Upload()函数将上述两日志上传至服务器。另外,性能监测模块200和/或操作监测模块210可以清空已经成功上传的移动设备性能信息日志和用户历史操作日志中的记录。The mobile device performance information log and user history operation log in this embodiment should usually be uploaded to the server at the same time, for example, the performance monitoring module 200 and/or the operation monitoring module 210 actively upload the locally stored mobile device The performance information log and the user history operation log are uploaded to the server at the same time; for another example, after the performance monitoring module 200 and/or the operation monitoring module 210 receives the mobile device performance test information upload request transmitted from the server, the locally stored mobile Device performance information logs and user historical operation logs are uploaded to the server at the same time. The performance monitoring module 200 and/or the operation monitoring module 210 of this embodiment can upload the above two logs to the server by using the Upload() function. In addition, the performance monitoring module 200 and/or the operation monitoring module 210 may clear records in the successfully uploaded mobile device performance information log and user history operation log.
上述用户历史操作日志通常包含有用户执行的多种操作(包括测试逻辑所模拟的用户的操作)所对应的用户历史操作信息,且用户执行的多种操作可以具体包括:点击、滑动以及输入事件等等。本实施例不限制用户执行的操作的具体内容。The above-mentioned user history operation log usually contains user history operation information corresponding to various operations performed by the user (including the user's operation simulated by the test logic), and the various operations performed by the user may specifically include: click, slide, and input events etc. This embodiment does not limit the specific content of the operations performed by the user.
应用性能测试程序通常可以获取并辨识被测应用中的UI控件,并按照相应的测试逻辑来调用被测应用中的相应UI控件,以对被测应用进行测试。应用性能测试程序在调用被测应用的相应UI控件时,操作监测模块210可以将相应的UI控件信息以及当前调用的时间作为用户历史操作信息以及操作发生时间记录到用户历史操作日志中。The application performance testing program can usually obtain and identify the UI controls in the application under test, and call the corresponding UI controls in the application under test according to the corresponding test logic, so as to test the application under test. When the application performance test program invokes the corresponding UI control of the application under test, the operation monitoring module 210 can record the corresponding UI control information and the current calling time as user historical operation information and operation occurrence time in the user historical operation log.
操作监测模块210采集被测应用在移动设备运行过程中的用户操作信息,并本地存储用户操作信息以及操作发生时间的一个具体的例子为:应用性能测试程序在运行后通过向操作系统查询可以获知被测应用的所有UI控件(如应用性能测试程序通过利用操作系统的Robotium所提供的API可以查询获知被测应用的所有UI控件),然后,应用性能测试程序会按照其预先设置的测试逻辑调用相应的UI控件,使被测应用针对当前调用的相应的UI控件执行相应的操作(如应用性能测试程序通过利用操作系统的Robotium所提供的API可以使被测应用执行UI控件所对应的操作),从而通过模仿用户对被测应用的实际操作而对被测应用进行性能测试;应用性能测试程序在调用相应的UI控件并使被测应用执行相应的操作时,操作监测模块210可以记录该UI控件对应的操作信息,并同时获取移动设备的当前时间(即为该UI控件增加相应的时间戳),然后,操作监测模块210将UI控件对应的操作信息以及当前时间作为一条记录存储在用户历史操作日志中。上述用户历史操作日志可以为txt格式的文件,也可以为其他格式的文件。The operation monitoring module 210 collects the user operation information of the application under test during the running of the mobile device, and stores the user operation information and the time of the operation locally. A specific example is: after the application performance test program runs, it can know All UI controls of the application under test (for example, the application performance test program can query all UI controls of the application under test by using the API provided by Robotium of the operating system), and then the application performance test program will call according to its preset test logic Corresponding UI controls, so that the application under test performs corresponding operations for the corresponding UI controls currently called (for example, the application performance test program can make the application under test perform the corresponding operations of the UI controls by using the API provided by Robotium of the operating system) , so as to test the performance of the application under test by imitating the actual operation of the user on the application under test; when the application performance test program calls the corresponding UI control and makes the application under test perform corresponding operations, the operation monitoring module 210 can record the UI The operation information corresponding to the control, and at the same time obtain the current time of the mobile device (that is, add a corresponding time stamp for the UI control), and then, the operation monitoring module 210 stores the operation information corresponding to the UI control and the current time as a record in the user history in the operation log. The above-mentioned user history operation log can be a file in txt format, or a file in other formats.
确定性能模块220可以完全设置于移动设备中,也可以完全设置于服务器中。确定性能模块220主要适于根据上述性能监测模块200和操作监测模块210获取的移动设备性能信息、采集时间、用户历史操作信息以及历史操作发生时间确定被测应用的应用性能随采集时间、用户历史操作信息以及历史操作发生时间的变化情况。The determining performance module 220 may be completely set in the mobile device, and may also be completely set in the server. The determination performance module 220 is mainly adapted to determine the application performance of the application under test according to the performance information of the mobile device acquired by the performance monitoring module 200 and the operation monitoring module 210, collection time, user historical operation information and historical operation occurrence time. Operation information and changes in the time when historical operations occurred.
具体的,本实施例的被测应用的应用性能随采集时间、用户历史操作信息以及历史操作发生时间的变化情况可以以折线图的形式体现;当然,该变化情况也可以采用其他形式来体现,如柱状图、统计表或者文本文件等。Specifically, the application performance of the application under test in this embodiment changes with the collection time, user historical operation information, and historical operation occurrence time can be reflected in the form of a line graph; of course, the change can also be reflected in other forms, Such as histograms, statistical tables, or text files.
确定性能模块220可以先利用移动设备性能信息和采集时间来形成折线图或者柱状图或者统计表等,然后,再利用历史操作发生时间,将相应的用户历史操作信息标记在折线图或者柱状图或者统计表中的相应位置处。The determining performance module 220 may first use the performance information of the mobile device and the collection time to form a line chart, a histogram, or a statistical table, etc., and then use the historical operation occurrence time to mark the corresponding user historical operation information on the line chart or histogram or corresponding position in the statistics table.
在获取的移动设备性能信息包含有多种性能指标的情况下,确定性能模块220可以分别确定出每一个性能指标随采集时间、用户历史操作信息以及历史操作发生时间的变化情况;一个具体的例子,在获取的移动设备性能信息包括移动设备CPU使用情况、移动设备内存使用情况、移动设备网络流量以及移动设备电池使用情况的实际应用场景中,确定性能模块220可以从移动设备性能信息日志中读取出所有的被测应用消耗CPU的百分比、被测应用消耗内存的百分比、被测应用消耗的网络流量、移动设备电池电量以及各信息对应的采集时间,并利用读取出的所有的被测应用消耗CPU的百分比、被测应用消耗内存的百分比、被测应用消耗的网络流量、移动设备电池电量以及各信息对应的采集时间生成四条折线,这四条折线通常应位于四个不同的坐标系中,当然也可以位于同一个坐标系中;不论四条折线是位于同一个坐标系中,还是位于四个不同的坐标系中,坐标系的横坐标均表示采集时间,且坐标系的纵坐标均表示性能指标的具体量化数值;然后,确定性能模块220从用户历史操作日志中读取所有的用户历史操作信息以及历史操作发生时间,确定各历史操作发生时间在坐标系中的横坐标的位置,并在历史操作发生时间对应在折线的位置处或者历史操作发生时间在横坐标位置处标记相应的用户历史操作信息,确定性能模块220可以基于用户历史操作信息对应的文字表述来进行标记,也可以基于用户历史操作信息对应的标识符等来进行标记。In the case that the obtained mobile device performance information contains multiple performance indicators, the determining performance module 220 can separately determine the change of each performance indicator with the collection time, user historical operation information and historical operation occurrence time; a specific example , in an actual application scenario where the obtained mobile device performance information includes mobile device CPU usage, mobile device memory usage, mobile device network traffic, and mobile device battery usage, the determining performance module 220 may read from the mobile device performance information log Take out the percentage of CPU consumed by all tested applications, the percentage of memory consumed by the tested application, the network traffic consumed by the tested application, the battery power of the mobile device, and the collection time corresponding to each information, and use all the read out measured The percentage of CPU consumed by the application, the percentage of memory consumed by the tested application, the network traffic consumed by the tested application, the battery power of the mobile device, and the collection time corresponding to each information generate four polylines. These four polylines should usually be located in four different coordinate systems , of course, can also be located in the same coordinate system; no matter whether the four polylines are located in the same coordinate system or in four different coordinate systems, the abscissa of the coordinate system indicates the acquisition time, and the ordinate of the coordinate system indicates The specific quantitative value of the performance index; then, determine the performance module 220 to read all user historical operation information and historical operation occurrence time from the user historical operation log, determine the position of the abscissa of each historical operation occurrence time in the coordinate system, and Mark the corresponding user historical operation information at the position of the broken line corresponding to the historical operation occurrence time or the abscissa position of the historical operation occurrence time, and the determining performance module 220 may mark based on the textual expression corresponding to the user historical operation information, or based on The identifier corresponding to the user's historical operation information is used for marking.
确定性能模块220可以利用现有的绘图插件来绘制上述折线图,如确定性能模块220将读取的数据按照预先设定的方式提供给绘图插件,从而绘图插件可以根据其接收到的数据绘制出上述折线图。The determining performance module 220 can use the existing drawing plug-in to draw the above-mentioned line chart. For example, the determining performance module 220 provides the read data to the drawing plug-in in a preset manner, so that the drawing plug-in can draw a graph based on the data it receives. The line chart above.
输出性能模块230可以完全设置于移动设备中,也可以完全设置于服务器中。输出性能模块230主要适于输出上述确定性能模块220确定出的被测应用的应用性能的变化情况。The output performance module 230 can be completely set in the mobile device, and also can be completely set in the server. The output performance module 230 is mainly adapted to output the variation of the application performance of the tested application determined by the above-mentioned performance determination module 220 .
具体的,输出性能模块230可以通过应用性能测试设备的显示屏显示被测应用的应用性能随采集时间、用户历史操作信息以及历史操作发生时间的变化情况(如显示上述折线图),也可以通过打印机输出该变化情况(如打印统计表),当然,本实施例还可以通过其他方式输出该变化情况。Specifically, the output performance module 230 can use the display screen of the application performance testing device to display the application performance of the application under test along with the collection time, user historical operation information and historical operation time changes (such as displaying the above-mentioned line graph), or through The printer outputs the change situation (such as printing a statistical table), of course, this embodiment can also output the change situation in other ways.
输出性能模块230在采用显示屏输出被测应用的应用性能的变化情况的实际应用场景中,可以采用多种方式显示标记在坐标系中的用户历史操作信息,如在应用性能测试设备的鼠标指向折线中的某一点处(或者触碰位置为折线中的某一点处)时,输出性能模块230使该点附近的用户历史操作信息对应的文字表述或者标识符被显性地显示出来,而使位于其他位置的用户历史操作信息对应的文字表述或者标识符处于隐藏显示状态;再如,在应用性能测试设备的鼠标指向折线中的某一点处(或者触碰位置为折线中的某一点处)时,输出性能模块230使标记在该折线中的所有的用户历史操作信息对应的文字表述或者标识符都被显性地显示出来。In the actual application scenario where the output performance module 230 uses the display screen to output changes in the application performance of the application under test, it can display the user's historical operation information marked in the coordinate system in various ways, such as pointing the mouse on the application performance testing device When a certain point in the broken line (or the touch position is a certain point in the broken line), the output performance module 230 makes the text expression or identifier corresponding to the user history operation information near the point displayed explicitly, so that Text expressions or identifiers corresponding to user historical operation information located in other locations are in a hidden display state; for another example, when the mouse of the application performance testing device points to a certain point in the polyline (or the touch position is a certain point in the polyline) , the output performance module 230 makes the text expressions or identifiers corresponding to all the user history operation information marked in the fold line be explicitly displayed.
另外,在多条折线(如四条折线)位于同一个坐标系中的情况下,输出性能模块230可以使纵坐标分别显示出四条折线所对应的单位刻度,如输出性能模块230利用四条纵坐标来显示四条折线所对应的单位刻度;当然,输出性能模块230也可以采用其他方式来显示四条折线所对应的单位刻度,例如,在应用性能测试设备的鼠标指向某一条折线中的某一点处(或者触碰位置为某一条折线中的某一点处)时,输出性能模块230使该坐标系的纵坐标的单位刻度值应显示该折线所对应的单位刻度值;而在应用性能测试设备的鼠标未指向任意一条折线中的任意一点处(或者触碰位置不是任意一条折线中的任意一点处)时,输出性能模块230使该坐标系的纵坐标的单位刻度值可以为预先设定的某一条折线所对应的单位刻度值。In addition, when multiple polylines (such as four polylines) are located in the same coordinate system, the output performance module 230 can make the ordinates respectively display the unit scales corresponding to the four polylines. For example, the output performance module 230 uses four ordinates to display Display the unit scales corresponding to the four broken lines; of course, the output performance module 230 can also use other methods to display the unit scales corresponding to the four broken lines, for example, when the mouse of the application performance testing device points to a certain point in a certain broken line (or When the touch position is a certain point in a certain broken line), the output performance module 230 makes the unit scale value of the ordinate of the coordinate system should display the corresponding unit scale value of the broken line; When pointing to any point in any polyline (or the touch position is not at any point in any polyline), the output performance module 230 enables the unit scale value of the ordinate of the coordinate system to be a preset polyline The corresponding unit scale value.
A1、一种应用性能测试方法,该方法包括:A1, an application performance testing method, the method comprising:
获取被测应用在移动设备运行过程中移动设备性能信息以及所述性能信息的采集时间;Obtaining the performance information of the mobile device and the collection time of the performance information during the operation of the mobile device by the application under test;
获取被测应用在移动设备运行过程中用户历史操作信息以及历史操作发生时间;Obtain the user's historical operation information and the time when the tested application is running on the mobile device;
根据所述移动设备性能信息、所述采集时间、所述用户历史操作信息以及所述历史操作发生时间确定所述被测应用的应用性能随所述采集时间、所述用户历史操作信息以及所述历史操作发生时间的变化情况;According to the mobile device performance information, the collection time, the user historical operation information and the historical operation occurrence time, determine the application performance of the tested application with the collection time, the user historical operation information and the Changes in the time of historical operations;
输出所述被测应用的应用性能的变化情况。Outputting changes in the application performance of the tested application.
A2、如A1所述的应用性能测试方法,其中,所述移动设备性能信息包括:移动设备CPU使用情况、移动设备内存使用情况、移动设备网络流量以及移动设备电池使用情况中的至少一个。A2. The application performance testing method according to A1, wherein the mobile device performance information includes: at least one of mobile device CPU usage, mobile device memory usage, mobile device network traffic, and mobile device battery usage.
A3、如A2所述的应用性能测试方法,其中,所述移动设备网络流量包括:Wi-Fi数据流量以及2G/3G/4G数据流量中的至少一个。A3. The application performance testing method according to A2, wherein the mobile device network traffic includes: at least one of Wi-Fi data traffic and 2G/3G/4G data traffic.
A4、如A1或A2或A3所述的应用性能测试方法,其中,所述获取被测应用在移动设备运行过程中移动设备性能信息以及所述性能信息的采集时间包括:A4. The application performance testing method as described in A1 or A2 or A3, wherein said obtaining the performance information of the mobile device and the collection time of the performance information of the application under test during the operation of the mobile device includes:
接收移动设备上传的移动设备性能日志,并从所述移动设备性能日志中获取所述移动设备性能信息以及所述采集时间;receiving the mobile device performance log uploaded by the mobile device, and acquiring the mobile device performance information and the collection time from the mobile device performance log;
其中,所述移动设备性能日志的生成方式包括:被测应用在移动设备运行过程,所述移动设备定时采集移动设备性能信息,并将采集到的移动设备性能信息和采集时间存储于所述移动设备性能日志中。Wherein, the generation method of the mobile device performance log includes: the tested application is running on the mobile device, the mobile device periodically collects the mobile device performance information, and stores the collected mobile device performance information and collection time in the mobile device. in the device performance log.
A5、如A1或A2或A3所述的应用性能测试方法,其中,所述获取被测应用在移动设备运行过程中用户历史操作信息以及历史操作发生时间包括:A5. The application performance testing method as described in A1 or A2 or A3, wherein said obtaining user historical operation information and historical operation occurrence time of the application under test during the operation of the mobile device includes:
接收移动设备上传的用户历史操作日志,并从所述用户历史操作日志中获取所述用户历史操作信息以及历史操作发生时间;receiving the user historical operation log uploaded by the mobile device, and obtaining the user historical operation information and the time at which the historical operation occurred from the user historical operation log;
其中,所述用户历史操作日志的生成方式包括:被测应用在移动设备运行过程,移动设备监测用户操作,并将监测到的用户操作信息以及操作发生时间信息作为用户历史操作信息以及历史操作发生时间存储于所述移动设备性能日志中。Wherein, the generation method of the user historical operation log includes: the mobile device monitors the user operation during the running process of the tested application, and uses the monitored user operation information and operation occurrence time information as the user historical operation information and historical operation occurrence information. Times are stored in the mobile device performance log.
A6、如A1或A2或A3所述的应用性能测试方法,其中,所述输出所述被测应用的应用性能的变化情况包括:A6. The application performance testing method as described in A1 or A2 or A3, wherein said outputting the variation of the application performance of the tested application includes:
以折线图的形式输出所述被测应用的应用性能的变化情况;Outputting changes in the application performance of the tested application in the form of a line graph;
其中,所述折线图的横坐标表示所述采集时间,所述折线图的纵坐标表示所述移动设备性能信息,且所述折线图中的折线在相应的历史操作发生时间处标注有对应的用户历史操作信息。Wherein, the abscissa of the line graph represents the collection time, the ordinate of the line graph represents the performance information of the mobile device, and the fold lines in the line graph are marked with corresponding User history operation information.
A7、如A6所述的应用性能测试方法,其中,在所述移动设备性能信息包括:移动设备CPU使用情况、移动设备内存使用情况、移动设备网络流量以及移动设备电池使用情况的应用场景中,所述折线图包括:移动设备CPU使用情况折线图、移动设备内存使用情况折线图、移动设备网络流量折线图以及移动设备电池使用情况折线图。A7. The application performance testing method as described in A6, wherein, in the application scenario where the mobile device performance information includes: mobile device CPU usage, mobile device memory usage, mobile device network traffic, and mobile device battery usage, The line graph includes: a line graph of the CPU usage of the mobile device, a line graph of the memory usage of the mobile device, a line graph of the network traffic of the mobile device, and a line graph of the battery usage of the mobile device.
B8、一种应用性能测试装置,该装置包括:B8. An application performance testing device, the device comprising:
性能监测模块,适于获取被测应用在移动设备运行过程中移动设备性能信息以及所述性能信息的采集时间;The performance monitoring module is adapted to obtain performance information of the mobile device and the collection time of the performance information during the operation of the mobile device of the application under test;
操作监测模块,适于获取被测应用在移动设备运行过程中用户历史操作信息以及历史操作发生时间;The operation monitoring module is suitable for obtaining the user's historical operation information and the historical operation time during the operation of the mobile device under test;
确定性能模块,适于根据所述移动设备性能信息、所述采集时间、所述用户历史操作信息以及所述历史操作发生时间确定所述被测应用的应用性能随所述采集时间、所述用户历史操作信息以及所述历史操作发生时间的变化情况;The determining performance module is adapted to determine the application performance of the tested application according to the performance information of the mobile device, the collection time, the user's historical operation information and the occurrence time of the historical operation. Historical operation information and changes in the time at which the historical operations occurred;
输出性能模块,适于输出所述被测应用的应用性能的变化情况。The output performance module is adapted to output the variation of the application performance of the tested application.
B9、如B8所述的应用性能测试装置,其中,所述移动设备性能信息包括:移动设备CPU使用情况、移动设备内存使用情况、移动设备网络流量以及移动设备电池使用情况中的至少一个。B9. The application performance testing device as described in B8, wherein the mobile device performance information includes: at least one of mobile device CPU usage, mobile device memory usage, mobile device network traffic, and mobile device battery usage.
B10、如B9所述的应用性能测试装置,其中,所述移动设备网络流量包括:Wi-Fi数据流量以及2G/3G/4G数据流量中的至少一个。B10. The application performance testing device as described in B9, wherein the mobile device network traffic includes: at least one of Wi-Fi data traffic and 2G/3G/4G data traffic.
B11、如B8或B9或B10所述的应用性能测试装置,其中,所述性能监测模块具体适于:接收移动设备上传的移动设备性能日志,并从所述移动设备性能日志中获取所述移动设备性能信息以及所述采集时间;B11. The application performance testing device as described in B8 or B9 or B10, wherein the performance monitoring module is specifically adapted to: receive a mobile device performance log uploaded by a mobile device, and obtain the mobile device performance log from the mobile device performance log. Equipment performance information and the collection time;
其中,所述移动设备性能日志的生成方式包括:被测应用在移动设备运行过程,所述移动设备定时采集移动设备性能信息,并将采集到的移动设备性能信息和采集时间存储于所述移动设备性能日志中。Wherein, the generation method of the mobile device performance log includes: the tested application is running on the mobile device, the mobile device periodically collects the mobile device performance information, and stores the collected mobile device performance information and collection time in the mobile device. in the device performance log.
B12、如B8或B9或B10所述的应用性能测试装置,其中,所述操作监测模块具体适于:接收移动设备上传的用户历史操作日志,并从所述用户历史操作日志中获取所述用户历史操作信息以及历史操作发生时间;B12. The application performance testing device as described in B8 or B9 or B10, wherein the operation monitoring module is specifically adapted to: receive the user history operation log uploaded by the mobile device, and obtain the user history operation log from the user history operation log Historical operation information and the time when the historical operation occurred;
其中,所述用户历史操作日志的生成方式包括:被测应用在移动设备运行过程,移动设备监测用户操作,并将监测到的用户操作信息以及操作发生时间信息作为用户历史操作信息以及历史操作发生时间存储于所述移动设备性能日志中。Wherein, the generation method of the user historical operation log includes: the mobile device monitors the user operation during the running process of the tested application, and uses the monitored user operation information and operation occurrence time information as the user historical operation information and historical operation occurrence information. Times are stored in the mobile device performance log.
B13、如B8或B9或B10所述的应用性能测试装置,其中,所述输出性能模块具体适于:以折线图的形式输出所述被测应用的应用性能的变化情况;B13. The application performance testing device as described in B8, B9 or B10, wherein the output performance module is specifically adapted to: output the change of the application performance of the tested application in the form of a line graph;
其中,所述折线图的横坐标表示所述采集时间,所述折线图的纵坐标表示所述移动设备性能信息,且所述折线图中的折线在相应的历史操作发生时间处标注有对应的用户历史操作信息。Wherein, the abscissa of the line graph represents the collection time, the ordinate of the line graph represents the performance information of the mobile device, and the fold lines in the line graph are marked with corresponding User history operation information.
B14、如B13所述的应用性能测试装置,其中,在所述移动设备性能信息包括:移动设备CPU使用情况、移动设备内存使用情况、移动设备网络流量以及移动设备电池使用情况的应用场景中,所述折线图包括:移动设备CPU使用情况折线图、移动设备内存使用情况折线图、移动设备网络流量折线图以及移动设备电池使用情况折线图。B14. The application performance testing device as described in B13, wherein, in the application scenario where the mobile device performance information includes: mobile device CPU usage, mobile device memory usage, mobile device network traffic, and mobile device battery usage, The line graph includes: a line graph of the CPU usage of the mobile device, a line graph of the memory usage of the mobile device, a line graph of the network traffic of the mobile device, and a line graph of the battery usage of the mobile device.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的具体描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above detailed description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any one of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的应用性能测试装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the application performance testing device according to the embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是,上述实施例是对本发明进行说明,而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或者步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二以及第三等的使用不表示任何顺序,可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, third, etc. does not indicate any order and these words can be interpreted as names.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410232622.7A CN105204981A (en) | 2014-05-28 | 2014-05-28 | Application performance test method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410232622.7A CN105204981A (en) | 2014-05-28 | 2014-05-28 | Application performance test method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105204981A true CN105204981A (en) | 2015-12-30 |
Family
ID=54952675
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410232622.7A Pending CN105204981A (en) | 2014-05-28 | 2014-05-28 | Application performance test method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105204981A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653456A (en) * | 2015-12-31 | 2016-06-08 | 网易(杭州)网络有限公司 | Application program performance testing method, device and system |
CN106776330A (en) * | 2016-12-26 | 2017-05-31 | 北京金山安全软件有限公司 | Application testing method and device and electronic equipment |
CN107273277A (en) * | 2017-05-11 | 2017-10-20 | 珠海金山网络游戏科技有限公司 | A kind of depth captures the method and device of mobile phone application runnability data |
CN107943666A (en) * | 2017-12-15 | 2018-04-20 | 广州四三九九信息科技有限公司 | Client performance Data Trend Monitor method, apparatus and computer-readable recording medium |
CN109298995A (en) * | 2017-07-24 | 2019-02-01 | 北京搜狗科技发展有限公司 | Performance test method and device, electronic equipment and storage medium |
CN112380088A (en) * | 2020-11-09 | 2021-02-19 | 北京字节跳动网络技术有限公司 | Test method and device and electronic equipment |
CN112948256A (en) * | 2021-03-24 | 2021-06-11 | 北京大米科技有限公司 | Client program testing method and device, storage medium and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101208659A (en) * | 2005-04-15 | 2008-06-25 | 微软公司 | Method and apparatus for profiling software programs |
CN102306118A (en) * | 2011-08-31 | 2012-01-04 | 中兴通讯股份有限公司 | Method and device for monitoring power consumption of application program at Android terminal |
US20130047039A1 (en) * | 2011-08-18 | 2013-02-21 | Avanquest Software Usa, Inc. | System and method for computer analysis |
CN103501372A (en) * | 2013-09-24 | 2014-01-08 | 北京大学 | Method for monitoring currents and event information of smart phone synchronously |
CN103631703A (en) * | 2012-08-21 | 2014-03-12 | 腾讯科技(深圳)有限公司 | Software performance testing method and device in Android device |
-
2014
- 2014-05-28 CN CN201410232622.7A patent/CN105204981A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101208659A (en) * | 2005-04-15 | 2008-06-25 | 微软公司 | Method and apparatus for profiling software programs |
US20130047039A1 (en) * | 2011-08-18 | 2013-02-21 | Avanquest Software Usa, Inc. | System and method for computer analysis |
CN102306118A (en) * | 2011-08-31 | 2012-01-04 | 中兴通讯股份有限公司 | Method and device for monitoring power consumption of application program at Android terminal |
CN103631703A (en) * | 2012-08-21 | 2014-03-12 | 腾讯科技(深圳)有限公司 | Software performance testing method and device in Android device |
CN103501372A (en) * | 2013-09-24 | 2014-01-08 | 北京大学 | Method for monitoring currents and event information of smart phone synchronously |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653456A (en) * | 2015-12-31 | 2016-06-08 | 网易(杭州)网络有限公司 | Application program performance testing method, device and system |
CN105653456B (en) * | 2015-12-31 | 2018-09-11 | 网易(杭州)网络有限公司 | Application program capacity test method, device and system |
CN106776330A (en) * | 2016-12-26 | 2017-05-31 | 北京金山安全软件有限公司 | Application testing method and device and electronic equipment |
CN107273277A (en) * | 2017-05-11 | 2017-10-20 | 珠海金山网络游戏科技有限公司 | A kind of depth captures the method and device of mobile phone application runnability data |
CN109298995A (en) * | 2017-07-24 | 2019-02-01 | 北京搜狗科技发展有限公司 | Performance test method and device, electronic equipment and storage medium |
CN107943666A (en) * | 2017-12-15 | 2018-04-20 | 广州四三九九信息科技有限公司 | Client performance Data Trend Monitor method, apparatus and computer-readable recording medium |
CN112380088A (en) * | 2020-11-09 | 2021-02-19 | 北京字节跳动网络技术有限公司 | Test method and device and electronic equipment |
CN112948256A (en) * | 2021-03-24 | 2021-06-11 | 北京大米科技有限公司 | Client program testing method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105204981A (en) | Application performance test method and device | |
CN109302522B (en) | Test method, test device, computer system, and computer medium | |
CN102946616B (en) | Internet of things middleware performance testing system and testing method | |
CN105335280A (en) | Program performance test method and device | |
US9652562B2 (en) | Proximal equipment data capture | |
JP2008538642A5 (en) | ||
CN107852338A (en) | Hydraulic performance decline during detection and alarm feature oblique ascension | |
CN104915297B (en) | A kind of automated testing method of the APP power consumption of android equipment | |
CN113342692B (en) | Automatic test case generation method and device, electronic equipment and storage medium | |
CN104102734B (en) | Method for exhibiting data and system | |
CN104834597A (en) | Method and system for measuring application response duration | |
CN105187608B (en) | The method and apparatus of application program power consumption on a kind of acquisition mobile terminal | |
CN113268403B (en) | Time series analysis and prediction method, device, equipment and storage medium | |
CN109656797B (en) | Log data association method and device | |
CN105468894B (en) | A kind of sign data display methods and its equipment | |
CN110084298B (en) | Method and device for detecting image similarity | |
CN114880238A (en) | Mobile terminal interface testing method, device, equipment and storage medium | |
CN111832254B (en) | Drawing annotation display processing method and device | |
CN114006885A (en) | Data acquisition method and device based on intelligent equipment and electronic equipment | |
CN113766312A (en) | Method, device, equipment and storage medium for calculating response delay between equipment | |
CN104407966A (en) | Statistical system and method for memory object number of JVM (JAVA virtual machine) | |
US10372849B2 (en) | Performing and communicating sheet metal simulations employing a combination of factors | |
WO2016132507A1 (en) | Program and statistical processing system | |
CN111427874A (en) | Quality control method and device for medical data production and electronic equipment | |
CN107357703B (en) | Terminal application power consumption detection method and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151230 |
|
RJ01 | Rejection of invention patent application after publication |