CN101227346B - Method and apparatus for failure monitoring in the course of communication equipment automatization testing - Google Patents

Method and apparatus for failure monitoring in the course of communication equipment automatization testing Download PDF

Info

Publication number
CN101227346B
CN101227346B CN2008100081465A CN200810008146A CN101227346B CN 101227346 B CN101227346 B CN 101227346B CN 2008100081465 A CN2008100081465 A CN 2008100081465A CN 200810008146 A CN200810008146 A CN 200810008146A CN 101227346 B CN101227346 B CN 101227346B
Authority
CN
China
Prior art keywords
failure
item
test
monitoring
failure monitoring
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.)
Active
Application number
CN2008100081465A
Other languages
Chinese (zh)
Other versions
CN101227346A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008100081465A priority Critical patent/CN101227346B/en
Publication of CN101227346A publication Critical patent/CN101227346A/en
Application granted granted Critical
Publication of CN101227346B publication Critical patent/CN101227346B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention discloses a faults monitoring method of communication equipment in the process of automatically processing, which relates to a faults monitoring technique of communication equipment, and the invention is put forward for solving inaccurate fault location when communication equipment is tested. The proposal which is adopted comprises first, assuring fault monitoring term of communication equipment according to tested script, generating monitoring procedure of the fault monitoring term, inserting invocation interface of the monitoring procedure in the tested script, and setting a triggering condition of the invocation interface, second, loading and actuating the tested script, invoking the monitoring procedure which is corresponded with the invocation interface when the triggering condition is set up, and sending execution results of the monitoring procedure to users. The invention simultaneously discloses a device which can achieve the above method. The invention can accurately assure the reason of happening faults when the test is wrong, which is convenient for users to test, improves test efficiency, and achieves simple operation and lower production cost.

Description

