CN102316212A - Method for implementing automatic test of mobile phone - Google Patents

Method for implementing automatic test of mobile phone Download PDF

Info

Publication number
CN102316212A
CN102316212A CN2011100432548A CN201110043254A CN102316212A CN 102316212 A CN102316212 A CN 102316212A CN 2011100432548 A CN2011100432548 A CN 2011100432548A CN 201110043254 A CN201110043254 A CN 201110043254A CN 102316212 A CN102316212 A CN 102316212A
Authority
CN
China
Prior art keywords
mobile phone
value
test
time
automatic test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011100432548A
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.)
Shanghai Wingtech Electronic Technology Co Ltd
Original Assignee
Shanghai Wingtech Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Wingtech Electronic Technology Co Ltd filed Critical Shanghai Wingtech Electronic Technology Co Ltd
Priority to CN2011100432548A priority Critical patent/CN102316212A/en
Publication of CN102316212A publication Critical patent/CN102316212A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method for implementing automatic test of a mobile phone. In the method, a test algorithm database is used, files corresponding to figures and key values of the mobile phone and a keying order recording file are stored in the test algorithm database, the automatic test can be triggered by running the files stored in the database, and since a cycle timer is set in the database, when one test phase is finished, the automatic test can be cycled back to the original steps for test, until all the test works are finished. The test result obtained by the method can be transmitted to a mobile phone screen for being displayed, or the test result can be transmitted, by a serial port, to a computer connected with the serial port to be displayed and analyzed.

Description

