CN102355642B - Automated testing method of cell phone short messages - Google Patents

Automated testing method of cell phone short messages Download PDF

Info

Publication number
CN102355642B
CN102355642B CN201110287694.8A CN201110287694A CN102355642B CN 102355642 B CN102355642 B CN 102355642B CN 201110287694 A CN201110287694 A CN 201110287694A CN 102355642 B CN102355642 B CN 102355642B
Authority
CN
China
Prior art keywords
note
daily record
send
cell phone
short messages
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
Application number
CN201110287694.8A
Other languages
Chinese (zh)
Other versions
CN102355642A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201110287694.8A priority Critical patent/CN102355642B/en
Publication of CN102355642A publication Critical patent/CN102355642A/en
Application granted granted Critical
Publication of CN102355642B publication Critical patent/CN102355642B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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

A kind of Automated testing method of cell phone short messages
Technical field
The present invention relates to a kind of mobile phone automatized test based on android, particularly relate to a kind of Automated testing method of cell phone short messages.
Background technology
In the time testing, because test intensity is large, easily in manual testing's process, there is fatigue effect in the short breath function of mobile phone of the prior art, and test has certain limitation, take time and effort, and likely 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 in short message content, comprise spcial character, can not accurately send.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of Automated testing method of cell phone short messages is provided, move easyly, and move mobile phone whenever and wherever possible and test, the test intensity that can bear is large, and testing efficiency is high, simple and convenient, easy to implement.
In order to achieve the above object, the technical solution used in the present invention is, a kind of Automated testing method of cell phone short messages, is applied in android system, and described method of testing step is as follows:
Step 1, enter note test program;
Step 2, judge the people that whether is related in phone directory;
Step 3, be after the each contact number in phone directory sends note, to perform step 4, otherwise exit note test program;
Step 4, judge whether mobile phone transmitter-receiver receives the note successful information of sending;
Step 5, send successfully in log daily record, show sends successfully after execution step 6, otherwise in log daily record, show to send and perform step 6 unsuccessfully afterwards;
Step 6, by the information storage of log daily record at mobile phone EMS memory specified folder;
Step 7, end note test program.
Note described in above-mentioned steps 3 is random extraction from information bank, and information bank is the set that comprises letter, symbol, numeral and be difficult to resolve word.
Can the log daily record described in above-mentioned steps 5 comprise the successful log daily record of transmission, send failed log daily record and test the other side's machine and normally support spcial character log daily record.
Transmission failure log daily record described in above-mentioned steps 5 is recorded and is sent failed origination point and time of origin.
In above-mentioned steps 3, send note to each contact number, its detailed step is as follows:
Step S101, enter one number and send note program;
Whether step S102, the number that judges input are empty or exist not to be that digital character or the phone number of input are greater than 11;
The number of step S103, input be empty, to exist be not that digital input or number are greater than 11 and directly exit one number and send note program, otherwise judge whether the note number sending is sky;
Step S104, number are that sky performs step S106 after the number of input sends 1 information, otherwise judge whether the number of times sending is zero or is greater than 1000 times;
Step S105, number of times are zero or are greater than and directly exit one number for 1000 times and send note program, otherwise send the note of specifying number to the number of input;
Step S106, judge mobile phone transmitter-receiver whether receive send successful information;
Step S107, be in log daily record, to show and send successfully, otherwise show and send unsuccessfully in log daily record;
Step S108, the log daily record of generation is stored in mobile phone EMS memory specified folder;
Step S109, exit one number and send note program.
Described note comprises normal note and long SMS, and normal note is 1 note length, and long SMS, for being greater than a note length, needs to set according to test.
The numeral of setting when definite value 1000 in step S104 is test, is adjusted accordingly according to actual conditions.
Compared with prior art, the invention has the beneficial effects as follows: the first, move this instrument at the mobile phone terminal based on android system and can carry out automatic test, without connecting other equipment, tester only need be according to explanation working procedure, move easy, can move mobile phone whenever and wherever possible, tests; The second, in mobile phone EMS memory specified folder, automatically preserve log daily record, the reason of misregistration time of origin in running, convenient and swiftly navigates to wrong origination point; Three, the visualization interface providing in test program, simple and convenient directly perceived, there is very strong project generic, can avoid overlapping development, improve testing efficiency, reduce the testing time.
Brief description of the drawings
Fig. 1 is 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 deficiencies in the prior art, a kind of Automated testing method of cell phone short messages is provided, to using the mobile phone products of Android system to complete the automatic test that under autonomous testing scheme, information sends, send information from trend cellphone directory All Contacts number, send the information of specified quantity from trend assigned number.
From phone directory, extract contact person's phone information, then each contact person's telephone number is sent to information, 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 success or not meeting and in mobile phone EMS memory file, generate a log information, both can detecting information feedback whether can send successfully, and can test again the other side's machine and can normally support spcial character.
Be elaborated with reference to accompanying drawing below in conjunction with embodiment, to technical characterictic of the present invention and advantage are interpretated more in-depth.
As shown in Figure 1, a kind of Automated testing method of cell phone short messages, is applied in android system method flow diagram of the present invention, and described method of testing step is as follows:
Step 1, enter note test program;
Step 2, judge the people that whether is related in phone directory;
Step 3, be after the each contact number in phone directory sends note, to perform step 4, otherwise exit note test program;
Step 4, judge whether mobile phone transmitter-receiver receives the note successful information of sending;
Step 5, send successfully in log daily record, show sends successfully after execution step 6, otherwise in log daily record, show to send and perform step 6 unsuccessfully afterwards;
Step 6, by the information storage of log daily record at mobile phone EMS memory specified folder;
Step 7, end note test program.
Note described in above-mentioned steps 3 is random extraction from information bank, and information bank is the set that comprises letter, symbol, numeral and be difficult to resolve word.
Can the log daily record described in above-mentioned steps 5 comprise the successful log daily record of transmission, send failed log daily record and test the other side's machine and normally support spcial character log daily record.
Transmission failure log daily record described in above-mentioned steps 5 is recorded and is sent failed origination point and time of origin.
As shown in Figure 2, in above-mentioned steps 3, send note to each contact number, its detailed step is as follows:
Step S101, enter one number and send note program;
Whether step S102, the number that judges input are empty or exist not to be that digital character or the phone number of input are greater than 11;
The number of step S103, input be empty, to exist be not that digital input or number are greater than 11 and directly exit one number and send note program, otherwise judge whether the note number sending is sky;
Step S104, number are that sky performs step S106 after the number of input sends 1 information, otherwise judge whether the number of times sending is zero or is greater than 1000 times;
Step S105, number of times are zero or are greater than and directly exit one number for 1000 times and send note program, otherwise send the note of specifying number to the number of input;
Step S106, judge mobile phone transmitter-receiver whether receive send successful information;
Step S107, be in log daily record, to show and send successfully, otherwise show and send unsuccessfully in log daily record;
Step S108, the log daily record of generation is stored in mobile phone EMS memory specified folder;
Step S109, exit one number and send note program.
Described note comprises normal note and long SMS, and normal note is 1 note length, and long SMS, for being greater than a note length, needs to set according to test.
The numeral of setting when definite value 1000 in step S104 is test, is adjusted accordingly according to actual conditions.
Move this instrument at the mobile phone terminal based on android system and can carry out automatic test, without connecting other equipment, tester only need, according to explanation working procedure, move easyly, whenever and wherever possible, can move mobile phone and test; In mobile phone EMS memory specified folder, automatically preserve log daily record, the reason of misregistration time of origin in running, convenient and swiftly navigates to wrong origination point; The visualization interface providing in test program, simple and convenient directly perceived, there is very strong project generic, can avoid overlapping development, improve testing efficiency, reduce the testing time.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For those skilled in the art of the invention, without departing from the inventive concept of the premise, make simple change or optimization, all should be considered as protection scope of the present invention.

