CN104202489B - Method for testing phone devices - Google Patents

Method for testing phone devices Download PDF

Info

Publication number
CN104202489B
CN104202489B CN201410495302.0A CN201410495302A CN104202489B CN 104202489 B CN104202489 B CN 104202489B CN 201410495302 A CN201410495302 A CN 201410495302A CN 104202489 B CN104202489 B CN 104202489B
Authority
CN
China
Prior art keywords
telephone plant
test
execution
main frame
judge
Prior art date
Application number
CN201410495302.0A
Other languages
Chinese (zh)
Other versions
CN104202489A (en
Inventor
王丽丽
熊伟
Original Assignee
福建联迪商用设备有限公司
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 福建联迪商用设备有限公司 filed Critical 福建联迪商用设备有限公司
Priority to CN201410495302.0A priority Critical patent/CN104202489B/en
Publication of CN104202489A publication Critical patent/CN104202489A/en
Application granted granted Critical
Publication of CN104202489B publication Critical patent/CN104202489B/en

Links

Abstract

The invention provides a method for testing phone devices. The method comprises the following steps: S10: presetting the test program process, and introducing in a phone device mainframe and a phone device slave machine; S20: carrying out mutual communication between the phone device mainframe and the phone device slave machine according to the test program process; S30: when anomalies occur in the mutual communication process, automatically recovering the site, redialing for communication by the dialing part, and recording the reason for the anomalies; S40: if no anomalies occur in the mutual communication process, allowing the phone device mainframe to pass the test; S50: if any anomalies occur, showing that the phone device mainframe fails the test. The method solves the problems that manual intervention is required in the talking test of the phone devices, and the talking test is complicated in process and low in test efficiency; the mutual communication operation is carried out between the two phone devices according to the preset test program process to complete the specified test content; when any anomalies occur, the rest operation can be continued by recovering the site, the failure cause is recorded, and manual intervention is not needed.

Description

A kind of method of telephone plant test

Technical field

The present invention relates to communication technique field, particularly relate to a kind of method of telephone plant test.

Background technology

In the method for testing of legacy telephony equipment, it is electrically operated, not only that needs manually carry out making a return journey of complexity to telephone plant Consume manpower, also add the possibility of artificial error, extremely inefficient.And adopt third party device (call equipment or meter Calculation machine) telephone plant is tested, once mistake occurs in test process, just need to manually adjust, still cannot break away from manpower Intervene, and process is complicated, based on this reason it is necessary to offer design is a kind of can solve automatic call testing between telephone plant Method, to realize the real-time automatic test between telephone plant.

Content of the invention

The technical problem to be solved is: provides a kind of method of telephone plant test, solves telephone plant Speaking test needs human intervention, process complexity and the not high problem of testing efficiency.

In order to solve above-mentioned technical problem, the technical solution used in the present invention is: a kind of method of telephone plant test, bag Include:

S10: default test program flow process, and import telephone plant main frame and telephone plant slave;

S20: telephone plant main frame is in communication with each other according to test program flow process with telephone plant slave;

S30: the automatic restoring scene when the process that is in communication with each other abnormal, by dialing party again dialcom, and records Abnormal cause;

S40: if communication process is without exception, telephone plant main frame passes through test;

S50: if occurring abnormal, telephone plant main frame does not pass through to test.

The beneficial effects of the present invention is: be different from the telephone plant of prior art test process need artificial or the Three method, apparatus carry out electrically operated, the not only labor intensive of making a return journey of complexity to telephone plant, also increase the probability of artificial error Inefficient method of testing.The present invention provides one kind to be independent of third party device, is directly tested between two telephone plants Method, after importing the good test program flow process of prior Programming Design in telephone plant main frame and equipment slave, phone Device Host is voluntarily in communication with each other according to program circuit with telephone plant slave, and telephone plant main frame is carried out with the survey of telephony feature Examination.And break down in test process, and when cannot continue next test, automatic decision restoring scene to be continued next step And record fault message, to analyze suddenly,.Whole test process is automatically performed, without joining of manual intervention and third party device Close, test process is simple and convenient.

Brief description

Fig. 1 is a kind of method testing flow chart of telephone plant of an embodiment of the present invention test;

Fig. 2 is the execution flow process of telephone plant main frame in the method that a kind of telephone plant of an embodiment of the present invention is tested Figure;

Fig. 3 is the execution flow process of telephone plant slave in the method that a kind of telephone plant of an embodiment of the present invention is tested Figure;

Fig. 4 is the execution flow chart of tested telephone plant in the present invention one specific embodiment;

Fig. 5 is the execution flow chart coordinating end equipment in the present invention one specific embodiment.

Specific embodiment

By describing the technology contents of the present invention in detail, being realized purpose and effect, below in conjunction with embodiment and coordinate attached Figure is explained.

The design of most critical of the present invention is: is carried out according to the test program flow process reserved in advance in advance between two telephone plants Mutual traffic operation, to complete the test content specifying, can continue remaining behaviour when abnormal by restoring scene Make, and record failure cause, without manual intervention.

Refer to Fig. 1 to Fig. 3, the present invention provides a kind of method of telephone plant test, comprising:

Step s10: default test program flow process, and import telephone plant main frame and telephone plant slave;

Step s20: telephone plant main frame is in communication with each other according to test program flow process with telephone plant slave;

Step s30: the automatic restoring scene when the process that is in communication with each other abnormal, by dialing party again dialcom, and Recording exceptional reason;

Step s40: if communication process is without exception, telephone plant main frame passes through test;

Step s50: if occurring abnormal, telephone plant main frame does not pass through to test.

Knowable to foregoing description, the beneficial effects of the present invention is: a kind of side of telephone plant test of the present invention Method, sets tested test-run a machine as telephone plant main frame, and abutting end is telephone plant slave.First actively exhaled by telephone plant main frame Go out, then the incoming call of the equipment slave that receives calls, if the cyclic process of normal actively exhalation again is reaching test request, and in test During if abnormal conditions occur, will by judge to automatically restore to abnormal occur before scene, and the reason recording exceptional, continue Continuous execution next step, completes to test.There will not be and test process is just terminated due to glitch, need artificial guard, and frequency The situation that numerous inspection, trouble shooting reason lead to.It is automatically performed communication according to the flow process reserved in advance in advance between telephone plant to survey Examination, process is simple and not error-prone, and testing process once configures and just can complete all to test content, need not repeatedly compile and people Work is intervened, and greatly promotes the efficiency of telephone plant test.

Further, described step s20 comprises the following steps to step s30:

S100: telephone plant main frame actively breathes out;

S200: judge whether telephone plant slave is successfully connected, if so, then telephone plant slave and telephone plant main frame exist Call, execution step s210 is kept in preset duration;If it is not, being then considered as fault, execution step s230;

S210: judge whether occur in the air time breaking;If not occurring breaking, normal talking is hung up after terminating, is held Row step s300;If broken string occurs, it is considered as fault, execution step s230;

S230: determine whether to break down for the first time;If so, then stop test;If it is not, then terminating to converse, record different Often reason, recovers test scene, execution step s100;

S300: telephone plant slave actively breathes out;

S400: judge whether telephone plant main frame is successfully connected, if so, then telephone plant slave and telephone plant main frame exist Keep call in preset duration, terminate after execution step s210 to normal talking to hang up or stop to test;If it is not, then failure judgement Whether number of times exceeds preset value;If so, then stop test;If it is not, then terminating to converse, recording exceptional reason, recover test scene, Execution step s300;

Circulation execution step s100~s400 to telephone plant main frame and telephone plant slave talk times reach default Value.

Further, step s10 comprises the following steps:

S1: default test program flow process;

S2: initialization telephone plant main frame and telephone plant slave, described test program flow process is imported telephone plant master Machine and telephone plant slave;

S3: setting device Host and telephone plant slave are the radio telephone mode;

Further, in step s20, the step of described telephone plant main frame execution includes following:

S11: telephone plant main frame off-hook dials;

S12: judge whether to have connection event in preset duration, if so, then telephone plant slave and telephone plant main frame Keep call, execution step s13 in preset duration, if it is not, being then considered as fault, and judge whether to execute error for the first time, if No, then execution step s14, if so, then stop test, pointed out;

S13: judge whether occur in the air time breaking, if not occurring breaking, normal talking is hung up after terminating;If going out Now break, be then considered as fault, execution step s14;

S14: determined whether reply test scene;If so, then stop test;If it is not, then actively hanging up, and judge be No continue to exceed preset failure number of times;If so, telephone plant main frame, return to step s1 are then closed;If it is not, then return to step s11;

Further, the step that described telephone plant main frame executes also includes following:

S15: judge whether receive calling event in preset duration;If so, then execution step s16;If it is not, then executing step Rapid s14;

S16: judge whether caller ID is telephone plant slave, if it is not, then rejection, return to step s11;If so, then hold Row step s17;

S17: judge whether there is connection in preset duration;If so, then telephone plant slave and telephone plant main frame are being preset Keep call in duration, and judge whether occur in the air time breaking;If not occurring breaking, normal talking;If occurring disconnected Line, then be considered as fault, execution step s14.

Further, in step s20, the step of described telephone plant slave execution includes following:

S21: judging whether there is calling event in preset duration, if it is not, being then considered as fault, being pointed out;If so, then judge It is whether the incoming call of telephone plant main frame, if it is not, then rejection, return to step s21, if so, then answer, execution step s22;

S22: judge whether there is connection event in preset duration, if it is not, then execution step s23;If so, then converse, execution Step s24;

S23: determined whether reply test scene;If so, then stop test;If it is not, then actively hanging up, and judge be No continue to exceed preset failure number of times;If so, telephone plant main frame, return to step s1 are then closed;If it is not, then return to step s21;

S24: judging whether occur in the air time breaking, if not occurring breaking, hanging up after normal talking;If occurring disconnected Line, then be considered as fault, execution step s23.

Further, the step that described telephone plant slave executes also includes following:

S24: judge whether be connected to the event of hanging up of main station in preset duration, if so, then execution step s25;If it is not, Then actively hang up, execution step s25;

S25: equipment slave off-hook dials, and judges whether api runs succeeded, if it is not, then execution step s23;If so, then sentence Whether there is connection event, if so, then telephone plant slave and telephone plant main frame keep preset duration ground to lead in disconnected preset duration Words, and execution step s26;If it is not, then execution step s23;

S26: judge whether to occur in the air time to break, if so, then execution step s23;If it is not, then actively hanging up, hold Row step s27;

S27: judge whether to hang up event in preset duration, if so, then return to step s21;If otherwise actively hanging up, hold Row step s21.

Further, the default number of stoppages is three times.

Refer to Fig. 4 and Fig. 5;Embodiment one includes:

(1) actively breathe out;

If a) other side successfully connects, converse 10min, and during a call judges whether phone disconnects, after normal talking terminates Hang up the telephone.Flow process is answered in entrance;

