CN102307254A - Method for realizing automatic mobile origination call (MO) and mobile termination call (MT) tests - Google Patents

Method for realizing automatic mobile origination call (MO) and mobile termination call (MT) tests Download PDF

Info

Publication number
CN102307254A
CN102307254A CN201110252187A CN201110252187A CN102307254A CN 102307254 A CN102307254 A CN 102307254A CN 201110252187 A CN201110252187 A CN 201110252187A CN 201110252187 A CN201110252187 A CN 201110252187A CN 102307254 A CN102307254 A CN 102307254A
Authority
CN
China
Prior art keywords
test
failure
dialing
mobile phone
time
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
Application number
CN201110252187A
Other languages
Chinese (zh)
Other versions
CN102307254B (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 CN 201110252187 priority Critical patent/CN102307254B/en
Publication of CN102307254A publication Critical patent/CN102307254A/en
Application granted granted Critical
Publication of CN102307254B publication Critical patent/CN102307254B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses methods for realizing automatic mobile origination call (MO) and mobile termination call (MT) tests. An MO test is used for testing whether a mobile origination call function is normal or not, namely testing whether a calling communication function is normal or not when a mobile phone calls another mobile phone. An MT test is used for testing a mobile termination call function is normal or not, namely testing whether a receiving communication function is normal or not when the mobile phone is called by another mobile phone. In the MO test, a bottom-layer calling application programming interface (API) and own counter are called, and parameters such as call numbers, the number of calls, call time and the like in the test are recorded; and a media recorder interface records the sound information of receiver and a microphone, and stores the recorded sound information into a memory card. In the MT test, a message receiver monitors incoming calls, automatically answers the incoming calls under the condition of enabling automatic answering if the mobile phone is called, and records sounds, successful answering times and unsuccessful answering times. The method is highly universal, and repeated development can be avoided; the method is implemented in automated scripts by practice; and automatic dialing and answering is realized, test records are recorded, the sounds recorded in the calls are stored, and repeated tests in data services are performed.

Description

A kind of method that realizes mobile phone MO and MT automatic test
Technical field
The present invention relates to a kind of automated testing method, particularly relate to a kind of method that realizes mobile phone MO and MT automatic test based on android.
Background technology
The content that field testing relates to all is the daily function commonly used of user, breathes out such as the phone incoming call, and information is sent, browser browsing page or the like.It is more loaded down with trivial details that yet manual work repeats field testing; If develop a kind of MO and MT automated testing method; Will be in mobile phone test; Through this means of automation, reach a kind of manual operations and simplify purpose, and save the manual operations time; While is with the output of LOG; Reach the economization time, raise the efficiency, location of mistake is purpose accurately.
The MO test is the abbreviation of English Mobile Origination Call, is meant the caller test, and whether normal, promptly call to other mobile phones from this machine if being used for testing mobile phone caller function, and whether the exhalation communication function is normal.The MT test is the abbreviation of Mobile Termination Call, is meant called test, and whether be used for the called function of testing mobile phone normal, promptly calls for this machine from other mobile phones, and whether receive communication function normal.
Summary of the invention
The objective of the invention is to overcome the deficiency of prior art, a kind of method that realizes mobile phone MO and MT automatic test is provided, the phone incoming call is breathed out carry out the classification of automation demand, simple to operation, improved efficient, and be easy to realize.
In order to achieve the above object, the technical scheme that the present invention adopts is, a kind of method that realizes mobile phone MO automatic test, and its step is following:
Step 101, MO test prepare to get into test program;
Step 102, begin the test;
The phone number of step 103, judgement input is not empty or number of times is not sky or non-vanishing;
Step 104, be execution in step 105 then, otherwise content is not imported in prompting, re-entered execution in step 103 behind the number;
Step 105, judge whether the air time has value;
Step 106, be then directly to judge blanking time whether value is arranged, otherwise be provided with the air time is to judge after 10 seconds whether value is arranged blanking time;
Having step 107, blanking time value to judge directly then whether the failure replay time have value, is to judge after 1 second whether the failure replay time has value otherwise be set blanking time;
Step 108, failure have and to be worth then execution in step 109 the replay time, are execution in step 109 after 1 second otherwise be provided with by the replay time;
Step 109, by assigned number repeat the dialing;
Step 110, judge whether to click and stop dialing;
Step 111, be execution in step 114 then, otherwise judge whether that click to dial suspends;
Step 112, dialing time-out then judge whether to continue dialing, the then execution in step 109 that continues to dial, otherwise dialing is in halted state;
Dialing does not suspend judges then whether dialing fails;
Step 113, dialing failure then add the frequency of failure 1 back and show the residue degree and the frequency of failure, and dial-up success is constant and the demonstration residue degree and the frequency of failure of the frequency of failure then;
Step 114, dialing end automatically;
Step 115, judge whether to withdraw from automatic MO test;
Step 116, be MO EOT then, otherwise return step 102.
10 second air time described in the above-mentioned steps, 1 second blanking time, 1 second failure replay time are not imported the acquiescence preset data value under the concrete data for the user, according to concrete test adjustment.
The described residue degree of step 113 refers to before test; Preset dialing number of times; Judge the number of times also need dial according to residue degree, the frequency of failure refer to the to dial number of times of failure, when two parameters of the residue degree and the frequency of failure show in order to allow the user judge test mode and test result.
Described MO method of testing also comprises Recording Process, promptly whole test communication process is recorded.
A kind of method that realizes mobile phone MT automatic test, its step is following:
Step 201, MT test prepare to get into test program;
Step 202, begin the test;
Step 203, judged whether incoming call;
Step 204, nothing incoming call then continue execution in step 203, have incoming call then to connect automatically, and the received calls number of times is added 1;
Step 205, judge whether to withdraw from automatic MT test;
Step 206, be MT EOT then, otherwise return step 102.
Described MT method of testing also comprises Recording Process, promptly whole test communication process is recorded.
Compared with prior art, the invention has the beneficial effects as follows: realize most of pressure test of mobile phone terminal test automation completion field testing; Highly versatile can be avoided overlapping development, saves human resources; Through practice, progressively realize pressure case intelligentized design, and be implemented in the automatized script; Realize dialing automatically, receiving calls, calling record is preserved in the record test record, carries out the retest of data service; Easy to operate, the effective failure information of real-time Transmission is held to PC.
Description of drawings
Fig. 1 is a MO automatic test flow chart of the present invention;
Fig. 2 is a MT automatic test flow chart of the present invention.
Embodiment
Purport of the present invention is to overcome the deficiency of prior art, and a kind of realization mobile phone MO and MT automated testing method are provided, and MO is the caller test; MT is called test; For the correlation function of communication function exhalation and two interwovenesses of incoming call, be a main body, two passages.
Whether the MO test is used for testing mobile phone caller function normal, promptly calls to other mobile phones from this machine, and whether the exhalation communication function is normal.Whether the MT test is used for the called function of testing mobile phone normal, promptly calls for this machine from other mobile phones, and whether receive communication function normal.MO test is through the API that calls bottom and make a phone call and call the counter that carries and test, and to conversation number, parameters such as talk times and air time are carried out record; Record receiver and the microphone acoustic information is saved in the storage card through the medium recorder interface, preserve recording.The MT test: through message receiver, the monitoring of sending a telegram here, if under the situation of unlatching auto-pickup incoming call is arranged, then auto-pickup, and realization is recorded and is write down the successful frequency of failure.Highly versatile of the present invention can be avoided overlapping development; Be implemented in the automatized script through practice; Realize dialing automatically, receiving calls, calling record is preserved in the record test record, carries out the retest of data service.
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.
MO automatic test flow chart of the present invention as shown in Figure 1, a kind of method that realizes mobile phone MO automatic test, its step is following:
Step 101, MO test prepare to get into test program;
Step 102, begin the test;
The phone number of step 103, judgement input is not empty or number of times is not sky or non-vanishing;
Step 104, be execution in step 105 then, otherwise content is not imported in prompting, re-entered execution in step 103 behind the number;
Step 105, judge whether the air time has value;
Step 106, be then directly to judge blanking time whether value is arranged, otherwise be provided with the air time is to judge after 10 seconds whether value is arranged blanking time;
Having step 107, blanking time value to judge directly then whether the failure replay time have value, is to judge after 1 second whether the failure replay time has value otherwise be set blanking time;
Step 108, failure have and to be worth then execution in step 109 the replay time, are execution in step 109 after 1 second otherwise be provided with by the replay time;
Step 109, by assigned number repeat the dialing;
Step 110, judge whether to click and stop dialing;
Step 111, be execution in step 114 then, otherwise judge whether that click to dial suspends;
Step 112, dialing time-out then judge whether to continue dialing, the then execution in step 109 that continues to dial, otherwise dialing is in halted state;
Dialing does not suspend judges then whether dialing fails;
Step 113, dialing failure then add the frequency of failure 1 back and show the residue degree and the frequency of failure, and dial-up success is constant and the demonstration residue degree and the frequency of failure of the frequency of failure then;
Step 114, dialing end automatically;
Step 115, judge whether to withdraw from automatic MO test;
Step 116, be MO EOT then, otherwise return step 102.
10 second air time described in the above-mentioned steps, 1 second blanking time, 1 second failure replay time are not imported the acquiescence preset data value under the concrete data for the user, according to concrete test adjustment.
The described residue degree of step 113 refers to before test; Preset dialing number of times; Judge the number of times also need dial according to residue degree, the frequency of failure refer to the to dial number of times of failure, when two parameters of the residue degree and the frequency of failure show in order to allow the user judge test mode and test result.
Described MO method of testing also comprises Recording Process, and whole test communication process is recorded.
MT automatic test flow chart of the present invention as shown in Figure 2, a kind of method that realizes mobile phone MT automatic test, its step is following:
Step 201, MT test prepare to get into test program;
Step 202, begin the test;
Step 203, judged whether incoming call;
Step 204, nothing incoming call then continue execution in step 203, have incoming call then to connect automatically, and the received calls number of times is added 1;
Step 205, judge whether to withdraw from automatic MT test;
Step 206, be MT EOT then, otherwise return step 102.
Described MT method of testing also comprises Recording Process, and whole test communication process is recorded.
Through mobile phone MO and MT test, can judge effectively whether the caller function of mobile phone and called function be normal, whether the communication function of promptly breathing out is normal, whether the reception communication function is normal, and whole process automation, made things convenient for those skilled in the art's test.
Realize most of pressure test of mobile phone terminal test automation completion field testing; Highly versatile can be avoided overlapping development, saves human resources; Through practice, progressively realize pressure case intelligentized design, and be implemented in the automatized script; Realize dialing automatically, receiving calls, calling record is preserved in the record test record, carries out the retest of data service; Easy to operate, the effective failure information of real-time Transmission is to mobile phone EMS memory.
Although the present invention has made the clear description of accomplishing through instantiation to how realizing mobile phone MO and MT automated testing method; But the present invention is not limited only to said embodiment, and to reach identical purpose be contingent and all be included in the present invention through simple reprogramming.

Claims (6)

1. method that realizes mobile phone MO automatic test, its step is following:
Step 101, MO test prepare to get into test program;
Step 102, begin the test;
The phone number of step 103, judgement input is not empty or number of times is not sky or non-vanishing;
Step 104, be execution in step 105 then, otherwise content is not imported in prompting, re-entered execution in step 103 behind the number;
Step 105, judge whether the air time has value;
Step 106, be then directly to judge blanking time whether value is arranged, otherwise be provided with the air time is to judge after 10 seconds whether value is arranged blanking time;
Having step 107, blanking time value to judge directly then whether the failure replay time have value, is to judge after 1 second whether the failure replay time has value otherwise be set blanking time;
Step 108, failure have and to be worth then execution in step 109 the replay time, are execution in step 109 after 1 second otherwise be provided with by the replay time;
Step 109, by assigned number repeat the dialing;
Step 110, judge whether to click and stop dialing;
Step 111, be execution in step 114 then, otherwise judge whether that click to dial suspends;
Step 112, dialing time-out then judge whether to continue dialing, the then execution in step 109 that continues to dial, otherwise dialing is in halted state;
Dialing does not suspend judges then whether dialing fails;
Step 113, dialing failure then add the frequency of failure 1 back and show the residue degree and the frequency of failure, and dial-up success is constant and the demonstration residue degree and the frequency of failure of the frequency of failure then;
Step 114, dialing end automatically;
Step 115, judge whether to withdraw from automatic MO test;
Step 116, be MO EOT then, otherwise return step 102.
2. the method for realization mobile phone MO automatic test according to claim 1; It is characterized in that: described 10 second air time, 1 second blanking time, 1 second failure replay time are not imported the acquiescence preset data value under the concrete data for the user, according to concrete test adjustment.
3. the method for realization mobile phone MO automatic test according to claim 2; It is characterized in that: the described residue degree of step 113 refers to before test; Preset dialing number of times is judged the number of times that also need dial according to residue degree, the frequency of failure refer to the to dial number of times of failure.
4. according to the method for each described realization mobile phone MO automatic test in the claim 1~3, it is characterized in that: described MO method of testing also comprises Recording Process, promptly whole test communication process is recorded.
5. method that realizes mobile phone MT automatic test, its step is following:
Step 201, MT test prepare to get into test program;
Step 202, begin the test;
Step 203, judged whether incoming call;
Step 204, nothing incoming call then continue execution in step 203, have incoming call then to connect automatically, and the received calls number of times is added 1;
Step 205, judge whether to withdraw from automatic MT test;
Step 206, be MT EOT then, otherwise return step 102.
6. the method for realization mobile phone MT automatic test according to claim 5 is characterized in that: described MT method of testing also comprises Recording Process, promptly whole test communication process is recorded.
CN 201110252187 2011-08-30 2011-08-30 Method for realizing automatic mobile origination call (MO) tests Expired - Fee Related CN102307254B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110252187 CN102307254B (en) 2011-08-30 2011-08-30 Method for realizing automatic mobile origination call (MO) tests

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110252187 CN102307254B (en) 2011-08-30 2011-08-30 Method for realizing automatic mobile origination call (MO) tests

Publications (2)

Publication Number Publication Date
CN102307254A true CN102307254A (en) 2012-01-04
CN102307254B CN102307254B (en) 2013-10-09

Family

ID=45381056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110252187 Expired - Fee Related CN102307254B (en) 2011-08-30 2011-08-30 Method for realizing automatic mobile origination call (MO) tests

Country Status (1)

Country Link
CN (1) CN102307254B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024772A (en) * 2012-12-07 2013-04-03 广东省电信工程有限公司 Automatic call testing system and method of voice special line
CN103139400A (en) * 2012-12-28 2013-06-05 上海顶竹通讯技术有限公司 Communication network quality test device and test method
CN108376115A (en) * 2018-01-29 2018-08-07 数据通信科学技术研究所 Across the Android platform automated testing method of one kind and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0675624A1 (en) * 1994-03-29 1995-10-04 Gpt Limited Telecommunication customer interface
CN1960396A (en) * 2005-11-04 2007-05-09 金宝电子工业股份有限公司 System and method for testing auto dialing and picking up functions of handset
CN101547466A (en) * 2009-05-05 2009-09-30 广东高新兴通信股份有限公司 An automatic call-testing system and method used to test the quality of the mobile communication network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0675624A1 (en) * 1994-03-29 1995-10-04 Gpt Limited Telecommunication customer interface
CN1960396A (en) * 2005-11-04 2007-05-09 金宝电子工业股份有限公司 System and method for testing auto dialing and picking up functions of handset
CN101547466A (en) * 2009-05-05 2009-09-30 广东高新兴通信股份有限公司 An automatic call-testing system and method used to test the quality of the mobile communication network

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024772A (en) * 2012-12-07 2013-04-03 广东省电信工程有限公司 Automatic call testing system and method of voice special line
CN103024772B (en) * 2012-12-07 2016-07-06 广东省电信工程有限公司 A kind of voice special line auto-dial testing system and method
CN103139400A (en) * 2012-12-28 2013-06-05 上海顶竹通讯技术有限公司 Communication network quality test device and test method
CN108376115A (en) * 2018-01-29 2018-08-07 数据通信科学技术研究所 Across the Android platform automated testing method of one kind and system

Also Published As

Publication number Publication date
CN102307254B (en) 2013-10-09

Similar Documents

Publication Publication Date Title
CN103856624B (en) Identify method and the mobile terminal of identity
US20090253457A1 (en) Audio signal processing for certification enhancement in a handheld wireless communications device
CN103002421B (en) Anti-processing method, system and mobile communication terminal of bothering in a kind of call
EP2503765B1 (en) Method and terminal for leaving video messages
CN103227851B (en) Method and device for communication terminal recording
CN110381207A (en) Method and device for connecting communication terminal, computer equipment and storage medium
CN102255994B (en) Data recording storage method and system for mobile terminal
CN104735238A (en) Communication recording method and device
CN101286768A (en) Remote controller for Bluetooth mobile phone
CN102307254B (en) Method for realizing automatic mobile origination call (MO) tests
CN107833064A (en) A kind of phone integrates cloud CRM system and method
CN101478717A (en) Call recording method, system and mobile communication terminal
CN103281425A (en) Method and device for analyzing contact through conversation voice
CN103634474A (en) Automatic hands-free call method and mobile terminal
CN110035167B (en) Recording method and related device
CN101610378B (en) Method for automatically answering and recording video telephone and video telephone
CN109327593B (en) Satellite communication terminal audio test system and method
CN104902094A (en) Mobile terminal communication method and mobile terminal
CN105007372A (en) Method for processing call of mobile terminal
CN107959720A (en) The method and system of calling record cloud storage
CN104967621B (en) The display methods and system of voice calling service
CN104994552A (en) Conversation calling method and system of intelligent terminal
CN104683960A (en) Method and device for implementing voice communication
CN106101367B (en) Recording processing method and system
CN210380947U (en) Distributed communication device

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
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.

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: 20131009