Claims (6)

1. an Automated testing method of cell phone short messages, is applied in Android system, and described method of testing step is as follows:
Step 1, enter note test program;
Step 2, judge the people that whether is related in phone directory;
Step 3, be after the each contact number in phone directory sends note, to perform step 4, otherwise exit note test program;
The detailed step that sends note to each contact number is as follows:
Step S101, enter one number and send note program;
Whether step S102, the number that judges input are empty or exist not to be that digital character or the phone number of input are greater than 11;
The number of step S103, input be empty, to exist be not that digital input or number are greater than 11 and directly exit one number and send note program, otherwise judge whether the note number sending is sky;
Step S104, number are that sky performs step 4 after the number of input sends 1 information, otherwise judge whether the number of times sending is zero or is greater than 1000 times;
Step S105, number of times are zero or are greater than and directly exit one number for 1000 times and send note program, otherwise send the note of specifying number to the number of input;
Step 4, judge whether mobile phone transmitter-receiver receives the note successful information of sending;
Step 5, send successfully in log daily record, show sends successfully after execution step 6, otherwise in log daily record, show to send and perform step 6 unsuccessfully afterwards;
Step 6, by the information storage of log daily record at mobile phone EMS memory specified folder;
Step 7, end note test program.
2. Automated testing method of cell phone short messages according to claim 1, is characterized in that: the note described in 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. Automated testing method of cell phone short messages according to claim 2, is characterized in that: can the log daily record described in step 5 comprise the successful log daily record of transmission, send failed log daily record and test the other side's machine and normally support spcial character log daily record.
4. Automated testing method of cell phone short messages according to claim 3, is characterized in that: the transmission failure log daily record described in step 5 is recorded and sent failed origination point and time of origin.
5. Automated testing method of cell phone short messages according to claim 4, it is characterized in that: the note described in step S101 comprises normal note and long SMS, normal note is 1 note length, and long SMS, for being greater than a note length, needs to set according to test.
6. Automated testing method of cell phone short messages according to claim 5, is characterized in that: the numeral of setting when 1000 times described in step S104 are test, is adjusted accordingly according to actual conditions.
CN201110287694.8A 2011-09-26 2011-09-26 Automated testing method of cell phone short messages Expired - Fee Related CN102355642B (en)

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 CN102355642A (en) 2012-02-15
CN102355642B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662785B (en) * 2012-04-12 2020-09-25 青岛海信移动通信技术股份有限公司 Method and device for acquiring kernel error information of Android system
CN106792597B (en) * 2017-03-22 2020-03-24 世纪恒通科技股份有限公司 Short message and multimedia message test system and method

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN102355642A (en) 2012-02-15