If b) other side's access failure, judge whether to execute for the first time, if then stopping test for the first time;If not for the first time then Hang up the telephone;

If c) continuous occur 3 times breathing out mistake or abnormal disconnection then it is assumed that module extremely, closes telephone plant again of conversing Open;If after restarting telephone plant, malfunction again, then stop test.

(2) answer flow process:

A) wait incoming call, have time-out time;

B) receive abutting end incoming call then to answer, converse 10min, wait other side to hang up;If harassing call, then rejection;

If c) continuous 3 wait incoming call mistakes or the abnormal disconnection of call then it is assumed that module is abnormal, close telephone plant Again open;If after restarting telephone plant, malfunction again, then stop test.

If d) other side's time-out is not hung up, the machine is hung up the telephone;

E) time delay for a period of time, enters and actively breathes out flow process.

Embodiments of the invention two, comprising:

Test slave listens before incoming call, more actively breathes out, if normally enter back into incoming call intercepting, execute this circulation repeatedly with Reach test request.If abnormal conditions in test process, simultaneously time delay for a period of time, continues to return to the scene before abnormal appearance Continuous next circulation, recording exceptional reason simultaneously.Idiographic flow is as follows:

(1) answer flow process:

A) incoming call, no time-out time are waited;

B) receive incoming call then to answer, converse 10min, wait other side to hang up;If harassing call, then rejection;

