CN105786698A - Script-based power consumption automatic test system for mobile terminal - Google Patents

Script-based power consumption automatic test system for mobile terminal Download PDF

Info

Publication number
CN105786698A
CN105786698A CN201410844268.3A CN201410844268A CN105786698A CN 105786698 A CN105786698 A CN 105786698A CN 201410844268 A CN201410844268 A CN 201410844268A CN 105786698 A CN105786698 A CN 105786698A
Authority
CN
China
Prior art keywords
test
power consumption
script
terminal
mobile 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.)
Pending
Application number
CN201410844268.3A
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.)
Spreadtrum Communications Shanghai Co Ltd
Spreadtrum Communications Inc
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201410844268.3A priority Critical patent/CN105786698A/en
Publication of CN105786698A publication Critical patent/CN105786698A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention relates to the technical field of electronic communications, and specifically relates to a power consumption automatic test system for a mobile terminal. The power consumption automatic test system for the mobile terminal based on a script generates a test script at a computer side according to test cases, each test case corresponds to one test script, a tested terminal communicates with the computer side, and the following operations are executed: step 1, calling the test script by the tested terminal, and running the test script under the control of the computer side; step 2, setting a test environment of the tested terminal under the effect of the test script; step 3, executing a power consumption test by the tested terminal, and recording test data in the testing process; and step 4, calculating the power consumption according to the test data. According to the script-based power consumption automatic test system for the mobile terminal provided by the invention, the computer side is adopted to control the scripts which are executed in the tested terminal, the computer side is informed at a critical time point of power consumption measurement through the scripts, and the business power consumption and sleep power consumption of the tested terminal are calculated and obtained through information transmitted through the scripts at the critical time point.

Description

