CN106776229A - Power consumption of terminal method of testing and device - Google Patents

Power consumption of terminal method of testing and device Download PDF

Info

Publication number
CN106776229A
CN106776229A CN201611271106.0A CN201611271106A CN106776229A CN 106776229 A CN106776229 A CN 106776229A CN 201611271106 A CN201611271106 A CN 201611271106A CN 106776229 A CN106776229 A CN 106776229A
Authority
CN
China
Prior art keywords
terminal
action events
power consumption
parameter
debug command
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.)
Withdrawn
Application number
CN201611271106.0A
Other languages
Chinese (zh)
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.)
Heyuan Meichen Joint Intelligent Hardware Electronics Research Institute
Original Assignee
Heyuan Meichen Joint Intelligent Hardware Electronics Research Institute
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 Heyuan Meichen Joint Intelligent Hardware Electronics Research Institute filed Critical Heyuan Meichen Joint Intelligent Hardware Electronics Research Institute
Priority to CN201611271106.0A priority Critical patent/CN106776229A/en
Publication of CN106776229A publication Critical patent/CN106776229A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • G06F11/3062Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of power consumption of terminal method of testing, the method flow includes:Measured terminal receives the debug command that main control terminal is issued, and simulated operation control information is obtained from the debug command;The measured terminal performs corresponding Action Events according to the simulated operation control information is got, and power consumption of the measured terminal when the Action Events are performed is recorded so that the main control terminal is based on the programmable power supply.The present invention also proposes a kind of power consumption of terminal test device.The present invention solves the low technical problem of the degree of accuracy of power consumption of terminal of the prior art test.

Description