If c) continuous the abnormal disconnection of 3 calls then it is assumed that module is abnormal, close telephone plant and again open;If restarting After telephone plant, malfunction again, then stop test.

If d) other side's time-out is not hung up, the machine is hung up the telephone;

E) time delay for a period of time, enters and actively breathes out flow process.

(2) actively breathe out;

If a) other side successfully connects, converse 10min, and during a call judges whether phone disconnects, after normal talking terminates Hang up the telephone.Flow process is answered in entrance;

If b) other side's access failure, judge whether to execute for the first time, if then stopping test for the first time;If not for the first time then Hang up the telephone;

If the recovery c) hung up the telephone continuously performed 3 times then it is assumed that module is abnormal, close telephone plant and again open;

If after d) restarting telephone plant, malfunction again, then stop test.

In sum, a kind of method of telephone plant test that the present invention provides, can be independent of third party device or soft Part, directly to complete to test by realizing between two telephone plants being in communication with each other, and running is without manual intervention, and tests If during break down, can be proceeded next and test by judging automatic restoring scene, need not be manually on duty;Further , default test program flow process only just need to can complete whole test contents through configuration once, need not repeatedly compile with Manual intervention, makes the test process of telephone plant more convenient, more has efficiency.

The foregoing is only embodiments of the invention, not thereby limit the present invention the scope of the claims, every using this The equivalents that bright description and accompanying drawing content are made, or directly or indirectly it is used in the technical field of correlation, all include in the same manner In the scope of patent protection of the present invention.

