CN101335960B - Method and system implementing mobile phone automatic test - Google Patents
Method and system implementing mobile phone automatic test Download PDFInfo
- Publication number
- CN101335960B CN101335960B CN 200710043016 CN200710043016A CN101335960B CN 101335960 B CN101335960 B CN 101335960B CN 200710043016 CN200710043016 CN 200710043016 CN 200710043016 A CN200710043016 A CN 200710043016A CN 101335960 B CN101335960 B CN 101335960B
- Authority
- CN
- China
- Prior art keywords
- file
- mobile phone
- test
- test cases
- intermediate event
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention provides a method for realizing automatic test of a handset, comprising: editing a testing case for testing the functional fault of the handset; converting the testing case after editing according to the preset form into the testing case file to be automatically implemented; transmitting the testing case file after conversion from a computer to a handset to be tested; implementing the testing case file, performing the handset test. According to the automatic testing method of the handset in the invention, the testing efficiency of the handset is increased. Meanwhile, the invention also provides a system for realizing automatic test of a handset.
Description
Technical field
The present invention relates to moving communicating field, particularly relate to a kind of method and system of realizing mobile phone automatic test.
Background technology
Along with the development that the mobile phone terminal technology is maked rapid progress, the mobile phone terminal product is more and more abundanter, and function becomes increasingly complex, and the release frequency is got up faster, causes R﹠D cycle shortening, research and development task to increase.In the mobile phone R﹠D process, the research and development test is concerning the length of R﹠D cycle and the quality of mobile phone quality, is a very important job.Want in market competition, to occupy catbird seat, just must improve the efficient of mobile phone test, reduce testing cost.Yet present mobile phone test is main still by manually carrying out, the automaticity of mobile phone test is very low, and general mobile phone test all will rely on a large amount of man power and materials, through for a long time test, carry out a large amount of test cases, could find the problem that mobile phone exists.
Owing to the impact of too many human factor is arranged in the existing method of testing, for same test event, because the tester is different, thereby may cause the inconsistent of test result.In addition, because the mobile phone test event is identical in most of situation, what mobile phone test carried out under many circumstances is identical work, and too much repeated labor has taken a large amount of testing times, thereby mobile phone test efficient is very low.
Summary of the invention
Technical problem to be solved by this invention provides a kind of method and system of realizing mobile phone automatic test, to overcome low, the inconsistent problem of test result of mobile phone test efficient in the prior art.
In order to address the above problem, the invention discloses a kind of method that realizes mobile phone automatic test, comprising:
The test cases of editor's testing mobile phone fault; Described test cases form comprises the TCS form;
The test cases of editor being finished according to the form that presets converts the intermediate event file to; The form of described intermediate event file comprises the EVT form;
Described intermediate event file conversion is become the test cases file of the binary format that mobile phone can carry out; The form of described test cases file comprises the BIN form;
Test cases file after the conversion is transferred to mobile phone to be tested from computer;
Mobile phone to be measured is independently carried out the test cases file, carries out mobile phone test;
Mobile phone service data information in the feedback mobile phone test process, thus judge fault of mobile phone; Described mobile phone service data information exchange is crossed COM port and is transferred to computer or be kept in the mobile memory medium in the mobile phone.
Preferably, the test cases file after the conversion transfers to mobile phone to be tested by COM port.
The invention also discloses a kind of system that realizes mobile phone automatic test, comprising:
The test cases edit cell is used for editing the test cases of testing mobile phone fault; Described test cases form comprise the TCS form;
The test cases converting unit, read test case edit cell editor's test cases converts the test cases that reads to the intermediate event file first according to the form that presets, the test cases file that becomes mobile phone to carry out described intermediate event file conversion again; The form of described interlude file comprises the EVT form, and the form of described test cases file comprises binary system BIN form;
Transmission unit, the test cases file transfer that mobile phone can be carried out is to mobile phone to be tested;
The operation test cell, when mobile phone received the test cases file and receives fill order, the independent test cases file of carrying out carried out mobile phone test;
The information feedback unit is for the mobile phone service data information of feedback test process; Described mobile phone service data information exchange is crossed COM port and is transferred to computer or be kept in the mobile memory medium in the mobile phone.
Compared with prior art, the present invention has the following advantages:
The present invention is with the test cases file according to certain syntax rule design, converts the executable test cases file of mobile phone to, then allows mobile phone automatically perform, thereby replaces the part manual operation, has greatly improved the efficient of mobile phone test, has saved human and material resources.Simultaneously, can allow the long-time continual operation of mobile phone, thus can the more effective fault of finding out mobile phone.Further, the method for the invention cases of design is flexible and changeable, and the individual module that it can testing mobile phone also can mix a plurality of modules and test, and the different designs of test cases can realize different test purposes.Can also the assistant software Test Engineer do white glove test (White Glove Test).
Description of drawings
Fig. 1 is a kind of flow chart of realizing Mobile phone automatic testing method of the embodiment of the invention;
Fig. 2 is a kind of flow chart of realizing Mobile phone automatic testing method of the embodiment of the invention;
Fig. 3 is a kind of flow chart of realizing becoming from the TCS file conversion in the Mobile phone automatic testing method EVT file of the embodiment of the invention;
Fig. 4 is a kind of flow chart of realizing becoming from the EVT file conversion in the Mobile phone automatic testing method BIN file of the embodiment of the invention; Fig. 5 is a kind of structured flowchart of realizing the mobile phone automatic test system of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
With reference to Fig. 1, show a kind of flow chart of realizing Mobile phone automatic testing method of the present invention, comprising:
The test cases of step 101, editor's testing mobile phone fault.
The different designs of test cases just can realize different test purposes.For a test cases, can be designed to the test to a module; Also can be designed to the order execution to the test of disparate modules; Can also carry out very repeatedly repeatedly test to certain module with a circulation.In a word, get final product for the different test cases of different test purpose editors.
The present invention can finish the test of functions such as phone directory, note, calling, PDA, and a lot of cell-phone function module can loop test, as long as the different test cases of editor.
Can be with various form storages after described test cases editor finishes, it is the stored in file format of .tcs that the present invention preferably takes suffix, it can be opened and revise with notepad or other the text edit tool.In case edit what a test cases, it can also be copied utilization again.
Below be the TCS file that a testing mobile phone that edits is called function, i.e. test cases file:
Concrete syntax rule is as follows:
1, BEGIN:IAC_TCS/END:IAC_TCS is the sign at the whole story of case, and the content between them is the live part (must have) of case;
2, BEGIN_COMMAND/END_COMMAND(must have), the sign at the whole story of a simple test case, a case can comprise one or more simple test cases;
3, EVENT_TYPE: show that this is an event step;
4, SCRIPT_TYPE: show that this is a script, this is user-defined execution content, and particular content is in corresponding configuration file;
5, CONTROL_TYPE: show that this is a control command;
If 6, first nonspace character of every delegation is " # ", show this behavior note;
If 7 do not have specified otherwise, use without exception capitalization, except Script name.
The test cases file that step 101 generates can not directly be carried out by mobile phone, the binary file format that therefore need to become mobile phone to carry out the test cases file conversion, it is the BIN file of .bin that the present invention preferably takes file suffixes, but is not limited only to this kind file format.
The TCS file that the below's testing mobile phone in the step 101 is dialed function describes the step of converting of step 102 in detail as example:
At first, find effective event, first validity event is KEY_LONGPRESS[NO], it is translated into basic event KEY_DOWN[NO]+DELAY[2]+KEY_UP[NO].Then one by one translation, KEY_DOWN[NO] belong to the KEY event, whatsoever event all is to translate into one _ EV_RECORD, at first write _ type item KEY_TYPE(0X00000001 among the EV_RECORD), then write length, 4 byte (00000004), then write the time point that jiffies(carries out) 0ms(00000000), then write event_structure, be KEY_EV at this moment, its two values are respectively: 0001(m_status), and 0001(m_keycode), just translate so completely with regard to an event, other are analogized.
Comprise syntax check, bomp, file translation conversion etc. in the described translation process, described detailed process will have detailed introduction in Fig. 3, method flow shown in Figure 4.
Become in the process of BIN file in the TCS file conversion, can also convert first intermediate event file EVT file to, and then converting the BIN file to by intermediate event file EVT, it is the purpose that copies some scene in order better to reach versatility, to reach that the present invention quotes the EVT file.
Below be the example of the suffix EVT file that is .evt:
Wherein first row represents line number, and secondary series represents the time point that this event is performed, and the 3rd row represent the event what type is this event be, the concrete event content of the 4th row representative; This incident file so designs, thereby can know which row, and when what point has to be performed.
After finishing on computers the editor and conversion of test cases, can transfer to mobile phone to be tested by the binary file that serial communication port (com port) and the data wire of computer can be carried out mobile phone.Can certainly finish with other interface the transmission of test file, the present invention does not limit this.
The fill order that step 104, receiving computer send is carried out the test cases file, carries out mobile phone automatic test.
After mobile phone to be tested receives the binary system test file that can carry out, and after receiving the fill order of computer terminal transmission, begin to carry out the test cases file, carry out mobile phone automatic test.
Further, method shown in the present also comprises the mobile phone service data information in step 105, the feedback mobile phone test process.
By the service data information of in the mobile phone automatic test process, feeding back, thereby judge the cell-phone function fault.The service data information of described feedback can transfer to computer by COM port.If when mobile phone test process Computer is not connected with mobile phone to be tested, described data message also can be kept in the mobile memory medium, and described mobile memory medium can be the SD card, mmc card etc.
With reference to Fig. 2, a kind of flow chart of realizing Mobile phone automatic testing method of one embodiment of the invention is shown, may further comprise the steps:
Enter step 203, newly-built .tcs file or the existing .tcs file of editor.
With reference to Fig. 3, a kind of flow chart of realizing becoming from the TCS file conversion in the Mobile phone automatic testing method EVT file of one embodiment of the invention is shown, may further comprise the steps:
Step 301, open or a newly-built .EVT file.
Step 302, open the .TCS file, enter step 303.
Step 303, the delegation that reads the .TCS file content, and it is returned.
Return results in step 304, the determining step 303 is end-of-file mark whether, is then to enter step 309, otherwise enters step 305, with returned content and dependent parser relatively.
Step 306, judging whether syntax statement of returned content, is then to enter step 307, otherwise reports an error and enter step 309, process ends.
Step 307, do corresponding syntax conversion and translation according to this journey content, and will translate content write newly-built or the .EVT file opened in, i.e. step 308.
Through above step, finished the translation of delegation's content in the TCS file, next line content to the TCS file, from step 303, carry out the conversion identical with above-mentioned steps, until the return results in the step 304 is end-of-file mark, indicate that then the full content of TCS file all has been converted to the EVT file, enter step 309, preserve the EVT file after changing.More than the principle of TCS file conversion EVT file is introduced, concrete transfer process can be with reference to the example in the method shown in Figure 1.
With reference to Fig. 4, a kind of flow chart of realizing becoming from the EVT file conversion in the Mobile phone automatic testing method BIN file of one embodiment of the invention is shown, may further comprise the steps:
Return results in step 404, the determining step 403 is end-of-file mark whether, is then to enter step 409, otherwise enters step 405, judges whether the event type with this journey content matching.Have then to enter step 406, otherwise report an error and enter step 408, process ends.
Through above step, finished the conversion of delegation's content in the EVT file, next line content to the EVT file, from step 403, carry out the conversion identical with above-mentioned steps, until the return results in the step 404 is end-of-file mark, indicate that then the full content of EVT file all has been converted to the BIN file, enter step 409, preserve the BIN file after changing.More than the principle of EVT file conversion BIN file is introduced, concrete transfer process can be with reference to the example in the method shown in Figure 1.
With reference to Fig. 5, show a kind of structured flowchart of realizing the mobile phone automatic test system of the present invention, comprising:
Test cases edit cell 501 is used for editing the test cases of testing mobile phone fault.
The different designs of test cases just can realize different test purposes.For a test cases, can be designed to the test to a module; Also can be designed to the order execution to the test of disparate modules; Can also carry out very repeatedly repeatedly test to certain module with a circulation.In a word, get final product for the different test cases of different test purpose editors.
The present invention can finish the test of functions such as phone directory, note, calling, PDA, and a lot of cell-phone function module can loop test, as long as the different test cases of editor.
Can be with various form storages after described test cases editor finishes, it is the stored in file format of .tcs that the present invention preferably takes suffix, it can be opened and revise with notepad or other the text edit tool.In case edit what a test cases, it can also be copied again.
Test cases converting unit 502, read test case edit cell editor's test cases, the test cases file that becomes mobile phone to carry out according to the format conversion that presets.
With the binary file format that the test cases file conversion becomes mobile phone to carry out, it is the BIN file of .bin that the present invention preferably takes file suffixes, but is not limited only to this kind file format.
After finishing on computers the editor and conversion of test cases, can transfer to mobile phone to be tested by the binary file that serial communication port (com port) and the data wire of computer can be carried out mobile phone.Can certainly finish with other interface the transmission of test file, the present invention does not limit this.
After mobile phone to be tested receives the binary system test file that can carry out, and after receiving the fill order of computer terminal transmission, begin to carry out the test cases file, carry out mobile phone automatic test.
Further, the present invention also comprises information feedback unit 505, the mobile phone service data information in the feedback mobile phone test process.The mobile phone service data information exchange that feeds back is crossed COM port and is transferred to computer or be kept in the mobile memory medium in the mobile phone.
By the service data information of in the mobile phone automatic test process, feeding back, thereby judge the cell-phone function fault.The service data information of described feedback can be transmitted back computer by COM port.If when mobile phone test process Computer is not connected with mobile phone to be tested, described data message also can be kept in the mobile memory medium, and described mobile memory medium can be the SD card, mmc card etc.
The part that does not describe in detail in the device shown in Figure 5 can be considered for length referring to the relevant portion of method shown in Fig. 1,2,3,4, is not described in detail in this.
More than to a kind of method and system of realizing mobile phone automatic test provided by the present invention, be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (5)
1. a method that realizes mobile phone automatic test is characterized in that, comprising:
The test cases of editor's testing mobile phone functional fault; Described test cases form comprises the TCS form;
The test cases of editor being finished according to the form that presets converts the intermediate event file to; The form of described intermediate event file comprises the EVT form;
The test cases file that becomes mobile phone to carry out described intermediate event file conversion; The form of described test cases file comprises binary system BIN form;
Test cases file after the conversion is transferred to mobile phone to be tested from computer;
Mobile phone to be measured is independently carried out the test cases file, carries out mobile phone test;
Mobile phone service data information in the feedback mobile phone test process; Described mobile phone service data information exchange is crossed COM port and is transferred to computer or be kept in the mobile memory medium in the mobile phone.
2. the method for claim 1 is characterized in that:
Test cases file after the conversion transfers to mobile phone to be tested by COM port.
3. the method for claim 1 is characterized in that, the concrete steps that the described test cases that editor is finished converts the intermediate event file to are:
Open or a newly-built intermediate event file;
First/next line of read test case file content, and the result returned;
Judge that whether return results is end-of-file mark, is then to finish switch process, otherwise enters next step;
This journey content and dependent parser are compared, judge whether this journey content is a syntax statement, is then to enter next step, otherwise finish switch process;
Do corresponding syntax conversion and translation according to this journey content, and will translate content and write the intermediate event file.
4. the method for claim 1 is characterized in that, described intermediate event file conversion becomes the concrete steps of binary format file to be:
Open or a newly-built binary format file;
Read first/next line of intermediate event file content, and the result is returned;
Judge that whether return results is end-of-file mark, is then to finish switch process, otherwise enters next step;
Whether the event type of judging this journey content has the event type of coupling, is then to enter next step, otherwise finishes switch process;
According to corresponding data structure, this journey content is changed, and transformation result is write the binary format file.
5. a system that realizes mobile phone automatic test is characterized in that, comprising:
The test cases edit cell is for the test cases of editor's testing mobile phone functional fault; The form of described test cases comprises the TCS form;
The test cases converting unit, read test case edit cell editor's test cases converts the test cases that reads to the intermediate event file first according to the form that presets, the test cases file that becomes mobile phone to carry out described intermediate event file conversion again; The form of described intermediate event file comprises the EVT form, and the form of described test cases file comprises binary system BIN form;
Transmission unit, the test cases file transfer that mobile phone can be carried out is to mobile phone to be tested;
The operation test cell, when mobile phone received the test cases file and receives fill order, the independent test cases file of carrying out carried out mobile phone test;
The information feedback unit is used for the mobile phone service data information of feedback test process, thereby judges the cell-phone function fault; Described mobile phone service data information exchange is crossed COM port and is transferred to computer or be kept in the mobile memory medium in the mobile phone.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710043016 CN101335960B (en) | 2007-06-26 | 2007-06-26 | Method and system implementing mobile phone automatic test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710043016 CN101335960B (en) | 2007-06-26 | 2007-06-26 | Method and system implementing mobile phone automatic test |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101335960A CN101335960A (en) | 2008-12-31 |
CN101335960B true CN101335960B (en) | 2013-05-01 |
Family
ID=40198203
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200710043016 Expired - Fee Related CN101335960B (en) | 2007-06-26 | 2007-06-26 | Method and system implementing mobile phone automatic test |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101335960B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102256290B (en) * | 2011-01-21 | 2014-04-30 | 珠海世纪鼎利通信科技股份有限公司 | Method for collecting abnormal data of TD-SCDMA (Time Division-Synchronization Code Division Multiple Access) wireless communication network user terminal |
CN102355641A (en) * | 2011-08-25 | 2012-02-15 | 广东欧珀移动通信有限公司 | Method for carrying out automated test on group control of short messages |
CN102355515A (en) * | 2011-10-13 | 2012-02-15 | 广东欧珀移动通信有限公司 | Automatic test method of cell phone file operation |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1609805A (en) * | 2003-10-17 | 2005-04-27 | 松下电器产业株式会社 | Compiler apparatus |
CN1719925A (en) * | 2004-07-08 | 2006-01-11 | 中兴通讯股份有限公司 | Method and apparatus for automatically testing CDMA cell phone software |
CN1862508A (en) * | 2005-05-13 | 2006-11-15 | 中兴通讯股份有限公司 | Automatic testing system of person digital aid cell phone function and method thereof |
-
2007
- 2007-06-26 CN CN 200710043016 patent/CN101335960B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1609805A (en) * | 2003-10-17 | 2005-04-27 | 松下电器产业株式会社 | Compiler apparatus |
CN1719925A (en) * | 2004-07-08 | 2006-01-11 | 中兴通讯股份有限公司 | Method and apparatus for automatically testing CDMA cell phone software |
CN1862508A (en) * | 2005-05-13 | 2006-11-15 | 中兴通讯股份有限公司 | Automatic testing system of person digital aid cell phone function and method thereof |
Non-Patent Citations (1)
Title |
---|
刘磊等.《编译原理及实现技术》.《编译原理及实现技术》.机械工业出版社,2005,1-4,161. * |
Also Published As
Publication number | Publication date |
---|---|
CN101335960A (en) | 2008-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101150463B (en) | Testing method and system | |
CN100367235C (en) | Method for realizing automatic test and its system | |
CN101287266B (en) | Test system and method for mobile phone | |
CN100486185C (en) | Parallel testing method and system | |
CN109413678A (en) | A kind of Wi-Fi module automatic test approach and test macro | |
CN101303708B (en) | Method and apparatus for encoding code for multiplexing chip pins | |
CN100507871C (en) | Method and system for testing embedded file system | |
CN101335960B (en) | Method and system implementing mobile phone automatic test | |
CN101145130A (en) | Simple network management protocol software test device and test method | |
CN101951529A (en) | Method and system for testing functions of set top box | |
CN116049014A (en) | AMBA bus verification platform generation method and device | |
CN100361127C (en) | Automatic generation system and method for script file | |
CN101364200B (en) | Breakpoint implementing method for embedded MIDlet debugging software | |
CN101158919A (en) | Unit test method driven by data | |
de Figueiredo et al. | Generating interaction test cases for mobile phone systems from use case specifications | |
CN101296462A (en) | Method and system for batch execution of mobile terminal software automatic test | |
CN101141767A (en) | Network management platform testing system and method | |
CN115134427B (en) | Communication protocol coordination method, device, computer equipment and storage medium | |
CN100468347C (en) | Process and device for transferring parameter between application module and COM component | |
CN101582928B (en) | Adaptive device and data transmission method for communication of veneer and peripheral device | |
CN101013977A (en) | Network testing method and system | |
CN101626552A (en) | Method for testing terminal with short message and platform device | |
CN101499004A (en) | System and method for connecting virtual machine and user interface | |
CN103176904A (en) | Simulation testing platform software architecture and testing method based on same | |
CN112559470A (en) | File format conversion method and device, storage medium and electronic 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130501 Termination date: 20190626 |