Power consumption of terminal method of testing and device
Technical field
The present invention relates to terminal test technical field, more particularly to a kind of power consumption of terminal method of testing and device.
Background technology
Power consumption is always the key technical index of intelligent mobile terminal institute critical concern, and the quality of power consumption directly determines one The core competitiveness of money intelligent mobile product.The optimization of power consumption can be in terms of hardware, driving, systems soft ware and application program etc. Carry out.Therefore, before mobile terminal product export, the device fabrication chamber of commerce is carried out in hardware, driving and system software layer in face of power consumption Optimization, accomplishes the optimal balance of performance and power consumption.
From for the angle of hardware, existing mobile terminal is most of to be powered using battery, and it is electric that this requires that equipment works Flow to end it is possible do small, but to obtain suitable electric current needs substantial amounts of test, in testing process at this stage, all passes through Manual hand manipulation's terminal, is tested with trigger action event, but the mode of this manual operation test, it is difficult to keep What the operation to all of terminal was just as, this results in test result and there is larger error, and test accuracy is low.
The content of the invention
The present invention provides a kind of power consumption of terminal method of testing and device, and its main purpose is to solve terminal in the prior art The low technical problem of the degree of accuracy of power consumption test.
To achieve the above object, the present invention provides a kind of power consumption of terminal method of testing, by programmable power supply for measured terminal is supplied Electricity, main control terminal is connected with the programmable power supply, and the power consumption of terminal method of testing includes:
Measured terminal receives the debug command that main control terminal is issued, and simulated operation control letter is obtained from the debug command Breath;
The measured terminal performs corresponding Action Events according to the simulated operation control information is got, for described Main control terminal is based on the programmable power supply and records power consumption of the measured terminal when the Action Events are performed.
Alternatively, the measured terminal performs corresponding Action Events according to the simulated operation control information is got Step includes:
The measured terminal obtains Action Events parameter from the simulated operation control information, and with the operation thing Part parameter corresponding execution time point;
According to the order at corresponding execution time point, successively when corresponding execution time point is reached according to the behaviour for getting Make event argument and perform corresponding Action Events.
Alternatively, the measured terminal is during the debug command that the main control terminal is issued is received, with the master Control terminal sets up debug command connection;The power consumption of terminal method of testing also includes:
After the Action Events parameter and the execution time point is got, the measured terminal and the master are detected Whether the debug command connection between control terminal disconnects;
If detecting the debug command connection to disconnect, the order according to corresponding execution time point is performed, existed successively When reaching corresponding execution time point, according to the step of the Action Events parameter execution corresponding Action Events for getting;
If detecting the debug command connection to be not turned off, output disconnects the prompting letter of the debug command connection Breath.
Alternatively, the measured terminal receives the debug command that main control terminal is issued, and mould is obtained from the debug command Before the step of intending control information operation, the power consumption of terminal method of testing also includes:
The measured terminal when touch control operation and/or button operation is detected, based on the touch control operation and/or button Operation generation Action Events parameter;
The Action Events parameter is uploaded to the main control terminal, so that the main control terminal is according to receiving Action Events parameter, and for the execution time point of the Action Events parameter configuration generates simulated operation control information.
Alternatively, it is described based on the touch control operation and/or button operation generation Action Events parameter the step of before, institute Stating power consumption of terminal method of testing also includes step:
The measured terminal when touch control operation and/or button operation is detected, judge the measured terminal it is current whether In reference record pattern;
If the measured terminal is currently at reference record pattern, performs and grasped based on the touch control operation and/or button The step of making generation Action Events parameter.
Additionally, to achieve the above object, the present invention also provides a kind of power consumption of terminal test device, is tested by programmable power supply Terminal is powered, and main control terminal is connected with the programmable power supply, and the power consumption of terminal test device includes:
Data obtaining module, for receiving the debug command that main control terminal is issued, obtains simulation from the debug command Control information operation;
Event execution module, for according to the simulated operation control information execution Action Events are got, for described Main control terminal is based on the programmable power supply and records power consumption of the measured terminal when the Action Events are performed.
Alternatively, the event execution module includes:
Parameter acquiring unit, for from the simulated operation control information obtain Action Events parameter, and with it is described Action Events parameter corresponding execution time point;
Event execution unit, for the order according to corresponding execution time point, reaches the corresponding execution time successively Corresponding Action Events are performed according to the Action Events parameter for getting during point.
Alternatively, the measured terminal is during the debug command that the main control terminal is issued is received, with the master Control terminal sets up debug command connection;The power consumption of terminal test device also includes connection detection module and message output module, Wherein, the connection detection module is used for:After the Action Events parameter and the execution time point is got, institute is detected State whether the connection of the debug command between measured terminal and the main control terminal disconnects;
The event execution module is additionally operable to:If detecting the debug command connection to disconnect, according to corresponding execution The order at time point, successively when corresponding execution time point is reached, performs corresponding according to the Action Events parameter for getting Action Events;
Described information output module is used for:If detecting the debug command connection to be not turned off, output disconnects described The prompt message of debug command connection.
Alternatively, the power consumption of terminal test device also includes:
Parameter generation module, for when touch control operation and/or button operation is detected, based on the touch control operation and/ Or button operation generation Action Events parameter;
Parameter uploading module, for the Action Events parameter to be uploaded into the main control terminal, for the master control end Simulated according to the Action Events parameter for receiving, and for the execution time point of the Action Events parameter configuration generates at end Control information operation.
Alternatively, the power consumption of terminal test device also includes:
Mode decision module, for when touch control operation and/or button operation is detected, judging that the measured terminal is current Whether reference record pattern is in;
The parameter generation module is additionally operable to:If the measured terminal is currently at reference record pattern, based on described Touch control operation and/or button operation generation Action Events parameter.
Power consumption of terminal method of testing proposed by the present invention and device, when power consumption test is carried out to measured terminal, by master Control terminal issues the debug command for carrying simulated operation control information to measured terminal, and measured terminal is receiving debug command When, simulated operation control information is obtained from debug command, and Action Events therein are performed, performing the process of Action Events In, by programmable power supply for measured terminal is powered, main control terminal is connected and tested eventually based on programmable power supply record with programmable power supply The power consumption when Action Events are performed is held, during this power consumption test, it is not necessary to which artificial grasps to measured terminal Control, but simulated operation control information is issued by main control terminal, measured terminal only needs to automatic according to simulated operation control information The corresponding Action Events of execution, it is to avoid due to the error that human factor is brought, improve the degree of accuracy of power consumption of terminal test.
Brief description of the drawings
Fig. 1 is the flow chart of power consumption of terminal method of testing first embodiment of the present invention;
Fig. 2 is the flow chart of power consumption of terminal method of testing second embodiment of the present invention;
Fig. 3 is the high-level schematic functional block diagram of power consumption of terminal test device first embodiment of the present invention;
Fig. 4 is the high-level schematic functional block diagram of power consumption of terminal test device second embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of power consumption of terminal method of testing.It is power consumption of terminal method of testing of the present invention shown in reference picture 1 The flow chart of one embodiment.
In the present embodiment, the power consumption of terminal method of testing includes:
Step S10, measured terminal receives the debug command that main control terminal is issued, and simulation behaviour is obtained from the debug command Make control information.
Step S20, the measured terminal performs corresponding operation automatically according to the simulated operation control information is got Event, work(of the measured terminal when the Action Events are performed is recorded so that the main control terminal is based on the programmable power supply Consumption.
When power consumption test is carried out to measured terminal, the equipment being mainly concerned with include measured terminal, main control terminal and Programmable power supply, wherein, the programmable power supply that selection is adapted to measured terminal is powered for it, and main control terminal is connected with programmable power supply, with The power consumption information that record programmable power supply gets during power consumption test, such as electric current.Measured terminal includes mobile phone, flat board electricity The mobile terminals such as brain, the operating system of mobile terminal can including Android, IOS and windows phone etc. intelligent operation system System;Main control terminal can be computer equipment.
, it is necessary to obtain the parameter of the Action Events to be tested in advance for main control terminal, and for these are operated The parameter setting of event suitably performs time point, according to Action Events parameter and generation of corresponding execution time point simulation behaviour Make control information, as a kind of implementation method, can in advance write the control information of simulated operation and store in main control terminal.
Specifically, for terminal, main Action Events include touch control operation and button operation, and touch control operation is general Including clicking operation and slide, for these operations, main simulated operation control information for coordinate information and Corresponding key value information;For case operation, main simulated operation information is key value.By taking clicking operation as an example, touch When control screen detects clicking operation, the position coordinates of the clicking operation is obtained, position coordinates is reported into operating system, by operating System is controlled with reference to current interface.Therefore, if to simulate the clicking operation to terminal, it is only necessary to by terminal adjust to Corresponding interface, and the position coordinates that will be pre-set reports to operating system, calls physical layer interface to perform phase by operating system The simulated operation answered.Based on the principle of above-mentioned clicking operation, position coordinates is predefined as Action Events parameter, and by surveying Examination personnel set the time point for performing the operation by main control terminal, and the execution time point that will be set closes with the Action Events parameter Simulated operation control information is stored as after connection, and in power consumption test, is passed through debug command and is issued to measured terminal.
Specifically, step S20 can include following refinement step:
The measured terminal obtains Action Events parameter from the simulated operation control information, and with the operation thing Part parameter corresponding execution time point;
According to the order at corresponding execution time point, successively when corresponding execution time point is reached according to the behaviour for getting Make event argument and perform corresponding Action Events.
When measured terminal receives debug command, simulated operation control information is obtained, Action Events are analyzed and acquired by it Parameter and corresponding execution time point, when arrival performs time point, performed according to corresponding Action Events parameter corresponding Action Events.As above-mentioned clicking operation, the position coordinates that measured terminal will get report to operating system, realize to clicking on behaviour The simulation of work.It should be noted that the simulated operation control information in method in the present embodiment is not limited to independent operation Event, or a series of continuous multiple Action Events, for example, can be the point set according to regular hour order Operation, slide etc. are hit, measured terminal only needs to be performed successively according to the execution time point for setting.May be appreciated It is for clicking operation, single-click operation and double click operation to be divided into again, double click operation needs double within a certain period of time Report same position coordinates.
In this embodiment, main control terminal, can be between measured terminal when debug command is issued to measured terminal Debug command connection is set up, that is, sets up USB connections.After USB connections are set up between main control terminal and measured terminal, can be automatic Initiated to measured terminal charge, therefore, in order to avoid the influence charged for power consumption test, before Action Events are performed, Need first to disconnect USB connections.In other examples, if being not turned off debug command connection during test, Later stage needs to carry out error concealment treatment to the power consumption of programmable power supply record.
Or, in other implementations, by test terminal record Action Events parameter be uploaded to main control terminal with Used in test.Specifically, before step S10, the power consumption of terminal method of testing is further comprising the steps of:
The measured terminal when touch control operation and/or button operation is detected, based on the touch control operation and/or button Operation generation Action Events parameter;
The Action Events parameter is uploaded to the main control terminal, so that the main control terminal is according to receiving Action Events parameter, and for the execution time point of the Action Events parameter configuration generates simulated operation control information.
Measured terminal can be operated by tester according to default Action Events, for example touch control operation or Button operation etc., measured terminal is uploaded to main control terminal according to the Action Events generation Action Events parameter for detecting.For example, The order of the position coordinates that will be got and the position coordinates for getting, is exactly continuous multiple for slide Position coordinates constitutes the sliding trace of slide in order.Need upload is exactly continuous multiple position coordinateses.Master control end It it is its configuration corresponding execution time point after termination receives these Action Events parameters.
Further, it is described before the step of generating Action Events parameter based on the touch control operation and/or button operation Power consumption of terminal method of testing also includes step:
The measured terminal when touch control operation and/or button operation is detected, judge the measured terminal it is current whether In reference record pattern;
If the measured terminal is currently at reference record pattern, performs and grasped based on the touch control operation and/or button The step of making generation Action Events parameter.
It is mobile phone arrange parameter logging mode, the touch control operation and/or button for only being detected under reference record pattern Operation, measured terminal can just carry out the acquisition and upload of Action Events parameter.
The power consumption of terminal method of testing that the present embodiment is proposed, when power consumption test is carried out to measured terminal, by master control end Hold the debug command for being issued to measured terminal and carrying simulated operation control information, measured terminal when debug command is received, Simulated operation control information is obtained from debug command, and performs Action Events therein, during Action Events are performed, By programmable power supply for measured terminal is powered, main control terminal is connected with programmable power supply and is existed based on programmable power supply record measured terminal Power consumption during Action Events is performed, during this power consumption test, it is not necessary to which artificial manipulates to measured terminal, and It is that simulated operation control information is issued by main control terminal, measured terminal only needs to automatically be performed according to simulated operation control information Corresponding Action Events, it is to avoid due to the error that human factor is brought, improve the degree of accuracy of power consumption of terminal test.
The second embodiment of power consumption of terminal method of testing of the present invention is proposed based on first embodiment.Shown in reference picture 2, at this In embodiment, step S20 includes following refinement step:
Step S21, the measured terminal obtains Action Events parameter from the simulated operation control information, and with institute State Action Events parameter corresponding execution time point;
Step S22, according to the order at corresponding execution time point, successively when corresponding execution time point is reached according to obtaining The Action Events parameter got performs corresponding Action Events.
Measured terminal is set up with the main control terminal and is adjusted during the debug command that the main control terminal is issued is received Examination order connection;The power consumption of terminal method of testing also includes:
Step S23, after the Action Events parameter and the execution time point is got, detects the measured terminal Whether the debug command between the main control terminal is connected and disconnects;
If detecting the debug command connection to disconnect, rapid S22 is performed;
Step S30, if detect the debug command connection being not turned off, output disconnects the debug command connection Prompt message.
Due to carrying out when issuing of debug command, debug command connection is established between main control terminal and measured terminal, Under this connected mode, main control terminal can be initiated to charge from trend measured terminal, charging current be produced during charging, due to entering , it is necessary to electric current when performing Action Events to measured terminal simulation is monitored during row power consumption test, therefore, in order to avoid being subject to The influence of charging current disconnects, it is necessary to debug command is connected, therefore, get Action Events parameter and perform time point it Afterwards, whether the debug command connection between detection measured terminal and main control terminal disconnects, if so, prompt message is then exported, to carry Show that tester disconnects the connection, if detecting, the connection is already off, when arrival performs time point, execution operates thing Part is carrying out power consumption test.
The present invention also proposes a kind of power consumption of terminal test device.
It is the high-level schematic functional block diagram of power consumption of terminal test device first embodiment of the present invention shown in reference picture 3.
In this embodiment, the power consumption of terminal test device includes:
Data obtaining module 10, for receiving the debug command that main control terminal is issued, mould is obtained from the debug command Intend control information operation;
Event execution module 20, for according to the simulated operation control information execution Action Events are got, for institute State main control terminal and power consumption of the measured terminal when the Action Events are performed is recorded based on the programmable power supply.
When power consumption test is carried out to measured terminal, the equipment being mainly concerned with include measured terminal, main control terminal and Programmable power supply, wherein, the programmable power supply that selection is adapted to measured terminal is powered for it, and main control terminal is connected with programmable power supply, with The power consumption information that record programmable power supply gets during power consumption test, such as electric current.Measured terminal includes mobile phone, flat board electricity The mobile terminals such as brain, the operating system of mobile terminal can including Android, IOS and windows phone etc. intelligent operation system System;Main control terminal can be computer equipment.
, it is necessary to obtain the parameter of the Action Events to be tested in advance for main control terminal, and for these are operated The parameter setting of event suitably performs time point, according to Action Events parameter and generation of corresponding execution time point simulation behaviour Make control information, as a kind of implementation method, can in advance write the control information of simulated operation and store in main control terminal.
Specifically, for terminal, main Action Events include touch control operation and button operation, and touch control operation is general Including clicking operation and slide, for these operations, main simulated operation control information for coordinate information and Corresponding key value information;For case operation, main simulated operation information is key value.By taking clicking operation as an example, touch When control screen detects clicking operation, the position coordinates of the clicking operation is obtained, position coordinates is reported into operating system, by operating System is controlled with reference to current interface.Therefore, if to simulate the clicking operation to terminal, it is only necessary to by terminal adjust to Corresponding interface, and the position coordinates that will be pre-set reports to operating system, calls physical layer interface to perform phase by operating system The simulated operation answered.Based on the principle of above-mentioned clicking operation, position coordinates is predefined as Action Events parameter, and by surveying Examination personnel set the time point for performing the operation by main control terminal, and the execution time point that will be set closes with the Action Events parameter Simulated operation control information is stored as after connection, and in power consumption test, is passed through debug command and is issued to measured terminal.Specifically Ground, event execution module 20 is included with lower unit:
Parameter acquiring unit, for from the simulated operation control information obtain Action Events parameter, and with it is described Action Events parameter corresponding execution time point;
Event execution unit, for the order according to corresponding execution time point, reaches the corresponding execution time successively Corresponding Action Events are performed according to the Action Events parameter for getting during point.
When measured terminal receives debug command, parameter acquiring unit obtains simulated operation control information, it is parsed and is obtained Action Events parameter and corresponding execution time point are got, when arrival performs time point, event execution unit is according to correspondence Action Events parameter perform corresponding Action Events.Such as above-mentioned clicking operation, on the position coordinates that measured terminal will get Report realizes the simulation to clicking operation to operating system.It should be noted that the simulated operation control information in the present embodiment is simultaneously Be not limited to a series of independent Action Events, or continuous multiple Action Events, for example can be according to it is certain when Between the clicking operation, the slide that sequentially set etc., measured terminal only needs to be performed successively according to the execution time point for setting .It is understood that for clicking operation, single-click operation and double click operation are divided into again, double click operation is needed one Fix time and interior double report same position coordinates.
In this embodiment, main control terminal, can be between measured terminal when debug command is issued to measured terminal Debug command connection is set up, that is, sets up USB connections.After USB connections are set up between main control terminal and measured terminal, can be automatic Initiated to measured terminal charge, therefore, in order to avoid the influence charged for power consumption test, before Action Events are performed, Need first to disconnect USB connections.In other examples, if being not turned off debug command connection during test, Later stage needs to carry out error concealment treatment to the power consumption of programmable power supply record.
Or, in other implementations, by test terminal record Action Events parameter be uploaded to main control terminal with Used in test.Specifically, the power consumption of terminal test device also includes:
Parameter generation module, for when touch control operation and/or button operation is detected, based on the touch control operation and/ Or button operation generation Action Events parameter;
Parameter uploading module, for the Action Events parameter to be uploaded into the main control terminal, for the master control end Simulated according to the Action Events parameter for receiving, and for the execution time point of the Action Events parameter configuration generates at end Control information operation.
Measured terminal can be operated by tester according to default Action Events, for example touch control operation or Button operation etc., measured terminal is uploaded to main control terminal according to the Action Events generation Action Events parameter for detecting.For example, will The order of the position coordinates for getting and the position coordinates for getting, is exactly continuous multiple position for slide Put the sliding trace that coordinate constitutes slide in order.Need upload is exactly continuous multiple position coordinateses.Main control terminal It it is its configuration corresponding execution time point after receiving these Action Events parameters.
Further, power consumption of terminal test device also includes:
Mode decision module, for when touch control operation and/or button operation is detected, judging that the measured terminal is current Whether reference record pattern is in;
Parameter generation module is additionally operable to:If the measured terminal is currently at reference record pattern, based on the touch-control Operation and/or button operation generation Action Events parameter.
It is mobile phone arrange parameter logging mode, the touch control operation and/or button for only being detected under reference record pattern Operation, measured terminal can just carry out the acquisition and upload of Action Events parameter.
The power consumption of terminal test device that the present embodiment is proposed, when power consumption test is carried out to measured terminal, by master control end Hold the debug command for being issued to measured terminal and carrying simulated operation control information, measured terminal when debug command is received, Simulated operation control information is obtained from debug command, and performs Action Events therein, during Action Events are performed, By programmable power supply for measured terminal is powered, main control terminal is connected with programmable power supply and is existed based on programmable power supply record measured terminal Power consumption during Action Events is performed, during this power consumption test, it is not necessary to which artificial manipulates to measured terminal, and It is that simulated operation control information is issued by main control terminal, measured terminal only needs to automatically be performed according to simulated operation control information Corresponding Action Events, it is to avoid due to the error that human factor is brought, improve the degree of accuracy of power consumption of terminal test.
The second embodiment of power consumption of terminal test device of the present invention is proposed based on first embodiment.Shown in reference picture 4, at this In embodiment, measured terminal is set up during the debug command that the main control terminal is issued is received with the main control terminal Debug command is connected.
The power consumption of terminal test device also includes connection detection module 30 and message output module 40.
Connection detection module 30 is used for:After the Action Events parameter and the execution time point is got, detection Whether the debug command connection between the measured terminal and the main control terminal disconnects;
Event execution module 20 is additionally operable to:If detecting the debug command connection to disconnect, during according to corresponding execution Between the order put, successively when corresponding execution time point is reached, corresponding behaviour is performed according to the Action Events parameter that gets Make event;
Message output module 40 is used for:If detecting the debug command connection to be not turned off, output disconnects the tune The prompt message of examination order connection.
Due to carrying out when issuing of debug command, debug command connection is established between main control terminal and measured terminal, Under this connected mode, main control terminal can be initiated to charge from trend measured terminal, charging current be produced during charging, due to entering , it is necessary to electric current when performing Action Events to measured terminal simulation is monitored during row power consumption test, therefore, in order to avoid being subject to The influence of charging current disconnects, it is necessary to debug command is connected, therefore, get Action Events parameter and perform time point it Afterwards, whether the debug command connection between detection measured terminal and main control terminal disconnects, if so, prompt message is then exported, to carry Show that tester disconnects the connection, if detecting, the connection is already off, when arrival performs time point, execution operates thing Part is carrying out power consumption test.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to contain the non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also include other key elements being not expressly set out, or also include for this process, method, article or device institute are intrinsic Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in the process of key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably implementation method.Based on such understanding, technical scheme is substantially done to prior art in other words The part for going out contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used to so that a station terminal equipment (can be mobile phone, computer, cloud End server or network equipment etc.) method that performs each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of power consumption of terminal method of testing, it is characterised in that by programmable power supply for measured terminal is powered, main control terminal with it is described Programmable power supply is connected, and the power consumption of terminal method of testing includes:
Measured terminal receives the debug command that main control terminal is issued, and simulated operation control information is obtained from the debug command;
The measured terminal performs corresponding Action Events automatically according to the simulated operation control information is got, for described Main control terminal is based on the programmable power supply and records power consumption of the measured terminal when the Action Events are performed.
2. power consumption of terminal method of testing according to claim 1, it is characterised in that the measured terminal is according to getting Stating the step of simulated operation control information performs corresponding Action Events includes:
The measured terminal obtains Action Events parameter from the simulated operation control information, and joins with the Action Events Number corresponding execution time point;
According to the order at corresponding execution time point, successively when corresponding execution time point is reached according to the operation thing for getting Part parameter performs corresponding Action Events.
3. power consumption of terminal method of testing according to claim 2, it is characterised in that the measured terminal is receiving the master During the debug command that control terminal is issued, set up debug command with the main control terminal and be connected;The power consumption of terminal test Method also includes:
After the Action Events parameter and the execution time point is got, the measured terminal and the master control end are detected Whether the debug command connection between end disconnects;
If detecting the debug command connection to disconnect, the order according to corresponding execution time point is performed, reached successively During corresponding execution time point, according to the step of the Action Events parameter execution corresponding Action Events for getting;
If detecting the debug command connection to be not turned off, output disconnects the prompt message of the debug command connection.
4. the power consumption of terminal method of testing according to claim 1 or 2 or 3, it is characterised in that the measured terminal receives master The debug command that control terminal is issued, from the debug command obtain simulated operation control information the step of before, the terminal Power consumption test method also includes:
The measured terminal when touch control operation and/or button operation is detected, based on the touch control operation and/or button operation Generation Action Events parameter;
The Action Events parameter is uploaded to the main control terminal, so that the main control terminal is according to the operation for receiving Event argument, and for the execution time point of the Action Events parameter configuration generates simulated operation control information.
5. power consumption of terminal method of testing according to claim 4, it is characterised in that it is described based on the touch control operation and/ Or before the step of button operation generation Action Events parameter, the power consumption of terminal method of testing also includes step:
The measured terminal judges whether the measured terminal is currently in when touch control operation and/or button operation is detected Reference record pattern;
If the measured terminal is currently at reference record pattern, performs and given birth to based on the touch control operation and/or button operation The step of into Action Events parameter.
6. a kind of power consumption of terminal test device, it is characterised in that by programmable power supply for measured terminal is powered, main control terminal with it is described Programmable power supply is connected, and the power consumption of terminal test device includes:
Data obtaining module, for receiving the debug command that main control terminal is issued, simulated operation is obtained from the debug command Control information;
Event execution module, for according to the simulated operation control information execution Action Events are got, for the master control Terminal is based on the programmable power supply and records power consumption of the measured terminal when the Action Events are performed.
7. power consumption of terminal test device according to claim 6, it is characterised in that the event execution module includes:
Parameter acquiring unit, for from the simulated operation control information obtain Action Events parameter, and with the operation Event argument corresponding execution time point;
Event execution unit, for the order according to corresponding execution time point, successively when corresponding execution time point is reached Corresponding Action Events are performed according to the Action Events parameter for getting.
8. power consumption of terminal test device according to claim 7, it is characterised in that the measured terminal is receiving the master During the debug command that control terminal is issued, set up debug command with the main control terminal and be connected;The power consumption of terminal test Device also includes connection detection module and message output module, wherein, the connection detection module is used for:Getting the behaviour Make event argument and after the execution time point, detect the debugging life between the measured terminal and the main control terminal Whether order connection disconnects;
The event execution module is additionally operable to:If detecting the debug command connection to disconnect, according to the corresponding execution time The order of point, successively when corresponding execution time point is reached, corresponding operation is performed according to the Action Events parameter for getting Event;
Described information output module is used for:If detecting the debug command connection to be not turned off, output disconnects the debugging Order the prompt message of connection.
9. the power consumption of terminal test device according to claim 6 or 7 or 8, it is characterised in that the power consumption of terminal test dress Putting also includes:
Parameter generation module, for when touch control operation and/or button operation is detected, based on the touch control operation and/or presses Key operation generates Action Events parameter;
Parameter uploading module, for the Action Events parameter to be uploaded into the main control terminal, for the main control terminal root According to the Action Events parameter for receiving, and for the execution time point of the Action Events parameter configuration generates simulated operation Control information.
10. power consumption of terminal test device according to claim 9, it is characterised in that the power consumption of terminal test device is also Including:
Mode decision module, for when touch control operation and/or button operation is detected, judge the measured terminal it is current whether In reference record pattern;
The parameter generation module is additionally operable to:If the measured terminal is currently at reference record pattern, based on the touch-control Operation and/or button operation generation Action Events parameter.
CN201611271106.0A 2016-12-30 2016-12-30 Power consumption of terminal method of testing and device Withdrawn CN106776229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611271106.0A CN106776229A (en) 2016-12-30 2016-12-30 Power consumption of terminal method of testing and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611271106.0A CN106776229A (en) 2016-12-30 2016-12-30 Power consumption of terminal method of testing and device

Publications (1)

Publication Number Publication Date
CN106776229A true CN106776229A (en) 2017-05-31

Family

ID=58951978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611271106.0A Withdrawn CN106776229A (en) 2016-12-30 2016-12-30 Power consumption of terminal method of testing and device

Country Status (1)

Country Link
CN (1) CN106776229A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107515811A (en) * 2017-08-31 2017-12-26 北京麒麟合盛网络技术有限公司 A kind of method and apparatus for obtaining application program power consumption
CN110650237A (en) * 2019-09-11 2020-01-03 捷开通讯(深圳)有限公司 Power consumption testing device and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156308A (en) * 2014-07-29 2014-11-19 南京大学 Mobile application testing method on basis of playback of execution trace of users
CN105785113A (en) * 2014-12-25 2016-07-20 展讯通信(上海)有限公司 System and method for automatically testing power consumption

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156308A (en) * 2014-07-29 2014-11-19 南京大学 Mobile application testing method on basis of playback of execution trace of users
CN105785113A (en) * 2014-12-25 2016-07-20 展讯通信(上海)有限公司 System and method for automatically testing power consumption

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107515811A (en) * 2017-08-31 2017-12-26 北京麒麟合盛网络技术有限公司 A kind of method and apparatus for obtaining application program power consumption
CN110650237A (en) * 2019-09-11 2020-01-03 捷开通讯(深圳)有限公司 Power consumption testing device and system

Similar Documents

Publication Publication Date Title
CN107678960B (en) Intelligent ammeter software black box testing system and method
CN105227939B (en) Inter-vehicle information system testboard bay and test method
CN103578568B (en) The performance test methods of solid state hard disc and device
CN107870271A (en) Automated testing method and device
CN104007348B (en) Automatization test system and method thereof
CN104375934B (en) Method for testing reliability of Android mobile phone software
CN112817872A (en) Development test system and method
CN101272422A (en) Mobile phone automatized test method
CN105187608B (en) The method and apparatus of application program power consumption on a kind of acquisition mobile terminal
CN102393834B (en) A kind of method of testing of digital man-machine interface of nuclear power station and system
CN110568339A (en) Instrument automatic testing system and method based on Internet of things
CN108139449A (en) For the improved quality control testing systems and application method of portable charging apparatus
CN106841708A (en) A kind of method of testing of quick charger, test fixture and system
CN106776165A (en) Server performance method of testing and system
CN104216823B (en) A kind of automated testing method and master control set
CN106776229A (en) Power consumption of terminal method of testing and device
CN106686179A (en) Mobile phone power consumption testing system and method based on test automation
CN104614663B (en) Detection tester for electronic circuit fault and method
CN105717472A (en) Electric energy quality monitoring terminal simulator
CN105955918A (en) Experimental multi-instrument system
CN111044811A (en) Interphone base charging test method
CN109426612B (en) Automatic use case development system based on intelligent machine learning
CN107356882B (en) A kind of PD power supply product ageing testing method
CN102058430A (en) Automatic test equipment (ATE) of multi-parameter monitor and test method thereof
CN114564381A (en) Complete machine production and test method for Internet of things equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20170531