A kind of method that realizes mobile phone automatic test
Technical field
The present invention relates to the field tests of mobile phone, particularly a kind of method that realizes mobile phone automatic test.
Background technology
The speed of cell phone software research and development at present is very fast, and the test of cell phone software is essential, so its test job amount just becomes very big.The test in current phone research and development of software field relatively depends on Black-box Testing, and a lot of test job measurers have similitude and repeatability.The software test personnel are according to menu Tree (menu tree) and mmi Flow (man-machine interface flow process); Mode through operation push-button is accomplished functional test; Comprise like phone directory, short message, module such as call out, be provided with, several main features of software test procedure are:
1, this process has repeatability, reproducibility;
2, tester's button is exactly a kind of mode of controlling test, and control mode can be simulated through software;
3, the key assignments of tester's button and order are a kind of testing algorithm database, are to generate according to menu Tree and mmi Flow, can be through the storage of carrying out the testing algorithm data of software mode.
Whether successful judgement basis is the mobile phone key operating result to the tester to test result, and this judgment mode also can be carried out in cell phone software.
Can find out that more than the characteristics of cell phone software research and development test make the test automation of cell phone software become possibility.Mode through software simulation realizes the above-mentioned test job with similitude and repeatability, both can save the test human resources and can also improve the integrality that test covers.
Number of patent application is 200610147399, the name be called a kind of mobile phone test system public announcement of a patent application a kind of mobile phone test scheme, but this scheme is not introduced the application of testing algorithm database and cycle timer.
Summary of the invention
The purpose of this invention is to provide a kind of method that realizes mobile phone automatic test, realize the automatic test after cell phone software is researched and developed.
The present invention provides a kind of method that realizes mobile phone automatic test, it is characterized in that, may further comprise the steps:
The respective file of a, the numeral of setting up said mobile phone and key assignments and button journal file are stored in the data in mobile phone storehouse;
B, read origin identification value in the said button journal file starting automatic test, and read its next value with the startup cycle timer;
C, read next one value in the said button journal file again, and transfer the numeral of said mobile phone and the respective file of key assignments, this value is judged and made corresponding processing;
D, the value that reads as the said step c of judgement are the numeral of said mobile phone and the related value of respective file of key assignments; Then send corresponding push button signalling, the detecting information that said cell phone system is handled said push button signalling and is correlated with according to its feedback output to cell phone system;
The cycle timer of e, said step b then then forwards said step c to and proceeds test.
The respective file correspondence of the numeral of the said mobile phone among the said step a and key assignments has the mobile phone of predetermined key assignments, and it comprises following rule: first range values of answering with said mobile phone key-value pair is represented the short button of mobile phone related key; The second predetermined range values is then represented the long button of mobile phone related key.
Said button journal file among the said step a comprises the test item of said automatic test; This document has been put down in writing the origin identification value, has been finished ident value and time-delay ident value; A value representation after the said origin identification value time of said cycle timer, the time between promptly per 2 buttons are carried out; The time-delay of said time-delay ident value time that a said cycle timer is set that is equivalent to delay time.
When said step b reads said button journal file, when reading the back value of said origin identification value, then start said cycle timer.
The value that said step c reads is judged as when finishing ident value, stops said cycle timer and finishes said automatic test.
When the value that said step c reads is judged as the time-delay ident value, forward step c again to after the time that the said cycle timer of then delaying time is set.
Said method also comprised the step of sending automatic test instruction before carrying out said step b: make computer pass through serial ports and connect said mobile phone and send automatic test instruction to carry out said step b to it.
The step of the automatic test instruction of said transmission also comprises: set up the special key composite signal of said mobile phone, said special key composite signal realizes through making up said mobile phone key, when cell phone system detects this signal, then carries out said step b.
In the said steps d, when test result is unusual, then send test errors information and show at said mobile phone screen.
The detecting information of said steps d output is sent to said computer through serial ports and supplies to show and analyze.
Adopt a kind of method that realizes mobile phone automatic test of the present invention; This method has testing algorithm database, and it has stored the numeral of said mobile phone and the respective file and the button journal file of key assignments, and the said file that moves this database storage can trigger automatic test; And because it has set cycle timer; So after a test phase is accomplished, be recycled to original step again and test, until whole completion test jobs.The result of the present invention's test can be sent to said mobile phone screen and show perhaps through showing on the computer that serial ports is sent to serial ports is connected and analyzing.
Description of drawings
Fig. 1 is a main flow chart of the present invention;
Fig. 2 is the detail flowchart of one embodiment of the invention.
Embodiment
Further specify technical scheme of the present invention below in conjunction with accompanying drawing and embodiment.
301, set up testing algorithm database.
At first set up the numeral of said mobile phone and the respective file and the button journal file of key assignments, be stored in the data in mobile phone storehouse, said database can be referred to as testing algorithm database.The respective file correspondence of the numeral of said mobile phone and key assignments has the mobile phone of 21 key assignments, and the content that its file comprises is: 1-21 represents the short button of 21 buttons of mobile phone; 101-121 then represents the long button of 21 buttons of mobile phone.
Said button journal file comprises the test item of said automatic test; This document record origin identification value is 0, finish ident value be 100 and the time-delay ident value be 200; A value representation of said origin identification value 0 back the time of cycle timer (100ms is a unit), represent the time of per 2 buttons between carrying out; The time-delay of said time-delay ident value time that a said cycle timer is set that is equivalent to delay time.
302, send automatic test instruction.
Reception has two kinds of methods from software engineer's automatic test instruction: first kind is to start test automatically through a kind of special key combination; Set up the special key composite signal of said mobile phone; Said special key composite signal realizes through making up said mobile phone key, execution in step 303 then when cell phone system detects this signal; Second method is to make computer pass through serial ports to connect said mobile phone and send automatic test instruction to carry out said step 303 to it.
303, start test automatically, and start the cycle timer that is provided with.
Reading the origin identification value in the said button journal file, is then to start automatic test at 0 o'clock, when reading said button journal file, when reading the back value of said origin identification value 0, then starts said cycle timer.
304, the next one value in the reading of data library file is judged and is made corresponding processing this value.
The next one value that reads in the said button journal file (is the next one value of the said back value of step 303 in this; And next circulation is exactly the next one value of this value that reads); And transfer the numeral of said mobile phone and the respective file of key assignments, this value is judged and made corresponding processing.
305, when the value of the value that reads, then send corresponding push button signalling to cell phone system for being scheduled to.
When the value that reads is the numeral of said mobile phone and the related value (1-21 of respective file of key assignments; And 101-121); Then send corresponding push button signalling, the detecting information that said cell phone system is handled said push button signalling and is correlated with according to its feedback output to cell phone system; And when the value that reads is judged as the end ident value (100), stops said cycle timer and finish said automatic test; When the value that reads is judged as the time-delay ident value (200), forward step 304 again to after the time that the said cycle timer of then delaying time is set.
306, the detecting information of handling said push button signalling and being correlated with according to its feedback output.
After said cell phone system receives push button signalling, the detecting information of handling said push button signalling and being correlated with according to its feedback output.When test result is unusual, then send test errors information and, also can be sent to the computer confession demonstration and the analysis of connection through serial ports in said mobile phone screen demonstration.
307, cycle timer then forwards step 304 to, carries out next loop test.
Referring to Fig. 2, Fig. 2 be an embodiment than detailed steps:
Step 1, standby interface be the combination of input special key down, referring to S1, S2.
Step 2, judge whether and automatically test instruction coupling of key combination,,, forward step 12 to, referring to S3 if do not match if coupling forwards step 3 to.
Step 3, read test algorithm data database data are referring to S4.
Step 4, read first value of algorithm data, this value is fixed as 0, and test beginning automatically is referring to S5.
Step 5, read the next value of algorithm data, this value is fixed as the time value of automatic test loop timer, and the startup cycle timer is referring to S6.
Step 6: read the next value of algorithm data again, this numerical value is judged, if 200 forward step 7 to, if 100, forward step 11 to, if between 1-21 or the 101-121, forward step 8 to; Referring to S8.
Step 7: carry out do-nothing operation, be equivalent to time-delay, referring to S8.1.
Step 8:, send corresponding push button signalling, referring to S8.2 according to the numerical value that reads.
Step 9: drive or the application layer process push button signalling,, send detecting information, wait for cycle timer then, referring to S8.3 and S8.4 to the PC file for the software critical workflow.
Step 10: cycle timer then forwards step 6 to, referring to S8.5;
Step 11: stop cycle timer, referring to S9.
Step 12: get back to standby interface, automatic EOT is referring to S10.
Those of ordinary skill in the art will be appreciated that; Above embodiment is used for explaining the present invention; And be not to be used as qualification of the present invention; As long as in connotation scope of the present invention, all will drop in claims scope of the present invention variation, the modification of above embodiment.