Mobile terminal power consumption automatization test system based on script
Technical field
The present invention relates to technical field of electronic communication, be specifically related to a kind of mobile terminal power consumption automatization test system.
Background technology
In developing intellectual resource mobile terminal product process, version iteration is very frequent, it is typically in needing to carry out power consumption test after version makes, to be confirmed whether to have relevant software issue to exist, at present to manually set test condition then manually recorded test data implementation, also have with application program do test condition preset, the then scheme of manually recorded test data.To sum up, existing power consumption test is substantially based on manual test, it is impossible to departing from the manual intervention of tester, cause that test process is loaded down with trivial details, test the length that expends time in, the efficiency comparison of test is low, it is impossible to meet the demands such as multi version concurrent test.
Summary of the invention
It is an object of the invention to, it is provided that a kind of mobile terminal power consumption automatization test system based on script, solve above technical problem;
Technical problem solved by the invention can realize by the following technical solutions:
Based on the mobile terminal power consumption automatization test system of script, wherein, generate test script according to test case in a computer terminal, the corresponding test script of each test case, measured terminal operation following with described computer terminal communication execution:
Step 1, described measured terminal calls described test script, and runs described test script under the control of described computer terminal;
Step 2, arranges the test environment of described measured terminal under the effect of described test script;
Step 3, described measured terminal performs power consumption test, and data tested in record in test process;
Step 4, calculates power consumption according to described test data.
The present invention is with script edit test case, in the way of simulating manual operation measured terminal, it is achieved presets test scene, power consumption test, record power consumption data and terminates the operations such as power consumption test.
The mobile terminal power consumption automatization test system based on script of the present invention, before step 1, described computer terminal checks the state of described measured terminal, when described measured terminal is non-wake-up states, produces wake command to wake described measured terminal up.
The mobile terminal power consumption automatization test system based on script of the present invention, described computer terminal and described measured terminal pass through serial communication.
The mobile terminal power consumption automatization test system based on script of the present invention, specifically comprising the following steps that of described step 3
Step 31, the test of described measured terminal sending power consumption starts message to described computer terminal in order to record the sart point in time of described power consumption test;
Step 32, described computer terminal controls the test process of described measured terminal and records test data in test process;
Step 32, when described test script performs to terminate, described measured terminal sends test end to described computer terminal in order to record the end time point of described power consumption test.
The mobile terminal power consumption automatization test system based on script of the present invention, also include step 33, postponing the setting time after described test end, described measured terminal sends sleep message to described computer terminal, in order to record the sart point in time of described sleep message.
The mobile terminal power consumption automatization test system based on script of the present invention, puts, according to described sart point in time and described end time, the time period formed in described step 4 and determines test data, and calculate power consumption.
The mobile terminal power consumption automatization test system based on script of the present invention, according to the sleep period setting time composition of the sart point in time of described sleep message and test case in described step 4, it is determined that test data also calculate sleep power consumption.
The mobile terminal power consumption automatization test system based on script of the present invention, including multiple test cases, repeats step 1 and performs each test case to step 4 with order.
The mobile terminal power consumption automatization test system based on script of the present invention, described measured terminal is the mobile phone based on Android platform.
Beneficial effect: owing to adopting above technical scheme, the present invention adopts computer terminal to control execution script in measured terminal, notify computer terminal at the material time point measuring power consumption by script, calculated business power consumption and the sleep power consumption of acquisition measured terminal by script in the information that material time point sends.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of the present invention;
Fig. 2 is the method flow diagram of the step 3 of the present invention;
Fig. 3 is the system construction drawing of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the premise not making creative work, broadly fall into the scope of protection of the invention.
It should be noted that when not conflicting, the embodiment in the present invention and the feature in embodiment can be mutually combined.
Below in conjunction with the drawings and specific embodiments, the invention will be further described, but not as limiting to the invention.
With reference to Fig. 1, Fig. 2, Fig. 3, based on the mobile terminal power consumption automatization test system of script, wherein, test script is generated according to test case in a computer terminal, the corresponding test script of each test case, measured terminal operation following with computer terminal communication execution:
Step 1, measured terminal calls test script, and under the control of computer terminal testing results script;
Step 2, arranges the test environment of measured terminal under the effect of test script;
Step 3, measured terminal performs power consumption test, and data tested in record in test process;
Step 4, calculates power consumption according to test data.
The present invention is with script edit test case, in the way of simulating manual operation measured terminal, realize presetting test scene, power consumption test, record power consumption data and terminating the operations such as power consumption test, present invention achieves the full-automation of power consumption test, make power consumption test process departing from the operation of tester, compare and be performed manually by power consumption test, save manpower and time cost and improve the accuracy of test result.
The mobile terminal power consumption automatization test system based on script of the present invention, before step 1, computer terminal checks the state of measured terminal, when measured terminal is non-wake-up states, produces wake command to wake measured terminal up.
The mobile terminal power consumption automatization test system based on script of the present invention, computer terminal and measured terminal pass through serial communication.The present invention can pass through to operate at the state of the TT&C software inspection measured terminal of computer terminal, and is run by the script on serial ports control mobile terminal according to test case configuration file, and records power consumption data.
The mobile terminal power consumption automatization test system based on script of the present invention, specifically comprising the following steps that of step 3
Step 31, the test of measured terminal sending power consumption starts message to computer terminal in order to record the sart point in time of power consumption test;
Step 32, computer terminal controls the test process of measured terminal and records test data in test process;
Step 32, when test script performs to terminate, measured terminal sends test end to computer terminal in order to record the end time point of power consumption test.
The mobile terminal power consumption automatization test system based on script of the present invention, also includes step 33, postpones the setting time after test end, and measured terminal sends sleep message to computer terminal, in order to record the sart point in time of sleep message.
The mobile terminal power consumption automatization test system based on script of the present invention, determines test data according to the time period of sart point in time and end time point composition in step 4, and calculates power consumption.
The mobile terminal power consumption automatization test system based on script of the present invention, according to the sleep period setting time composition of the sart point in time of sleep message and test case in step 4, it is determined that test data also calculate sleep power consumption.
The present invention adopts computer terminal to control execution script in measured terminal, notifies computer terminal at the material time point measuring power consumption by script, is calculated business power consumption and the sleep power consumption of acquisition measured terminal in the information that material time point sends by script.When generally the use-case time in waiting test case configuration file terminates, TT&C software calculates power consumption according to the current values recorded according to the information received after use-case terminates.
The mobile terminal power consumption automatization test system based on script of the present invention, it is possible to include multiple test case, repeats step 1 and performs each test case to step 4 with order.The present invention can according to use-case configuration file, perform a plurality of test case in order, write out according to product software version when test case and full-automatic power consumption test after with case script, can be implemented, capture the current data of whole test process, calculate business power consumption and sleep power consumption according to the information that script sends.
The mobile terminal power consumption automatization test system based on script of the present invention, measured terminal can be, but not limited to the mobile phone based on Android platform.
The foregoing is only preferred embodiment of the present invention; not thereby restriction embodiments of the present invention and protection domain; to those skilled in the art; the equivalent replacement done by all utilizations description of the present invention and diagramatic content and the obtained scheme of apparent change should be can appreciate that, all should be included in protection scope of the present invention.