Similar Documents

Publication Publication Date Title
CN101909118B (en) Method for setting short message prompt tones of mobile communication terminal
CN101859275A (en) Method, system and mobile terminal for monitoring application program
CN104853020A (en) Interaction test method and terminal thereof
CN102378132A (en) Method and device for locating causes of unavailability of mobile terminal network
CN107222490A (en) A kind of speech verification method
CN104168385A (en) Double card switchover method and device
WO2013189363A3 (en) Method for sending/receiving information by both parties in call state and mobile terminal
CN102355642B (en) Automated testing method of cell phone short messages
CN102148886A (en) Method for sorting contact list in mobile phone address book
CN103327467A (en) Mobile terminal call forwarding method and system
CN101452631A (en) Test method and system for management terminal of power use
CN102801484B (en) Automatic Bluetooth rate test method based on Android
CN107182078A (en) Method, terminal and the storage device of analysing terminal circuit domain dropping test report
CN102378212A (en) Device and method for automatically testing compatibility of subscriber identity module (SIM) card
CN104168555B (en) Communication prompt method and device
CN107786996A (en) Method of testing, device, system and the PC server of bluetooth performance
CN201374745Y (en) Mobile communication terminal
CN101686446A (en) System, device and method for processing mistake of short message of mobile telephone of user
CN104168386B (en) Double card changing 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
CN102638622A (en) Realization method for calling duration hint for mobile phone missed call
CN104994552A (en) Conversation calling method and system of intelligent terminal
CN103813034B (en) A kind of method of business realizing, terminal and service server
CN202957985U (en) Network dial testing system
CN205092870U (en) Automatic check detecting system of refrigerator wiFi domain name

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