Claims (7)

1. a kind of method of telephone plant test is it is characterised in that include:
S10: default test program flow process, and import telephone plant main frame and telephone plant slave;
S20: telephone plant main frame is in communication with each other according to test program flow process with telephone plant slave;
S30: the automatic restoring scene when the process that is in communication with each other abnormal, by dialing party again dialcom, and recording exceptional Reason;
S40: if communication process is without exception, telephone plant main frame passes through test;
S50: if occurring abnormal, telephone plant main frame does not pass through to test;
Described step s20 comprises the following steps to step s30:
S100: telephone plant main frame actively breathes out;
S200: judge whether telephone plant slave is successfully connected, if so, then telephone plant slave and telephone plant main frame are being preset Call, execution step s210 is kept in duration;If it is not, being then considered as fault, execution step s230;
S210: judge whether occur in the air time breaking;If not occurring breaking, normal talking is hung up after terminating, and executes step Rapid s300;If broken string occurs, it is considered as fault, execution step s230;
S230: determine whether to execute for the first time and break down;If so, then stop test;If it is not, then terminating to converse, record different Often reason, recovers test scene, execution step s100;
S300: telephone plant slave actively breathes out;
S400: judge whether telephone plant main frame is successfully connected, if so, then telephone plant slave and telephone plant main frame are being preset Keep call in duration, terminate after execution step s210 to normal talking to hang up or stop to test;If it is not, then failure judgement number of times Whether exceed preset value;If so, then stop test;If it is not, then terminating to converse, recording exceptional reason, recover test scene, execution Step s300;
Circulation execution step s100~s400 reaches preset value to the talk times of telephone plant main frame and telephone plant slave.
2. a kind of method of telephone plant test according to claim 1 is it is characterised in that step s10 includes following step Rapid:
S1: default test program flow process;
S2: initialization telephone plant main frame and telephone plant slave, by described test program flow process import telephone plant main frame with Telephone plant slave;
S3: setting device Host and telephone plant slave are the radio telephone mode.
3. a kind of method of telephone plant test according to claim 2 is it is characterised in that in step s20, described electricity The step of words device Host execution includes following:
S11: telephone plant main frame off-hook dials;
S12: judge whether to have connection event in preset duration, if so, then telephone plant slave and telephone plant main frame pre- If keeping call in duration, execution step s13, if it is not, being then considered as fault, and judge whether to execute error for the first time, if it is not, then Execution step s14, if so, then stops test, is pointed out;
S13: judge whether occur in the air time breaking, if not occurring breaking, normal talking is hung up after terminating;If occurring disconnected Line, then be considered as fault, execution step s14;
S14: determined whether reply test scene;If so, then stop test;If it is not, then actively hanging up, and judge whether even Continue and exceed preset failure number of times;If so, telephone plant main frame, return to step s1 are then closed;If it is not, then return to step s11.
4. a kind of method of telephone plant test according to claim 3 is it is characterised in that described telephone plant main frame is held The step of row also includes following:
S15: judge whether receive calling event in preset duration;If so, then execution step s16;If it is not, then execution step s14;
S16: judge whether caller ID is telephone plant slave, if it is not, then rejection, return to step s11;If so, then execute step Rapid s17;
S17: judge whether there is connection in preset duration;If so, then telephone plant slave and telephone plant main frame in preset duration Interior holding call, and judge whether occur in the air time breaking;If not occurring breaking, normal talking;If broken string occurs, It is considered as fault, execution step s14.
5. a kind of method of telephone plant test according to claim 2 is it is characterised in that in step s20, described electricity The step of words equipment slave execution includes following:
S21: judging whether there is calling event in preset duration, if it is not, being then considered as fault, being pointed out;If so, then judge whether For the incoming call of telephone plant main frame, if it is not, then rejection, return to step s21, if so, then answer, execution step s22;
S22: judge whether there is connection event in preset duration, if it is not, then execution step s23;If so, then converse, execution step s24;
S23: determined whether reply test scene;If so, then stop test;If it is not, then actively hanging up, and judge whether even Continue and exceed preset failure number of times;If so, telephone plant main frame, return to step s1 are then closed;If it is not, then return to step s21;
S24: judging whether occur in the air time breaking, if not occurring breaking, hanging up after normal talking;If broken string occurs, Then it is considered as fault, execution step s23.
6. a kind of method of telephone plant test according to claim 5 is it is characterised in that described telephone plant slave is held The step of row also includes following:
S24: judge whether be connected to the event of hanging up of main station in preset duration, if so, then execution step s25;If it is not, then leading Move and hang up, execution step s25;
S25: equipment slave off-hook dials, and judges whether api runs succeeded, if it is not, then execution step s23;If so, then judge pre- If whether there being connection event in duration, if so, then telephone plant slave and telephone plant main frame keep the call of preset duration ground, and Execution step s26;If it is not, then execution step s23;
S26: judge whether to occur in the air time to break, if so, then execution step s23;If it is not, then actively hanging up, execute step Rapid s27;
S27: judge whether to hang up event in preset duration, if so, then return to step s21;If otherwise actively hanging up, execute step Rapid s21.
7. a kind of method of the telephone plant test according to claim 1,3 or 5 any one is it is characterised in that preset The number of stoppages be three times.
CN201410495302.0A 2014-09-24 2014-09-24 Method for testing phone devices CN104202489B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410495302.0A CN104202489B (en) 2014-09-24 2014-09-24 Method for testing phone devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410495302.0A CN104202489B (en) 2014-09-24 2014-09-24 Method for testing phone devices

