CN102355642A - Automated testing method of cell phone short messages - Google Patents
Automated testing method of cell phone short messages Download PDFInfo
- Publication number
- CN102355642A CN102355642A CN2011102876948A CN201110287694A CN102355642A CN 102355642 A CN102355642 A CN 102355642A CN 2011102876948 A CN2011102876948 A CN 2011102876948A CN 201110287694 A CN201110287694 A CN 201110287694A CN 102355642 A CN102355642 A CN 102355642A
- Authority
- CN
- China
- Prior art keywords
- note
- send
- daily record
- sms
- log daily
- 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.)
- Granted
Links
Images
Landscapes
- Telephone Function (AREA)
Abstract
The invention discloses an automated testing method of cell phone short messages, which is applied in an android system. The testing method comprises the following steps of: 1, entering a short message testing program; 2, judging whether contacts exist in the a phone book or not; 3, executing a step 4 after sending the short messages to each contact in the phone book if the contacts exist, and otherwise exiting the short message testing program; 4, judging whether a cell phone transceiver receives the information that the short messages are sent successfully or not; 5, if SO, executing a step 6 after successful sending is displayed in a log, and otherwise, executing the step 6 after sending failure is displayed in the log; 6, saving the information of the log in a specified folder in cell phone internal memory; and 7, ending the short message testing program. The method is easy to operate. In the method, a cell phone can be used for operation anytime and anywhere. The method can bear large testing strength, has high testing efficiency, is simple and convenient and is easy to implement.
Description
Technical field
The present invention relates to a kind of mobile phone automatized test, particularly relate to a kind of SMS automated testing method based on android.
Background technology
The short breath function of mobile phone of the prior art because test intensity is big, fatigue effect occurs easily in manual testing's process when testing; And test has certain limitation; Take time and effort, and might duplicate test or omit test, complicated operation.In test process, judgement that can not mailbox and locate wrong origination point can not conveniently find out error reason, and if comprise spcial character in the short message content, then can accurately not send.
Summary of the invention
The objective of the invention is to overcome the deficiency of prior art, a kind of SMS automated testing method is provided, move easyly, and move mobile phone whenever and wherever possible and test, the test intensity that can bear is big, and testing efficiency is high, simple and convenient, easy to implement.
In order to achieve the above object, the technical scheme that the present invention adopts is, a kind of SMS automated testing method is applied in the android system, and described method of testing step is following:
Step 1, entering note test program;
Step 2, judge the people that whether is related in the phone directory;
Step 3, be that then the contact number of each in phone directory sends execution in step 4 after the note, otherwise withdraw from the note test program;
Step 4, judge whether the mobile phone transmitter-receiver receives and send the note information of successful;
Step 5, send successfully and then in the log daily record, to show and sends successfully back execution in step 6, otherwise in the log daily record, show send fail after execution in step 6;
Step 6, with the information storage of log daily record at the mobile phone EMS memory specified folder;
Step 7, end note test program.
Note described in the above-mentioned steps 3 is a random extraction from information bank, and information bank is the set that comprises letter, symbol, numeral and be difficult to resolve word.
Above-mentioned steps 5 described log daily records comprise that can send successful log daily record, transmission failure log daily record and test the other side machine normally support spcial character log daily record.
The origination point and the time of origin of failure are sent in above-mentioned steps 5 described transmission failure log daily record records.
Send note to each contact number in the above-mentioned steps 3, its detailed step is following:
Step S101, entering one number send the note program;
Whether step S102, the number of judging input are empty or exist not to be that the phone number of character or input of numeral is greater than 11;
The number of step S103, input is not that digital input or number then directly withdraws from one number transmission note program greater than 11 for empty, existence, otherwise judges whether the note bar number that sends is sky;
Step S104, bar number are then execution in step S106 after the number of importing sends 1 information of sky, otherwise judge whether the number of times that sends is zero perhaps greater than 1000 times;
Step S105, number of times are zero or then directly withdraw from one number greater than 1000 times and send the note program, otherwise send the note of specifying the bar number to the number of input;
Step S106, judge whether the mobile phone transmitter-receiver receives the transmission information of successful;
Step S107, be then in the log daily record, to show to send successfully, otherwise in the log daily record, show and send failure;
Step S108, the log daily record that produces is stored in the mobile phone EMS memory specified folder;
Step S109, withdraw from one number and send the note program.
Described note comprises normal note and long SMS, and normal note is 1 a note length, and long SMS is greater than a note length, sets according to the test needs.
The numeral of setting when the definite value 1000 among the step S104 is test is done corresponding adjustment according to actual conditions.
Compared with prior art; The invention has the beneficial effects as follows: the first, can carry out automatic test at this instrument of mobile phone end operation based on the android system; Need not to connect other equipment; The tester only needs according to the explanation working procedure; Move easy; Can move mobile phone whenever and wherever possible, tests; The second, in the mobile phone EMS memory specified folder, automatically preserve the log daily record, the reason of misregistration time of origin in running convenient and swiftly navigates to wrong origination point; Three, the visualization interface that provides in the test program, simple and convenient directly perceived, very strong project generic property is arranged, can avoid overlapping development, improve testing efficiency, reduce the testing time.
Description of drawings
Fig. 1 is a method flow diagram of the present invention;
Fig. 2 is of the present invention to each contact number transmission note flow chart.
Embodiment
Purport of the present invention is to overcome the deficiency of prior art; A kind of SMS automated testing method is provided; The mobile phone products that uses the android system is accomplished the automatic test that information is sent under the autonomous testing scheme; Send information from trend cellphone directory All Contacts number, send the information of specified quantity from the trend assigned number.
From phone directory, extract contact person's phone information; Telephone number to each contact person sends information then; The information content is random extraction from information bank; Information bank is a set that comprises letter, symbol, numeral and be difficult to resolve word; Send the success or not meeting and in the mobile phone EMS memory file, generate a log information; Both can the detecting information feedback whether can send success, and can test the other side's machine again and can normally support spcial character.
Be elaborated with reference to accompanying drawing below in conjunction with embodiment, so that technical characterictic of the present invention and advantage are carried out more deep annotation.
Method flow diagram of the present invention as shown in Figure 1, a kind of SMS automated testing method is applied in the android system, described method of testing step is following:
Step 1, entering note test program;
Step 2, judge the people that whether is related in the phone directory;
Step 3, be that then the contact number of each in phone directory sends execution in step 4 after the note, otherwise withdraw from the note test program;
Step 4, judge whether the mobile phone transmitter-receiver receives and send the note information of successful;
Step 5, send successfully and then in the log daily record, to show and sends successfully back execution in step 6, otherwise in the log daily record, show send fail after execution in step 6;
Step 6, with the information storage of log daily record at the mobile phone EMS memory specified folder;
Step 7, end note test program.
Note described in the above-mentioned steps 3 is a random extraction from information bank, and information bank is the set that comprises letter, symbol, numeral and be difficult to resolve word.
Above-mentioned steps 5 described log daily records comprise that can send successful log daily record, transmission failure log daily record and test the other side machine normally support spcial character log daily record.
The origination point and the time of origin of failure are sent in above-mentioned steps 5 described transmission failure log daily record records.
As shown in Figure 2, send note to each contact number in the above-mentioned steps 3, its detailed step is following:
Step S101, entering one number send the note program;
Whether step S102, the number of judging input are empty or exist not to be that the phone number of character or input of numeral is greater than 11;
The number of step S103, input is not that digital input or number then directly withdraws from one number transmission note program greater than 11 for empty, existence, otherwise judges whether the note bar number that sends is sky;
Step S104, bar number are then execution in step S106 after the number of importing sends 1 information of sky, otherwise judge whether the number of times that sends is zero perhaps greater than 1000 times;
Step S105, number of times are zero or then directly withdraw from one number greater than 1000 times and send the note program, otherwise send the note of specifying the bar number to the number of input;
Step S106, judge whether the mobile phone transmitter-receiver receives the transmission information of successful;
Step S107, be then in the log daily record, to show to send successfully, otherwise in the log daily record, show and send failure;
Step S108, the log daily record that produces is stored in the mobile phone EMS memory specified folder;
Step S109, withdraw from one number and send the note program.
Described note comprises normal note and long SMS, and normal note is 1 a note length, and long SMS is greater than a note length, sets according to the test needs.
The numeral of setting when the definite value 1000 among the step S104 is test is done corresponding adjustment according to actual conditions.
Carrying out automatic test based on this instrument of the mobile phone end of android system operation, need not to connect other equipment, the tester only needs according to the explanation working procedure, moves easyly, whenever and wherever possible, can move mobile phone and test; In the mobile phone EMS memory specified folder, automatically preserve the log daily record, the reason of misregistration time of origin in running convenient and swiftly navigates to wrong origination point; The visualization interface that provides in the test program, simple and convenient directly perceived, very strong project generic property is arranged, can avoid overlapping development, improve testing efficiency, reduce the testing time.
Above content is to combine concrete preferred implementation to the further explain that the present invention did, and can not assert that practical implementation of the present invention is confined to these explanations.For one of ordinary skill in the art of the present invention, under the prerequisite that does not break away from the present invention's design, make simple change or optimization, all should be considered as protection scope of the present invention.
Claims (7)
1. a SMS automated testing method is applied in the android system, and described method of testing step is following:
Step 1, entering note test program;
Step 2, judge the people that whether is related in the phone directory;
Step 3, be that then the contact number of each in phone directory sends execution in step 4 after the note, otherwise withdraw from the note test program;
Step 4, judge whether the mobile phone transmitter-receiver receives and send the note information of successful;
Step 5, send successfully and then in the log daily record, to show and sends successfully back execution in step 6, otherwise in the log daily record, show send fail after execution in step 6;
Step 6, with the information storage of log daily record at the mobile phone EMS memory specified folder;
Step 7, end note test program.
2. SMS automated testing method according to claim 1 is characterized in that: the note described in the step 3 is random extraction from information bank, and information bank is the set that comprises letter, symbol, numeral and be difficult to resolve word.
3. SMS automated testing method according to claim 2 is characterized in that: the described log daily record of step 5 comprises that can send successful log daily record, transmission failure log daily record and test the other side machine normally support spcial character log daily record.
4. SMS automated testing method according to claim 3 is characterized in that: the origination point and the time of origin of failure are sent in the described transmission failure of step 5 log daily record record.
5. according to each described SMS automated testing method in the claim 1~4, it is characterized in that the detailed step to each contact number transmission note described in the step 3 is following:
Step S101, entering one number send the note program;
Whether step S102, the number of judging input are empty or exist not to be that the phone number of character or input of numeral is greater than 11;
The number of step S103, input is not that digital input or number then directly withdraws from one number transmission note program greater than 11 for empty, existence, otherwise judges whether the note bar number that sends is sky;
Step S104, bar number are then execution in step S106 after the number of importing sends 1 information of sky, otherwise judge whether the number of times that sends is zero perhaps greater than 1000 times;
Step S105, number of times are zero or then directly withdraw from one number greater than 1000 times and send the note program, otherwise send the note of specifying the bar number to the number of input;
Step S106, judge whether the mobile phone transmitter-receiver receives the transmission information of successful;
Step S107, be then in the log daily record, to show to send successfully, otherwise in the log daily record, show and send failure;
Step S108, the log daily record that produces is stored in the mobile phone EMS memory specified folder;
Step S109, withdraw from one number and send the note program.
6. SMS automated testing method according to claim 5; It is characterized in that: the described note of step S101 comprises normal note and long SMS; Normal note is 1 a note length, and long SMS is greater than a note length, sets according to the test needs.
7. SMS automated testing method according to claim 6 is characterized in that: the numeral of setting when the definite value 1000 described in the step S104 is test, do corresponding adjustment according to actual conditions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110287694.8A CN102355642B (en) | 2011-09-26 | 2011-09-26 | Automated testing method of cell phone short messages |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110287694.8A CN102355642B (en) | 2011-09-26 | 2011-09-26 | Automated testing method of cell phone short messages |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102355642A true CN102355642A (en) | 2012-02-15 |
CN102355642B CN102355642B (en) | 2014-07-02 |
Family
ID=45579123
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110287694.8A Expired - Fee Related CN102355642B (en) | 2011-09-26 | 2011-09-26 | Automated testing method of cell phone short messages |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102355642B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662785A (en) * | 2012-04-12 | 2012-09-12 | 青岛海信移动通信技术股份有限公司 | Method and device for acquiring kernel error messages of Android system |
CN106792597A (en) * | 2017-03-22 | 2017-05-31 | 世纪恒通科技股份有限公司 | A kind of short, multimedia message test system and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101132591A (en) * | 2007-09-07 | 2008-02-27 | 腾讯科技(深圳)有限公司 | Method, system and network appliance for testing note business |
CN101409891A (en) * | 2008-11-18 | 2009-04-15 | 中国移动通信集团福建有限公司 | SMS automatization detection system and running method thereof |
CN101453711A (en) * | 2007-12-06 | 2009-06-10 | 中兴通讯股份有限公司 | Automatic test system and test method for mobile phone short message |
CN102111495A (en) * | 2010-12-08 | 2011-06-29 | 北京新媒传信科技有限公司 | Method for testing short messages |
-
2011
- 2011-09-26 CN CN201110287694.8A patent/CN102355642B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101132591A (en) * | 2007-09-07 | 2008-02-27 | 腾讯科技(深圳)有限公司 | Method, system and network appliance for testing note business |
CN101453711A (en) * | 2007-12-06 | 2009-06-10 | 中兴通讯股份有限公司 | Automatic test system and test method for mobile phone short message |
CN101409891A (en) * | 2008-11-18 | 2009-04-15 | 中国移动通信集团福建有限公司 | SMS automatization detection system and running method thereof |
CN102111495A (en) * | 2010-12-08 | 2011-06-29 | 北京新媒传信科技有限公司 | Method for testing short messages |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662785A (en) * | 2012-04-12 | 2012-09-12 | 青岛海信移动通信技术股份有限公司 | Method and device for acquiring kernel error messages of Android system |
CN102662785B (en) * | 2012-04-12 | 2020-09-25 | 青岛海信移动通信技术股份有限公司 | Method and device for acquiring kernel error information of Android system |
CN106792597A (en) * | 2017-03-22 | 2017-05-31 | 世纪恒通科技股份有限公司 | A kind of short, multimedia message test system and method |
Also Published As
Publication number | Publication date |
---|---|
CN102355642B (en) | 2014-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102378132B (en) | Method and device for locating causes of unavailability of mobile terminal network | |
CN101909118B (en) | Method for setting short message prompt tones of mobile communication terminal | |
CN105912455A (en) | Business execution method and server | |
CN101859275A (en) | Method, system and mobile terminal for monitoring application program | |
CN103916541A (en) | Automatic record eliminating method and mobile terminal | |
CN104754136A (en) | Method and system for managing account numbers relevant to mobile phone numbers on basis of intelligent terminals | |
WO2013189363A3 (en) | Method for sending/receiving information by both parties in call state and mobile terminal | |
CN107222490A (en) | A kind of speech verification method | |
CN102355642B (en) | Automated testing method of cell phone short messages | |
CN102811288A (en) | Method and device for recording call information | |
CN102833408B (en) | Method and device for displaying messages | |
CN103327467A (en) | Mobile terminal call forwarding method and system | |
CN107182078A (en) | Method, terminal and the storage device of analysing terminal circuit domain dropping test report | |
CN104506743B (en) | A kind of method and device of dynamic interception phone | |
CN102378212A (en) | Device and method for automatically testing compatibility of subscriber identity module (SIM) card | |
CN104168555B (en) | Communication prompt method and device | |
CN103873698B (en) | Terminal association device and terminal association method | |
CN101686446B (en) | System, device and method for processing mistake of short message of mobile telephone of user | |
CN102572113A (en) | System and method for extracting contact person information from texts to operate mobile phone | |
CN102238292A (en) | Seat login management method | |
CN103024202A (en) | Method and device for displaying operator logos in cellphone status bar | |
CN107786996A (en) | Method of testing, device, system and the PC server of bluetooth performance | |
CN105791507A (en) | Mobile terminal slot identification method and device | |
CN102572800A (en) | Method for SIM (subscriber identity module) card to automatically read information of IMEI (international mobile equipment identity) information of terminal on basis of STK (SIM application tool kit) technology | |
CN101951585A (en) | User identity authentication method, system and mobile communication 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140702 |
|
CF01 | Termination of patent right due to non-payment of annual fee |