Claims (10)

1. a method that realizes mobile phone automatic test is characterized in that, may further comprise the steps:
The respective file of a, the numeral of setting up said mobile phone and key assignments and button journal file are stored in the data in mobile phone storehouse;
B, read origin identification value in the said button journal file starting automatic test, and read its next value with the startup cycle timer;
C, read next one value in the said button journal file again, and transfer the numeral of said mobile phone and the respective file of key assignments, this value is judged and made corresponding processing;
D, the value that reads as the said step c of judgement are the numeral of said mobile phone and the related value of respective file of key assignments; Then send corresponding push button signalling, the detecting information that said cell phone system is handled said push button signalling and is correlated with according to its feedback output to cell phone system;
The cycle timer of e, said step b then then forwards said step c to and proceeds test.
2. the method for claim 1; It is characterized in that; The respective file correspondence of the numeral of the said mobile phone among the said step a and key assignments has the mobile phone of predetermined key assignments, and it comprises following rule: first range values of answering with said mobile phone key-value pair is represented the short button of mobile phone related key; The second predetermined range values is then represented the long button of mobile phone related key.
3. according to claim 1 or claim 2 method; It is characterized in that; Said button journal file among the said step a comprises the test item of said automatic test; This document has been put down in writing the origin identification value, has been finished ident value and time-delay ident value, a value representation after the said origin identification value time of said cycle timer, the time between promptly per 2 buttons are carried out; The time-delay of said time-delay ident value time that a said cycle timer is set that is equivalent to delay time.
4. method as claimed in claim 3 is characterized in that, when said step b reads said button journal file, when reading the back value of said origin identification value, then starts said cycle timer.
5. method as claimed in claim 4 is characterized in that, the value that said step c reads is judged as when finishing ident value, stops said cycle timer and finishes said automatic test.
6. method as claimed in claim 5 is characterized in that, when the value that said step c reads is judged as the time-delay ident value, forwards step c again to after the time that the said cycle timer of then delaying time is set.
7. method as claimed in claim 6 is characterized in that, said method also comprised the step of sending automatic test instruction before carrying out said step b: make computer pass through serial ports and connect said mobile phone and send automatic test instruction to carry out said step b to it.
8. method as claimed in claim 7; It is characterized in that; The step of the automatic test instruction of said transmission also comprises: the special key composite signal of setting up said mobile phone; Said special key composite signal realizes through making up said mobile phone key, when cell phone system detects this signal, then carries out said step b.
9. method as claimed in claim 8 is characterized in that, in the said steps d, when test result is unusual, then sends test errors information and shows at said mobile phone screen.
10. method as claimed in claim 5 is characterized in that, the detecting information of said steps d output is sent to said computer through serial ports and supplies to show and analyze.
CN2011100432548A 2010-07-06 2011-02-23 Method for implementing automatic test of mobile phone Pending CN102316212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100432548A CN102316212A (en) 2010-07-06 2011-02-23 Method for implementing automatic test of mobile phone

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201010219541 2010-07-06
CN201010219541.5 2010-07-06
CN2011100432548A CN102316212A (en) 2010-07-06 2011-02-23 Method for implementing automatic test of mobile phone