Publications (2)

Publication Number Publication Date
CN104202489A CN104202489A (en) 2014-12-10
CN104202489B true CN104202489B (en) 2017-01-25

Family

ID=52087714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410495302.0A CN104202489B (en) 2014-09-24 2014-09-24 Method for testing phone devices

Country Status (1)

Country Link
CN (1) CN104202489B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1464045A1 (en) * 2001-12-17 2004-10-06 Empirix Inc. Method of testing a voice application
CN100407839C (en) * 2004-12-17 2008-07-30 中兴通讯股份有限公司 Mobile phone communication automatic testing method and mobile phone automatic calling unit
CN101909120A (en) * 2009-06-04 2010-12-08 鸿富锦精密工业(深圳)有限公司 Automatic test method of telephone function of mobile device
CN103533126B (en) * 2012-07-06 2016-02-24 上海斐讯数据通信技术有限公司 A kind of device and method automatically carrying out mobile phone test
CN103312850B (en) * 2013-05-10 2016-03-30 江苏科技大学 A kind of mobile phone automatized test macro and method of work
CN103716465B (en) * 2013-12-27 2017-08-04 上海斐讯数据通信技术有限公司 A kind of method and system mutually tested based on two mobile terminals
CN103647863B (en) * 2013-12-27 2017-10-24 上海斐讯数据通信技术有限公司 A kind of method and system that earphone loop is mutually measured based on two mobile terminals
CN103841276B (en) * 2014-03-24 2017-06-27 博信通信股份有限公司 A kind of method that speech quality evaluation is carried out based on intelligent mobile phone platform

Also Published As

Publication number Publication date
CN104202489A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
US6587543B1 (en) System and method for the automated testing of a telecommunications system
US7149285B2 (en) Dynamic, automated double-ended system and method for testing and qualifying metallic telecommunication loops
EP1699172B1 (en) Method and apparatus for locating in-house wiring defects
CN102917105B (en) Call information processing method and terminal equipment
US20040234043A1 (en) Method, system and computer program product for performing automated unbundled network element migration
CN101827367B (en) Recognition method and device of harassing calls
CN104967971B (en) A kind of method for realizing the automatic Hui Lian of bluetooth under android system
US20070111716A1 (en) Mobile-device directed conference calling
CN101291362B (en) Harassing call preventing method in mobile phone calling process
EP2274876B1 (en) System and method for switching between phone services
CN101500041A (en) Call control method and apparatus
US6754309B2 (en) Communication device and access network device
CN105554223B (en) A kind of method that establishing connection and mobile terminal
CN104104772B (en) One kind fraud telephone prompts method, server and system
CN102955904A (en) Method and system for preventing secret divulgation of mobile communication equipment
US20100091649A1 (en) Reporting dial up access problems using a real-time automated system
CN105119877B (en) Speech verification method, apparatus and system
CN105979197A (en) Remote conference control method and device based on automatic recognition of howling sound
CN106101410A (en) A kind of call handling method, device and equipment
CN101478738A (en) Mobile phone incoming call switching apparatus based on Bluetooth and switching method thereof
US8229096B1 (en) Optimizing on-premise conferencing solutions
US8363557B2 (en) Methods, systems, and computer readable media for remotely evaluating and controlling voice over IP (VoIP) subscriber terminal equipment
CN105376394A (en) Terminal business processing method and apparatus
CN104717378B (en) Call transferring method and device
US20060085538A1 (en) System and method for enhanced network monitoring

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