Failure monitoring method and device in the course of communication equipment automatization testing
Technical field
The present invention relates to the failure monitoring technology of communication equipment, relate in particular to failure monitoring method and device in a kind of course of communication equipment automatization testing.
Background technology
In the method for testing to the data communication equipment, comprise two kinds of methods of manual test and automatic test at present.Because the automatic test approach advantage is outstanding; Can remedy the limitation of manual test on carrying out; Can carry out the test item that more loaded down with trivial details, difficult test item and manual test can not be accomplished; Automatic test approach can utilize test resource better, and testing efficiency is high and have consistency and a repeatability.Therefore, automatic test in communication equipment test in occupation of critical role.Though automatic test is convenient, also exist a lot of weak points, wherein maximum deficiency is exactly after mistake occurring in the test process, can not be correspondingly processed according to error situation, the state information of equipment under the environment that can't in time obtain to make mistakes.
And be exactly the problem of confirming that communication equipment self exists to the purpose that communication equipment is tested, the probability of automatic test program mistake itself is few.If can not make accurate judgement to the current situation of makeing mistakes, will test again, the reason that conjecture possibly go wrong, testing efficiency is lower, is unfavorable for user's fault location reason.To the deficiency of above-mentioned existing scheme, general way is at present: after automatic test course makes a mistake, print or the misregistration result, discharge when the shared resource of Pretesting subsequently, begin the operation of next test item then.Present processing mode is simple on test logic, and can in time discharge the test resource of current test item after makeing mistakes, and can not influence the operation of whole test program.Present processing mode has obtained automatic test personnel's approval to a certain extent, therefore uses comparatively general.Though put down in writing error result, the information of the present resulting error result of processing mode is very limited, the prompting when just makeing mistakes, state information when not having complete or critical component to break down etc.When need analyzing failure cause, the tester still has bigger difficulty when perhaps trouble unit being positioned.Identical facility environment in the time of can only makeing mistakes through configuration automatic test operation, mode is by hand come the reproduction problem.Present failure monitoring mode usually also needs human input when locating complicated test errors reason.Non-ly must show mistake if run into some, especially during minimum wrong of some probability, drop into great amount of time with regard to needs and carry out problem repetition with fault location, inefficiency and cost are high.
Summary of the invention
In view of this, main purpose of the present invention is to provide failure monitoring method and device in a kind of course of communication equipment automatization testing, and the state information during the obtaining communication device fails makes things convenient for tester's positioning equipment fault.
For achieving the above object, technical scheme of the present invention is achieved in that
Failure monitoring method in a kind of course of communication equipment automatization testing comprises:
A, confirm the failure monitoring item of said communication equipment, generate the monitoring program of said failure monitoring item, the calling interface of said monitoring program is inserted in the said test script, the trigger condition of said calling interface is set according to test script;
B, loading are also carried out said test script, and trigger condition is called the corresponding monitoring program of said calling interface when setting up, and the execution result of said monitoring program is sent to the user.
Preferably, the test item that relates to by test script of said failure monitoring item and confirm that said failure monitoring item comprises the hardware module relevant with test item, COM1, communication protocol.
Preferably, the calling interface of said monitoring program is inserted in the code of test item corresponding in the corresponding test script of said monitoring program.
Preferably, this method also comprises: for said failure monitoring item is provided with failure code;
Said monitoring program monitors said failure monitoring item and confirms failure cause, and said failure code is back to the user as execution result.
Preferably, said test item is corresponding with the calling interface of at least one monitoring program.
Failure monitoring device in a kind of course of communication equipment automatization testing comprises:
The failure monitoring item is confirmed the unit, and the test item that is used for relating to according to test script is confirmed each failure monitoring item of said communication equipment;
The monitoring program generation unit is used to generate the monitoring program of each failure monitoring item;
Insert the unit, be used for the calling interface of said monitoring program is inserted into the code of the corresponding test item of test script, and the trigger condition of said calling interface is set;
Performance element is used for loading and carrying out said test script, calls the corresponding monitoring program of said calling interface when trigger condition is set up, and obtains the failure cause of said failure monitoring item; And
Transmission unit is used for said failure cause is sent to the user.
Preferably, said failure monitoring item comprises the hardware module relevant with test item, COM1, communication protocol.
Preferably, this device also comprises:
The failure code storehouse is used to be stored as the failure code that said failure monitoring item is provided with; Said performance element is carried out monitoring program and is monitored said failure monitoring item and confirm failure cause, searches said failure code storehouse, and failure code failure cause is corresponding through said transmission unit is back to the user.
Each test item that the present invention relates to according to the test script of communication equipment is confirmed the failure monitoring item that these test items are corresponding; Thereby generate corresponding monitoring program according to the failure monitoring item; The calling interface of monitoring program is inserted in the code of the corresponding test item of test script, and the trigger condition of calling interface is set.During test if mistake; The calling interface trigger condition of corresponding test item is triggered; The monitoring program that calling interface is corresponding is activated, thereby to causing to be monitored of test errors to monitor, collection monitoring item relevant information back testing user returns corresponding information.The present invention is through being provided with possible monitored item for each test item in the test script;, test can collect the state information of equipment when breaking down when making a mistake according to monitored item exactly; Made things convenient for user test; Increased the automatic test information integrity, improved testing efficiency, realization is simple and cost is lower.
Description of drawings
Fig. 1 is the flow chart of failure monitoring method in the course of communication equipment automatization testing of the present invention;
Fig. 2 is the composition structural representation of failure monitoring device in the course of communication equipment automatization testing of the present invention.
Embodiment
Core concept of the present invention is: in the present communication equipment method of testing, in case test errors occurs, occurred mistake in the time of can only confirming to test certain test item, can't further analyze and locate for the error reason of this test item.The simple test result that obtains like this has little significance to fault location, makes automatic test inefficiency aspect the positioning equipment fault.Each test item that the present invention relates to according to the test script of communication equipment is confirmed the failure monitoring item that these test items are corresponding; Thereby generate corresponding monitoring program according to the failure monitoring item; The calling interface of monitoring program is inserted in the code of the corresponding test item of test script, and the trigger condition of calling interface is set.During test if mistake; The calling interface trigger condition of corresponding test item is triggered; The monitoring program that calling interface is corresponding is activated, thereby to causing to be monitored of test errors to monitor, confirms that failure cause back testing user returns corresponding information.The present invention can confirm the failure monitoring item according to the test item of automatic test program, and generates corresponding bug monitor.In the automatic operating process, trigger monitoring automatically according to running status, obtained the useful device fault status information, improved testing efficiency, realization is simple and cost is lower.Describe the present invention below in conjunction with accompanying drawing.
Fig. 1 is the flow chart of failure monitoring method in the course of communication equipment automatization testing of the present invention, and as shown in Figure 1, failure monitoring method may further comprise the steps in the course of communication equipment automatization testing of the present invention:
Step 101: confirm the failure monitoring item of said communication equipment according to test script, generate the monitoring program of said failure monitoring item, the calling interface of said monitoring program is inserted in the said test script, the trigger condition of said calling interface is set.
Before the communication equipment successful development is introduced to the market, need its function, performance, reliability, compatibility, stability etc. are carried out narrow examination, experience user's impression in advance, to improve the competitiveness of product in market.A communication equipment, test item to be tested often has a plurality of, and for improving testing efficiency, the tester develops corresponding test script, to realize automatic test, improves testing efficiency.The present invention is directed to different test scripts, confirm wherein related test item, and then confirm hardware component that each test item possibly relate to, test resource, port, communication protocol etc., as the failure monitoring item of each test item.That is to say; When carrying out the test of this test item if mistake; Possibly cause owing to these failure monitoring items; All might cause test errors as hardware incompatibility, protocol error, current inadequate resource, port are obstructed etc., here, test errors is meant the designing requirement that test does not reach communication equipment; Be lower than like traffic rate that design standard, signal to noise ratio do not reach design standard, the error rate is more high, can determine whether owing to these failure monitoring items produce wrong causing and these failure monitoring items are monitored.Simultaneously, for each failure monitoring item is provided with the failure code storehouse,, corresponding code is set for the possible failure cause of each failure monitoring item.And for the test errors reason that failure cause caused outside the non-setting failure monitoring item; Respective code then is set equally; Often returning the corresponding error reason-code at failure monitoring Xiang Douzheng, the reason that the test subscriber can confirm to make mistake outside the non-failure monitoring item of reason causes.
After having confirmed the failure monitoring item of each test item; Then confirm the monitoring realization program of these failure monitoring items, the monitoring program of promptly writing these failure monitoring items, for example; When test is carried out, make a mistake, can confirm reasons such as port Down falls, port does not connect through the port test program.The purpose of monitoring program promptly is the monitoring that realizes the failure monitoring item, when confirming these failure monitoring item mistakes, further monitors the reason of makeing mistakes.The monitoring program that it will be appreciated by those skilled in the art that different failure monitoring items is different, but the realization of monitoring program all is feasible.
The calling interface of each monitoring program is inserted in the corresponding test script of the test item corresponding with this monitoring program; And the trigger condition of each calling interface is set; When promptly in test process, test errors taking place, set the order of calling of calling interface, and whether the repulsion between definite calling interface concerns; To confirm that which calling interface calls under the situation, other calling interfaces will not be called.Monitoring program is equivalent to the built-in function of test script.
Each test item in the test script is corresponding with the calling interface of at least one monitoring program, the corresponding failure monitoring item of test item more for a long time, the calling interface of the monitoring program of inserting in the program code of this corresponding test item in the test script also can be more.
Step 102: load and carry out said test script, trigger condition is called the corresponding monitoring program of said calling interface when setting up, and the execution result of said monitoring program is sent to the user.
Test script inserts after the calling interface of monitoring program, can move, like this; When mistake appears in test program, can trigger corresponding calling interface automatically, the monitoring program that calling interface is corresponding is called; Thereby can confirm that current mistake is that which kind of reason of which failure monitoring item causes; Through the failure code storehouse of inquiry failure monitoring item, determine the code of failure cause, feed back to the test subscriber.The test subscriber is according to these failure codes, is easy to confirm failure cause, thus the accurate failure cause of positioning and communicating equipment.Here, failure cause is that fault outside the non-test program causes.
If the failure code of returning is the relevant code of non-setting failure monitoring item; Can confirm then to set that reason outside the failure monitoring item causes; Though directly fault location also can help the test subscriber to get rid of some faults possibilities, has made things convenient for the user to failure location equally.After the failure cause of having confirmed these uncertain reason-codes, can add in the failure monitoring item as a monitored item, for it resets corresponding failure code, when same problem occurring, no longer to repeat to confirm failure cause.
Fig. 2 is the composition structural representation of failure monitoring device in the course of communication equipment automatization testing of the present invention; As shown in Figure 2; The failure monitoring device comprises that the failure monitoring item confirms unit 20, monitoring program generation unit 21, inserts unit 22, performance element 23, transmission unit 24 and failure code storehouse 25 in the course of communication equipment automatization testing of the present invention; Wherein, the failure monitoring item confirms that test item that unit 20 is used for relating to according to test script confirms each failure monitoring item of said communication equipment.The failure monitoring item confirms that unit 20 to different test scripts, confirms wherein related test item, and then confirms hardware component that each test item possibly relate to, test resource, port, communication protocol etc., as the failure monitoring item of each test item.Monitoring program generation unit 21 is used to generate the monitoring program of each failure monitoring item.After having confirmed the failure monitoring item, generate corresponding monitoring program.Insert the code that unit 22 is used for the calling interface of monitoring program is inserted into the corresponding test item of test script, and the trigger condition of said calling interface is set.Monitoring program is equivalent to the built-in function of test script, and when satisfying the trigger condition of monitoring program during the test script operation, the monitoring program that calling interface is corresponding will be called automatically, thereby realizes the automatic test to the failure monitoring item.Performance element 23 is used for loading and carrying out said test script, calls the corresponding monitoring program of said calling interface when trigger condition is set up, and obtains the failure cause of said failure monitoring item.Transmission unit 24 be used for obtain break down the time equipment the operation return information of setting monitoring program be sent to the user, be about to the current failure cause that monitors automatically and be sent to the user.
Use for convenient, the present invention also is provided with failure code storehouse 25, is used to be stored as the failure code that said failure monitoring item is provided with; Said performance element 23 is carried out monitoring programs and is monitored said failure monitoring item and confirm failure cause, searches said failure code storehouse, through transmission unit 24 failure code of the definite failure cause correspondence of institute is back to the user.
It will be appreciated by those skilled in the art that above-mentioned each unit can realize its function through corresponding application, also can realize through corresponding circuit.About the concrete function of each unit, can repeat no more here referring to the description of failure monitoring method appropriate section in the course of communication equipment automatization testing of the present invention.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.

Claims (6)

1. failure monitoring method in the course of communication equipment automatization testing is characterized in that, for the failure monitoring item is provided with failure code; This method comprises:
A, the test item that relates to according to test script are confirmed the failure monitoring item of said communication equipment, generate the monitoring program of said failure monitoring item, and the calling interface of said monitoring program is inserted in the said test script, and the trigger condition of said calling interface is set;
B, loading are also carried out said test script; When setting up, trigger condition calls the corresponding monitoring program of said calling interface; Said monitoring program monitors said failure monitoring item and confirms failure cause, and the failure code that said failure cause is corresponding is back to the user as execution result.
2. failure monitoring method in the course of communication equipment automatization testing according to claim 1; It is characterized in that; The test item that said failure monitoring item is related to by test script and confirm that said failure monitoring item comprises the hardware module relevant with test item, COM1, communication protocol.
3. failure monitoring method in the course of communication equipment automatization testing according to claim 2 is characterized in that, the calling interface of said monitoring program is inserted in the code of test item corresponding in the corresponding test script of said monitoring program.
4. failure monitoring method in the course of communication equipment automatization testing according to claim 2 is characterized in that said test item is corresponding with the calling interface of at least one monitoring program.
5. failure monitoring device in the course of communication equipment automatization testing is characterized in that this device comprises:
The failure code storehouse is used to be stored as the failure code that the failure monitoring item is provided with;
The failure monitoring item is confirmed the unit, and the test item that is used for relating to according to test script is confirmed each failure monitoring item of said communication equipment;
The monitoring program generation unit is used to generate the monitoring program of each failure monitoring item;
Insert the unit, be used for the calling interface of said monitoring program is inserted into the code of the corresponding test item of test script, and the trigger condition of said calling interface is set;
Performance element is used for loading and carrying out said test script, calls the corresponding monitoring program of said calling interface when trigger condition is set up, and obtains the failure cause of said failure monitoring item; In the corresponding failure code of said failure code library lookup failure cause;
Transmission unit is used for the failure code that said failure cause is corresponding and is sent to the user.
6. failure monitoring device in the course of communication equipment automatization testing according to claim 5 is characterized in that, said failure monitoring item comprises the hardware module relevant with test item, COM1, communication protocol.
CN2008100081465A 2008-02-05 2008-02-05 Method and apparatus for failure monitoring in the course of communication equipment automatization testing Active CN101227346B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100081465A CN101227346B (en) 2008-02-05 2008-02-05 Method and apparatus for failure monitoring in the course of communication equipment automatization testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100081465A CN101227346B (en) 2008-02-05 2008-02-05 Method and apparatus for failure monitoring in the course of communication equipment automatization testing

Publications (2)

Publication Number Publication Date
CN101227346A CN101227346A (en) 2008-07-23
CN101227346B true CN101227346B (en) 2012-05-16

Family

ID=39859113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100081465A Active CN101227346B (en) 2008-02-05 2008-02-05 Method and apparatus for failure monitoring in the course of communication equipment automatization testing

Country Status (1)

Country Link
CN (1) CN101227346B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977128B (en) * 2010-09-14 2015-04-01 中兴通讯股份有限公司 Interface detection method and device for communication equipment
CN103067101B (en) * 2012-12-20 2015-05-20 青岛海信移动通信技术股份有限公司 Communication terminal testing and monitoring method and device
CN107977293A (en) * 2016-10-21 2018-05-01 英业达科技有限公司 Monitoring programme generation system and its production method
CN106708736B (en) * 2016-12-16 2020-05-05 烽火通信科技股份有限公司 Production automation test method and system for communication equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553328A (en) * 2003-06-08 2004-12-08 华为技术有限公司 Fault tree analysis based system fault positioning method and device
CN1767453A (en) * 2004-10-31 2006-05-03 中兴通讯股份有限公司 Automatic test method and system
CN101052020A (en) * 2007-05-21 2007-10-10 中兴通讯股份有限公司 Monitor method and system for automatically measuring executing process

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553328A (en) * 2003-06-08 2004-12-08 华为技术有限公司 Fault tree analysis based system fault positioning method and device
CN1767453A (en) * 2004-10-31 2006-05-03 中兴通讯股份有限公司 Automatic test method and system
CN101052020A (en) * 2007-05-21 2007-10-10 中兴通讯股份有限公司 Monitor method and system for automatically measuring executing process

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
US 2007/0006037 A1,全文.

Also Published As

Publication number Publication date
CN101227346A (en) 2008-07-23

Similar Documents

Publication Publication Date Title
CN111651366B (en) SDK test method, device, equipment and storage medium
CN101484881B (en) Method and system for testing software
CN109977012B (en) Joint debugging test method, device, equipment and computer readable storage medium of system
CN101227346B (en) Method and apparatus for failure monitoring in the course of communication equipment automatization testing
CN101287266A (en) Test system and method for mobile phone
KR20160000758A (en) Fault Injection testing apparatus and method
CN110569194A (en) interface testing method and device, electronic equipment and storage medium
CN101800672B (en) Equipment detection method and equipment
KR20170133781A (en) Apparatus and Method for Testing and diagnosing Virtual Infrastructure
CN111159023A (en) Test method, test device, electronic equipment and computer readable storage medium
US10613963B2 (en) Intelligent packet analyzer circuits, systems, and methods
CN110888804A (en) Interface test method and interface test platform
CN112131127B (en) Interface testing method, device and system and electronic equipment
CN111639022A (en) Transaction testing method and device, storage medium and electronic device
CN116244130A (en) Board card detection method, device, test equipment and storage medium
CN109783368A (en) Trapezoidal pattern programming software testing system and method
CN116225804A (en) PCIe link detection method, system, equipment and storage medium
CN103095513A (en) Simulation testing device and method of Encryption equipment
CN116382674A (en) Component configuration method and device of automobile diagnostic device, medium and electronic device
CN112003759B (en) Automatic test method and device for hardware TCP/IP network accelerator
CN114925639A (en) Method for detecting consistency of simulation verification data of SOC (System on chip)
CN111400117A (en) Method for automatically testing Ceph cluster
US20110107304A1 (en) Quality Assurance Testing
CN111881021A (en) Interface test method, device and system
CN107577610A (en) Automate compatibility test method

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