CN105277830B - Power consumption testing method and device for electronic equipment - Google Patents
Power consumption testing method and device for electronic equipment Download PDFInfo
- Publication number
- CN105277830B CN105277830B CN201510781799.7A CN201510781799A CN105277830B CN 105277830 B CN105277830 B CN 105277830B CN 201510781799 A CN201510781799 A CN 201510781799A CN 105277830 B CN105277830 B CN 105277830B
- Authority
- CN
- China
- Prior art keywords
- electronic equipment
- application program
- power consumption
- measured
- 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.)
- Expired - Fee Related
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 174
- 238000010998 test method Methods 0.000 claims description 20
- 238000012545 processing Methods 0.000 claims description 15
- 238000009434 installation Methods 0.000 claims description 10
- 238000004458 analytical method Methods 0.000 claims description 3
- 238000000034 method Methods 0.000 abstract description 13
- 230000005611 electricity Effects 0.000 description 29
- 238000004891 communication Methods 0.000 description 18
- 230000006870 function Effects 0.000 description 10
- 101150053844 APP1 gene Proteins 0.000 description 4
- 101100055496 Arabidopsis thaliana APP2 gene Proteins 0.000 description 4
- 101100189105 Homo sapiens PABPC4 gene Proteins 0.000 description 4
- 102100039424 Polyadenylate-binding protein 4 Human genes 0.000 description 4
- 101100016250 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) GYL1 gene Proteins 0.000 description 4
- 238000007405 data analysis Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 239000000463 material Substances 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000013467 fragmentation Methods 0.000 description 1
- 238000006062 fragmentation reaction Methods 0.000 description 1
- 210000003733 optic disk Anatomy 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001902 propagating effect Effects 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a power consumption testing method and device for electronic equipment. Wherein, the method comprises the following steps: obtaining model information of the electronic equipment, and determining a test scene of the electronic equipment to be tested corresponding to the electronic equipment with the model information; determining a corresponding application program and test time according to the test scene, and installing the application program to the electronic equipment to be tested; and running the application program in the electronic equipment to be tested, and recording the power consumption condition of the electronic equipment to be tested after the testing time is up. According to the power consumption testing method of the electronic equipment, the power consumption of the electronic equipment is tested based on the use scene of the user, the power consumption situation of the electronic equipment is accurately tested, and the power consumption situation of the electronic equipment can be accurately provided for the user.
Description
Technical field
The present invention relates to technical field of electronic equipment more particularly to the power consumption test methods and device of a kind of electronic equipment.
Background technology
With the continuous development of mobile internet era, the function of electronic equipment such as smart mobile phone the next powerful, user
The application program of various functions can be installed in the electronic device according to demand, electronic equipment has become people's live and work
A part.
The practical cruise duration of electronic equipment is one of each user's concern, since user uses on electronic equipment
The complication of scene, fragmentation, the relevant method for carrying out power consumption test to electronic equipment is, under fixed scene, for electricity
After sub- equipment installs the application program of some settings, analog subscriber is operated repeatedly, confirms the usage time of electricity, to
Judge the power consumption level of electronic equipment.
However, the obtained test data of method of above-mentioned test electronic equipment power consumption is usually ideal data, it can not
The actual value being close to the users in actual use, so user also can not user can not also learn the terminal practical cruise duration of oneself
For how long.Therefore, how complicated user's scene to be applied in the power consumption test method of electronic equipment be to provide standard to the user
The critical issue of true electronic equipment power consumption condition.
Invention content
The present invention is directed to solve at least some of the technical problems in related technologies.For this purpose, the present invention
First purpose is to propose that the power consumption test method of a kind of electronic equipment, usage scenario of this method based on user set electronics
Standby power consumption is tested, and accurately tests the power consumption condition of electronic equipment, and then can accurately provide electronic equipment power consumption to the user
Situation.
Second object of the present invention is to propose the power consumption test device of a kind of electronic equipment.
To achieve the above object, first aspect present invention embodiment proposes the power consumption test method of a kind of electronic equipment,
Including:Obtain the type information of the electronic equipment;Determine the electronics to be measured corresponding to the electronic equipment with the type information
The test scene of equipment;Corresponding application program and testing time are determined according to the test scene, and by the application program
It installs to the electronic equipment to be measured;The application program is run in the electronic equipment to be measured, and is reached in the testing time
The power consumption condition of the electronic equipment is tested later.
Optionally, described to determine that corresponding application program specifically includes according to the test scene:According to the electricity to be measured
The test scene of sub- equipment determines corresponding application category;According to frequency of use to applying journey described in application program shop
Application program under sequence classification is ranked up;And apply journey using the highest application program of frequency of use as the described of installation
Sequence.
Optionally, described to determine that the corresponding testing time specifically includes according to the test scene:According to the checkout area
The corresponding application category of scape searches preset corresponding table and determines the corresponding testing time.
Optionally, further include:It obtains the corresponding power consumption information of each application category and is presented to user.
The power consumption test method of the electronic equipment of the embodiment of the present invention obtains the type information of electronic equipment, and really first
Then the test scene of electronic equipment to be measured corresponding to the fixed and electronic equipment of the type information is determined according to test scene
Corresponding application program and testing time, and application program is installed to electronic equipment to be measured, and in electronic equipment to be measured
Application program is run, and tests the power consumption condition of electronic equipment after the testing time reaches.Field is used based on user as a result,
Scape tests electronic equipment power consumption, accurately tests the power consumption condition of electronic equipment, and then can accurately provide electricity to the user
Sub- electricity consumption of equipment situation.
To achieve the above object, second aspect of the present invention embodiment proposes the power consumption test device of a kind of electronic equipment,
Including:Acquisition module, the type information for obtaining the electronic equipment;Determining module, for determining and the type information
Electronic equipment corresponding to electronic equipment to be measured test scene;First processing module, for true according to the test scene
Fixed corresponding application program and testing time, and the application program is installed to the electronic equipment to be measured;Test module is used
In running the application program in the electronic equipment to be measured, and the electronic equipment is tested after the testing time reaches
Power consumption condition.
Optionally, the determining module, is specifically used for:It is determined according to the test scene of the electronic equipment to be measured corresponding
Application category;The application program under application category described in application program shop is arranged according to frequency of use
Sequence;And using the highest application program of frequency of use as the application program of installation.
Optionally, the determining module, is specifically used for:It is searched according to the corresponding application category of the test scene pre-
If correspondence table determine the corresponding testing time.
Optionally, described device further includes:Second processing module, for obtaining the corresponding power consumption of each application category
Information is simultaneously presented to user.
The power consumption test device of the electronic equipment of the embodiment of the present invention, the model that electronic equipment is obtained by acquisition module are believed
It ceases, and determines the test scene of electronic equipment to be measured by determining module, first processing module is determined according to test scene and corresponded to
Application program and the testing time, and application program is installed to electronic equipment to be measured and test module and is set in electronics to be measured
Standby middle operation application program, and reach the power consumption condition for testing electronic equipment later in the testing time.Made as a result, based on user
Electronic equipment power consumption is tested with scene, accurately tests the power consumption condition of electronic equipment, and then can accurately be carried for user
Electronic device power consumption condition.
Description of the drawings
Fig. 1 is the flow chart of the power consumption test method of electronic equipment according to an embodiment of the invention;
Fig. 2 is the flow chart according to an embodiment of the invention that corresponding application program is determined according to test scene;
Fig. 3 is the exemplary plot of application category distribution;
Fig. 4 is the flow chart of the power consumption test method of electronic equipment in accordance with another embodiment of the present invention;
Fig. 5 is the structural schematic diagram of the power consumption test device of electronic equipment according to an embodiment of the invention;And
Fig. 6 is the structural schematic diagram of the power consumption test device of electronic equipment in accordance with another embodiment of the present invention.
Specific implementation mode
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the power consumption test method and device of the electronic equipment of the embodiment of the present invention are described.
Fig. 1 is the flow chart of the power consumption test method of electronic equipment according to an embodiment of the invention.
As shown in Figure 1, the power consumption test method of the electronic equipment includes:
S11 obtains the type information of electronic equipment.
Wherein, above-mentioned electronic equipment can be personal computer (PC), mobile phone, tablet computer, personal digital assistant, electronics
Book etc. has the hardware device of various operating systems.
S12 determines the test scene of the electronic equipment to be measured corresponding to the electronic equipment with the type information.
Specifically, after the type information for obtaining electronic equipment, it can get and practised using the user of the electronic equipment of the model
Used data, and the big data comprising user's use habit is analyzed, it determines when testing electronic equipment to be measured, user is at this
The application program that a period is commonly used, and the classification belonging to application program determines the checkout area of electronic equipment to be measured
Scape.
Wherein, test scene is broadly divided into tool scene, the social scene of communication, game, video/audio and Domestic News field
Scape.
S13 determines corresponding application program and testing time according to test scene, and application program is installed to electricity to be measured
Sub- equipment.
It in one embodiment of the invention, can be first according to checkout area after the test scene for determining electronic equipment to be measured
Scape determines corresponding application program, then determines the application program corresponding testing time, and corresponding application program is installed
To in electronic equipment to be measured.
Wherein, it is to be understood that after determining scene, it can be one to install to the application program of electronic equipment to be measured
Or it is multiple, the number of the application program of installation to electronic equipment to be measured is related with scene.
Wherein, the detailed process of corresponding application program is determined according to test scene, as shown in Fig. 2, may include:
S121 determines corresponding application category according to the test scene of electronic equipment to be measured.
Specifically, according to the popular range of application program in application program shop, and the big number of mobile phone scene is used in combination
Can be obtained according to analysis, the classification of the application program that user is commonly used include mainly social tool, communication, game, video/audio and
Domestic News.
Wherein, user uses the category distribution situation exemplary plot of application program, as shown in figure 3, as seen in Figure 3,
In application program used by a user, the application program of tool-class accounts for 39.28%;The application program of the social class of communication accounts for
18.28%;The application program of game class accounts for 10.18%;The application program of video/audio class accounts for 10.18%;Resource news category
Application program accounts for 5.23%, and the application program of other classifications accounts for 16.85%.
S122 is ranked up the application program under application category in application program shop according to frequency of use.
S123, using the highest application program of frequency of use as the application program of installation.
It in one embodiment of the invention, can be according to test scene pair after determining application program according to test scene
The application category answered searches preset corresponding table and determines the corresponding testing time.
Wherein, application category and the correspondence of testing time are saved in preset corresponding table.It needs to illustrate
It is that the testing time corresponding to each application category is obtained based on big data analysis.
Wherein, the form of preset corresponding table, as shown in table 1.
The preset corresponding table of table 1
Test object | Length of testing speech |
Tool | 10 minutes |
Communication is social | 50 minutes |
Game | 25 minutes |
Video/audio | 25 minutes |
Domestic News | 20 minutes |
For example it is assumed that preset corresponding table is as shown in table 1, the test scene of electronic equipment to be measured is usage scenario, that is, is waited for
It surveys electronic equipment to be in during use, it is assumed that determine that corresponding application category is according to test scene:Tool and logical
News are social.After determining application category, the frequency of usage data using application program in businessman can be obtained, and based on use
The frequency is respectively ranked up the application program under tool classification in application businessman and the social classification of communication, it is assumed that obtained after sequence
It is APP1 to obtain the highest application program of frequency of use in tool classification, communicates the highest application program of frequency of use in social classification
Then it can be determined that tool-class is other using APP1 and APP2 as the application program of installation by table 1 and apply journey for APP2
The length of testing speech of sequence is 10 minutes, and the length of testing speech for communicating the application program of social classification is 50 minutes.
S14 runs application program in electronic equipment to be measured, and the consumption of electronic equipment is tested after the testing time reaches
Electric situation.
Specifically, it is installed to electronic equipment to be measured by corresponding application program, determines the execution of each application program
Sequentially, and by the electricity of electronic equipment it is full of, i.e., the electricity of electronic equipment is 100% and beginning sequence executes " test pair
As " " length of testing speech ", the current electric quantity of system is recorded after the completion of each step executes, after the completion of whole test objects execute,
The remaining capacity for recording electronic apparatus system has just obtained the terminal power consumption situation after executing.
Wherein, it should be noted that the test object in foregoing description refers to installing answering into electronic equipment to be measured
Use program.
For example, installed to smart mobile phone to be measured by the application program of the application program of tool-class and the social class of communication,
If it is determined that the execution sequence of two application programs executes the application journey of communication class afterwards to first carry out the application program of tool-class
The electricity of smart mobile phone first can be filled to 100% by sequence in order to test out the electric quantity consumption situation of smart mobile phone to be measured, and
After the electricity of smart mobile phone is 100%, beginning sequence executes tool-class 10 minutes, and the residue of current system is recorded after the completion of executing
Electricity;It executes the social class of communication successively again 50 minutes, records the remaining capacity of current system, until all test objects execute
After the completion, the electric quantity consumption situation of application program in final smart mobile phone can be obtained.
The power consumption test method of the electronic equipment of the embodiment of the present invention obtains the type information of electronic equipment, and really first
Then the test scene of electronic equipment to be measured corresponding to the fixed and electronic equipment of the type information is determined according to test scene
Corresponding application program and testing time, and application program is installed to electronic equipment to be measured, and in electronic equipment to be measured
Application program is run, and tests the power consumption condition of electronic equipment after the testing time reaches.Field is used based on user as a result,
Scape tests electronic equipment power consumption, accurately tests the power consumption condition of electronic equipment, and then can accurately provide electricity to the user
Sub- electricity consumption of equipment situation.
Fig. 4 is the flow chart of the power consumption test method of electronic equipment in accordance with another embodiment of the present invention.
As shown in figure 4, the power consumption test method of the electronic equipment includes:
S41 obtains the type information of electronic equipment.
Wherein, above-mentioned electronic equipment can be personal computer (PC), mobile phone, tablet computer, personal digital assistant, electronics
Book etc. has the hardware device of various operating systems.
S42 determines the test scene of the electronic equipment to be measured corresponding to the electronic equipment with type information.
Specifically, after the type information for obtaining electronic equipment, it can get and practised using the user of the electronic equipment of the model
Used data, and the big data comprising user's use habit is analyzed, it determines when testing electronic equipment to be measured, user is at this
The application program that a period is commonly used, and the classification belonging to application program determines the checkout area of electronic equipment to be measured
Scape.
Wherein, test scene is broadly divided into tool scene, the social scene of communication, game, video/audio and Domestic News field
Scape.
S43 determines corresponding application program and testing time according to test scene, and application program is installed to electricity to be measured
Sub- equipment.
It in one embodiment of the invention, can be first according to checkout area after the test scene for determining electronic equipment to be measured
Scape determines corresponding application program, then determines the application program corresponding testing time, and corresponding application program is installed
To in electronic equipment to be measured.
Wherein, determine that the detailed process of corresponding application program is according to test scene:First according to electronic equipment to be measured
Test scene determine corresponding application category, then, according to frequency of use to application class in application program shop
Application program under not is ranked up, and using the highest application program of frequency of use as the application program of installation.
Specifically, according to the popular range of application program in application program shop, and the big number of mobile phone scene is used in combination
Can be obtained according to analysis, the classification of the application program that user is commonly used include mainly social tool, communication, game, video/audio and
Domestic News.
Wherein, user uses the category distribution situation exemplary plot of application program, as shown in figure 3, as seen in Figure 3,
In application program used by a user, the application program of tool-class accounts for 39.28%;The application program of the social class of communication accounts for
18.28%;The application program of game class accounts for 10.18%;The application program of video/audio class accounts for 10.18%;Resource news category
Application program accounts for 5.23%, and the application program of other classifications accounts for 16.85%.
It in one embodiment of the invention, can be according to test scene pair after determining application program according to test scene
The application category answered searches preset corresponding table and determines the corresponding testing time.
Wherein, application category and the correspondence of testing time are saved in preset corresponding table.It needs to illustrate
It is that the testing time corresponding to each application category is obtained based on big data analysis.
Wherein, the form of preset corresponding table, as shown in table 1.
The preset corresponding table of table 1
Test object | Length of testing speech |
Tool | 10 minutes |
Communication is social | 50 minutes |
Game | 25 minutes |
Video/audio | 25 minutes |
Domestic News | 20 minutes |
For example it is assumed that preset corresponding table is as shown in table 1, the test scene of electronic equipment to be measured is usage scenario, that is, is waited for
It surveys electronic equipment to be in during use, it is assumed that determine that corresponding application category is according to test scene:Tool and logical
News are social.After determining application category, the frequency of usage data using application program in businessman can be obtained, and based on use
The frequency is respectively ranked up the application program under tool classification in application businessman and the social classification of communication, it is assumed that obtained after sequence
It is APP1 to obtain the highest application program of frequency of use in tool classification, communicates the highest application program of frequency of use in social classification
Then it can be determined that tool-class is other using APP1 and APP2 as the application program of installation by table 1 and apply journey for APP2
The length of testing speech of sequence is 10 minutes, and the length of testing speech for communicating the application program of social classification is 50 minutes.
S44 runs application program in electronic equipment to be measured, and the consumption of electronic equipment is tested after the testing time reaches
Electric situation.
S45 obtains the corresponding power consumption information of each application category and is presented to user.
Specifically, before performing the testing, the system charge of electronic equipment to be measured is 100% state, in sequence
After executing the corresponding application program of each application category being mounted on electronic equipment to be measured, in each application category
Completion is executed, the remaining capacity of current system is can record, for example, after the application program for executing tool-class, electronic equipment to be measured
The remaining capacity of current system is 85%, then the electricity of tool-class application program consumed is 15%.
Similarly, by recording the remaining capacity of the system of electronic equipment to be measured before execution, and journey is applied having executed
The application program of sequence classification and then record electronic equipment to be measured system remaining capacity, and according to after execution with execution
Preceding remaining capacity can be obtained the electricity that every class application program of electronic equipment to be measured is consumed.Specifically, execute after with
Remaining capacity difference before execution is the electricity that current application program classification is consumed.
In addition, in one embodiment of the invention, obtaining each application in each application category if necessary
The electricity that program is consumed, at this point, the power consumption daily record during the system of electronic equipment to be measured can be read, and by analyzing power consumption day
Will can be obtained the power consumption information of each application program.
The power consumption test method of the electronic equipment of the embodiment of the present invention, obtains the type information of electronic equipment, and determine with
The test scene of electronic equipment to be measured corresponding to the electronic equipment of the type information, and the test according to electronic equipment to be measured
Scene determines corresponding application program and testing time, and application program is installed to electronic equipment to be measured, and in electricity to be measured
Application program is run in sub- equipment, and the power consumption condition of electronic equipment is tested after the testing time reaches.It is based on user as a result,
Usage scenario electronic equipment power consumption is tested, accurately test the power consumption condition of electronic equipment, and provide to the user
The corresponding power consumption information of each application category facilitates the power consumption condition that user understands application program.
In one embodiment of the invention, it after user obtains the corresponding power consumption information of each application category, uses
It family can also be according to demand by the big closing application program of power consumption, to reduce the application program of power consumption to electric quantity for electronic equipment
Consumption.
In order to realize that above-described embodiment, the present invention also propose the power consumption test device of a kind of electronic equipment.
Fig. 5 is the structural schematic diagram of the power consumption test device of electronic equipment according to an embodiment of the invention.
As shown in figure 5, the power consumption test device of the electronic equipment includes acquisition module 100, at determining module 200, first
Manage module 300 and test module 400.Wherein:
Acquisition module 100 is used to obtain the type information of electronic equipment.
Wherein, above-mentioned electronic equipment can be personal computer (PC), mobile phone, tablet computer, personal digital assistant, electronics
Book etc. has the hardware device of various operating systems.
Determining module 200 is used to determine the test scene of electronic equipment to be measured.
Specifically, after the type information that acquisition module 100 obtains electronic equipment, determining module 200 can get to use and be somebody's turn to do
The user of the electronic equipment of model is accustomed to data, and analyzes the big data comprising user's use habit, and determination is being tested
When electronic equipment to be measured, the application program that user is commonly used in this period, and the classification belonging to application program is true
The test scene of fixed electronic equipment to be measured.
Wherein, test scene is broadly divided into tool scene, the social scene of communication, game, video/audio and Domestic News field
Scape.
First processing module 300 is used to determine corresponding application program and testing time according to test scene, and will apply
Program is installed to electronic equipment to be measured.
Specifically, after the test scene that determining module 200 determines electronic equipment to be measured, first processing module 300 can root
Corresponding application category is determined according to the test scene of electronic equipment to be measured, and according to frequency of use in application program shop
Application program under application category is ranked up, and using the highest application program of frequency of use as the application journey of installation
Sequence.
First processing module 300, can be according to test scene after determining corresponding application category according to test scene
Corresponding application category searches preset corresponding table and determines the corresponding testing time.
Wherein, application category and the correspondence of testing time are saved in preset corresponding table.It needs to illustrate
It is that the testing time corresponding to each application category is obtained based on big data analysis.
Wherein, the form of preset corresponding table, as shown in table 1.
The preset corresponding table of table 1
Test object | Length of testing speech |
Tool | 10 minutes |
Communication is social | 50 minutes |
Game | 25 minutes |
Video/audio | 25 minutes |
Domestic News | 20 minutes |
Specifically, test module 400 in electronic equipment to be measured for running application program, and reaches it in the testing time
The power consumption condition of electronic equipment is tested afterwards.
Specifically, corresponding application program is installed to electronic equipment to be measured in first processing module 300, test module
400 can first determine the sequence that executes of each application program, and the electricity of electronic equipment is full of, i.e. the electricity of electronic equipment is
100% and beginning sequence execute " test object " " length of testing speech ", when each step execute after the completion of record system it is current
Electricity records the remaining capacity of electronic apparatus system after the completion of whole test objects execute, and has just obtained the terminal consumption after executing
Electric situation.
Wherein, it should be noted that the test object in foregoing description refers to installing answering into electronic equipment to be measured
Use program.
For example, installed to smart mobile phone to be measured by the application program of the application program of tool-class and the social class of communication,
If it is determined that the execution sequence of two application programs executes the application journey of communication class afterwards to first carry out the application program of tool-class
Sequence, in order to test out the electric quantity consumption situation of smart mobile phone to be measured, the electricity of smart mobile phone can be first filled to by test module 400
100%, and after the electricity of smart mobile phone is 100%, beginning sequence executes tool-class 10 minutes, is recorded after the completion of executing current
The remaining capacity of system;It executes the social class of communication successively again 50 minutes, records the remaining capacity of current system, wait until all surveys
After the completion of trying object execution, the electric quantity consumption situation of application program in final smart mobile phone can be obtained.
The other power consumption information of each application class is understood in order to facilitate user, as shown in fig. 6, above-mentioned test device may be used also
To include Second processing module 500, the Second processing module 500 is for obtaining the corresponding power consumption information of each application category
And it is presented to user.
Specifically, before performing the testing, the system charge of electronic equipment to be measured is 100% state, in sequence
After executing the corresponding application program of each application category being mounted on electronic equipment to be measured, in each application category
Completion is executed, the remaining capacity of current system is can record, for example, after the application program for executing tool-class, electronic equipment to be measured
The remaining capacity of current system is 85%, then the electricity of tool-class application program consumed is 15%.
Similarly, by recording the remaining capacity of the system of electronic equipment to be measured before execution, and journey is applied having executed
The application program of sequence classification and then record electronic equipment to be measured system remaining capacity, and according to after execution with execution
Preceding remaining capacity can be obtained the electricity that every class application program of electronic equipment to be measured is consumed.Specifically, execute after with
Remaining capacity difference before execution is the electricity that current application program classification is consumed.
That is, Second processing module 500 can be according to surplus before the execution recorded in electronic equipment to be measured and after executing
Remaining information about power determines the information about power that each application program is consumed.
In addition, in one embodiment of the invention, obtaining each application in each application category if necessary
The electricity that program is consumed, at this point, the power consumption daily record during the system of electronic equipment to be measured can be read, and by analyzing power consumption day
Will can be obtained the power consumption information of each application program.It should be noted that the aforementioned power consumption test method to electronic equipment
The explanation of embodiment is also applied for the power consumption test device of the electronic equipment of the embodiment, and details are not described herein again.
It should be noted that the explanation of the aforementioned power consumption test method embodiment to electronic equipment is also applied for the reality
The power consumption test device of the electronic equipment of example is applied, details are not described herein again.
The power consumption test device of the electronic equipment of the embodiment of the present invention, the model that electronic equipment is obtained by acquisition module are believed
It ceases, and determines the test scene of electronic equipment to be measured by determining module, first processing module is determined according to test scene and corresponded to
Application program and the testing time, and application program is installed to electronic equipment to be measured and test module and is set in electronics to be measured
Standby middle operation application program, and reach the power consumption condition for testing electronic equipment later in the testing time.Made as a result, based on user
Electronic equipment power consumption is tested with scene, accurately tests the power consumption condition of electronic equipment, and then can accurately be carried for user
Electronic device power consumption condition.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for description purposes only, it is not understood to indicate or imply relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, include according to involved function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (system of such as computer based system including processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicating, propagating or passing
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned
In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be executed with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries
Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium
In matter, which includes the steps that one or a combination set of embodiment of the method when being executed.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, it can also
That each unit physically exists alone, can also two or more units be integrated in a module.Above-mentioned integrated mould
The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized in the form of software function module and when sold or used as an independent product, can also be stored in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the present invention
System, those skilled in the art can be changed above-described embodiment, change, replace and become within the scope of the invention
Type.
Claims (6)
1. the power consumption test method of a kind of electronic equipment, which is characterized in that include the following steps:
Obtain the type information of the electronic equipment;
Determine the test scene of the electronic equipment to be measured corresponding to the electronic equipment with the type information;
Corresponding application program and testing time are determined according to the test scene, and the application program is installed to described and is waited for
Survey electronic equipment;
The application program is run in the electronic equipment to be measured, and records the electronics to be measured after the testing time reaches
The power consumption condition of equipment;
The test scene of electronic equipment to be measured corresponding to electronic equipment of the determination with the type information, including:It obtains
It is accustomed to data using the user of the electronic equipment of the type information, and the big data for being accustomed to data comprising user is divided
Analysis, determining when testing electronic equipment to be measured, the application program that user is commonly used in this period, and according to application program
Affiliated classification determines the test scene of electronic equipment to be measured;
It is described to determine that corresponding application program specifically includes according to the test scene:
Corresponding application category is determined according to the test scene of the electronic equipment to be measured;
The application program under application category described in application program shop is ranked up according to frequency of use;And
Using the highest application program of frequency of use as the application program of installation.
2. the power consumption test method of electronic equipment as described in claim 1, which is characterized in that described according to the test scene
Determine that the corresponding testing time specifically includes:
Preset corresponding table, which is searched, according to the corresponding application category of the test scene determines the corresponding testing time.
3. the power consumption test method of electronic equipment as described in claim 1, which is characterized in that further include:
It obtains the corresponding power consumption information of each application category and is presented to user.
4. the power consumption test device of a kind of electronic equipment, which is characterized in that including:
Acquisition module, the type information for obtaining the electronic equipment;
Determining module, the test scene for determining the electronic equipment to be measured corresponding to the electronic equipment with the type information;
First processing module for determining corresponding application program and testing time according to the test scene, and is answered by described in
It is installed to the electronic equipment to be measured with program;
Test module for running the application program in the electronic equipment to be measured, and is surveyed after the testing time reaches
Try the power consumption condition of the electronic equipment;
The determining module is specifically used for obtaining and is accustomed to data using the user of the electronic equipment of the type information, and to packet
The big data for being accustomed to data containing user is analyzed, and is determined when testing electronic equipment to be measured, user is frequent in this period
The application program used, and the classification belonging to application program determines the test scene of electronic equipment to be measured;
The first processing module, is specifically used for:
Corresponding application category is determined according to the test scene of the electronic equipment to be measured;
The application program under application category described in application program shop is ranked up according to frequency of use;And
Using the highest application program of frequency of use as the application program of installation.
5. the power consumption test device of electronic equipment as claimed in claim 4, which is characterized in that the determining module is specific to use
In:
Preset corresponding table, which is searched, according to the corresponding application category of the test scene determines the corresponding testing time.
6. the power consumption test device of electronic equipment as claimed in claim 4, which is characterized in that further include:
Second processing module, for obtaining the corresponding power consumption information of each application category and being presented to user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510781799.7A CN105277830B (en) | 2015-11-13 | 2015-11-13 | Power consumption testing method and device for electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510781799.7A CN105277830B (en) | 2015-11-13 | 2015-11-13 | Power consumption testing method and device for electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105277830A CN105277830A (en) | 2016-01-27 |
CN105277830B true CN105277830B (en) | 2018-09-11 |
Family
ID=55147187
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510781799.7A Expired - Fee Related CN105277830B (en) | 2015-11-13 | 2015-11-13 | Power consumption testing method and device for electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105277830B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107305516A (en) * | 2016-04-18 | 2017-10-31 | 展讯通信(上海)有限公司 | Terminal power consumption method of testing and device |
CN106507340B (en) * | 2016-11-01 | 2019-12-13 | 西安易朴通讯技术有限公司 | method and system for testing endurance of mobile phone |
CN112578291B (en) * | 2020-12-17 | 2023-02-21 | 上海商米科技集团股份有限公司 | Intelligent POS endurance test method and test system |
CN113791951B (en) * | 2021-09-15 | 2024-02-02 | 北京百度网讯科技有限公司 | Electronic equipment power consumption acquisition device and method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009170652A (en) * | 2008-01-16 | 2009-07-30 | Shin Etsu Handotai Co Ltd | Bonded wafer manufacturing method |
CN102508701A (en) * | 2011-10-18 | 2012-06-20 | 北京百纳威尔科技有限公司 | User terminal and method for controlling automatically-operating application program |
CN102685323A (en) * | 2012-04-21 | 2012-09-19 | 北京迈凯互动网络科技有限公司 | Mobile device testing method and system |
CN103607494A (en) * | 2013-11-30 | 2014-02-26 | 广东欧珀移动通信有限公司 | Method and terminal for automatically testing runtime of terminal in a time-diversion mode |
CN104184907A (en) * | 2013-05-27 | 2014-12-03 | 腾讯科技(深圳)有限公司 | Method for detecting awakening data of terminal application software in standby state and terminal |
CN105025141A (en) * | 2015-07-29 | 2015-11-04 | 上海斐讯数据通信技术有限公司 | Method and device for testing electricity consumption of terminal |
-
2015
- 2015-11-13 CN CN201510781799.7A patent/CN105277830B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009170652A (en) * | 2008-01-16 | 2009-07-30 | Shin Etsu Handotai Co Ltd | Bonded wafer manufacturing method |
CN102508701A (en) * | 2011-10-18 | 2012-06-20 | 北京百纳威尔科技有限公司 | User terminal and method for controlling automatically-operating application program |
CN102685323A (en) * | 2012-04-21 | 2012-09-19 | 北京迈凯互动网络科技有限公司 | Mobile device testing method and system |
CN104184907A (en) * | 2013-05-27 | 2014-12-03 | 腾讯科技(深圳)有限公司 | Method for detecting awakening data of terminal application software in standby state and terminal |
CN103607494A (en) * | 2013-11-30 | 2014-02-26 | 广东欧珀移动通信有限公司 | Method and terminal for automatically testing runtime of terminal in a time-diversion mode |
CN105025141A (en) * | 2015-07-29 | 2015-11-04 | 上海斐讯数据通信技术有限公司 | Method and device for testing electricity consumption of terminal |
Also Published As
Publication number | Publication date |
---|---|
CN105277830A (en) | 2016-01-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105277830B (en) | Power consumption testing method and device for electronic equipment | |
CN103430151B (en) | A kind of resource allocation method and device | |
CN107610695A (en) | Driver's voice wakes up the dynamic adjusting method of instruction word weight | |
CN109783158A (en) | Using starting task processing method and device | |
CN108446222A (en) | Application testing method, device and equipment | |
CN106874520A (en) | Webpage loading method, device and electronic equipment | |
CN104135520B (en) | A kind of method and device for identifying android terminal | |
CN105243007B (en) | The ageing testing method and device of memory in mobile terminal | |
CN105068936B (en) | Method and device for testing stability of software | |
CN112199296B (en) | Page testing method and device, computer equipment and storage medium | |
CN108399131A (en) | Automatic test cases generation method and device | |
CN108536803A (en) | Song recommendations method, apparatus, equipment and computer-readable medium | |
CN104484435B (en) | The method of alternate analysis user behavior | |
CN106027633A (en) | Application push method, application push system and terminal device | |
CN110162359A (en) | Method for pushing, the apparatus and system of new hand's guidance information | |
CN112685672B (en) | Page session behavior trace backtracking method and device and electronic equipment | |
CN106126248A (en) | Method and device for acquiring version information of operating system and electronic equipment | |
CN110134869A (en) | A kind of information-pushing method, device, equipment and storage medium | |
CN107315833A (en) | Method and apparatus of the retrieval with downloading based on application program | |
CN108509348A (en) | A kind of test method and mobile terminal of system aging | |
CN109670073A (en) | A kind of information conversion method and device, interaction auxiliary system | |
CN113077815B (en) | Audio evaluation method and assembly | |
CN105654344A (en) | Method and device for controlling advertisement playing frequency | |
CN106156274A (en) | Page content loading method and device and electronic equipment | |
CN104252541B (en) | A kind of webpage information method for pushing, data server and terminal |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180911 |