Claims (9)

1. based on the mobile terminal power consumption automatization test system of script, it is characterized in that, test script is generated in a computer terminal according to test case, the corresponding test script of each test case, measured terminal operation following with described computer terminal communication execution:
Step 1, described measured terminal calls described test script, and runs described test script under the control of described computer terminal;
Step 2, arranges the test environment of described measured terminal under the effect of described test script;
Step 3, described measured terminal performs power consumption test, and data tested in record in test process;
Step 4, calculates power consumption according to described test data.
2. the mobile terminal power consumption automatization test system based on script according to claim 1, it is characterized in that, before step 1, described computer terminal checks the state of described measured terminal, when described measured terminal is non-wake-up states, produce wake command to wake described measured terminal up.
3. the mobile terminal power consumption automatization test system based on script according to claim 1, it is characterised in that described computer terminal and described measured terminal pass through serial communication.
4. the mobile terminal power consumption automatization test system based on script according to claim 1, it is characterised in that specifically comprising the following steps that of described step 3
Step 31, the test of described measured terminal sending power consumption starts message to described computer terminal in order to record the sart point in time of described power consumption test;
Step 32, described computer terminal controls the test process of described measured terminal and records test data in test process;
Step 33, when described test script performs to terminate, described measured terminal sends test end to described computer terminal in order to record the end time point of described power consumption test.
5. the mobile terminal power consumption automatization test system based on script according to claim 4, it is characterized in that, also include step 34, the setting time is postponed after described test end, described measured terminal sends sleep message to described computer terminal, in order to record the sart point in time of described sleep message.
6. the mobile terminal power consumption automatization test system based on script according to claim 4, it is characterised in that put, according to described sart point in time and described end time, the time period formed in described step 4 and determine test data, and calculate power consumption.
7. the mobile terminal power consumption automatization test system based on script according to claim 5, it is characterized in that, according to the sleep period setting time composition of the sart point in time of described sleep message and test case in described step 4, it is determined that test data also calculate sleep power consumption.
8. the mobile terminal power consumption automatization test system based on script according to claim 1, it is characterised in that include multiple test case, repeats step 1 and performs each test case to step 4 with order.
9. the mobile terminal power consumption automatization test system based on script according to claim 1, it is characterised in that described measured terminal is the mobile phone based on Android platform.
CN201410844268.3A 2014-12-25 2014-12-25 Script-based power consumption automatic test system for mobile terminal Pending CN105786698A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410844268.3A CN105786698A (en) 2014-12-25 2014-12-25 Script-based power consumption automatic test system for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410844268.3A CN105786698A (en) 2014-12-25 2014-12-25 Script-based power consumption automatic test system for mobile terminal

Publications (1)

Publication Number Publication Date
CN105786698A true CN105786698A (en) 2016-07-20

Family

ID=56389174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410844268.3A Pending CN105786698A (en) 2014-12-25 2014-12-25 Script-based power consumption automatic test system for mobile terminal

Country Status (1)