Publications (1)

Publication Number Publication Date
CN102316212A true CN102316212A (en) 2012-01-11

Family

ID=45429015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100432548A Pending CN102316212A (en) 2010-07-06 2011-02-23 Method for implementing automatic test of mobile phone

Country Status (1)

Country Link
CN (1) CN102316212A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824726A (en) * 2015-01-07 2016-08-03 展讯通信(上海)有限公司 Remote automatic test system and method of mobile terminals
CN105872534A (en) * 2016-04-05 2016-08-17 Tcl海外电子(惠州)有限公司 Terminal testing method and device
CN110096394A (en) * 2018-01-31 2019-08-06 佛山市顺德区美的电热电器制造有限公司 Fault self-detection method, device, electrical equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1719925A (en) * 2004-07-08 2006-01-11 中兴通讯股份有限公司 Method and apparatus for automatically testing CDMA cell phone software
CN101212755A (en) * 2006-12-27 2008-07-02 上海晨兴电子科技有限公司 System for automatic limit testing of mobile telephone
CN101262681A (en) * 2008-04-16 2008-09-10 青岛海信移动通信技术股份有限公司 Automatic testing mobile terminal and its implementation method
CN101272422A (en) * 2007-03-21 2008-09-24 中兴通讯股份有限公司 Mobile phone automatized test method
US20090003534A1 (en) * 2007-06-27 2009-01-01 Allen Jr James J Telephone Software Testing System and Method
CN101557437A (en) * 2009-05-12 2009-10-14 厦门敏讯信息技术股份有限公司 Automatic testing method of mobile phone software and device thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1719925A (en) * 2004-07-08 2006-01-11 中兴通讯股份有限公司 Method and apparatus for automatically testing CDMA cell phone software
CN101212755A (en) * 2006-12-27 2008-07-02 上海晨兴电子科技有限公司 System for automatic limit testing of mobile telephone
CN101272422A (en) * 2007-03-21 2008-09-24 中兴通讯股份有限公司 Mobile phone automatized test method
US20090003534A1 (en) * 2007-06-27 2009-01-01 Allen Jr James J Telephone Software Testing System and Method
CN101262681A (en) * 2008-04-16 2008-09-10 青岛海信移动通信技术股份有限公司 Automatic testing mobile terminal and its implementation method
CN101557437A (en) * 2009-05-12 2009-10-14 厦门敏讯信息技术股份有限公司 Automatic testing method of mobile phone software and device thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824726A (en) * 2015-01-07 2016-08-03 展讯通信(上海)有限公司 Remote automatic test system and method of mobile terminals
CN105872534A (en) * 2016-04-05 2016-08-17 Tcl海外电子(惠州)有限公司 Terminal testing method and device
CN110096394A (en) * 2018-01-31 2019-08-06 佛山市顺德区美的电热电器制造有限公司 Fault self-detection method, device, electrical equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
US10853232B2 (en) Adaptive system for mobile device testing
CN102387234B (en) Mobile phone automatic test device and method
US9280451B2 (en) Testing device
CN104166610B (en) Mobile terminal detection method and detection system
WO2017083207A1 (en) Digital assistant setting up device
CN111897740B (en) User interface testing method and device, electronic equipment and computer readable medium
CN106126424B (en) A kind of visual automated testing method of script, device and mobile terminal
CN110765013A (en) Automatic flow execution method and system
CN101262681A (en) Automatic testing mobile terminal and its implementation method
CN110716853A (en) Test script recording method, application program testing method and related device
CN101272422A (en) Mobile phone automatized test method
CN104320793B (en) A kind of Automated testing method of cell phone short messages and system
CN104375934A (en) Method for testing reliability of Android mobile phone software
TWI476587B (en) Testing method and testing apparatus for testing function of electronic apparatus
CN112286811A (en) Intelligent station relay protection equipment testing method and system and readable storage medium
US9588874B2 (en) Remote device automation using a device services bridge
US20170041188A1 (en) Differential staging of devices in bulk enrollment
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN102316212A (en) Method for implementing automatic test of mobile phone
CN112860587B (en) UI automatic test method and device
CN113971130A (en) Software performance testing method, device, equipment and storage medium
CN104699607A (en) Automation testing method and system for mobile terminal
CN114510305B (en) Model training method and device, storage medium and electronic equipment
JP2010231594A (en) Test program and testing device
CN101916221A (en) Method and system for performing unit testing on equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120111