CN104506661B - A kind of mobile telephone power consumption automatic production generation method based on usage scenario of Remote configuration - Google Patents
A kind of mobile telephone power consumption automatic production generation method based on usage scenario of Remote configuration Download PDFInfo
- Publication number
- CN104506661B CN104506661B CN201510018318.7A CN201510018318A CN104506661B CN 104506661 B CN104506661 B CN 104506661B CN 201510018318 A CN201510018318 A CN 201510018318A CN 104506661 B CN104506661 B CN 104506661B
- Authority
- CN
- China
- Prior art keywords
- configuration
- power consumption
- test
- scene
- mobile phone
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of mobile telephone power consumption automatic production generation methods based on usage scenario of Remote configuration, and the testing process of automation scene is arranged by the ends Web;The ends Web automation scene server generates testing process configuration script and is stored in server hard disc, and mobile phone terminal test program obtains configuration script and the execution of server end by network;After mobile phone terminal receives configuration script, configuration script is parsed according to json formats, and the sequencing occurred in configuration file according to test item executes successively, uses the configuration parameter information in json formats in the process of implementation.The present invention generates testing process configuration script by the testing time of the ends Web Remote configuration scene, test parameter, testing process, and after mobile phone terminal remotely obtains configuration script, automatic execute realizes that mobile telephone power consumption automation generates;Without manual intervention, arbitrary more cell phone apparatus concurrent testings are realized, improve the efficiency of the power consumption generation of mobile phone special scenes and the precision and consistency of power consumption test.
Description
Technical field
The invention belongs to smart mobile phone consumption detection field more particularly to a kind of hands based on usage scenario of Remote configuration
Machine power consumption automatic production generation method.
Background technology
Mobile telephone power consumption test is indispensable part in all mobile phone R&D processes, and main testing mobile phone is different
Under working condition and different usage scenarios, the power consumption situation of the overall power situation and each hardware module of mobile phone.Usually survey
The method of examination mobile telephone power consumption is after tester opens mobile phone manually, and operating handset uses the various fields of mobile phone with analog subscriber
Scape, these scenes include call, video, take pictures, record a video, 3G online, Wifi online, web browsing, file transmit, intensive calculations
Deng.Tester makes mobile phone enter the working condition of scene requirement by manual operation, and number is controlled with power consumption automatic testing software
Word power supply records the current information in this section of scene, to estimate the power consumption information in the scene.It is tested with a test scene
About 8 minutes, a test case calculating about more than 200 of a money mobile phone version needed about 27 hours.It is tested with this test method
One mobile phone version requires a great deal of time cost and human cost, and due to the use of manual operation, necessarily brings behaviour
Make Time Inconsistency, scene inconsistent etc. the artificial error of external environment, one to influence the precision measured and measure
Cause property.
Invention content
The embodiment of the present invention is designed to provide a kind of mobile telephone power consumption automation based on usage scenario of Remote configuration
Production method, it is intended to improve the efficiency of mobile telephone power consumption test.
The invention is realized in this way a kind of mobile telephone power consumption automatic production generation method based on usage scenario of Remote configuration
Include the following steps:Step 1: the testing process of automation scene is arranged by the ends Web, wherein can add, delete, change
Test event and test parameter, wherein the parameter that can be added includes 16 kinds of test scenes and 5 kinds of online scenes;
Step 2: the ends Web automation scene server generates testing process configuration script and is stored in server hard disc,
Mobile phone terminal test program obtains configuration script and the execution of server end by network;
Step 3: after mobile phone terminal receives configuration script, configuration script is parsed according to json formats, and exist according to test item
The sequencing occurred in configuration file executes successively, uses the configuration parameter information in json formats in the process of implementation.
Further, wherein 16 kinds of test scenes include:PI values calculate, image blend calculates, file is read, file
It writes, memory is read, memory is write, TCP network transmissions, UDP network transmissions, FTP network transmissions, http network are transmitted, multimedia audio
It plays, multimedia video plays, multimedia audio acquisition, multimedia video acquires, language is conversed, short message receiving-transmitting.
Further, described 5 kinds online scenes include:Text chat, file upload, web page browsing, Online Video viewing.
The embodiment of the present invention is generated by the testing time of the ends Web Remote configuration scene, test parameter, testing process
Testing process configuration script, it is automatic to execute to realize that the automation of mobile telephone power consumption generates after mobile phone terminal remotely obtains configuration script.
Description of the drawings
Fig. 1 is the flow chart of the power consumption assessment method provided in an embodiment of the present invention based on Remote configuration scene.
Fig. 2 is the structural schematic diagram of the power consumption assessment method provided in an embodiment of the present invention based on Remote configuration scene.
Fig. 3 is the functional configuration figure of the power consumption assessment method provided in an embodiment of the present invention based on Remote configuration scene.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to embodiments, book is sent out
It is bright to be further elaborated.It should be appreciated that specific embodiment described herein is only used to explain this present invention, not
For limiting the present invention.
Below in conjunction with the accompanying drawings and specific embodiment is further described the application principle of the present invention.
Fig. 1 shows the automation power consumption scene test method based on Remote configuration of the present invention, as shown, of the invention
It is achieved in that a kind of mobile telephone power consumption automatic production generation method based on usage scenario of Remote configuration includes the following steps:
S101, the testing process that automation scene is set by the ends Web, wherein can add, delete, change test event
And test parameter, wherein the parameter that can be added includes 16 kinds of test scenes and 5 kinds of online scenes;
The end S102, Web automation scene server generates testing process configuration script and is stored in server hard disc, hand
Generator terminal test program obtains configuration script and the execution of server end by network;
After S103, mobile phone terminal receive configuration script, according to json formats parse configuration script, and according to test item with
It sets the sequencing occurred in file to execute successively, uses the configuration parameter information in json formats in the process of implementation.
Further, wherein 16 kinds of test scenes include:PI values calculate, image blend calculates, file is read, file
It writes, memory is read, memory is write, TCP network transmissions, UDP network transmissions, FTP network transmissions, http network are transmitted, multimedia audio
It plays, multimedia video plays, multimedia audio acquisition, multimedia video acquires, language is conversed, short message receiving-transmitting.
Further, described 5 kinds online scenes include:Text chat, file upload, web page browsing, Online Video viewing.
For power consumption of the accurate mobile phone of reflection comprehensively under various typical scenes, current embodiment require that 15 kinds of checkout areas of simulation
Scape and 10 kinds of typical online scenes:
15 kinds of test scenes include hereafter six class scene:
1) intensive calculations (calculating pi values, image blend etc.)
2) file operation (file is read, file is write)
3) internal memory operation (frequently application, release, reading and writing memory)
4) (TCP, udp protocol send, receive network transmission;The file transmission of HTTP, File Transfer Protocol)
5) multimedia (audio broadcasting, video playing, audio collection, video acquisition)
6) (voice communication, short message receiving-transmitting) is conversed
10 kinds of typical online scenes include hereafter five kinds of scenes under 3G and Wifi both of which respectively:
1) text chat
2) file transmits
3) web page browsing
4) voice and video is conversed
5) video is watched online.
The test for completing 15 kinds of typical scenes and 10 kinds of online scenes, was completed, and only need tester using 30 minutes
After having configured scrnario testing configuration file, same type test can be used directly, be configured without repeating.Simultaneously because one kind is based on
It is not necessarily to manual intervention in the implementation procedure of the power consumption assessment method of Remote configuration scene, then arbitrary more cell phone apparatus may be implemented
Concurrent testing, the power consumption for substantially increasing mobile phone special scenes result from testing efficiency, and improve power consumption test precision and
Consistency.
The operation principle of the present invention is that:
15 kinds of typical case scenes and 10 kinds of online scenes, are integrated in 8 test cases, each test case realizes one
Kind or several scenes test function, can be held by the parameter and time of the ends Web configuration testing use-case come nominative testing use-case
Capable a certain special scenes test function.
1) VideoSence videos dependence test use-case explanation
VideoSence video dependence test use-cases are divided into four scenes:Video acquisition, video playing, audio collection and
Audio plays.It uses cv (video acquisition), pv (video playing), ca (audio collection), pa (audio broadcasting), selection different respectively
Scene carries out corresponding scrnario testing.
Each video acquisition and audio collection cover automatically it is last acquire as a result, collection result is stored in the SD of mobile phone
In card.Video playing and audio broadcasting all carry out under the premise of there are collection result, pay attention to first determining when broadcasting
Corresponding collection result has been saved in SD card.Loop play may be implemented in video playing and audio broadcasting, what simulation played always
Situation.
2) UdpDownSence is based on UDP and downloads use-case explanation
The client (client) of test need set server IP and port numbers (IP where server is checked in attention
Address), client site indicates the IP of server.By constantly recycling the Message Simulation file transmission for receiving server-side and sending
Process.
The application program of server end written in Java, by cycling through the transmission of digital simulation file, client cycle
Data are received, last data can all be covered each time by receiving.After client operates each time, server must carry out again
Start.The program of server end is also placed in same engineering.
3) HttpTransportSence is based on http data transmission use-case explanations
There are two types of the modes for pushing and obtaining resource by Http:Sendget and sendpost.
Client:By get and post two ways cycle request servers, webpage is browsed by Http agreements with simulation
Scene.
Server-side:Using Apache software building Http servers, not by different html page analog subscribers browsings
Same webpage.
4) FtpTransportSence is based on ftp data and generates use-case explanation
Client:The slave server request data recycled by ftp agreements.
Server-side:Using serv-u software building Ftp servers, samples different size of document analog subscriber and pass through ftp
Download various document
5) MemFullSpeedSence memories high speed is read and write-in use-case explanation
An array object is created, realizes reading and write-in to array data.
6) CpuFullSpeedSence processor high speeds calculate use-case explanation
1. the method using series calculates pi values:Pi^2=(1/6) (1+1/2^2+1/3^2+ ...+1/n^2)
2. obtaining desktop picture, picture is scaled, obtains fillet picture, finally obtains the inverted image picture of desktop picture
7) FileIOSence file read-writes use-case explanation
1. the reading and writing of files from sd cards, using the mode read path of absolute path, the path used in code is
sdcard/sample/test.txt
2. realizing reading and writing for file by FileInputSream streams and FileOutPutStream streams.
8) DialerMesSence mobile phone short messages use-case explanation
It is using given telephone number to make a phone call and send short messages all, and the content sent short messages is also given.
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
All any modification, equivalent and improvement etc., should all be included in the protection scope of the present invention made by within refreshing and principle.
Claims (1)
1. a kind of mobile telephone power consumption automatic production generation method based on usage scenario of Remote configuration, which is characterized in that this is remotely matched
The mobile telephone power consumption automatic production generation method based on usage scenario set generates scene by the configuration page face of the ends Web scene server
Execute the configuration file of flow, the ends Android scene executes program and remotely reads configuration file, parse after configuration file content from
Dynamicization executes various usage scenarios, to which the driving mobile phone of automation generates the power consumption under various scenes;
The mobile telephone power consumption automatic production generation method based on usage scenario of the Remote configuration includes the following steps:
Step 1: the testing process of automation scene is arranged by the ends Web, addition deletes, changes test event and test ginseng
Number is seen wherein the parameter that can be added includes 16 kinds of test scenes and text chat, file upload, web page browsing, Online Video
The online scene seen;
Step 2: the ends Web automation scene server generates testing process configuration script and is stored in server hard disc, mobile phone
Test program is held to obtain configuration script and the execution of server end by network;
Step 3: after mobile phone terminal receives configuration script, configuration script is parsed according to json formats, and configuring according to test item
The sequencing occurred in file executes successively, uses the configuration parameter information in json formats in the process of implementation;
16 kinds of test scenes include:PI values calculate, image blend calculates, file is read, file is write, memory is read, memory is write, TCP nets
Network transmission, the transmission of UDP network transmissions, FTP network transmissions, http network, multimedia audio plays, multimedia video plays, is more
Media audio acquisition, multimedia video acquisition, language call, short message receiving-transmitting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510018318.7A CN104506661B (en) | 2015-01-14 | 2015-01-14 | A kind of mobile telephone power consumption automatic production generation method based on usage scenario of Remote configuration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510018318.7A CN104506661B (en) | 2015-01-14 | 2015-01-14 | A kind of mobile telephone power consumption automatic production generation method based on usage scenario of Remote configuration |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104506661A CN104506661A (en) | 2015-04-08 |
CN104506661B true CN104506661B (en) | 2018-09-04 |
Family
ID=52948376
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510018318.7A Active CN104506661B (en) | 2015-01-14 | 2015-01-14 | A kind of mobile telephone power consumption automatic production generation method based on usage scenario of Remote configuration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104506661B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107948640B (en) * | 2017-12-19 | 2020-09-25 | 百度在线网络技术(北京)有限公司 | Video playing test method and device, electronic equipment and storage medium |
CN109688599B (en) * | 2019-01-11 | 2022-04-22 | 北京华力创通科技股份有限公司 | Terminal tester packet domain scheduling method and device |
CN110347559A (en) * | 2019-07-18 | 2019-10-18 | 浪潮商用机器有限公司 | A kind of test method of server energy consumption, device, equipment and readable storage medium storing program for executing |
CN111737157B (en) * | 2020-08-10 | 2020-12-01 | 北京志翔科技股份有限公司 | Concurrency test method and system for user graphical interface |
CN113515453B (en) * | 2021-06-24 | 2021-12-07 | 航天中认软件测评科技(北京)有限责任公司 | Webpage testing system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101521899A (en) * | 2009-03-31 | 2009-09-02 | 大连海事大学 | System and method for on-computer test of mobile applications |
CN102255676A (en) * | 2010-05-19 | 2011-11-23 | 广东新支点技术服务有限公司 | Automatic end-user oriented testing method for mobile phone |
CN102595461A (en) * | 2011-03-28 | 2012-07-18 | 王旭 | Performance testing device, system and testing method for mobile communication system |
CN103795711A (en) * | 2014-01-10 | 2014-05-14 | 宁波金信通讯技术有限公司 | Automated test method and system based on mobile phone client sides |
CN103888990A (en) * | 2012-12-20 | 2014-06-25 | 中国移动通信集团公司 | Power consumption test method, device and system for network service application of terminal device |
CN103884905A (en) * | 2012-12-20 | 2014-06-25 | 中国移动通信集团公司 | Method, apparatus and system for testing power consumption of terminal device service application |
CN104063316A (en) * | 2014-06-23 | 2014-09-24 | 百度在线网络技术(北京)有限公司 | Application testing method and device |
CN104239198A (en) * | 2013-06-09 | 2014-12-24 | 展讯通信(上海)有限公司 | Intelligent cell phone, software testing method and system of intelligent cell phone, and server |
-
2015
- 2015-01-14 CN CN201510018318.7A patent/CN104506661B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101521899A (en) * | 2009-03-31 | 2009-09-02 | 大连海事大学 | System and method for on-computer test of mobile applications |
CN102255676A (en) * | 2010-05-19 | 2011-11-23 | 广东新支点技术服务有限公司 | Automatic end-user oriented testing method for mobile phone |
CN102595461A (en) * | 2011-03-28 | 2012-07-18 | 王旭 | Performance testing device, system and testing method for mobile communication system |
CN103888990A (en) * | 2012-12-20 | 2014-06-25 | 中国移动通信集团公司 | Power consumption test method, device and system for network service application of terminal device |
CN103884905A (en) * | 2012-12-20 | 2014-06-25 | 中国移动通信集团公司 | Method, apparatus and system for testing power consumption of terminal device service application |
CN104239198A (en) * | 2013-06-09 | 2014-12-24 | 展讯通信(上海)有限公司 | Intelligent cell phone, software testing method and system of intelligent cell phone, and server |
CN103795711A (en) * | 2014-01-10 | 2014-05-14 | 宁波金信通讯技术有限公司 | Automated test method and system based on mobile phone client sides |
CN104063316A (en) * | 2014-06-23 | 2014-09-24 | 百度在线网络技术(北京)有限公司 | Application testing method and device |
Non-Patent Citations (4)
Title |
---|
Accurate online power estimation and automatic battery;L. Zhang,B. Tiwana and Z. Qian;《IEEE/ACM/IFIP international》;20101231;第105-114页 * |
TD_SCDMA终端耗电测试方法和测试结果分析;董炎杰,周猛;《电信工程技术与标准化》;20081031;第7-11页 * |
基于用户体验的智能手机功耗测试研究;李建伟,刘臻,来志京,尹丰;《电信网技术》;20141031(第10期);第62-65页 * |
智能终端功耗自动化测试系统的研究与设计;刘鑫正,陈玉华,黄利,李洵,颜蓓;《电子测量技术》;20140930;第37卷(第9期);第79-82页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104506661A (en) | 2015-04-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104506661B (en) | A kind of mobile telephone power consumption automatic production generation method based on usage scenario of Remote configuration | |
CN108964968B (en) | Service access management method and system in container cloud environment | |
CN102708050B (en) | Method and system for testing mobile application | |
US9652364B1 (en) | Cloud service for mobile testing and debugging | |
CN106897215A (en) | A kind of method gathered based on WebView webpages loading performance and user behavior flow data | |
CN102667717A (en) | A method, apparatuses and a system for compilation | |
CN105068876B (en) | Method based on distributed deployment prototype collection cell phone application performance data | |
CN103927255A (en) | Software testing method based on cloud testing system, cloud testing system and client side of cloud testing system | |
CN102710832A (en) | Mobile application test method and system | |
CN110990228A (en) | Data interface monitoring method and device | |
CN106776323B (en) | Application testing method and device | |
CN111694757B (en) | Application program testing method and device, electronic equipment and computer readable storage medium | |
CN112463634A (en) | Software testing method and device under micro-service architecture | |
CN106776318A (en) | A kind of test script method for recording and system | |
CN111159042A (en) | Fluency testing method and device and electronic equipment | |
CN109150700A (en) | A kind of method and device of data acquisition | |
CN106713011A (en) | Method and system for obtaining test data | |
CN111736918A (en) | Buried point configuration method and device and electronic equipment | |
CN102082694A (en) | Application evaluation method and application server | |
CN110674023B (en) | Interface testing method and device | |
CN117499287A (en) | Web testing method, device, storage medium and proxy server | |
CN111813685A (en) | Automatic testing method and device | |
CN115022328B (en) | Server cluster, testing method and device of server cluster and electronic equipment | |
CN106383765A (en) | Data monitoring method and apparatus | |
US10169216B2 (en) | Simulating sensors |
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 |