CN103425577A - Test method and device - Google Patents
Test method and device Download PDFInfo
- Publication number
- CN103425577A CN103425577A CN2012101657204A CN201210165720A CN103425577A CN 103425577 A CN103425577 A CN 103425577A CN 2012101657204 A CN2012101657204 A CN 2012101657204A CN 201210165720 A CN201210165720 A CN 201210165720A CN 103425577 A CN103425577 A CN 103425577A
- Authority
- CN
- China
- Prior art keywords
- performance data
- test command
- application program
- measured terminal
- performance
- 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.)
- Granted
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a test method and device and belongs to the field of communication technologies. The method includes: sending a test command to a terminal under test, allowing the terminal under test to execute the test command to obtain first and second post-test performance data and return the first and second performance data after the terminal receives the test command, and analyzing the first and second performance data to acquire the performance data of a preset application running in the terminal under test. The second performance data includes performance data of one or more single applications running in the terminal under test. The first performance data includes performance data of the terminal under test. The corresponding test command is sent to the terminal under test, so that the performance data of the single application can be obtained and accuracy in performance test is improved.
Description
Technical field
The present invention relates to communication technical field, particularly a kind of method of testing and device.
Background technology
The smart phone user amount is increasing at present, and wherein the smart mobile phone based on the Android platform emerges in an endless stream.The application program that smart mobile phone can be supported is also more and more, and the various application programs on mobile phone also become the main consumable unit of handset capability, not only occupy cpu resource and the internal memory of mobile phone, in use also can consume the electric weight of mobile phone.The performance data that different application programs takies mobile phone is not identical yet, so welcome light, fast, good, that application program of mobile phone that economize more and more is subject to the user, the thing followed, also become increasing to the demand of the performance test of application program of mobile phone.
In prior art, for the performance test of application program of mobile phone, can only obtain the performance data of whole mobile phone, obtain the performance data of all application programs in mobile phone, can not obtain the performance data of single application program, the user can not obtain the performance data of single application program according to the performance data of whole mobile phone, make performance data inaccurate.
Summary of the invention
In order to improve the accuracy of handset capability test, the embodiment of the present invention provides a kind of method of testing and device.Described technical scheme is as follows:
On the one hand, provide a kind of method of testing, described method comprises:
Send test command to measured terminal, making described measured terminal carry out described test command after receiving described test command obtains the first performance data and the second performance data after described test and returns to described the first performance data and described the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of moving in described measured terminal, the performance data that described the first performance packet is drawn together described measured terminal;
To described the first performance data and described the second performance data analysis received, obtain the performance data of the default application program of moving in described measured terminal.
Described to described terminal transmission test command, comprising:
Send the first test command to measured terminal, make described measured terminal carry out the first performance data after described the first test command obtains described test and return to described the first performance data after receiving described the first test command;
Send the second test command to described measured terminal, make described measured terminal carry out the second performance data after described the second test command obtains described test and return to described the second performance data after receiving described the second test command; Or,
Send the 3rd test command to described measured terminal, make described measured terminal carry out the first performance data and the second performance data after described the 3rd test command obtains described test and return to described the first performance data and described the second performance data after receiving described the 3rd test command.
Described test command comprises: the identification information of one or more application programs of moving in described measured terminal.
Described the first performance packet is drawn together: the CPU of described measured terminal is used one or more in total amount, the occupied total amount of internal memory and electric quantity consumption total amount; Described the second performance packet is drawn together one or more in the electric quantity data of cpu data, the internal storage data taken and consumption that the single application program moved in described measured terminal used.
Described described the first performance data and described the second performance data analysis to receiving, obtain the performance data of the default application program of moving in described measured terminal, comprising:
Obtain the identification information of the default application program of moving in described measured terminal;
According to the identification information of described default application program, extract performance data relevant to described default application program in described the second performance data;
Relevant performance data and described the first performance data according to described and described default application program, calculate the performance data of described default application program.
The performance data of described default application program comprises: the CPU of the shared described measured terminal of cpu data that described default application program is used is used one or more in the number percent of electric quantity consumption total amount of the number percent of the occupied total amount of internal memory of the number percent of total amount, the shared described measured terminal of internal storage data that described default application program takies and the shared described tested program of electric weight that described default application program consumes.
On the other hand, provide a kind of proving installation, described device comprises:
Data acquisition module, for to measured terminal, sending test command, making described measured terminal carry out described test command after receiving described test command obtains the first performance data and the second performance data after described test and returns to described the first performance data and described the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of moving in described measured terminal, the performance data that described the first performance packet is drawn together described measured terminal;
Data analysis module, for described the first performance data to receiving and described the second performance data analysis, obtain the performance data of the default application program of moving in described measured terminal.
Described data acquisition module comprises:
The first transmitting element, for send the first test command to measured terminal, make described measured terminal carry out the first performance data after described the first test command obtains described test and return to described the first performance data after receiving described the first test command;
The second transmitting element, for to described measured terminal, sending the second test command, make described measured terminal carry out the second performance data after described the second test command obtains described test and return to described the second performance data after receiving described the second test command; Or,
The 3rd transmitting element, for to described measured terminal, sending the 3rd test command, make described measured terminal carry out the first performance data and the second performance data after described the 3rd test command obtains described test and return to described the first performance data and described the second performance data after receiving described the 3rd test command.
Described test command comprises: the identification information of one or more application programs of moving in described measured terminal.
Described the first performance packet is drawn together: the CPU of described measured terminal is used one or more in total amount, the occupied total amount of internal memory and electric quantity consumption total amount; Described the second performance packet is drawn together one or more in the electric quantity data of cpu data, the internal storage data taken and consumption that the single application program moved in described measured terminal used.
Described data analysis module comprises:
Acquiring unit, for obtaining the identification information of the default application program that described measured terminal moves;
Extraction unit, for the identification information according to described default application program, extract performance data relevant to described default application program in described the second performance data;
Computing unit, for the performance data relevant according to described and described default application program and described the first performance data, calculate the performance data of described default application program.
The performance data of described default application program comprises: the CPU of the shared described measured terminal of cpu data that described default application program is used is used one or more in the number percent of electric quantity consumption total amount of the number percent of the occupied total amount of internal memory of the number percent of total amount, the shared described measured terminal of internal storage data that described default application program takies and the shared described tested program of electric weight that described default application program consumes.
On the other hand, also provide a kind of method of testing, described method comprises:
Receive the test command that test lead sends, and carry out described test command, obtain the first performance data and the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of local runtime, and described the first performance packet is drawn together local performance data;
Described the first performance data and described the second performance data are returned to described test lead, make described test lead to described the first performance data and described the second performance data analysis the performance data with the default application program of obtaining local runtime.
The test command that described reception test lead sends, and carry out described test command, obtain the first performance data and the second performance data, comprising:
Receive the first test command that test lead sends, carry out described the first test command, obtain the first performance data;
Receive the second test command that described test lead sends, carry out described the second test command, obtain the second performance data; Or,
Receive the 3rd test command that described test lead sends, carry out described the 3rd test command, obtain the first performance data and the second performance data.
Described test command comprises: the identification information of one or more application programs of local runtime.
Described the first performance packet is drawn together: local CPU is used one or more in total amount, the occupied total amount of internal memory and electric quantity consumption total amount; Described the second performance packet is drawn together one or more in the electric quantity data of cpu data, the internal storage data taken and consumption that the single application program of local runtime used.
On the other hand, also provide a kind of proving installation, described device comprises:
Execution module, the test command sent for receiving test lead, and carry out described test command, obtain the first performance data and the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of local runtime, and described the first performance packet is drawn together local performance data;
Sending module, for described the first performance data and described the second performance data are returned to described test lead, make described test lead to described the first performance data and described the second performance data analysis the performance data with the default application program of obtaining local runtime.
Described execution module comprises:
The first performance element, the first test command sent for receiving test lead, carry out described the first test command, obtains the first performance data;
The second performance element, the second test command sent for receiving described test lead, carry out described the second test command, obtains the second performance data; Or,
The 3rd performance element, the 3rd test command sent for receiving described test lead, carry out described the 3rd test command, obtains the first performance data and the second performance data.
Described test command comprises: the identification information of one or more application programs of local runtime.
Described the first performance packet is drawn together: local CPU is used one or more in total amount, the occupied total amount of internal memory and electric quantity consumption total amount; Described the second performance packet is drawn together one or more in the electric quantity data of cpu data, the internal storage data taken and consumption that the single application program of local runtime used.
The performance data of described default application program comprises: the CPU of the shared described measured terminal of cpu data that described default application program is used is used one or more in the number percent of electric quantity consumption total amount of the number percent of the occupied total amount of internal memory of the number percent of total amount, the shared described measured terminal of internal storage data that described default application program takies and the shared described tested program of electric weight that described default application program consumes.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is: to measured terminal, send test command, making described measured terminal carry out described test command after receiving described test command obtains the first performance data and the second performance data after described test and returns to described the first performance data and described the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of moving in described measured terminal, the performance data that described the first performance packet is drawn together described measured terminal; To described the first performance data and described the second performance data analysis, obtain the performance data of the default application program of moving in described measured terminal.By issue corresponding test instruction to measured terminal, can obtain the performance data of single application program, thereby improve the accuracy of performance test.
The accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, in below describing embodiment, the accompanying drawing of required use is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the process flow diagram of a kind of method of testing of providing in the embodiment of the present invention 1;
Fig. 2 is the process flow diagram of a kind of method of testing of providing in the embodiment of the present invention 2;
Fig. 3 is the process flow diagram of a kind of method of testing of providing in the embodiment of the present invention 3;
Fig. 4 is the schematic diagram of a kind of proving installation of providing in the embodiment of the present invention 4;
Fig. 5 is the schematic diagram of the another kind of proving installation that provides in the embodiment of the present invention 4;
Fig. 6 is the schematic diagram of a kind of proving installation of providing in the embodiment of the present invention 5;
Fig. 7 is the schematic diagram of the another kind of proving installation that provides in the embodiment of the present invention 5.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment 1
Referring to Fig. 1, a kind of method of testing is provided in the present embodiment, comprising:
101, send test command to measured terminal, making described measured terminal carry out described test command after receiving described test command obtains the first performance data and the second performance data after described test and returns to described the first performance data and described the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of moving in described measured terminal, the performance data that described the first performance packet is drawn together described measured terminal;
102, described the first performance data and described the second performance data analysis to receiving, obtain the performance data of the default application program of moving in described measured terminal.
The beneficial effect of the present embodiment is: to measured terminal, send test command, making described measured terminal carry out described test command after receiving described test command obtains the first performance data and the second performance data after described test and returns to described the first performance data and described the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of moving in described measured terminal, the performance data that described the first performance packet is drawn together described measured terminal; To described the first performance data and described the second performance data analysis, obtain the performance data of the default application program of moving in described measured terminal.By issue corresponding test instruction to measured terminal, can obtain the performance data of single application program, thereby improve the accuracy of performance test.
Embodiment 2
Referring to Fig. 2, a kind of method of testing is provided in the present embodiment, comprising:
201, receive the test command that test lead sends, and carry out described test command, obtain the first performance data and the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of local runtime, and described the first performance packet is drawn together local performance data;
202, described the first performance data and described the second performance data are returned to described test lead, make described test lead to described the first performance data and described the second performance data analysis the performance data with the default application program of obtaining local runtime.
The beneficial effect of the present embodiment is: to the test command that receives the test lead transmission, and carry out described test command, obtain the first performance data and the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of local runtime, and described the first performance packet is drawn together local performance data; Described the first performance data and described the second performance data are returned to described test lead, make described test lead to described the first performance data and described the second performance data analysis the performance data with the default application program of obtaining local runtime.Test lead, by issue corresponding test instruction to measured terminal, can obtain the performance data of single application program like this, thereby has improved the accuracy of performance test.
Embodiment 3
Referring to Fig. 3, a kind of method of testing is provided in the present embodiment, in the present embodiment, use PC to be tested terminal, wherein terminal comprises the smart mobile phone of Android platform, but also is not limited to this, and this present embodiment is not specifically limited.The method provided in the present embodiment specifically comprises:
301, test lead sends test command to measured terminal.
In this step, test lead is the PC end, can certainly to the smart mobile phone of Android platform, be tested by other terminal, and this present embodiment is not specifically limited.
Wherein concrete, test lead sends test command to measured terminal, comprising:
Send the first test command to measured terminal, make described measured terminal carry out the first performance data after described the first test command obtains described test and return to described the first performance data after receiving described the first test command;
Send the second test command to described measured terminal, make described measured terminal carry out the second performance data after described the second test command obtains described test and return to described the second performance data after receiving described the second test command;
Or, alternatively, send the 3rd test command to described measured terminal, make described measured terminal carry out the first performance data and the second performance data after described the 3rd test command obtains described test and return to described the first performance data and described the second performance data after receiving described the 3rd test command.
As from the foregoing, can trigger measured terminal by two test commands in the present embodiment and return to the first performance data and the second performance data, alternatively, also can trigger measured terminal by a test command and return to the first performance data and the second performance data.Which kind of method to collect the first performance data and the second performance data by specific implementation process, this present embodiment is not specifically limited.Wherein the first performance packet is drawn together: the CPU of described measured terminal is used one or more in total amount, the occupied total amount of internal memory and electric quantity consumption total amount; Described the second performance packet is drawn together one or more in the electric quantity data of cpu data, the internal storage data taken and consumption that the single application program moved in described measured terminal used.
In this step, test command comprises: the identification information of one or more application programs of moving in described measured terminal.When test terminal is triggered measured terminal and is returned to the second performance data by the second test command, the second test command comprises the identification information of one or more application programs of moving in measured terminal, also comprises the test command of the whole performance data of test measured terminal in the first test command; When test terminal is triggered measured terminal and is returned to the second performance data by the 3rd test command, the 3rd test command comprises the identification information of one or more application programs of moving in measured terminal, and also comprises the test command of the whole performance data of test measured terminal in the 3rd test command.Wherein the identification information of application program comprises: the filename of application program, suffix name or icon information etc. are not specifically limited this present embodiment.
Wherein test command can be write by several different methods, as needs the performance data of the test space, and test command can be adb shell dumpsys meminfo com. space identification information .mtt.
302, after test terminal receives test command, carry out this test command, obtain the first performance data and the second performance data, and described the first performance data and described the second performance data are returned to described test lead.
In this step, measured terminal receives the test command that test lead sends, and carries out described test command, obtains the first performance data and the second performance data, specifically comprises:
Receive the first test command that test lead sends, carry out described the first test command, obtain the first performance data;
Receive the second test command that described test lead sends, carry out described the second test command, obtain the second performance data; Or,
Receive the 3rd test command that described test lead sends, carry out described the 3rd test command, obtain the first performance data and the second performance data.
In this step, corresponding performance data is obtained in the order that measured terminal sends according to test lead, when receiving the first test command, the first performance data after the execution test command is turned back to test lead, when receiving the second test command, start the application program corresponding with the second test command, by the reporting performance data of corresponding application program to test lead.Alternatively, when receiving the 3rd test command, the first performance data and the second performance data are reported to test lead simultaneously.
303, described first performance data and the described second performance data analysis of test lead to receiving, obtain the performance data of the default application program of moving in described measured terminal.
In the present embodiment, after test lead receives the first performance data and the second performance data that measured terminal returns, the performance data of the default application program that need to obtain according to the user, to described the first performance data and described the second performance data analysis, obtain the performance data of the default application program of moving in described measured terminal.Wherein concrete, to described the first performance data and described the second performance data analysis received, obtain the performance data of the default application program of moving in described measured terminal, comprising:
Obtain the identification information of the default application program of moving in described measured terminal;
According to the identification information of described default application program, extract performance data relevant to described default application program in described the second performance data;
Relevant performance data and described the first performance data according to described and described default application program, calculate the performance data of described default application program.
The above-mentioned identification information that obtains the default application program of moving in described measured terminal, it can be the identification information of default application program that obtains user's input, can be also the identification information that obtains the default application program of system setting, this present embodiment is not specifically limited.
Wherein, the identification information of default application program comprises: filename, suffix name or the icon information etc. of default application program are not specifically limited this present embodiment.The performance data relevant to default application program comprises: the electric quantity data of cpu data, the internal storage data taken and consumption that default application program is used etc. in one or more.
Wherein, the performance data of described default application program comprises: the CPU of the shared described measured terminal of cpu data that described default application program is used is used one or more in the number percent etc. of electric quantity consumption total amount of the number percent of the occupied total amount of internal memory of the number percent of total amount, the shared described measured terminal of internal storage data that described default application program takies and the shared described tested program of electric weight that described default application program consumes.
Above-mentioned, relevant performance data and described the first performance data according to described and described default application program, calculate the performance data of described default application program, and wherein circular the present embodiment is not done restriction.
The beneficial effect of the present embodiment is: to measured terminal, send test command, making described measured terminal carry out described test command after receiving described test command obtains the first performance data and the second performance data after described test and returns to described the first performance data and described the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of moving in described measured terminal, the performance data that described the first performance packet is drawn together described measured terminal; To described the first performance data and described the second performance data analysis, obtain the performance data of the default application program of moving in described measured terminal.By issue corresponding test instruction to measured terminal, can obtain the performance data of single application program, thereby improve the accuracy of performance test.
Embodiment 4
Referring to Fig. 4, a kind of proving installation is provided in the present embodiment, comprising: data acquisition module 401 and data analysis module 402.
Data acquisition module 401, for to measured terminal, sending test command, making described measured terminal carry out described test command after receiving described test command obtains the first performance data and the second performance data after described test and returns to described the first performance data and described the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of moving in described measured terminal, the performance data that described the first performance packet is drawn together described measured terminal;
Data analysis module 402, for described the first performance data to receiving and described the second performance data analysis, obtain the performance data of the default application program of moving in described measured terminal.
Referring to Fig. 5, alternatively, described data acquisition module 401 comprises:
The first transmitting element 401a, for to measured terminal, sending the first test command, make described measured terminal carry out the first performance data after described the first test command obtains described test and return to described the first performance data after receiving described the first test command;
The second transmitting element 401b, for to described measured terminal, sending the second test command, make described measured terminal carry out the second performance data after described the second test command obtains described test and return to described the second performance data after receiving described the second test command; Or,
The 3rd transmitting element 401c, for to described measured terminal, sending the 3rd test command, make described measured terminal carry out the first performance data and the second performance data after described the 3rd test command obtains described test and return to described the first performance data and described the second performance data after receiving described the 3rd test command.
Alternatively, described test command comprises: the identification information of one or more application programs of moving in described measured terminal.
Alternatively, described the first performance packet is drawn together: the CPU of described measured terminal is used one or more in total amount, the occupied total amount of internal memory and electric quantity consumption total amount; Described the second performance packet is drawn together one or more in the electric quantity data of cpu data, the internal storage data taken and consumption that the single application program moved in described measured terminal used.
Referring to Fig. 5, described data analysis module 402 comprises:
Acquiring unit 402a, for obtaining the identification information of the default application program that described measured terminal moves;
Extraction unit 402b, for the identification information according to described default application program, extract performance data relevant to described default application program in described the second performance data;
Computing unit 402c, for the performance data relevant according to described and described default application program and described the first performance data, calculate the performance data of described default application program.
Alternatively, the performance data of described default application program comprises: the CPU of the shared described measured terminal of cpu data that described default application program is used is used one or more in the number percent of electric quantity consumption total amount of the number percent of the occupied total amount of internal memory of the number percent of total amount, the shared described measured terminal of internal storage data that described default application program takies and the shared described tested program of electric weight that described default application program consumes.
The beneficial effect of the present embodiment is: to measured terminal, send test command, making described measured terminal carry out described test command after receiving described test command obtains the first performance data and the second performance data after described test and returns to described the first performance data and described the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of moving in described measured terminal, the performance data that described the first performance packet is drawn together described measured terminal; To described the first performance data and described the second performance data analysis, obtain the performance data of the default application program of moving in described measured terminal.By issue corresponding test instruction to measured terminal, can obtain the performance data of single application program, thereby improve the accuracy of performance test.
Embodiment 5
Referring to Fig. 6, a kind of proving installation is provided in the present embodiment, comprising: execution module 501 and sending module 502.
Execution module 501, the test command sent for receiving test lead, and carry out described test command, obtain the first performance data and the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of local runtime, and described the first performance packet is drawn together local performance data;
Sending module 502, for described the first performance data and described the second performance data are returned to described test lead, make described test lead to described the first performance data and described the second performance data analysis the performance data with the default application program of obtaining local runtime.
Referring to Fig. 7, alternatively, described execution module 501 comprises:
The first performance element 501a, the first test command sent for receiving test lead, carry out described the first test command, obtains the first performance data;
The second performance element 501b, the second test command sent for receiving described test lead, carry out described the second test command, obtains the second performance data; Or,
The 3rd performance element 501c, the 3rd test command sent for receiving described test lead, carry out described the 3rd test command, obtains the first performance data and the second performance data.
Alternatively, described test command comprises: the identification information of one or more application programs of local runtime.
Alternatively, described the first performance packet is drawn together: local CPU is used one or more in total amount, the occupied total amount of internal memory and electric quantity consumption total amount; Described the second performance packet is drawn together one or more in the electric quantity data of cpu data, the internal storage data taken and consumption that the single application program of local runtime used.
Alternatively, the performance data of described default application program comprises: the CPU of the shared described measured terminal of cpu data that described default application program is used is used one or more in the number percent of electric quantity consumption total amount of the number percent of the occupied total amount of internal memory of the number percent of total amount, the shared described measured terminal of internal storage data that described default application program takies and the shared described tested program of electric weight that described default application program consumes.
The beneficial effect of the present embodiment is: to the test command that receives the test lead transmission, and carry out described test command, obtain the first performance data and the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of local runtime, and described the first performance packet is drawn together local performance data; Described the first performance data and described the second performance data are returned to described test lead, make described test lead to described the first performance data and described the second performance data analysis the performance data with the default application program of obtaining local runtime.Test lead, by issue corresponding test instruction to measured terminal, can obtain the performance data of single application program like this, thereby has improved the accuracy of performance test.
The device that the present embodiment provides, specifically can belong to same design with embodiment of the method, and its specific implementation process refers to embodiment of the method, repeats no more here.
It should be noted that, in above-mentioned proving installation embodiment, included modules is just divided according to function logic, but be not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional module also, just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (22)
1. a method of testing, is characterized in that, described method comprises:
Send test command to measured terminal, making described measured terminal carry out described test command after receiving described test command obtains the first performance data and the second performance data after described test and returns to described the first performance data and described the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of moving in described measured terminal, the performance data that described the first performance packet is drawn together described measured terminal;
To described the first performance data and described the second performance data analysis received, obtain the performance data of the default application program of moving in described measured terminal.
2. method according to claim 1, is characterized in that, described to described terminal transmission test command, comprising:
Send the first test command to measured terminal, make described measured terminal carry out the first performance data after described the first test command obtains described test and return to described the first performance data after receiving described the first test command;
Send the second test command to described measured terminal, make described measured terminal carry out the second performance data after described the second test command obtains described test and return to described the second performance data after receiving described the second test command; Or,
Send the 3rd test command to described measured terminal, make described measured terminal carry out the first performance data and the second performance data after described the 3rd test command obtains described test and return to described the first performance data and described the second performance data after receiving described the 3rd test command.
3. method according to claim 1, is characterized in that, described test command comprises: the identification information of one or more application programs of moving in described measured terminal.
4. method according to claim 1, is characterized in that, described the first performance packet is drawn together: the CPU of described measured terminal is used one or more in total amount, the occupied total amount of internal memory and electric quantity consumption total amount; Described the second performance packet is drawn together one or more in the electric quantity data of cpu data, the internal storage data taken and consumption that the single application program moved in described measured terminal used.
5. method according to claim 1, is characterized in that, described described the first performance data and described the second performance data analysis to receiving obtains the performance data of the default application program of moving in described measured terminal, comprising:
Obtain the identification information of the default application program of moving in described measured terminal;
According to the identification information of described default application program, extract performance data relevant to described default application program in described the second performance data;
Relevant performance data and described the first performance data according to described and described default application program, calculate the performance data of described default application program.
6. method according to claim 1, it is characterized in that, the performance data of described default application program comprises: the CPU of the shared described measured terminal of cpu data that described default application program is used is used one or more in the number percent of electric quantity consumption total amount of the number percent of the occupied total amount of internal memory of the number percent of total amount, the shared described measured terminal of internal storage data that described default application program takies and the shared described tested program of electric weight that described default application program consumes.
7. a method of testing, is characterized in that, described method comprises:
Receive the test command that test lead sends, and carry out described test command, obtain the first performance data and the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of local runtime, and described the first performance packet is drawn together local performance data;
Described the first performance data and described the second performance data are returned to described test lead, make described test lead to described the first performance data and described the second performance data analysis the performance data with the default application program of obtaining local runtime.
8. method according to claim 7, is characterized in that, the test command that described reception test lead sends, and carry out described test command, and obtain the first performance data and the second performance data, comprising:
Receive the first test command that test lead sends, carry out described the first test command, obtain the first performance data;
Receive the second test command that described test lead sends, carry out described the second test command, obtain the second performance data; Or,
Receive the 3rd test command that described test lead sends, carry out described the 3rd test command, obtain the first performance data and the second performance data.
9. method according to claim 7, is characterized in that, described test command comprises: the identification information of one or more application programs of local runtime.
10. method according to claim 7, is characterized in that, described the first performance packet is drawn together: local CPU is used one or more in total amount, the occupied total amount of internal memory and electric quantity consumption total amount; Described the second performance packet is drawn together one or more in the electric quantity data of cpu data, the internal storage data taken and consumption that the single application program of local runtime used.
11. method according to claim 7, it is characterized in that, the performance data of described default application program comprises: the CPU of the shared described measured terminal of cpu data that described default application program is used is used one or more in the number percent of electric quantity consumption total amount of the number percent of the occupied total amount of internal memory of the number percent of total amount, the shared described measured terminal of internal storage data that described default application program takies and the shared described tested program of electric weight that described default application program consumes.
12. a proving installation, is characterized in that, described device comprises:
Data acquisition module, for to measured terminal, sending test command, making described measured terminal carry out described test command after receiving described test command obtains the first performance data and the second performance data after described test and returns to described the first performance data and described the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of moving in described measured terminal, the performance data that described the first performance packet is drawn together described measured terminal;
Data analysis module, for described the first performance data to receiving and described the second performance data analysis, obtain the performance data of the default application program of moving in described measured terminal.
13. device according to claim 12, is characterized in that, described data acquisition module comprises:
The first transmitting element, for send the first test command to measured terminal, make described measured terminal carry out the first performance data after described the first test command obtains described test and return to described the first performance data after receiving described the first test command;
The second transmitting element, for to described measured terminal, sending the second test command, make described measured terminal carry out the second performance data after described the second test command obtains described test and return to described the second performance data after receiving described the second test command; Or,
The 3rd transmitting element, for to described measured terminal, sending the 3rd test command, make described measured terminal carry out the first performance data and the second performance data after described the 3rd test command obtains described test and return to described the first performance data and described the second performance data after receiving described the 3rd test command.
14. device according to claim 12, is characterized in that, described test command comprises: the identification information of one or more application programs of moving in described measured terminal.
15. device according to claim 12, is characterized in that, described the first performance packet is drawn together: the CPU of described measured terminal is used one or more in total amount, the occupied total amount of internal memory and electric quantity consumption total amount; Described the second performance packet is drawn together one or more in the electric quantity data of cpu data, the internal storage data taken and consumption that the single application program moved in described measured terminal used.
16. device according to claim 12, is characterized in that, described data analysis module comprises:
Acquiring unit, for obtaining the identification information of the default application program that described measured terminal moves;
Extraction unit, for the identification information according to described default application program, extract performance data relevant to described default application program in described the second performance data;
Computing unit, for the performance data relevant according to described and described default application program and described the first performance data, calculate the performance data of described default application program.
17. device according to claim 12, it is characterized in that, the performance data of described default application program comprises: the CPU of the shared described measured terminal of cpu data that described default application program is used is used one or more in the number percent of electric quantity consumption total amount of the number percent of the occupied total amount of internal memory of the number percent of total amount, the shared described measured terminal of internal storage data that described default application program takies and the shared described tested program of electric weight that described default application program consumes.
18. a proving installation, is characterized in that, described device comprises:
Execution module, the test command sent for receiving test lead, and carry out described test command, obtain the first performance data and the second performance data, described the second performance packet is drawn together the performance data of one or more single application programs of local runtime, and described the first performance packet is drawn together local performance data;
Sending module, for described the first performance data and described the second performance data are returned to described test lead, make described test lead to described the first performance data and described the second performance data analysis the performance data with the default application program of obtaining local runtime.
19. device according to claim 18, is characterized in that, described execution module comprises:
The first performance element, the first test command sent for receiving test lead, carry out described the first test command, obtains the first performance data;
The second performance element, the second test command sent for receiving described test lead, carry out described the second test command, obtains the second performance data; Or,
The 3rd performance element, the 3rd test command sent for receiving described test lead, carry out described the 3rd test command, obtains the first performance data and the second performance data.
20. device according to claim 18, is characterized in that, described test command comprises: the identification information of one or more application programs of local runtime.
21. device according to claim 18, is characterized in that, described the first performance packet is drawn together: local CPU is used one or more in total amount, the occupied total amount of internal memory and electric quantity consumption total amount; Described the second performance packet is drawn together one or more in the electric quantity data of cpu data, the internal storage data taken and consumption that the single application program of local runtime used.
22. device according to claim 18, it is characterized in that, the performance data of described default application program comprises: the CPU of the shared described measured terminal of cpu data that described default application program is used is used one or more in the number percent of electric quantity consumption total amount of the number percent of the occupied total amount of internal memory of the number percent of total amount, the shared described measured terminal of internal storage data that described default application program takies and the shared described tested program of electric weight that described default application program consumes.
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 true CN103425577A (en) | 2013-12-04 |
CN103425577B 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) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104699598A (en) * | 2013-12-09 | 2015-06-10 | 腾讯科技(深圳)有限公司 | Automatic testing method, device, equipment and system |
CN104881346A (en) * | 2015-04-30 | 2015-09-02 | 努比亚技术有限公司 | Mobile terminal and detection method and device of power consumption of applications |
CN105302706A (en) * | 2014-06-05 | 2016-02-03 | 腾讯科技(深圳)有限公司 | Application test method and apparatus |
CN105653451A (en) * | 2015-12-29 | 2016-06-08 | 北京金山安全软件有限公司 | Software performance testing method and device |
CN106339321A (en) * | 2016-09-09 | 2017-01-18 | 腾讯科技(深圳)有限公司 | Method and device for testing performance of application |
CN106412192A (en) * | 2016-08-31 | 2017-02-15 | 深圳天珑无线科技有限公司 | Mobile terminal testing method and system |
CN106776330A (en) * | 2016-12-26 | 2017-05-31 | 北京金山安全软件有限公司 | Application testing method and device and electronic equipment |
CN108173984A (en) * | 2016-12-08 | 2018-06-15 | 深圳玩时科技有限公司 | The connection control method of machine screen separation |
CN112084076A (en) * | 2020-08-26 | 2020-12-15 | 上海创功通讯技术有限公司 | Test method, electronic device, and storage medium |
Citations (5)
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 |
US20030084018A1 (en) * | 2001-10-31 | 2003-05-01 | Murthy Chintalapati | Server-based application monitoring through collection of application component and environmental statistics |
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 |
-
2012
- 2012-05-25 CN CN201210165720.4A patent/CN103425577B/en active Active
Patent Citations (5)
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 |
US20030084018A1 (en) * | 2001-10-31 | 2003-05-01 | Murthy Chintalapati | Server-based application monitoring through collection of application component and environmental statistics |
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 |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104699598B (en) * | 2013-12-09 | 2017-09-29 | 腾讯科技(深圳)有限公司 | Automated testing method, device, equipment and system |
CN104699598A (en) * | 2013-12-09 | 2015-06-10 | 腾讯科技(深圳)有限公司 | Automatic testing method, device, equipment and system |
CN105302706B (en) * | 2014-06-05 | 2019-05-24 | 腾讯科技(深圳)有限公司 | Applied program testing method and device |
CN105302706A (en) * | 2014-06-05 | 2016-02-03 | 腾讯科技(深圳)有限公司 | Application test method and apparatus |
CN104881346A (en) * | 2015-04-30 | 2015-09-02 | 努比亚技术有限公司 | Mobile terminal and detection method and device of power consumption of applications |
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 |
CN106412192A (en) * | 2016-08-31 | 2017-02-15 | 深圳天珑无线科技有限公司 | Mobile terminal testing method and system |
CN106412192B (en) * | 2016-08-31 | 2019-11-15 | 宁夏泰富石油石化产品检验检测中心有限公司 | A kind of mobile terminal test method and its system |
CN106339321A (en) * | 2016-09-09 | 2017-01-18 | 腾讯科技(深圳)有限公司 | Method and device for testing performance of application |
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 |
CN112084076A (en) * | 2020-08-26 | 2020-12-15 | 上海创功通讯技术有限公司 | Test method, electronic device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103425577B (en) | 2018-06-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103425577A (en) | Test method and device | |
CN104699598B (en) | Automated testing method, device, equipment and system | |
US8805322B2 (en) | Method, apparatus, and mobile phone for measuring and displaying internet traffic of mobile phone | |
Xu et al. | V-edge: Fast self-constructive power modeling of smartphones based on battery voltage dynamics | |
CN103150238A (en) | Service request processing method, simulation performance test method and simulation performance test device | |
CN105830016B (en) | Power management method and power management device for user equipment | |
CN108292935A (en) | A kind of Bluetooth pairing methods and bluetooth equipment | |
CN103927255A (en) | Software testing method based on cloud testing system, cloud testing system and client side of cloud testing system | |
CN104106053A (en) | Dynamic CPU GPU load balancing using power | |
Balan et al. | The challenge of continuous mobile context sensing | |
Kukkonen et al. | Betelgeuse: A platform for gathering and processing situational data | |
CN103354020A (en) | Cloud technology based air quality remote monitoring system | |
CN104037885A (en) | Portable power source, working condition monitoring system of portable power source and monitoring management method of portable power source | |
Malik | Power consumption analysis of a modern smartphone | |
CN106294168A (en) | A kind of method and system carrying out Application testing | |
CN110362460B (en) | Application program performance data processing method, device and storage medium | |
CN109408399A (en) | A kind of calculation power estimation method, device, equipment and storage medium | |
Graubner et al. | Multimodal complex event processing on mobile devices | |
Herrmann et al. | Context aware power management of mobile systems for sensing applications | |
CN104185195A (en) | Mobile web performance measuring method, device and system | |
Li et al. | Power behavior analysis of mobile applications using bugu | |
CN104574568A (en) | Method and system for setting parameters of traveling recorder | |
CN111104281A (en) | Game performance monitoring method, device, system and storage medium | |
CN103884905B (en) | The power consumption test method of a kind of terminal unit service application, Apparatus and system | |
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 |