CN104063316B - The method of testing and device of a kind of application - Google Patents

The method of testing and device of a kind of application Download PDF

Info

Publication number
CN104063316B
CN104063316B CN201410282845.4A CN201410282845A CN104063316B CN 104063316 B CN104063316 B CN 104063316B CN 201410282845 A CN201410282845 A CN 201410282845A CN 104063316 B CN104063316 B CN 104063316B
Authority
CN
China
Prior art keywords
application
tested
power consumption
hardware cell
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410282845.4A
Other languages
Chinese (zh)
Other versions
CN104063316A (en
Inventor
张阳
蒋维
周保玉
戴佳
彭远杰
刘慧众
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201410282845.4A priority Critical patent/CN104063316B/en
Publication of CN104063316A publication Critical patent/CN104063316A/en
Application granted granted Critical
Publication of CN104063316B publication Critical patent/CN104063316B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The embodiments of the invention provide a kind of method of testing of application and device, this method includes:The power consumption distributed intelligence of terminal where obtaining application to be tested, the power consumption distributed intelligence include it is described it is to be tested using the terminal at least one hardware cell in each hardware cell power consumption;It is at least one in the device parameter of the hardware cell of terminal where obtaining the application to be tested, the running state information of host process corresponding to the application to be tested and the interface information of the application to be tested;At least one and power consumption distributed intelligence in the running state information of host process corresponding to device parameter, the application to be tested according to the hardware cell and the interface information of the application to be tested, obtain the hardware cell behaviour in service analysis result of the application to be tested.The technical scheme provided according to embodiments of the present invention, it is possible to achieve improve the coverage rate using test parameter and the testing efficiency of raising application.

Description

The method of testing and device of a kind of application
【Technical field】
The present invention relates to the method for testing and device of communication technical field, more particularly to a kind of application.
【Background technology】
With the fast development of intelligent terminal, various applications (Application, APP) are arisen at the historic moment, and pacify in intelligent terminal The application of dress does not need only provide for the function of complexity, it is also necessary to has good performance, in the test process of application, extremely closes Note the power consumption performance of application.
At present in test process, the testing tool of application can be tested the power consumption performance of application, obtain power consumption Percentage or application total power consumption.However, current testing tool can not obtain the power consumption distribution of application, Wu Fashi Power consumption distribution now depending on application optimizes to the power consumption performance of application so that coverage rate and application using test parameter Testing efficiency than relatively low.
【The content of the invention】
In view of this, the embodiments of the invention provide a kind of method of testing of application and device, it is possible to achieve improves application The coverage rate of test parameter and the testing efficiency for improving application.
The embodiments of the invention provide a kind of method of testing of application, including:
The power consumption distributed intelligence of terminal where obtaining application to be tested, the power consumption distributed intelligence include described to be measured Examination using the terminal at least one hardware cell in each hardware cell power consumption;
It is the device parameter of the hardware cell of terminal where obtaining the application to be tested, main corresponding to the application to be tested It is at least one in running state of a process information and the interface information of the application to be tested;
The running state information of host process corresponding to device parameter, the application to be tested according to the hardware cell and At least one and power consumption distributed intelligence in the interface information of the application to be tested, obtains the application to be tested Hardware cell behaviour in service analysis result.
In the above method, the power consumption distributed intelligence for obtaining application place to be tested terminal, including:
Obtained from power distribution file it is described it is to be tested application institute in the terminal each the hardware cell specified electricity Flow data;
Obtain the mark of host process and the mark of subprocess corresponding to the application to be tested;
According to the mark of each title of the hardware cell, the mark of the host process and the subprocess, electricity is called The interface function that timer provides is measured, to obtain the subprocess or the duration of hardware cell that host process uses;
According to it is described it is to be tested application institute in the terminal each the hardware cell rated current data and the son enter The duration for the hardware cell that journey or host process use, obtain it is described it is to be tested using at least one hardware cell In each hardware cell power consumption.
In the above method, the device parameter of the hardware cell for obtaining application place to be tested terminal, including:According to hard The corresponding relation of part unit and interface function, interface function corresponding to hardware cell in the terminal is called, it is described hard to obtain The device parameter of part unit;The device parameter of the hardware cell includes at least one in following information:The application to be tested Where the network switching state of terminal, the application to be tested where the screen intensity of place terminal, the application to be tested eventually The sensing switch state of terminal where the network transmission state at end and the application to be tested;Or according to described to be tested The mark of application, obtain and lock is waken up used in application to be tested, according to the numerical value for waking up electricity timer corresponding to lock, Obtain described wake up and lock the duration used in application to be tested;And/or
The running state information for obtaining host process corresponding to the application to be tested, including:Call time of running letter Number, to cause the mark of to be tested application of the time of running function according to input, running status command, to obtain State the running status of host process corresponding to application to be tested;And/or
The interface information for obtaining the application to be tested, including:Time of running function is called, to cause the operation Moment function operation log acquisition instructions, to obtain the log information of the operating system of the application place to be tested terminal;According to The interface and render the moment that the application to be tested renders are obtained according to the log information.
In the above method, if the hardware cell is sensor, the device parameter according to the hardware cell and The power consumption distributed intelligence, the behaviour in service analysis result of the application to be tested is obtained, including:If the hardware cell Device parameter is that sensor is opened, and the power consumption distributed intelligence is that the power consumption of the sensor is 0, is determined described to be measured The behaviour in service analysis result of examination application is unreasonable using the sensor.
It is described to enter according to master corresponding to the application to be tested if the hardware cell is NE in the above method The running state information of journey and the power consumption distributed intelligence, obtain the hardware cell behaviour in service point of the application to be tested Result is analysed, including:If the running state information of host process corresponding to the application to be tested is non-operating state, and the power consumption Amount distributed intelligence is that the power consumption of NE is not 0, and the behaviour in service analysis result for determining the application to be tested is described The power consumption for the hardware cell that subprocess corresponding to application to be tested uses is not 0.
In the above method, if the hardware cell is central processor CPU, the interface according to the application to be tested Information and the power consumption distributed intelligence, the hardware cell behaviour in service analysis result of the application to be tested is obtained, including: According to the interface information of the application to be tested, the state change information for waking up lock is obtained;If the state change information is institute State wake-up lock and non-working condition, and the power consumption and power consumption peak that the power consumption distributed intelligence is CPU are changed into from use state Difference between value is less than default power consumption threshold value, determines that the behaviour in service analysis result of the application to be tested is called out to be described Wake up the CPU that lock uses without release.
In the above method, methods described also includes:
According to default email address, by the device parameter of the hardware cell of terminal where the application to be tested, described It is at least one, described in the running state information of host process corresponding to application to be tested and the interface information of the application to be tested The hardware cell behaviour in service analysis result of power consumption distributed intelligence and the application to be tested of terminal where application to be tested, Send to mailbox corresponding to the email address;And/or
Display reminding information, the prompt message are used to prompt to obtain the application place to be tested terminal from storage device The device parameter of hardware cell, host process corresponding to the application to be tested running state information and the application to be tested Interface information in terminal where at least one, described application to be tested power consumption distributed intelligence and the application to be tested Hardware cell behaviour in service analysis result;And/or
Display reminding window, the power consumption distribution letter of terminal where the application to be tested is shown in the prompt window Breath;Wherein, the prompt window is mobile floating layer;The power consumption of terminal where the prompt window shows the application to be tested The mode of distributed intelligence includes display power consumption distribution values and/or total power consumption versus time curve figure.
The embodiment of the present invention also provides a kind of test device of application, including:
Power consumption acquiring unit, for the power consumption distributed intelligence of terminal where obtaining application to be tested, the power consumption Distributed intelligence include it is described it is to be tested using the terminal at least one hardware cell in each hardware list The power consumption of member;
Event acquiring unit, it is device parameter for the hardware cell of terminal where obtaining the application to be tested, described It is at least one in the running state information of host process corresponding to application to be tested and the interface information of the application to be tested;
Analytic unit, for host process corresponding to the device parameter according to the hardware cell, the application to be tested At least one and power consumption distributed intelligence in running state information and the interface information of the application to be tested, obtains institute State the hardware cell behaviour in service analysis result of application to be tested.
In said apparatus, the power consumption acquiring unit, it is specifically used for:
Obtained from power distribution file it is described it is to be tested application institute in the terminal each the hardware cell specified electricity Flow data;
Obtain the mark of host process and the mark of subprocess corresponding to the application to be tested;
According to the mark of each title of the hardware cell, the mark of the host process and the subprocess, electricity is called The interface function that timer provides is measured, to obtain the subprocess or the duration of hardware cell that host process uses;
According to it is described it is to be tested application institute in the terminal each the hardware cell rated current data and the son enter The duration for the hardware cell that journey or host process use, obtain it is described it is to be tested using at least one hardware cell In each hardware cell power consumption.
In said apparatus, the event acquiring unit, it is specifically used for:
According to hardware cell and the corresponding relation of interface function, interface letter corresponding to hardware cell in the terminal is called Number, to obtain the device parameter of the hardware cell;The device parameter of the hardware cell includes at least one in following information: The network switching state of terminal where the screen intensity of terminal, the application to be tested where the application to be tested, described treat The sensing switch state of terminal where the network transmission state of terminal where test application and the application to be tested;Or According to the mark of the application to be tested, obtain and lock is waken up used in application to be tested, electricity corresponding to lock is waken up according to described The numerical value of timer is measured, described wake up is obtained and locks the duration used in application to be tested;And/or
Time of running function is called, to cause the mark of to be tested application of the time of running function according to input, fortune Row process status instructs, to obtain the running status of host process corresponding to the application to be tested;And/or
Time of running function is called, to cause the time of running function operation log acquisition instructions, to be treated described in acquisition The log information of the operating system of terminal where test application;Obtain what the application to be tested rendered according to the log information Interface and render the moment.
In said apparatus, if the hardware cell is sensor, the analytic unit, it is specifically used for:If the hardware list The device parameter of member is sensor unlatching, and the power consumption distributed intelligence is that the power consumption of the sensor is 0, it is determined that described The behaviour in service analysis result of application to be tested is unreasonable using the sensor.
In said apparatus, if the hardware cell is NE, the analytic unit, it is specifically used for:It is if described to be measured The running state information of host process corresponding to examination application is non-operating state, and the power consumption distributed intelligence is NE Power consumption is not 0, and the behaviour in service analysis result for determining the application to be tested is subprocess corresponding to the application to be tested The power consumption of the hardware cell used is not 0.
In said apparatus, if the hardware cell is central processor CPU, the analytic unit, it is specifically used for:According to institute The interface information of application to be tested is stated, obtains the state change information for waking up lock;If the state change information is the wake-up Lock is changed into non-working condition from use state, and the power consumption distributed intelligence is between CPU power consumption and power consumption peak value Difference be less than default power consumption threshold value, determine that the behaviour in service analysis result of the application to be tested does not have for the wake-up lock There is the CPU that release uses.
In said apparatus, described device also includes:
Output unit, for according to default email address, by the hardware cell of terminal where the application to be tested In the running state information of host process and the interface information of the application to be tested corresponding to device parameter, the application to be tested The hardware cell of power consumption distributed intelligence and the application to be tested of terminal uses where at least one, described application to be tested Status analysis result, send to mailbox corresponding to the email address;And/or
Display unit, for display reminding information, the prompt message obtains described to be measured for prompting from storage device The device parameter of hardware cell of terminal where examination application, host process corresponding to the application to be tested running state information and The power consumption distributed intelligence of terminal and institute where at least one, described application to be tested in the interface information of the application to be tested State the hardware cell behaviour in service analysis result of application to be tested;And/or
The display unit, display reminding window is additionally operable to, the application place to be tested is shown in the prompt window The power consumption distributed intelligence of terminal;Wherein, the prompt window is mobile floating layer;The prompt window show it is described it is to be tested should Include the change of display power consumption distribution values and/or total power consumption with the time with the mode of the power consumption distributed intelligence of place terminal Change curve map.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantages that:
Technical scheme provided in an embodiment of the present invention can realize the use feelings of hardware cell used in application to be tested Condition automatically analyzes, so as to improve the testing efficiency of application to be tested.
, can present invention implementation compared with being merely able to obtain the technical scheme of total power consumption of application to be tested in the prior art The technical scheme that example provides enough improves the coverage rate of test parameter, and more detailed numbers are provided for the performance optimization of application to be tested According to.
【Brief description of the drawings】
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment it is required use it is attached Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this area For those of ordinary skill, without having to pay creative labor, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is the device that the technical scheme that the embodiment of the present invention is provided uses;
Fig. 2 is the schematic flow sheet of the method for testing for the application that the embodiment of the present invention is provided;
Fig. 3 is the schematic diagram that the email address that the embodiment of the present invention is provided sets interface;
Fig. 4 is the schematic diagram for the mobile floating layer that the embodiment of the present invention is provided;
Fig. 5 (a) and Fig. 5 (b) is the configuration schematic diagram for the application to be tested that the embodiment of the present invention is provided;
Fig. 6 is the functional block diagram of the test device for the application that the embodiment of the present invention is provided.
【Embodiment】
In order to be better understood from technical scheme, the embodiment of the present invention is retouched in detail below in conjunction with the accompanying drawings State.
It will be appreciated that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Base Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its Its embodiment, belongs to the scope of protection of the invention.
The term used in embodiments of the present invention is only merely for the purpose of description specific embodiment, and is not intended to be limiting The present invention." one kind ", " described " and "the" of singulative used in the embodiment of the present invention and appended claims It is also intended to including most forms, unless context clearly shows that other implications.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, represent There may be three kinds of relations, for example, A and/or B, can be represented:Individualism A, while A and B be present, individualism B these three Situation.In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining " or " in response to detection ".Similarly, depending on linguistic context, phrase " if it is determined that " or " if detection (condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when the detection (condition of statement Or event) when " or " in response to detecting (condition or event of statement) ".
The device that the technical scheme that the embodiment of the present invention is provided uses obtains list as shown in figure 1, mainly including power consumption Member, event acquiring unit and analytic unit, can also include display unit and output unit.The side that the embodiment of the present invention is provided Method and device are realized in end side, for testing the application to be tested installed in terminal, to obtain application to be tested Hardware cell behaviour in service analysis result, the relevant test data of application to be tested can also be stored in storage device.Can With understanding, terminal described in the embodiment of the present invention can include personal computer (Personal Computer, PC), pen Remember this computer, mobile phone or tablet personal computer.In the embodiment of the present invention, the operating system of the terminal can include:IOS systems, Android (Android) system, Saipan (Symbian) system, Windows systems etc..
The embodiment of the present invention provides a kind of method of testing of application, refer to Fig. 2, it is provided by the embodiment of the present invention The schematic flow sheet of the method for testing of application, as illustrated, this method comprises the following steps:
S201, the power consumption distributed intelligence of terminal, the power consumption distributed intelligence where obtaining application to be tested include institute State it is to be tested using the terminal at least one hardware cell in each hardware cell power consumption.
, can be according to functional requirement specifically, the application installed in terminal is operationally, the hardware cell in occupied terminal, The hardware cell includes traditional hardware cell and the hardware cell of extension.Wherein, traditional hardware cell can include:Center Processor (Central Processing Unit, CPU), screen, internal memory, NE etc..Wherein, NE can wrap Include Wireless Fidelity (WIreless Fidelity, Wi-Fi) unit, mobile cellular network unit or global positioning system (Global Positioning System, GPS) NE etc..The hardware cell of extension can include:Camera and sensor Deng.
In addition, for the terminal using Android system, each application installed in terminal can hold corresponding to wake up lock (Wakelock) when, using certain wake-up lock is held, hardware cell corresponding to wake-up lock will be used, so as to cause the application to consume Electricity.Wherein, at least one hardware cell can be corresponded to by each waking up lock.
As shown in Figure 1, it is preferred that the power consumption distributed intelligence of terminal where power consumption acquiring unit obtains application to be tested Method can include:
For an equipment, in general, magnitude of voltage U is invariable.Energy consumption formula be W=U × I × T, the rated current by obtaining hardware cell and the time using the hardware cell are known that according to the formula, it is possible to Obtain the power consumption of hardware cell.
For example, using in the terminal of Android system, being previously provided with power distribution file (such as power_ Profile.xml), the power distribution file is used for the rated current data for storing each hardware cell in the terminal, therefore, In the embodiment of the present invention, the application institute to be tested each hardware in the terminal can be obtained from default power distribution file The rated current data of unit.
For example, power distribution file can include such as following character strings:
For example,<Item name=" screen on ">200</item>Represent application to be tested screen in the terminal Rated current in the on state is 200mA.
For another example<Item name=" wifi.active ">150</item>Represent application to be tested in the terminal Rated current of the Wi-Fi units when transmitting data is 150mA.
Then, the mark of host process and the mark of subprocess corresponding to the application to be tested are obtained;According to each described The mark of the title of hardware cell, the mark of the host process and the subprocess, the interface letter for calling electricity timer to provide Number, to obtain the subprocess or the duration of hardware cell that host process uses.
Wherein, obtaining the method for the mark of host process and the mark of subprocess corresponding to the application to be tested can be: The operating system of terminal can be that the application to be tested distributes user's mark (User after application to be tested is started Identity, UID), can also be mark and the mark of at least one subprocess that the user identifies a host process corresponding to distribution Know, the mark of host process and the mark of subprocess can be process identification (PID) (Process Identity, PID).Therefore, for Fixed application to be tested, such as title Packagename of application to be tested, it can be obtained according to the mark of the application to be tested User's mark of the application to be tested, then identifies the mark and son for obtaining host process corresponding to the application to be tested according to user The mark of process.
Wherein, it is responsible for the duration for the hardware cell that statistics application uses, electricity timer in terminal by electricity timer Number can be multiple.For example, included using the BatteryStateService modules in the terminal of Android system multiple Electricity timer, the duration for a certain hardware cell that each electricity timer statistics application uses.
Wherein, obtain the subprocess or the method for the duration of hardware cell that host process uses can be:
The interface function for calling electricity timer to provide, is input to this by the mark of the title of hardware cell and host process and connects Mouth function, interface function is according to the title of hardware cell and the mark of host process, from the hardware used for recording the host process The duration for the hardware cell that the host process uses is obtained in the electricity timer of the duration of unit;Similarly, electricity timer is called The interface function of offer, the mark of the title of hardware cell and subprocess is input to the interface function, interface function is according to hard The title of part unit and the mark of subprocess, from the electricity timer of the duration of the hardware cell used for recording the subprocess The middle duration for obtaining the hardware cell that the subprocess uses.
It should be noted that same hardware cell is all used due to there may be multiple subprocess or host process, so Need according to the mark of host process and the title of hardware cell, or, the mark of subprocess and the title of hardware cell, obtain In at least one subprocess or at least one host process that the hardware cell must be used, some host process or a certain height Process uses duration.
It should be noted that host process corresponding to application to be tested is mainly used in realizing the work(that application to be tested renders interface Energy;Subprocess corresponding to the host process of application to be tested is mainly used in realizing other functions of the application to be tested, as message pushes away Send function and positioning function etc..
Finally, according to it is described it is to be tested application the rated current data of each hardware cell and the son enter in the terminal The duration for the hardware cell that journey or host process use, obtain it is described it is to be tested using at least one hardware cell In each hardware cell power consumption.
For example, can according to acquisition application to be tested the rated current of hardware cell and host process use in the terminal The hardware cell duration product, obtain it is to be tested using the hardware cell power consumption;Or can foundation The application to be tested institute that the obtains duration for the hardware cell that the rated current of hardware cell and subprocess use in the terminal Product.
For example, so that hardware cell is GPS unit as an example, obtaining the method for the power consumption of the GPS unit can be:Foundation is treated User's mark corresponding to the title acquisition of test application, all processes corresponding to obtaining, including master are then identified according to the user Process and subprocess;All hardware unit used in each process is obtained, is judged mono- with the presence or absence of GPS in these hardware cells Member, if it does, the mark according to the process using GPS unit, calling interface function, to obtain being somebody's turn to do for electricity timer record The duration for the GPS that process uses, the duration summation of all processes using GPS unit is obtained using this method, the duration is total Be multiplied with the rated current with GPS unit, with obtain application to be tested GPS unit in the terminal power consumption.Wherein, electricity Timing before can be all set to 0 by timer after each terminal charge, in order to restart timing.
It should be noted that the duration used can be the difference of the duration got twice, two are so obtained with Between secondary acquisition duration operation, the power consumption of hardware cell.
S202, the device parameter of the hardware cell of terminal, the application pair to be tested where obtaining the application to be tested It is at least one in the running state information for the host process answered and the interface information of the application to be tested.
Specifically, as shown in figure 1, event acquiring unit obtains the equipment ginseng of the hardware cell of application place to be tested terminal It is at least one in the running state information of host process corresponding to application several, to be tested and the interface information of application to be tested.
Preferably, the method for the device parameter of the hardware cell of terminal can where event acquiring unit obtains application to be tested With including:According to hardware cell and the corresponding relation of interface function, interface function corresponding to hardware cell in the terminal is called, To obtain the device parameter of the hardware cell;The device parameter of the hardware cell includes at least one in following information:Institute It is the network switching state of terminal where the screen intensity of terminal, the application to be tested where stating application to be tested, described to be measured The sensing switch state of terminal where the network transmission state of terminal where examination application and the application to be tested.Wherein, net Network transmission state includes flow caused by network transmission type and network transmission.Or identified according to the user of application to be tested, Obtain and lock is waken up used in application to be tested, electricity timer corresponding to obtaining wake-up lock is locked according to the wake-up, is read The numerical value of electricity timer, to obtain wake-up lock duration used in application to be tested.
For example, can be with calling interface function Settings.System.SCREEN_BRIGHTNESS, called interface letter The current brightness value of the screen of terminal where number obtains application to be tested.
For another example NetworkInfo isConnected () interface function can be called, called interface function obtains The network switching state of terminal where taking application to be tested.
For another example NetworkInfo getType () interface function can be called, called interface function is obtained and treated The network transmission type of terminal where test application.
For another example getTcpBytesReceived () interface function can be called, called interface function obtains to be measured The network of terminal receives flow where examination application, the difference according to the flow twice obtained can determine between calling twice whether Generate reception flow.GetTcpBytesSent () interface function can be called, called interface function obtains to be tested Using the network transmitted traffic of place terminal, the difference according to the flow twice obtained can determine whether produced between calling twice Transmitted traffic is given birth to.
For another example BatteryStats.Uid.Sensor interface functions can be called, called interface function is obtained and treated The sensing switch state of terminal where test application.
Preferably, the method that event acquiring unit obtains the running state information of host process corresponding to the application to be tested It can include:Time of running function is called, the mark of application to be tested is inputted to the time of running function, to cause the fortune Mark of the row moment function according to the application to be tested of input, running status command, to obtain the application pair to be tested The running status for the host process answered.
For example, if the system that terminal where application to be tested uses is Android system, time of running function can be called, Such as runtime functions, the mark of application to be tested is passed to the runtime functions, so, called runtime functions according to According to the mark of application to be tested, running status command, such as process status (Process Status, PS) instruction, acquisition is treated The running status of host process corresponding to test application.Wherein, the running status of host process can include following state:Dormancy shape State, running status or stopping are tracked state etc..
Preferably, the method for the interface information of the event acquiring unit acquisition application to be tested can include:Call fortune Row moment function, to cause the time of running function operation log acquisition instructions, to obtain the application place to be tested eventually The log information of the operating system at end;When obtaining interface that the application to be tested renders according to the log information and render Carve.
For example, if the system that terminal where application to be tested uses is Android system, time of running function can be called, Such as runtime functions, the mark of application to be tested is passed to the runtime functions, so, called runtime functions according to According to the mark of application to be tested, running log obtains instruction, as LogCat is instructed, to obtain terminal where the application to be tested Operating system log information, then interface management (ActivityManager) file in log information is filtered, To obtain wherein the rendered interface of application to be tested and corresponding render the moment.
It should be noted that the interface information by obtaining application to be tested, can know and occur in a certain moment terminal Changing interface, can be used for reappearing the courses of action in application to be tested, interface information combined with power consumption distributed intelligence, Can knows which is operated and causes the power consumption surge of application institute to be tested hardware cell in the terminal.
S203, the running status of host process corresponding to the device parameter, the application to be tested according to the hardware cell At least one and power consumption distributed intelligence in information and the interface information of the application to be tested, is obtained described to be tested The hardware cell behaviour in service analysis result of application.
Specifically, as shown in figure 1, device parameter of the analytic unit according to the hardware cell, the application pair to be tested At least one and power consumption point in the running state information for the host process answered and the interface information of the application to be tested Cloth information, the behaviour in service of the hardware cell of application to be tested is analyzed, to obtain the hardware list of the application to be tested First behaviour in service analysis result.
Preferably, if the hardware cell is sensor, the device parameter of the hardware cell of acquisition is opened for sensor Open, the power consumption distributed intelligence of acquisition is that the power consumption of the sensor is 0, represents that sensor does not have power consumption, but pass Sensor is but in opening, and the behaviour in service analysis result that may thereby determine that the application to be tested is to use the sensing Device is unreasonable.
For example, table 1 is the power consumption distributed intelligence of certain application to be tested;Table 2 is the hardware cell of certain application to be tested Device parameter.
Table 1
Table 2
In table 2, the numerical value of network switching state represents that network is opened for 1, and the numerical value of network switching state represents network for 0 Close.The numerical value of network transmission type is 1 expression Wi-Fi transmission, and the numerical value of network transmission type represents that mobile cellulars pass for 2 It is defeated.The numerical value whether network transmission produces flow represents generation flow for 1, and the numerical value whether network transmission produces flow is 0 table Show and do not produce flow.The numerical value of sensing switch state is that 1 expression sensor is opened, and the numerical value of sensing switch state is 0 Represent that sensor is closed.
Preferably, if the hardware cell is NE, the fortune of host process corresponding to the application to be tested of acquisition Row status information is non-operating state, and the power consumption distributed intelligence of acquisition is that the power consumption of NE is not 0, and representing should It is to be tested to apply in backstage or place terminal screen locking so that host process corresponding to application to be tested is non-operating state, still The power consumption of the NE of the application to be tested is not but 0, illustrates the hardware cell power consumption used with the presence of other subprocess Amount, may thereby determine that the behaviour in service analysis result of the application to be tested makes for subprocess corresponding to the application to be tested The power consumption of hardware cell is not 0.
Preferably, if the hardware cell is central processor CPU, according to the interface information of the application to be tested, obtain The state change information of lock must be waken up;If the state change information is changed into non-for the wake-up lock from use state uses shape State, and difference of the power consumption distributed intelligence between CPU power consumption and power consumption peak value is less than default power consumption threshold Value, the behaviour in service analysis result for determining the application to be tested are the CPU for waking up lock and being used without release.
For example, according to interface information, know that the use state for waking up lock is changed into using from being not used, in a certain event (such as Click on certain button for show of terminal or terminal screen locking) occur after, remain in that and locked using waking up, but actually now should Wake-up lock need not be reused, if now CPU power consumption shows to wake up the hardware that lock uses still close to power consumption peak value Unit is not released after using end.
It should be noted that in the above method, the S201 can exchange with S202 execution sequence, that is, first carry out S202, S201 is then performed again.
Optionally, the above method can also include:
Master corresponding to the device parameter of the hardware cell of the application place to be tested terminal, the application to be tested is entered Terminal where at least one, described application to be tested in the running state information of journey and the interface information of the application to be tested Power consumption distributed intelligence and the hardware cell behaviour in service analysis result of the application to be tested, are stored in storage device.
Preferably, the storage device can include secure data (Secure Digital, SD) card or terminal it is interior Deposit.
Optionally, the above method can also include:
According to default email address, by the device parameter of the hardware cell of terminal where the application to be tested, described It is at least one, described in the running state information of host process corresponding to application to be tested and the interface information of the application to be tested The hardware cell behaviour in service analysis result of power consumption distributed intelligence and the application to be tested of terminal where application to be tested, Send to mailbox corresponding to the email address.
For example, refer to Fig. 3, its email address provided by the embodiment of the present invention sets the schematic diagram at interface, such as schemes It is shown, email address can be set in the configuration interface for the device that the embodiment of the present invention is provided.
Optionally, the above method can also include:
Display reminding information, the prompt message are used to prompt to obtain the application place to be tested terminal from storage device The device parameter of hardware cell, host process corresponding to the application to be tested running state information and the application to be tested Interface information in terminal where at least one, described application to be tested power consumption distributed intelligence and the application to be tested Hardware cell behaviour in service analysis result.
Optionally, the above method can also include:
Display reminding window, the power consumption distribution letter of terminal where the application to be tested is shown in the prompt window Breath;Wherein, the prompt window is mobile floating layer;The power consumption of terminal where the prompt window shows the application to be tested The mode of distributed intelligence includes display power consumption distribution values and/or total power consumption versus time curve figure.
For example, a view (View) can be created, the view is used as and carried using the window of application to be tested as parent window Show window, can be also shown in be tested apply in running background on the desktop of terminal.Need to set the transparent of the view Spend and moving operation is set in the touch events of view, make it that the view is transparent, and the view can be with time shift It is dynamic, to avoid blocking the normal interface of the application to be tested.
For example, Fig. 4 is refer to, the schematic diagram of its mobile floating layer provided by the embodiment of the present invention, as illustrated, prompting The power consumption distribution values of terminal and total power consumption change with time where window can show the application to be tested simultaneously Curve map;In addition, the reminding window can also only show the power consumption distribution values of the application place to be tested terminal, or only Show total power consumption versus time curve figure.Wherein, the transverse axis of the change curve is the time, and vertical pivot is total power consumption. In addition, the change curve can be drawn according to total power consumption and time, and using drawing tool.
It should be noted that the execution cycle of the said process of the embodiment of the present invention can be 1s, and because power consumption is believed Breath is equal to rated current data and the product of duration, and the duration, which can be equal to, performs cycle 1s, so the screen shown in Fig. 4 is opened Electric current 115.54mA etc. is opened, refers to the electric current of screen opening in nearest 1s, and because duration is all 1s, so the electric current of display Value is with regard to the power consumption as hardware cell.
In addition, the operation of the power consumption distributed intelligence of terminal is with inciting somebody to action where showing the application to be tested by prompt window The power consumption distributed intelligence storage of terminal where the application to be tested can be carried out simultaneously to storage device.Or first by institute Storage device is arrived in the power consumption distributed intelligence storage of terminal where stating application to be tested, then is shown by prompt window described to be measured The operation of the power consumption distributed intelligence of terminal where examination application.
Fig. 5 (a) and Fig. 5 (b) are refer to, the configuration schematic diagram of its application to be tested provided by the embodiment of the present invention, As illustrated, the input frame in Fig. 5 (a) can be utilized, input in device provided in an embodiment of the present invention and input to be tested answer Title, with the application for needing to test to the instruction of the test device of application.The list of application that can also be shown in Fig. 5 (b) In select application to be tested.
The embodiment of the present invention further provides the device embodiment for realizing each step and method in above method embodiment.
The embodiment of the present invention provides a kind of test device of application, refer to Fig. 6, it is provided by the embodiment of the present invention The functional block diagram of the test device of application.As illustrated, the device includes:
Power consumption acquiring unit 601, for the power consumption distributed intelligence of terminal where obtaining application to be tested, the power consumption Measure distributed intelligence include it is described it is to be tested using the terminal at least one hardware cell in each hardware The power consumption of unit;
Event acquiring unit 602, device parameter, institute for the hardware cell of terminal where obtaining the application to be tested State at least one in the interface information of the running state information of host process corresponding to application to be tested and the application to be tested;
Analytic unit 603, for host process corresponding to the device parameter according to the hardware cell, the application to be tested Running state information and the application to be tested interface information at least one and power consumption distributed intelligence, obtain The hardware cell behaviour in service analysis result of the application to be tested.
Preferably, the power consumption acquiring unit 601, is specifically used for:
Obtained from power distribution file it is described it is to be tested application institute in the terminal each the hardware cell specified electricity Flow data;
Obtain the mark of host process and the mark of subprocess corresponding to the application to be tested;
According to the mark of each title of the hardware cell, the mark of the host process and the subprocess, electricity is called The interface function that timer provides is measured, to obtain the subprocess or the duration of hardware cell that host process uses;
According to it is described it is to be tested application institute in the terminal each the hardware cell rated current data and the son enter The duration for the hardware cell that journey or host process use, obtain it is described it is to be tested using at least one hardware cell In each hardware cell power consumption.
Preferably, the event acquiring unit 602, is specifically used for:
According to hardware cell and the corresponding relation of interface function, interface letter corresponding to hardware cell in the terminal is called Number, to obtain the device parameter of the hardware cell;The device parameter of the hardware cell includes at least one in following information: The network switching state of terminal where the screen intensity of terminal, the application to be tested where the application to be tested, described treat The sensing switch state of terminal where the network transmission state of terminal where test application and the application to be tested;Or According to the mark of the application to be tested, obtain and lock is waken up used in application to be tested, electricity corresponding to lock is waken up according to described The numerical value of timer is measured, described wake up is obtained and locks the duration used in application to be tested;And/or
Time of running function is called, to cause the mark of to be tested application of the time of running function according to input, fortune Row process status instructs, to obtain the running status of host process corresponding to the application to be tested;And/or
Time of running function is called, to cause the time of running function operation log acquisition instructions, to be treated described in acquisition The log information of the operating system of terminal where test application;Obtain what the application to be tested rendered according to the log information Interface and render the moment.
Preferably, if the hardware cell is sensor, the analytic unit 603, it is specifically used for:If the hardware cell Device parameter be that sensor is opened, and the power consumption distributed intelligence is that the power consumption of the sensor is 0, it is determined that described treat The behaviour in service analysis result of test application is unreasonable using the sensor.
Preferably, if the hardware cell is NE, the analytic unit 603, it is specifically used for:It is if described to be tested Running state information using corresponding host process is non-operating state, and the power consumption distributed intelligence is the consumption of NE Electricity is not 0, determines the behaviour in service analysis result of the application to be tested and makes for subprocess corresponding to the application to be tested The power consumption of hardware cell is not 0.
Preferably, if the hardware cell is central processor CPU, the analytic unit 603, it is specifically used for:According to institute The interface information of application to be tested is stated, obtains the state change information for waking up lock;If the state change information is the wake-up Lock is changed into non-working condition from use state, and the power consumption distributed intelligence is between CPU power consumption and power consumption peak value Difference be less than default power consumption threshold value, determine that the behaviour in service analysis result of the application to be tested does not have for the wake-up lock There is the CPU that release uses.
Optionally, described device can also include:
Output unit 604, for according to default email address, by the hardware cell of terminal where the application to be tested Device parameter, the running state information of host process and the interface information of the application to be tested corresponding to the application to be tested In the hardware cell of power consumption distributed intelligence and the application to be tested of terminal where at least one, described application to be tested make With status analysis result, send to mailbox corresponding to the email address;And/or
Display unit 605, for display reminding information, the prompt message is used to prompt to obtain described treat from storage device Test the device parameter of the hardware cell of terminal where applying, the running state information of host process corresponding to the application to be tested With the power consumption distributed intelligence of terminal where at least one, described application to be tested in the interface information of the application to be tested and The hardware cell behaviour in service analysis result of the application to be tested;And/or
The display unit 605, display reminding window is additionally operable to, is shown in the prompt window and described to be tested apply institute In the power consumption distributed intelligence of terminal;Wherein, the prompt window is mobile floating layer;The prompt window shows described to be tested Include display power consumption distribution values and/or total power consumption with the time using the mode of the power consumption distributed intelligence of place terminal Change curve.
Because each unit in the present embodiment is able to carry out the method shown in Fig. 2, the part that the present embodiment is not described in detail, Refer to the related description to Fig. 2.
The technical scheme of the embodiment of the present invention has the advantages that:
1st, in the embodiment of the present invention, the power consumption distributed intelligence of terminal where application to be tested can be obtained, and it is described The running status letter of the device parameter of the hardware cell of terminal where application to be tested, host process corresponding to the application to be tested It is at least one in breath and the interface information of the application to be tested, then according to the above- mentioned information obtained to the hard of application to be tested Part unit service condition is analyzed, therefore, it is possible to realize the service condition of hardware cell used in application to be tested from Dynamic analysis, so as to improve the testing efficiency of application to be tested.
2nd, in the embodiment of the present invention, the power consumption distributed intelligence of terminal where application to be tested can be obtained, and it is described The running status letter of the device parameter of the hardware cell of terminal where application to be tested, host process corresponding to the application to be tested It is at least one in breath and the interface information of the application to be tested, with, being merely able to obtain the total of application to be tested in the prior art The technical scheme of power consumption is compared, it is possible to increase the coverage rate of test parameter, is provided more for the performance optimization of application to be tested Detailed data, to enable research staff to carry out performance optimization to application to be tested according to these detailed datas.
3rd, in the embodiment of the present invention, the data of acquisition can be showed in real time so that research staff can send out in time It is existing it is to be tested using hardware cell exception, such as power consumption is abnormal and using unreasonable, it is possible to increase testing efficiency.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Division, only a kind of division of logic function, can there is other dividing mode, for example, multiple units or group when actually realizing Part can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown Or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, device or unit it is indirect Coupling or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in one and computer-readable deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are causing a computer It is each that device (can be personal computer, server, or network equipment etc.) or processor (Processor) perform the present invention The part steps of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various Can be with the medium of store program codes.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention God any modification, equivalent substitution and improvements done etc., should be included within the scope of protection of the invention with principle.

Claims (14)

1. a kind of method of testing of application, it is characterised in that methods described includes:
The power consumption distributed intelligence of terminal where obtaining application to be tested, the power consumption distributed intelligence include it is described it is to be tested should With the power consumption of each hardware cell at least one hardware cell in the terminal used;
The device parameter of the hardware cell of terminal where obtaining the application to be tested, host process corresponding to the application to be tested Running state information and the application to be tested interface information in it is at least one;
The running state information of host process corresponding to device parameter, the application to be tested according to the hardware cell and described At least one and power consumption distributed intelligence in the interface information of application to be tested, obtain the hardware of the application to be tested Unit behaviour in service analysis result;The device parameter of the hardware cell includes at least one in following information:It is described to be tested Using the network switching state of terminal where the screen intensity of place terminal, the application to be tested, described to be tested apply institute The sensing switch state of terminal where the network transmission state of terminal and the application to be tested;
Wherein, the interface information for obtaining the application to be tested, including:Time of running function is called, to cause the fortune Row moment function operation log acquisition instructions, to obtain the log information of the operating system of the application place to be tested terminal; The interface and render the moment that the application to be tested renders are obtained according to the log information.
2. according to the method for claim 1, it is characterised in that the power consumption point for obtaining application place to be tested terminal Cloth information, including:
Obtained from power distribution file it is described it is to be tested application institute in the terminal each the hardware cell rated current number According to;
Obtain the mark of host process and the mark of subprocess corresponding to the application to be tested;
According to the mark of each title of the hardware cell, the mark of the host process and the subprocess, voltameter is called When the interface function that provides of device, to obtain the subprocess or the duration of hardware cell that host process uses;
According to it is described it is to be tested application institute in the terminal each the hardware cell rated current data and the subprocess or The duration for the hardware cell that person's host process uses, obtain it is described it is to be tested using at least one hardware cell in it is every The power consumption of the individual hardware cell.
3. according to the method for claim 1, it is characterised in that
The device parameter of the hardware cell for obtaining application place to be tested terminal, including:According to hardware cell and interface letter Several corresponding relations, interface function corresponding to hardware cell in the terminal is called, to obtain the equipment of hardware cell ginseng Number;Or the mark according to the application to be tested, obtain and lock is waken up used in application to be tested, lock is waken up according to described The numerical value of corresponding electricity timer, obtain described wake up and lock the duration used in application to be tested;And/or
The running state information for obtaining host process corresponding to the application to be tested, including:Time of running function is called, with So that mark of the time of running function according to the application to be tested of input, running status command, to be treated described in acquisition The running status of host process corresponding to test application.
4. according to the method in any one of claims 1 to 3, it is characterised in that if the hardware cell is sensor, institute The device parameter according to the hardware cell and the power consumption distributed intelligence are stated, obtain the application to be tested uses shape Condition analysis result, including:If the device parameter of the hardware cell is opened for sensor, and the power consumption distributed intelligence is institute The power consumption for stating sensor is 0, and the behaviour in service analysis result for determining the application to be tested is not conformed to using the sensor Reason.
5. according to the method in any one of claims 1 to 3, it is characterised in that if the hardware cell is NE, It is described according to the running state information of host process corresponding to the application to be tested and the power consumption distributed intelligence, obtain institute The hardware cell behaviour in service analysis result of application to be tested is stated, including:If the fortune of host process corresponding to the application to be tested Row status information is non-operating state, and the power consumption distributed intelligence is that the power consumption of NE is not 0, it is determined that described treat The power consumption for the hardware cell that the behaviour in service analysis result of test application uses for subprocess corresponding to the application to be tested It is not 0.
6. according to the method in any one of claims 1 to 3, it is characterised in that if the hardware cell is central processing Device CPU, the interface information according to the application to be tested and the power consumption distributed intelligence, obtain it is described it is to be tested should Hardware cell behaviour in service analysis result, including:According to the interface information of the application to be tested, the shape for waking up lock is obtained State change information;If the state change information is changed into non-working condition, and the power consumption for the lock that wakes up from use state Amount distributed intelligence is that the difference between CPU power consumption and power consumption peak value is less than default power consumption threshold value, it is determined that described treat The behaviour in service analysis result of test application is the CPU for waking up lock and being used without release.
7. according to the method for claim 1, it is characterised in that methods described also includes:
According to default email address, by the device parameter of the hardware cell of terminal where the application to be tested, described to be measured It is at least one, described to be measured in the running state information of host process corresponding to examination application and the interface information of the application to be tested The hardware cell behaviour in service analysis result of power consumption distributed intelligence and the application to be tested of terminal, sends where examination application To mailbox corresponding to the email address;And/or
Display reminding information, the prompt message are used to prompt to obtain the hard of the application place to be tested terminal from storage device The boundary of the running state information of host process and the application to be tested corresponding to the device parameter of part unit, the application to be tested The hardware of power consumption distributed intelligence and the application to be tested of terminal where at least one, described application to be tested in the information of face Unit behaviour in service analysis result;And/or
Display reminding window, the power consumption distributed intelligence of terminal where the application to be tested is shown in the prompt window;Its In, the prompt window is mobile floating layer;The power consumption distribution of terminal where the prompt window shows the application to be tested The mode of information includes display power consumption distribution values and/or total power consumption versus time curve figure.
8. a kind of test device of application, it is characterised in that described device includes:
Power consumption acquiring unit, for the power consumption distributed intelligence of terminal where obtaining application to be tested, the power consumption distribution Information include it is described it is to be tested using the terminal at least one hardware cell in each hardware cell Power consumption;
Event acquiring unit, it is device parameter for the hardware cell of terminal where obtaining the application to be tested, described to be measured It is at least one in the running state information of host process corresponding to examination application and the interface information of the application to be tested;The hardware The device parameter of unit includes at least one in following information:The screen intensity of terminal where the application to be tested, described treat The network transmission state of terminal where the network switching state of terminal, the application to be tested where test application and described to be measured The sensing switch state of terminal where examination application;
Analytic unit, the operation for host process corresponding to the device parameter according to the hardware cell, the application to be tested At least one and power consumption distributed intelligence in status information and the interface information of the application to be tested, treat described in acquisition Test the hardware cell behaviour in service analysis result of application;
The event acquiring unit, specifically for calling time of running function, to cause the time of running function operation daily record Instruction is obtained, to obtain the log information of the operating system of the application place to be tested terminal;Obtained according to the log information The interface that renders of the application to be tested and render the moment.
9. device according to claim 8, it is characterised in that the power consumption acquiring unit, be specifically used for:
Obtained from power distribution file it is described it is to be tested application institute in the terminal each the hardware cell rated current number According to;
Obtain the mark of host process and the mark of subprocess corresponding to the application to be tested;
According to the mark of each title of the hardware cell, the mark of the host process and the subprocess, voltameter is called When the interface function that provides of device, to obtain the subprocess or the duration of hardware cell that host process uses;
According to it is described it is to be tested application institute in the terminal each the hardware cell rated current data and the subprocess or The duration for the hardware cell that person's host process uses, obtain it is described it is to be tested using at least one hardware cell in it is every The power consumption of the individual hardware cell.
10. device according to claim 8, it is characterised in that the event acquiring unit, be specifically additionally operable to:
According to hardware cell and the corresponding relation of interface function, interface function corresponding to hardware cell in the terminal is called, with Obtain the device parameter of the hardware cell;Or the mark according to the application to be tested, obtain application to be tested and used Wake-up lock, according to it is described wake up lock corresponding to electricity timer numerical value, obtain it is described wake up lock by it is to be tested application make Duration;And/or
Time of running function is called, to cause the mark of to be tested application of the time of running function according to input, was run Journey status command, to obtain the running status of host process corresponding to the application to be tested.
11. the device according to any one of claim 8 to 10, it is characterised in that if the hardware cell is sensor, The analytic unit, is specifically used for:If the device parameter of the hardware cell is opened for sensor, and power consumption distribution letter The power consumption ceased for the sensor is 0, and the behaviour in service analysis result for determining the application to be tested is to use the sensing Device is unreasonable.
12. the device according to any one of claim 8 to 10, it is characterised in that if the hardware cell is network list Member, the analytic unit, is specifically used for:If the running state information of host process corresponding to the application to be tested is inoperative shape State, and the power consumption distributed intelligence is that the power consumption of NE is not 0, determines the behaviour in service point of the application to be tested Analysis result be the application to be tested corresponding to the power consumption of hardware cell that uses of subprocess be not 0.
13. the device according to any one of claim 8 to 10, it is characterised in that if the hardware cell is centre Device CPU is managed, the analytic unit, is specifically used for:According to the interface information of the application to be tested, the state change for waking up lock is obtained Change information;If the state change information is changed into non-working condition, and the power consumption point for the lock that wakes up from use state Cloth information is that the difference between CPU power consumption and power consumption peak value is less than default power consumption threshold value, is determined described to be tested The behaviour in service analysis result of application is the CPU for waking up lock and being used without release.
14. device according to claim 8, it is characterised in that described device also includes:
Output unit, for according to default email address, by the equipment of the hardware cell of terminal where the application to be tested In the running state information of host process corresponding to parameter, the application to be tested and the interface information of the application to be tested at least One, the hardware cell behaviour in service of power consumption distributed intelligence and the application to be tested of terminal where the application to be tested Analysis result, send to mailbox corresponding to the email address;And/or
Display unit, for display reminding information, the prompt message be used for prompt from storage device obtain it is described it is to be tested should The running state information of host process and described corresponding to the device parameter of the hardware cell of place terminal, the application to be tested The power consumption distributed intelligence of terminal where at least one, described application to be tested and described treated in the interface information of application to be tested Test the hardware cell behaviour in service analysis result of application;And/or
The display unit, display reminding window is additionally operable to, terminal where the application to be tested is shown in the prompt window Power consumption distributed intelligence;Wherein, the prompt window is mobile floating layer;The prompt window, which is shown, described to be tested applies institute Include display power consumption distribution values in the mode of the power consumption distributed intelligence of terminal and/or total power consumption changes with time song Line chart.
CN201410282845.4A 2014-06-23 2014-06-23 The method of testing and device of a kind of application Active CN104063316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410282845.4A CN104063316B (en) 2014-06-23 2014-06-23 The method of testing and device of a kind of application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410282845.4A CN104063316B (en) 2014-06-23 2014-06-23 The method of testing and device of a kind of application

Publications (2)

Publication Number Publication Date
CN104063316A CN104063316A (en) 2014-09-24
CN104063316B true CN104063316B (en) 2017-11-24

Family

ID=51551038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410282845.4A Active CN104063316B (en) 2014-06-23 2014-06-23 The method of testing and device of a kind of application

Country Status (1)

Country Link
CN (1) CN104063316B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461899B (en) * 2014-12-19 2017-12-26 北京奇虎科技有限公司 The method, test terminal and system of consumed resource are analyzed in test process
CN104506661B (en) * 2015-01-14 2018-09-04 西安电子科技大学 A kind of mobile telephone power consumption automatic production generation method based on usage scenario of Remote configuration
CN108574625B (en) * 2017-03-13 2020-11-27 腾讯科技(深圳)有限公司 Application test invitation method and device
CN107832190B (en) * 2017-10-31 2020-09-22 维沃移动通信有限公司 Diagnosis method for power consumption abnormity, mobile terminal and storage medium
CN110825577B (en) * 2018-08-13 2023-07-04 成都鼎桥通信技术有限公司 Frozen screen testing method and device for terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012190447A (en) * 2011-02-23 2012-10-04 Ntt Docomo Inc Power consumption analysis system and application development tool
CN102799489A (en) * 2012-07-19 2012-11-28 腾讯科技(深圳)有限公司 Method and device for controlling terminal, and terminal
CN103198008A (en) * 2013-04-27 2013-07-10 清华大学 System testing statistical method and device
US8650552B1 (en) * 2012-06-22 2014-02-11 Google Inc. Methods and systems for simulation of energy consumption in mobile operating system emulators
CN103699208A (en) * 2013-12-31 2014-04-02 贝壳网际(北京)安全技术有限公司 Mobile terminal hardware setting method, mobile terminal and server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050171753A1 (en) * 2004-01-30 2005-08-04 Rosing Tajana S. Arrangement and method of estimating and optimizing energy consumption of a system including I/O devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012190447A (en) * 2011-02-23 2012-10-04 Ntt Docomo Inc Power consumption analysis system and application development tool
US8650552B1 (en) * 2012-06-22 2014-02-11 Google Inc. Methods and systems for simulation of energy consumption in mobile operating system emulators
CN102799489A (en) * 2012-07-19 2012-11-28 腾讯科技(深圳)有限公司 Method and device for controlling terminal, and terminal
CN103198008A (en) * 2013-04-27 2013-07-10 清华大学 System testing statistical method and device
CN103699208A (en) * 2013-12-31 2014-04-02 贝壳网际(北京)安全技术有限公司 Mobile terminal hardware setting method, mobile terminal and server

Also Published As

Publication number Publication date
CN104063316A (en) 2014-09-24

Similar Documents

Publication Publication Date Title
CN104063316B (en) The method of testing and device of a kind of application
CN105740690B (en) A kind of unlocking method and mobile terminal
CN104244381B (en) Wake-up control method, device and terminal device
CN104166542A (en) Method and device for detecting electricity consumption of application
CN107832132B (en) Application control method and device, storage medium and electronic equipment
CN103702404B (en) Power consumption mode switching method and device
CN107566650A (en) Solve lock control method and Related product
CN109947497A (en) Application program preloads method, apparatus, storage medium and mobile terminal
US20140235220A1 (en) Method and apparatus for processing application program, and mobile terminal therefor
CN110310633A (en) Multitone area audio recognition method, terminal device and storage medium
CN106791055A (en) A kind of method for generating memorandum record, device and mobile terminal
CN103617129B (en) A kind of method and device of internal memory processing
CN106055074A (en) Method and device for processing application program
CN106355382A (en) Event reminding method and device
CN105704785A (en) Network searching method, device and mobile terminal
CN106959857A (en) The application control method and apparatus of a kind of electronic equipment
CN105704758A (en) Method and device of closing social applications based on flow monitoring
CN108509225A (en) A kind of information processing method and electronic equipment
CN104023147A (en) Method and system for facilitating stable dormancy of mobile terminal
CN111261160A (en) Signal processing method and device
CN104252221B (en) A kind of data-updating method and processor and system
CN104598192B (en) Information processing method and electronic equipment
CN103927244B (en) A kind of method of the plug-in unit scheduling process monitoring realized based on dynamic proxy
CN107704317A (en) Smart machine and its application management method and the device with store function
CN106406499A (en) An aligned awakening method and device based on a terminal system

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