Country Link
CN (1) CN105786698A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502886A (en) * 2016-10-13 2017-03-15 上海华虹集成电路有限责任公司 Low-power consumption bluetooth test system based on TCL
CN106502860A (en) * 2016-10-14 2017-03-15 青岛海信移动通信技术股份有限公司 A kind of method and device for obtaining power consumption information
CN109376045A (en) * 2018-11-01 2019-02-22 郑州云海信息技术有限公司 A kind of BIOS parameter automatization verifying device and verification method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638603A (en) * 2011-02-11 2012-08-15 上海闻泰电子科技有限公司 Method for automatically testing power consumption of mobile phone through simulation key
CN103179241A (en) * 2013-03-08 2013-06-26 百度在线网络技术(北京)有限公司 Method and system for automatically testing power consumption of mobile terminal
CN103884905A (en) * 2012-12-20 2014-06-25 ***通信集团公司 Method, apparatus and system for testing power consumption of terminal device service application
WO2014137014A1 (en) * 2013-03-08 2014-09-12 (주)인프라웨어테크놀러지 Auto-verification method of smart application using terminal automatic execution control
CN104182337A (en) * 2014-08-15 2014-12-03 广东欧珀移动通信有限公司 Power consumption testing method and device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638603A (en) * 2011-02-11 2012-08-15 上海闻泰电子科技有限公司 Method for automatically testing power consumption of mobile phone through simulation key
CN103884905A (en) * 2012-12-20 2014-06-25 ***通信集团公司 Method, apparatus and system for testing power consumption of terminal device service application
CN103179241A (en) * 2013-03-08 2013-06-26 百度在线网络技术(北京)有限公司 Method and system for automatically testing power consumption of mobile terminal
WO2014137014A1 (en) * 2013-03-08 2014-09-12 (주)인프라웨어테크놀러지 Auto-verification method of smart application using terminal automatic execution control
CN104182337A (en) * 2014-08-15 2014-12-03 广东欧珀移动通信有限公司 Power consumption testing method and device and mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502886A (en) * 2016-10-13 2017-03-15 上海华虹集成电路有限责任公司 Low-power consumption bluetooth test system based on TCL
CN106502860A (en) * 2016-10-14 2017-03-15 青岛海信移动通信技术股份有限公司 A kind of method and device for obtaining power consumption information
CN106502860B (en) * 2016-10-14 2019-05-21 青岛海信移动通信技术股份有限公司 A kind of method and device obtaining power consumption information
CN109376045A (en) * 2018-11-01 2019-02-22 郑州云海信息技术有限公司 A kind of BIOS parameter automatization verifying device and verification method
CN109376045B (en) * 2018-11-01 2022-02-22 郑州云海信息技术有限公司 Automatic verification device and verification method for BIOS (basic input output System) parameters

Similar Documents

Publication Publication Date Title
CN105912370B (en) Control method and device for background application program of mobile terminal and mobile terminal
CN104424092A (en) Page loading time length testing method and device
CN102521118B (en) Automatic testing method of Android program
CN104092835A (en) Power consumption anomaly detection method and device for mobile terminal
CN105608001A (en) Test method and test platform based on background system service or interface
CN103268289B (en) Record the method and system of application testing script on mobile terminals
CN105785113A (en) System and method for automatically testing power consumption
CN105786698A (en) Script-based power consumption automatic test system for mobile terminal
CN104572422A (en) Memory monitoring achievement method based on startup and shutdown of Linux system
CN104020763A (en) Automatic test method and system for input and output interfaces
CN105791497A (en) Automatic testing system of power consumption of mobile terminal and working method of automatic testing system
CN104461679A (en) Method for binding network card to CPU automatically
CN105260275A (en) Power on/off testing method applicable to automatic configuration partition of high-end host computer
CN105279092A (en) Software testing method and apparatus
CN104572428A (en) Complicated control testing method based on windows operating system
CN102999252B (en) A kind of method of unlock interface application prestrain, device and terminal
CN105117566B (en) A kind of method and device analyzed PCIe eye patterns
CN103903312A (en) Method and device for executing automatic inspection
CN109558325A (en) A kind of delay statistics method, apparatus and computer readable storage medium
CN106028367B (en) Automatic testing method and system based on CMWrun testing platform
CN104298530A (en) Method for measuring startup time length of electronic device and data processing system
CN103838664A (en) Pressure testing method and device
CN108491483B (en) Method and device for remotely monitoring running state of program
CN102902571B (en) A kind of method and apparatus of Quick stop working procedure
CN105260308A (en) Method and apparatus testing for android terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160720