CN103425577B - A kind of test method and device - Google Patents
A kind of test method and device Download PDFInfo
- Publication number
- CN103425577B CN103425577B CN201210165720.4A CN201210165720A CN103425577B CN 103425577 B CN103425577 B CN 103425577B CN 201210165720 A CN201210165720 A CN 201210165720A CN 103425577 B CN103425577 B CN 103425577B
- Authority
- CN
- China
- Prior art keywords
- performance data
- application program
- data
- measured terminal
- test
- 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.)
- Active
Links
Abstract
The invention discloses a kind of test method and devices, belong to field of communication technology.The method includes:Test command is sent to measured terminal, the measured terminal is made to obtain the first performance data after the test and the second performance data and return to the first performance data and second performance data performing the test command after receiving the test command, the second performance data packet includes the performance data of the single application program of one or more run in the measured terminal, and the first performance data include the performance data of the measured terminal;The first performance data and second performance data are analyzed, obtain the performance data of default application program run in the measured terminal.The present invention can obtain the performance data of single application program, so as to improve the accuracy of performance test by issuing corresponding test instruction to measured terminal.
Description
Technical field
The present invention relates to field of communication technology, more particularly to a kind of test method and device.
Background technology
Smart phone user amount is increasing at present, wherein the smart mobile phone based on Android platform emerges in an endless stream.Intelligence
The application program that mobile phone can be supported is also more and more, and the various application programs on mobile phone also become the main of handset capability and disappear
Unit is consumed, not only occupies the cpu resource and memory of mobile phone, can also consume the electricity of mobile phone in use.Different applications
Program occupy mobile phone performance data also differ, then gently, it is fast, good, save application program of mobile phone increasingly by user's
It welcomes, the thing followed, the demand to the performance test of application program of mobile phone also becomes increasing.
In the prior art, for the performance test of application program of mobile phone, the performance data of whole mobile phone can only be obtained,
Obtain the performance data of all application programs in mobile phone, it is impossible to obtain the performance data of single application program, user can not
The performance data of single application program is obtained according to the performance data of whole mobile phone so that performance data is inaccurate.
Invention content
In order to improve the accuracy of handset capability test, an embodiment of the present invention provides a kind of test method and devices.Institute
It is as follows to state technical solution:
On the one hand, a kind of test method is provided, the method includes:
Test command is sent to measured terminal, the measured terminal is made to perform the survey after the test command is received
Examination order obtains the first performance data after the test and the second performance data and returns to first performance data and described
Second performance data, the second performance data packet include the single application programs of one or more that are run in the measured terminal
Performance data, the first performance data include the performance data of the measured terminal;
The first performance data and second performance data that receive are analyzed, obtain the measured terminal
The performance data of the default application program of middle operation.
It is described to send test command to the terminal, including:
The first test command is sent to measured terminal, the measured terminal is made to be held after first test command is received
Row first test command obtains the first performance data after the test and returns to the first performance data;
The second test command is sent to the measured terminal, the measured terminal is made to receive second test command
Second test command is performed afterwards to obtain the second performance data after the test and return to second performance data;Or,
Third test command is sent to the measured terminal, the measured terminal is made to receive the third test command
The third test command is performed afterwards to obtain the first performance data after the test and the second performance data and return to described
One performance data and second performance data.
The test command includes:The identification information of one or more application program run in the measured terminal.
The first performance data include:The CPU of the measured terminal is disappeared using total amount, the occupied total amount of memory and electricity
Consume one or more of total amount;The second performance data packet includes the single application program run in the measured terminal and uses
Cpu data, the internal storage data that occupies and one or more of the electricity data of consumption.
The described pair of first performance data received and second performance data are analyzed, and are obtained described tested
The performance data of default application program run in terminal, including:
Obtain the identification information of default application program run in the measured terminal;
According to the identification information of the default application program, extract in second performance data and default apply journey with described
The relevant performance data of sequence;
According to described and the default relevant performance data of application program and the first performance data, calculate described pre-
If the performance data of application program.
The performance data of the default application program includes:The cpu data that the default application program uses accounts for the quilt
The CPU for surveying terminal is accounted for using the internal storage data that the percentage of total amount, the default application program occupy in the measured terminal
It deposits the percentage of occupied total amount and the electricity of the default application program consumption accounts for the electric quantity consumption total amount of the measured terminal
One or more of percentage.
On the other hand, a kind of test device is provided, described device includes:
Data acquisition module for sending test command to measured terminal, makes the measured terminal receive the survey
The test command is performed after examination order to obtain described in the first performance data after the test and the second performance data and return
First performance data and second performance data, the second performance data packet include run in the measured terminal one or
The performance data of multiple single application programs, the first performance data include the performance data of the measured terminal;
Data analysis module, for dividing the first performance data received and second performance data
Analysis, obtains the performance data of default application program run in the measured terminal.
The data acquisition module, including:
First transmitting element for sending the first test command to measured terminal, makes the measured terminal receiving
It states and first test command is performed after the first test command obtains the first performance data after the test and return to described
One performance data;
Second transmitting element for sending the second test command to the measured terminal, is receiving the measured terminal
Second test command is performed after to second test command to obtain the second performance data after the test and return to institute
State the second performance data;Or,
Third transmitting element for sending third test command to the measured terminal, is receiving the measured terminal
The third test command is performed after to the third test command and obtains first performance data after the test and secondary
Energy data simultaneously return to the first performance data and second performance data.
The test command includes:The identification information of one or more application program run in the measured terminal.
The first performance data include:The CPU of the measured terminal is disappeared using total amount, the occupied total amount of memory and electricity
Consume one or more of total amount;The second performance data packet includes the single application program run in the measured terminal and uses
Cpu data, the internal storage data that occupies and one or more of the electricity data of consumption.
The data analysis module, including:
Acquiring unit, for obtaining the identification information of default application program run in the measured terminal;
Extraction unit, for the identification information according to the default application program, extract in second performance data with
The relevant performance data of default application program;
Computing unit, for according to described and the default relevant performance data of application program and the first performance number
According to the performance data of the calculating default application program.
The performance data of the default application program includes:The cpu data that the default application program uses accounts for the quilt
The CPU for surveying terminal is accounted for using the internal storage data that the percentage of total amount, the default application program occupy in the measured terminal
It deposits the percentage of occupied total amount and the electricity of the default application program consumption accounts for the electric quantity consumption total amount of the measured terminal
One or more of percentage.
On the other hand, a kind of test method is additionally provided, the method includes:
The test command that test lead is sent is received, and performs the test command, obtains first performance data and secondary
Can data, the second performance data packet includes the performance data of the single application programs of one or more of local runtime, described the
One performance data includes local performance data;
The first performance data and second performance data are returned into the test lead, make the test lead to institute
State first performance data and second performance data analyzed with obtain local runtime default application program performance number
According to.
The test command for receiving test lead and sending, and performs the test command, obtains first performance data and the
Two performance datas, including:
The first test command that test lead is sent is received, first test command is performed, obtains first performance data;
The second test command that the test lead is sent is received, second test command is performed, obtains the second performance number
According to;Or,
The third test command that the test lead is sent is received, the third test command is performed, obtains first performance number
According to the second performance data.
The test command includes:The identification information of the one or more application program of local runtime.
The first performance data include:Local CPU is used in total amount, the occupied total amount of memory and electric quantity consumption total amount
One or more;The second performance data packet include the cpu data that the single application program of local runtime uses, occupy it is interior
One or more of deposit data and the electricity data of consumption.
On the other hand, a kind of test device is additionally provided, described device includes:
Execution module for receiving the test command of test lead transmission, and performs the test command, obtains first performance
Data and the second performance data, the second performance data packet include the performance of the single application program of one or more of local runtime
Data, the first performance data include local performance data;
Sending module for the first performance data and second performance data to be returned to the test lead, makes
The test lead analyzes the first performance data and second performance data should to obtain the default of local runtime
With the performance data of program.
The execution module, including:
First execution unit for receiving the first test command of test lead transmission, performs first test command, obtains
To first performance data;
Second execution unit for receiving the second test command that the test lead is sent, performs the second test life
It enables, obtains the second performance data;Or,
Third execution unit for receiving the third test command that the test lead is sent, performs the third test life
It enables, obtains first performance data and the second performance data.
The test command includes:The identification information of the one or more application program of local runtime.
The first performance data include:Local CPU is used in total amount, the occupied total amount of memory and electric quantity consumption total amount
One or more;The second performance data packet include the cpu data that the single application program of local runtime uses, occupy it is interior
One or more of deposit data and the electricity data of consumption.
The performance data of the default application program includes:The cpu data that the default application program uses accounts for local
CPU accounts for the hundred of the occupied total amount of local memory using the percentage of total amount, the internal storage data of the default application program occupancy
Divide than accounting for one or more of local percentage of electric quantity consumption total amount with the electricity of the default application program consumption.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:Test command is sent to measured terminal, is made
The measured terminal obtains the first performance number after the test performing the test command after receiving the test command
According to the second performance data and return to the first performance data and second performance data, the second performance data packet includes
The performance data of the single application program of one or more run in the measured terminal, the first performance data include described
The performance data of measured terminal;The first performance data and second performance data are analyzed, are obtained described tested
The performance data of default application program run in terminal.By issuing corresponding test instruction to measured terminal, can obtain
The performance data of single application program, so as to improve the accuracy of performance test.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for
For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings
Attached drawing.
Fig. 1 is the flow chart of a kind of test method provided in the embodiment of the present invention 1;
Fig. 2 is the flow chart of a kind of test method provided in the embodiment of the present invention 2;
Fig. 3 is the flow chart of a kind of test method provided in the embodiment of the present invention 3;
Fig. 4 is the schematic diagram of a kind of test device provided in the embodiment of the present invention 4;
Fig. 5 is the schematic diagram of another test device provided in the embodiment of the present invention 4;
Fig. 6 is the schematic diagram of a kind of test device provided in the embodiment of the present invention 5;
Fig. 7 is the schematic diagram of another test device provided in the embodiment of the present invention 5.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment 1
Referring to Fig. 1, a kind of test method is provided in the present embodiment, including:
101st, test command is sent to measured terminal, the measured terminal is made to perform institute after the test command is received
State test command obtain the first performance data after the test and the second performance data and return the first performance data and
Second performance data, it is single using journey that the second performance data packet includes the one or more run in the measured terminal
The performance data of sequence, the first performance data include the performance data of the measured terminal;
102nd, the first performance data and second performance data that receive are analyzed, obtained described tested
The performance data of default application program run in terminal.
The advantageous effect of the present embodiment is:Test command is sent to measured terminal, makes the measured terminal receiving
It states and performs the test command after test command and obtain the first performance data after the test and the second performance data and return
The first performance data and second performance data, the second performance data packet include one run in the measured terminal
The performance data of a or multiple single application programs, the first performance data include the performance data of the measured terminal;It is right
The first performance data and second performance data are analyzed, obtain run in the measured terminal it is default using journey
The performance data of sequence.It is instructed by issuing corresponding test to measured terminal, the performance data of single application program can be obtained,
So as to improve the accuracy of performance test.
Embodiment 2
Referring to Fig. 2, a kind of test method is provided in the present embodiment, including:
201st, the test command that test lead is sent is received, and performs the test command, obtains first performance data and the
Two performance datas, the second performance data packet include the performance data of the single application program of one or more of local runtime, institute
It states first performance data and includes local performance data;
202nd, the first performance data and second performance data are returned into the test lead, makes the test lead
The first performance data and second performance data are analyzed with obtain local runtime default application program property
It can data.
The advantageous effect of the present embodiment is:To the test command of test lead transmission is received, and perform the test command, obtain
To first performance data and the second performance data, the second performance data packet includes the single application of one or more of local runtime
The performance data of program, the first performance data include local performance data;By the first performance data and described
Two performance datas return to the test lead, make the test lead to the first performance data and second performance data into
Analysis go to obtain the performance data of the default application program of local runtime.Test lead to measured terminal by issuing accordingly in this way
Test instruction, the performance data of single application program can be obtained, so as to improve the accuracy of performance test.
Embodiment 3
Referring to Fig. 3, a kind of test method is provided in the present embodiment, terminal is tested using PC in the present embodiment,
Wherein terminal includes the smart mobile phone of Android platform, but is also not necessarily limited to this, this present embodiment is not specifically limited.This reality
The method provided in example is applied to specifically include:
301st, test lead sends test command to measured terminal.
In this step, test lead is PC ends, naturally it is also possible to pass through the smart mobile phone of other terminal-pair Android platforms
It is tested, this present embodiment is not specifically limited.
Wherein specifically, test lead sends test command to measured terminal, including:
The first test command is sent to measured terminal, the measured terminal is made to be held after first test command is received
Row first test command obtains the first performance data after the test and returns to the first performance data;
The second test command is sent to the measured terminal, the measured terminal is made to receive second test command
Second test command is performed afterwards to obtain the second performance data after the test and return to second performance data;
Or, optionally, third test command is sent to the measured terminal, the measured terminal is made to receive described the
The third test command is performed after three test commands and obtains the first performance data after the test and the second performance data simultaneously
Return to the first performance data and second performance data.
From the foregoing, it will be observed that first performance data can be returned to trigger measured terminal in the present embodiment by two test commands
With the second performance data, alternatively it is also possible to by a test command come trigger measured terminal return first performance data and
Second performance data.Which kind of method first performance data and the second performance data are collected using in specific implementation process, to this
The present embodiment is not specifically limited.Wherein first performance data include:The CPU of the measured terminal is occupied using total amount, memory
With one or more of total amount and electric quantity consumption total amount;The second performance data packet includes the list run in the measured terminal
One or more of electricity data of cpu data, the internal storage data of occupancy and consumption that a application program uses.
In this step, test command includes:The mark letter of the one or more application program run in the measured terminal
Breath.When test terminal returns to the second performance data by the second test command to trigger measured terminal, in the second test command
It is tested also to include test including the identification information of one or more application program run in measured terminal, in the first test command
The test command of the entire performance data of terminal;When test terminal by third test command come trigger measured terminal return it is secondary
Can data when, third test command includes the identification information of one or more application program run in measured terminal, and the
Also include the test command of the test entire performance data of measured terminal in three test commands.The wherein identification information packet of application program
It includes:Filename, suffix name or icon information of application program etc. are not specifically limited this present embodiment.
Wherein test command can be write by a variety of methods, if desired for the performance data of the test space, then test
Order can be adb shell dumpsys meminfo com. space identification information .mtt.
302nd, after test terminal receives test command, the test command is performed, obtains first performance data and secondary
Energy data, and the first performance data and second performance data are returned into the test lead.
In this step, measured terminal receives the test command that test lead is sent, and performs the test command, obtains first
Performance data and the second performance data, specifically include:
The first test command that test lead is sent is received, first test command is performed, obtains first performance data;
The second test command that the test lead is sent is received, second test command is performed, obtains the second performance number
According to;Or,
The third test command that the test lead is sent is received, the third test command is performed, obtains first performance number
According to the second performance data.
In this step, the order that measured terminal is sent according to test lead obtains corresponding performance data, when receiving first
During test command, the first performance data after execution test command are returned into test lead, when receiving the second test command,
Start application program corresponding with the second test command, by the reporting performance data of corresponding application program to test lead.It is optional
First performance data and the second performance data when receiving third test command, are then reported to test lead by ground simultaneously.
303rd, test lead analyzes the first performance data received and second performance data, obtains institute
State the performance data of default application program run in measured terminal.
In the present embodiment, after test lead receives the first performance data and the second performance data of measured terminal return, root
Need the performance data of default application program that obtains according to user, to the first performance data and second performance data into
Row analysis, obtains the performance data of default application program run in the measured terminal.Wherein specifically, institute to receiving
It states first performance data and second performance data is analyzed, obtain the default application program run in the measured terminal
Performance data, including:
Obtain the identification information of default application program run in the measured terminal;
According to the identification information of the default application program, extract in second performance data and default apply journey with described
The relevant performance data of sequence;
According to described and the default relevant performance data of application program and the first performance data, calculate described pre-
If the performance data of application program.
The identification information of default application program run in the above-mentioned acquisition measured terminal can be the defeated of acquisition user
The identification information of default application program or the identification information of the default application program of acquisition system setting entered, to this
The present embodiment is not specifically limited.
Wherein, the identification information for presetting application program includes:Filename, suffix name or the icon letter of default application program
Breath etc., is not specifically limited this present embodiment.Include with the relevant performance data of default application program:Default application program makes
One or more of the electricity data of cpu data, the internal storage data occupied and consumption etc..
Wherein, the performance data of the default application program includes:The cpu data that the default application program uses accounts for institute
The CPU for stating measured terminal accounts for the measured terminal using the internal storage data that the percentage of total amount, the default application program occupy
The percentage of the occupied total amount of memory and the electricity of default application program consumption account for the electric quantity consumption of the measured terminal
One or more of percentage of total amount etc..
It is above-mentioned, according to described and the default relevant performance data of application program and the first performance data, calculate
The performance data of the default application program, wherein the present embodiment does not limit for circular.
The advantageous effect of the present embodiment is:Test command is sent to measured terminal, makes the measured terminal receiving
It states and performs the test command after test command and obtain the first performance data after the test and the second performance data and return
The first performance data and second performance data, the second performance data packet include one run in the measured terminal
The performance data of a or multiple single application programs, the first performance data include the performance data of the measured terminal;It is right
The first performance data and second performance data are analyzed, obtain run in the measured terminal it is default using journey
The performance data of sequence.It is instructed by issuing corresponding test to measured terminal, the performance data of single application program can be obtained,
So as to improve the accuracy of performance test.
Embodiment 4
Referring to Fig. 4, a kind of test device is provided in the present embodiment, including:Data acquisition module 401 and data analysis mould
Block 402.
Data acquisition module 401, for sending test command to measured terminal, make the measured terminal receive it is described
The test command is performed after test command to obtain the first performance data after the test and the second performance data and return to institute
First performance data and second performance data are stated, the second performance data packet includes one run in the measured terminal
Or the performance data of multiple single application programs, the first performance data include the performance data of the measured terminal;
Data analysis module 402, for the first performance data received and second performance data progress
Analysis, obtains the performance data of default application program run in the measured terminal.
Referring to Fig. 5, optionally, the data acquisition module 401, including:
First transmitting element 401a for sending the first test command to measured terminal, is receiving the measured terminal
First test command is performed after to first test command to obtain the first performance data after the test and return to institute
State first performance data;
Second transmitting element 401b for sending the second test command to the measured terminal, makes the measured terminal exist
It receives and performs second test command after second test command and obtain the second performance data after the test and return
Return second performance data;Or,
Third transmitting element 401c for sending third test command to the measured terminal, makes the measured terminal exist
It receives and performs the third test command after the third test command and obtain the first performance data after the test and
Two performance datas simultaneously return to the first performance data and second performance data.
Optionally, the test command includes:The mark of one or more application program run in the measured terminal
Information.
Optionally, the first performance data include:The CPU of the measured terminal uses total amount, the occupied total amount of memory
One or more of with electric quantity consumption total amount;The second performance data packet includes the single application run in the measured terminal
One or more of electricity data of cpu data, the internal storage data of occupancy and consumption that program uses.
Referring to Fig. 5, the data analysis module 402, including:
Acquiring unit 402a, for obtaining the identification information of default application program run in the measured terminal;
Extraction unit 402b for the identification information according to the default application program, extracts second performance data
In with the default relevant performance data of application program;
Computing unit 402c, for according to described and the default relevant performance data of application program and the primary
Energy data calculate the performance data of the default application program.
Optionally, the performance data of the default application program includes:The cpu data that the default application program uses accounts for
The CPU of the measured terminal accounts for the tested end using the percentage of total amount, the internal storage data of the default application program occupancy
The electricity that the percentage of the occupied total amount of memory at end and the electricity of the default application program consumption account for the measured terminal disappears
Consume one or more of percentage of total amount.
The advantageous effect of the present embodiment is:Test command is sent to measured terminal, makes the measured terminal receiving
It states and performs the test command after test command and obtain the first performance data after the test and the second performance data and return
The first performance data and second performance data, the second performance data packet include one run in the measured terminal
The performance data of a or multiple single application programs, the first performance data include the performance data of the measured terminal;It is right
The first performance data and second performance data are analyzed, obtain run in the measured terminal it is default using journey
The performance data of sequence.It is instructed by issuing corresponding test to measured terminal, the performance data of single application program can be obtained,
So as to improve the accuracy of performance test.
Embodiment 5
Referring to Fig. 6, a kind of test device is provided in the present embodiment, including:Execution module 501 and sending module 502.
Execution module 501 for receiving the test command of test lead transmission, and performs the test command, obtains first
Performance data and the second performance data, the second performance data packet include the single application program of one or more of local runtime
Performance data, the first performance data include local performance data;
Sending module 502, for the first performance data and second performance data to be returned to the test lead,
The test lead is made to analyze and be preset to obtain local runtime the first performance data and second performance data
The performance data of application program.
Referring to Fig. 7, optionally, the execution module 501, including:
First execution unit 501a for receiving the first test command of test lead transmission, performs the first test life
It enables, obtains first performance data;
Second execution unit 501b for receiving the second test command that the test lead is sent, performs described second and surveys
Examination order, obtains the second performance data;Or,
Third execution unit 501c for receiving the third test command that the test lead is sent, performs the third and surveys
Examination order, obtains first performance data and the second performance data.
Optionally, the test command includes:The identification information of the one or more application program of local runtime.
Optionally, the first performance data include:Local CPU is disappeared using total amount, the occupied total amount of memory and electricity
Consume one or more of total amount;The second performance data packet include the cpu data that the single application program of local runtime uses,
One or more of the internal storage data of occupancy and the electricity data of consumption.
Optionally, the performance data of the default application program includes:The cpu data that the default application program uses accounts for
It is occupied total that local CPU using the internal storage data that the percentage of total amount, the default application program occupy accounts for local memory
The percentage of amount and the electricity of default application program consumption account for one in the percentage of local electric quantity consumption total amount or
It is multiple.
The advantageous effect of the present embodiment is:To the test command of test lead transmission is received, and perform the test command, obtain
To first performance data and the second performance data, the second performance data packet includes the single application of one or more of local runtime
The performance data of program, the first performance data include local performance data;By the first performance data and described
Two performance datas return to the test lead, make the test lead to the first performance data and second performance data into
Analysis go to obtain the performance data of the default application program of local runtime.Test lead to measured terminal by issuing accordingly in this way
Test instruction, the performance data of single application program can be obtained, so as to improve the accuracy of performance test.
Device provided in this embodiment, can specifically belong to same design with embodiment of the method, and specific implementation process is detailed
See embodiment of the method, which is not described herein again.
It is worth noting that, in above-mentioned test device embodiment, included modules only according to function logic into
What row divided, but above-mentioned division is not limited to, as long as corresponding function can be realized;In addition, each function module
Specific name is also only to facilitate mutually distinguish, the protection domain being not intended to restrict the invention.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
Claims (18)
1. a kind of test method, which is characterized in that the method includes:
The first test command is sent to measured terminal, the measured terminal is made to perform institute when receiving first test command
It states the first test command to obtain first performance data and return to the first performance data, the first performance data include described
The performance data of measured terminal;
The second test command is sent to the measured terminal, makes the measured terminal when receiving second test command,
Start application program corresponding with second test command, using the performance data of corresponding application program as the second performance number
According to and return to second performance data, the second performance data packet includes the one or more run in the measured terminal should
With the performance data of program;
The first performance data and second performance data that receive are analyzed, obtains and is transported in the measured terminal
The performance data of capable default application program.
2. according to the method described in claim 1, it is characterized in that, second test command includes:In the measured terminal
The identification information of the one or more application program of operation.
3. according to the method described in claim 1, it is characterized in that, the first performance data include:The measured terminal
CPU uses one or more of total amount, the occupied total amount of memory and electric quantity consumption total amount;The second performance data packet includes institute
It states in cpu data, the internal storage data of occupancy and the electricity data of consumption that the single application program run in measured terminal uses
One or more.
4. according to the method described in claim 1, it is characterized in that, described pair of first performance data received and described
Second performance data is analyzed, and obtains the performance data of default application program run in the measured terminal, including:
Obtain the identification information of default application program run in the measured terminal;
According to the identification information of the default application program, extract in second performance data with the default application program phase
The performance data of pass;
According to described and the default relevant performance data of application program and the first performance data, calculating described preset should
With the performance data of program.
5. according to the method described in claim 1, it is characterized in that, the performance data of the default application program includes:It is described
The CPU that the cpu data that default application program uses accounts for the measured terminal uses the percentage of total amount, the default application program
The internal storage data of occupancy accounts for the percentage of the occupied total amount of memory of the measured terminal and default application program consumption
Electricity accounts for one or more of percentage of electric quantity consumption total amount of the measured terminal.
6. a kind of test method, which is characterized in that the method includes:
The first test command that test lead is sent is received, performs first test command, obtains first performance data, described the
One performance data includes local performance data;
The second test command that the test lead is sent is received, starts application program corresponding with second test command, it will
The performance data of corresponding application program as the second performance data, the second performance data packet include one of local runtime or
The performance data of multiple application programs;
The first performance data and second performance data are returned into the test lead, make the test lead to described
One performance data and second performance data analyzed with obtain local runtime default application program performance data.
7. according to the method described in claim 6, it is characterized in that, second test command includes:One of local runtime
Or the identification information of multiple application programs.
8. according to the method described in claim 6, it is characterized in that, the first performance data include:Local CPU uses total
One or more of amount, the occupied total amount of memory and electric quantity consumption total amount;The second performance data packet includes local runtime
One or more of electricity data of cpu data, the internal storage data of occupancy and consumption that single application program uses.
9. according to the method described in claim 6, it is characterized in that, the performance data of the default application program includes:It is described
The cpu data that default application program uses accounts for local CPU, and that the percentage of total amount, the default application program is used to occupy is interior
Deposit data accounts for the percentage of the occupied total amount of local memory and the electricity of the default application program consumption accounts for local electricity
One or more of percentage of total amount consumed.
10. a kind of test device, which is characterized in that described device includes:
Data acquisition module for sending the first test command to measured terminal, makes the measured terminal receive described the
It performs first test command during one test command to obtain first performance data and return to the first performance data, described
One performance data includes the performance data of the measured terminal;The second test command is sent to the measured terminal, makes the quilt
Terminal is surveyed when receiving second test command, starts application program corresponding with second test command, by correspondence
The performance data of application program as the second performance data and return to second performance data, the second performance data packet
Include the performance data of one or more application program run in the measured terminal;
Data analysis module for analyzing the first performance data received and second performance data, obtains
Take the performance data of default application program run in the measured terminal.
11. device according to claim 10, which is characterized in that second test command includes:The measured terminal
The identification information of the one or more application program of middle operation.
12. device according to claim 10, which is characterized in that the first performance data include:The measured terminal
CPU one or more of using total amount, the occupied total amount of memory and electric quantity consumption total amount;The second performance data packet includes
Cpu data, the internal storage data of occupancy and the electricity data of consumption that the single application program run in the measured terminal uses
One or more of.
13. device according to claim 10, which is characterized in that the data analysis module, including:
Acquiring unit, for obtaining the identification information of default application program run in the measured terminal;
Extraction unit, for the identification information according to the default application program, extract in second performance data with it is described
The relevant performance data of default application program;
Computing unit, for according to described with the default relevant performance data of application program and the first performance data,
Calculate the performance data of the default application program.
14. device according to claim 10, which is characterized in that the performance data of the default application program includes:Institute
It states the cpu data that default application program uses and accounts for the CPU of the measured terminal and use the percentage, described default using journey of total amount
The internal storage data that sequence occupies accounts for the percentage of the occupied total amount of memory of the measured terminal and the default application program consumption
Electricity account for one or more of percentage of electric quantity consumption total amount of the measured terminal.
15. a kind of test device, which is characterized in that described device includes:
Execution module for receiving the first test command of test lead transmission, performs first test command, obtains the primary
Energy data, the first performance data include local performance data;The second test command that the test lead is sent is received, is opened
Application program corresponding with second test command is moved, using the performance data of corresponding application program as the second performance number
According to the second performance data packet includes the performance data of the one or more application program of local runtime;
Sending module for the first performance data and second performance data to be returned to the test lead, makes described
Test lead analyzes the first performance data and second performance data to obtain the default using journey of local runtime
The performance data of sequence.
16. device according to claim 15, which is characterized in that second test command includes:The one of local runtime
The identification information of a or multiple application programs.
17. device according to claim 15, which is characterized in that the first performance data include:Local CPU is used
One or more of the occupied total amount of total amount, memory and electric quantity consumption total amount;The second performance data packet includes local runtime
The single application program cpu data used, the internal storage data that occupies and one or more of the electricity data of consumption.
18. device according to claim 15, which is characterized in that the performance data of the default application program includes:Institute
It states the cpu data that default application program uses and accounts for local CPU and the percentage of total amount, the default application program is used to occupy
Internal storage data accounts for the percentage of the occupied total amount of local memory and the electricity of the default application program consumption accounts for local electricity
Measure one or more of percentage of total amount consumed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210165720.4A CN103425577B (en) | 2012-05-25 | 2012-05-25 | A kind of test method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210165720.4A CN103425577B (en) | 2012-05-25 | 2012-05-25 | A kind of test method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103425577A CN103425577A (en) | 2013-12-04 |
CN103425577B true CN103425577B (en) | 2018-06-26 |
Family
ID=49650361
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210165720.4A Active CN103425577B (en) | 2012-05-25 | 2012-05-25 | A kind of test method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103425577B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104699598B (en) * | 2013-12-09 | 2017-09-29 | 腾讯科技(深圳)有限公司 | Automated testing method, device, equipment and system |
CN105302706B (en) * | 2014-06-05 | 2019-05-24 | 腾讯科技(深圳)有限公司 | Applied program testing method and device |
CN104881346B (en) * | 2015-04-30 | 2019-02-15 | 努比亚技术有限公司 | The detection method and device of a kind of mobile terminal and its application program power consumption |
CN105653451A (en) * | 2015-12-29 | 2016-06-08 | 北京金山安全软件有限公司 | Software performance testing method and device |
CN106412192B (en) * | 2016-08-31 | 2019-11-15 | 宁夏泰富石油石化产品检验检测中心有限公司 | A kind of mobile terminal test method and its system |
CN106339321B (en) * | 2016-09-09 | 2018-04-27 | 腾讯科技(深圳)有限公司 | A kind of application program capacity test method and device |
CN108173984A (en) * | 2016-12-08 | 2018-06-15 | 深圳玩时科技有限公司 | The connection control method of machine screen separation |
CN106776330A (en) * | 2016-12-26 | 2017-05-31 | 北京金山安全软件有限公司 | Application testing method and device and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6438512B1 (en) * | 1999-09-28 | 2002-08-20 | Convergys Cmg Utah, Inc. | System and method for performance monitoring of application code |
CN101408861A (en) * | 2007-10-11 | 2009-04-15 | 鸿富锦精密工业(深圳)有限公司 | Real time monitoring system and method of application program |
CN102306095A (en) * | 2011-07-21 | 2012-01-04 | 宇龙计算机通信科技(深圳)有限公司 | Application management method and terminal |
CN102306118A (en) * | 2011-08-31 | 2012-01-04 | 中兴通讯股份有限公司 | Method and device for monitoring power consumption of application program at Android terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7216160B2 (en) * | 2001-10-31 | 2007-05-08 | Sun Microsystems, Inc. | Server-based application monitoring through collection of application component and environmental statistics |
-
2012
- 2012-05-25 CN CN201210165720.4A patent/CN103425577B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6438512B1 (en) * | 1999-09-28 | 2002-08-20 | Convergys Cmg Utah, Inc. | System and method for performance monitoring of application code |
CN101408861A (en) * | 2007-10-11 | 2009-04-15 | 鸿富锦精密工业(深圳)有限公司 | Real time monitoring system and method of application program |
CN102306095A (en) * | 2011-07-21 | 2012-01-04 | 宇龙计算机通信科技(深圳)有限公司 | Application management method and terminal |
CN102306118A (en) * | 2011-08-31 | 2012-01-04 | 中兴通讯股份有限公司 | Method and device for monitoring power consumption of application program at Android terminal |
Also Published As
Publication number | Publication date |
---|---|
CN103425577A (en) | 2013-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103425577B (en) | A kind of test method and device | |
Xu et al. | V-edge: Fast self-constructive power modeling of smartphones based on battery voltage dynamics | |
Wagner et al. | Device analyzer: Understanding smartphone usage | |
CN105144118A (en) | Application testing and analysis | |
TW201043986A (en) | Stand-alone battery detection device | |
CN103297267B (en) | A kind of methods of risk assessment of network behavior and system | |
CN102307369A (en) | Device and method for supporting parallel simulation and physical simulation of wireless sensor network | |
CN107888456B (en) | Method and device for monitoring port data volume | |
CN108307021A (en) | Mobile terminal parallel to follow test equipment, cloud prototype and method | |
CN109933504B (en) | Hard disk delay test method, device, terminal and storage medium | |
CN109327355A (en) | Cloud storage system performance evaluation methodology, device and computer readable storage medium | |
CN109739712B (en) | FPGA accelerator card transmission performance test method, device, equipment and medium | |
CN104461849A (en) | Method for measuring power consumption of CPU (Central Processing Unit) and GPU (Graphics Processing Unit) software on mobile processor | |
Lee et al. | Smart phone power model generation using use pattern analysis | |
CN104468257A (en) | Cloud application availability prediction method and system based on mobile user time-space behaviors | |
CN109710507A (en) | A kind of method and apparatus of automatic test | |
CN110362460A (en) | A kind of application program capacity data processing method, device and storage medium | |
CN103542807B (en) | A kind of length measurement method, device and electronic equipment | |
CN109188341A (en) | Live kinematic error appraisal procedure, device, equipment and the storage medium of electric energy meter | |
CN114167132B (en) | Power consumption detection method and device of wireless terminal, electronic equipment and storage medium | |
CN106373279B (en) | The communication means of intelligent IC card water meter for multilist centralized meter-reading system | |
CN108170600A (en) | The coverage rate statistical method of front-end code test, apparatus and system | |
Graubner et al. | Multimodal complex event processing on mobile devices | |
CN104734918A (en) | Lightweight webpage performance testing architecture and method | |
Kamiyama et al. | A model-based energy profiler using online logging for Android applications |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |