CN100377105C - Automatic alarm testing method - Google Patents

Automatic alarm testing method Download PDF

Info

Publication number
CN100377105C
CN100377105C CNB2004100972442A CN200410097244A CN100377105C CN 100377105 C CN100377105 C CN 100377105C CN B2004100972442 A CNB2004100972442 A CN B2004100972442A CN 200410097244 A CN200410097244 A CN 200410097244A CN 100377105 C CN100377105 C CN 100377105C
Authority
CN
China
Prior art keywords
alarm
thread
instrument
sub
simulation
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
CNB2004100972442A
Other languages
Chinese (zh)
Other versions
CN1779655A (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.)
Global Innovation Polymerization LLC
Gw Partnership Co ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100972442A priority Critical patent/CN100377105C/en
Publication of CN1779655A publication Critical patent/CN1779655A/en
Application granted granted Critical
Publication of CN100377105C publication Critical patent/CN100377105C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses an automatic alarm testing method. A testing system is composed of a tested device, an alarming analogue instrument and a host computer, wherein a client configuration document which is used for triggering the instrument to output alarming analogue signals and data information which is returned by the tested device under a normal alarm condition are stored in the host computer in advance. A main thread and a secondary thread are created in the host computer, the main thread invokes the stored client configuration document and triggers the instrument to generate the alarming analogue signals, and the alarming analogue signals are input into the tested device to make the tested device generate alarms. The main thread in the host computer continuously polls alarm data which is generated by the tested device through the alarming secondary thread. Compared with the returned data which is stored in advance under the normal alarm condition, when the alarm data and the returned data are consistent, a normal alarm test is reported. Otherwise, the alarming faults of the system are decided, and test results are recorded. The present invention can realize the automation of an alarm test.

Description

A kind of automatic alarm testing method
Technical field
The present invention relates to field tests, relate in particular to a kind of method of automatic alarm testing.
Background technology
Alarm test is a very important content in the test, can in time find the problem that system self exists by alarm, maintain easily, thus the normal operation of the system of assurance.The content that alarm test relates to is extensive, not only may operate physical device, also may utilize instrument to carry out various wrong simulations.Because the content that alarm test relates to is extensive, so corresponding operating is safeguarded also very complexity.
Alarm test uses manual operation and semi-automatic test more at present.What semi-automatic test adopted is the single-threaded technology of tcl, and promptly system powers on, after operation is normal, import the configuration operation of alarm simulation instrument earlier, the initialization instrument is distinguished initialization system Operation and Maintenance port and alarm port more then, alarms port and is set to event-driven, by the Operation and Maintenance port configuration data, trigger instrument or the actual fault that produces, wait for a period of time, read alarm data from the alarm port, carry out discriminatory analysis, carry out a next one alarm test again.Adopt semi-automatic test owing to be that serial is carried out, thus flow process length consuming time, inefficiency, and test case can not be carried out continuously.
The manual configuration data are then adopted in the manual test alarm of taking at present, manual control instrument, and manual triggers, and by the eye-observation test result, whether analysis result is correct.Carry out a next one alarm test again.Adopt this kind mode, because mistake appears in workflow complexity easily.Therefore, it is big to drop into manpower, length consuming time, and inefficiency.
Summary of the invention
The invention provides a kind of automatic alarm testing method, solve the inefficient problem of alarm test, and realize the alarm test robotization.
The invention provides following technical scheme:
A kind of automatic alarm testing method, tested equipment, alarm simulation instrument and a principal computer are formed a test macro, wherein, described tested equipment is connected with described principal computer with described alarm simulation instrument respectively, described alarm simulation instrument is connected with principal computer by interface, and this method comprises the following steps:
A: storage in advance is used to trigger described alarm simulation instrument and produces the alarm data that tested equipment returns under the clients configuring file of simulation alarm signal and the normal alarm situation in described principal computer;
B: create main thread and sub-thread in described principal computer, described sub-thread comprises the sub-thread of alarm at least;
C: call the clients configuring file of storage by described main thread, trigger instrument and produce the simulation alarm signal, this simulation alarm signal is input in the tested equipment, make equipment under test produce alarm;
D: the main thread in the described principal computer passes through the alarm data that the continuous poll equipment under test of the sub-thread of alarm produces, and this alarm data is compared with the return data under the normal alarm situation that prestores, if unanimity reports that then this alarm test is normal; Otherwise, decision-making system alarm failure, and logging test results.
According to said method of the present invention, described sub-thread also comprises:
The sub-thread of Operation and Maintenance: the equipment under test running status is detected;
The sub-thread of instrument: the alarm simulation instrument is carried out initialization.
The sub-thread of described alarm also realizes alarming initialization and the setting of alarm type of drive.
According to said method of the present invention, also include behind the described step B and detect the sub-thread of described Operation and Maintenance, the sub-thread of instrument and alarm sub-thread step whether working properly, when each sub-thread is all working properly, execution in step C; Otherwise, finish testing process.
Described alarm type of drive is an event-driven.
According to said method of the present invention, among the described step D, after main thread is finished comparison, trigger instrument cancellation alarm, if alarm does not recover then to finish testing process.
According to said method of the present invention, described clients configuring file is a plurality of, in described principal computer, generate a clients configuring file formation, each clients configuring file triggers described instrument and produces dissimilar simulation alarm signals, and after a certain clients configuring file was finished, described main thread was judged the clients configuring file that whether is not performed in addition in the formation, if, then order is carried out next clients configuring file, otherwise, finish testing process.
Described alarm simulation instrument is connected with principal computer by the tcl interface.
The inventive method is operated by multi-threaded parallel, thereby has improved testing efficiency; By preparation in advance, the continuous execution of test case and the robotization of test have been realized to user profile.
Description of drawings
Fig. 1 is the process flow diagram of the inventive method.
Embodiment
The present invention will be further described below in conjunction with specific embodiment.
One alarm simulation instrument is connected with tested equipment, and forms a test macro with a principal computer.This instrument has the tcl interface, in order to receive the tcl order.
Create main thread in principal computer, manage a plurality of sub-threads by main thread, a plurality of sub-threads realize that respectively instrument initialization, system running state detect and alarm initialization and the setting of alarm type of drive.
In principal computer, store user profile in advance, be used to trigger described instrument and produce the simulation alarm signal.If configuration file is a plurality of, then in principal computer, generate a clients configuring file formation in advance, each clients configuring file triggers described instrument and produces dissimilar simulation alarm signals, the simulation alarm signal that instrument is produced is input to tested equipment, make tested equipment produce dissimilar alarms, and corresponding different alarm result.After a certain clients configuring file was finished, main thread was judged the clients configuring file that whether is not performed in addition in the formation, if then order is carried out next clients configuring file, otherwise, finish testing process.Also include the data message that returns under the various normal alarm situations in the described clients configuring file.
In the test process, the alarm data that main thread on the principal computer produces by the tested equipment of the continuous poll of the sub-thread of alarm, and with those data storage and with user profile in normal alarm situation under the data returned compare, if both unanimities report that then this alarm test is normal; Otherwise, the decision-making system alarm failure.
In conjunction with Fig. 1, the concrete operations step of the inventive method is as follows:
Tested equipment, alarm simulation instrument are connected with principal computer;
Storage in advance is used to trigger described instrument and produces the data message that returns under a plurality of clients configuring file of various simulation alarm signals and the corresponding normal alarm situation in main frame is calculated, and these a plurality of clients configuring file generate a configuration file formation in principal computer;
Create main thread in principal computer, main thread comprises the sub-thread of Operation and Maintenance, the sub-thread of instrument and alarms sub-thread that the sub-thread of Operation and Maintenance carries out system running state and detects; The sub-thread of instrument carries out the instrument initialization operation; Alarming sub-thread alarms initialization and will alarm type of drive and be made as event-driven;
Main thread judges whether all sub-threads are working properly, if diagnose out certain sub-thread work undesired, then writes down reason and withdraws from test procedure;
Otherwise main thread calls first clients configuring file in the configuration file formation, triggers instrument and produces the simulation alarm signal, and this simulation alarm signal is exported to tested equipment, makes tested equipment produce corresponding alarm;
Main thread compares this alarm data by the alarm data that the tested equipment of the continuous poll of the sub-thread of alarm produces with the return data under the normal alarm situation that prestores, if consistent, report that then this alarm test is normal; Otherwise the decision-making system alarm failure also writes down alarm data;
Principal computer is cancelled alarm status by triggering instrument, and judges that whether alarm normally recovers, and if not, then finishes testing process; Otherwise main thread is judged the clients configuring file that whether is not performed in addition in the formation, if then order is carried out the next clients configuring file in the formation, repeats above-mentioned test process, otherwise, finish testing process.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claims.

Claims (8)

1. automatic alarm testing method, tested equipment, alarm simulation instrument and a principal computer are formed a test macro, wherein, described tested equipment is connected with described principal computer with described alarm simulation instrument respectively, described alarm simulation instrument is connected with principal computer by interface, it is characterized in that this method comprises the following steps:
A: storage in advance is used to trigger described alarm simulation instrument and produces the alarm data that tested equipment returns under the clients configuring file of simulation alarm signal and the normal alarm situation in described principal computer;
B: create main thread and sub-thread in described principal computer, described sub-thread comprises the sub-thread of alarm at least;
C: call the clients configuring file of storage by described main thread, trigger instrument and produce the simulation alarm signal, this simulation alarm signal is input in the tested equipment, make equipment under test produce alarm;
D: the main thread in the described principal computer passes through the alarm data that the continuous poll equipment under test of the sub-thread of alarm produces, and this alarm data is compared with the return data under the normal alarm situation that prestores, if unanimity reports that then this alarm test is normal; Otherwise, decision-making system alarm failure, and logging test results.
2. the method for claim 1 is characterized in that, described sub-thread also comprises:
The sub-thread of Operation and Maintenance: the equipment under test running status is detected;
The sub-thread of instrument: the alarm simulation instrument is carried out initialization.
3. method as claimed in claim 2 is characterized in that, the sub-thread of described alarm also realizes alarming initialization and the setting of alarm type of drive.
4. method as claimed in claim 3 is characterized in that, also includes behind the described step B to detect the sub-thread of described Operation and Maintenance, the sub-thread of instrument and alarm sub-thread step whether working properly, and when each sub-thread is all working properly, execution in step C; Otherwise, finish testing process.
5. method as claimed in claim 4 is characterized in that, described alarm type of drive is an event-driven.
6. the method for claim 1 is characterized in that, among the described step D, after main thread is finished comparison, triggers instrument cancellation alarm, if alarm does not recover then to finish testing process.
7. as the described arbitrary method of claim 1-6, it is characterized in that, described clients configuring file is a plurality of, generates a clients configuring file formation in described principal computer, and each clients configuring file triggers described instrument and produces dissimilar simulation alarm signals, after a certain clients configuring file is finished, described main thread is judged the clients configuring file that whether is not performed in addition in the formation, if then order is carried out next clients configuring file, otherwise, finish testing process.
8. method as claimed in claim 7 is characterized in that, described alarm simulation instrument is connected with principal computer by the tc1 interface.
CNB2004100972442A 2004-11-18 2004-11-18 Automatic alarm testing method Expired - Fee Related CN100377105C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100972442A CN100377105C (en) 2004-11-18 2004-11-18 Automatic alarm testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100972442A CN100377105C (en) 2004-11-18 2004-11-18 Automatic alarm testing method

Publications (2)

Publication Number Publication Date
CN1779655A CN1779655A (en) 2006-05-31
CN100377105C true CN100377105C (en) 2008-03-26

Family

ID=36769991

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100972442A Expired - Fee Related CN100377105C (en) 2004-11-18 2004-11-18 Automatic alarm testing method

Country Status (1)

Country Link
CN (1) CN100377105C (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098259B (en) * 2006-06-30 2010-08-18 中兴通讯股份有限公司 Automatized test method and system for implementing large data impact
CN101764717B (en) * 2008-12-25 2012-04-18 中国移动通信集团天津有限公司 Network management warning data checking method and system
CN101895438A (en) * 2010-06-24 2010-11-24 中兴通讯股份有限公司 Alarm simulation method and system and alarm accuracy detection method and system
TWI468932B (en) * 2010-07-02 2015-01-11 Inventec Corp A integrated lights-out testing system and method therefore
CN102571501B (en) * 2012-02-18 2014-11-12 山东电力集团公司超高压公司 Method for monitoring communication state of variable-frequency node in power telecontrol network
CN104270256B (en) * 2014-09-05 2017-11-07 烽火通信科技股份有限公司 The test device and method of a kind of cross-platform network alarm and incident management
CN114155688A (en) * 2021-11-08 2022-03-08 陕西千山航空电子有限责任公司 Method for testing and verifying alarm signal of engine indication and air service alarm system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6360332B1 (en) * 1998-06-22 2002-03-19 Mercury Interactive Corporation Software system and methods for testing the functionality of a transactional server
US20020116671A1 (en) * 2000-10-23 2002-08-22 Hiroto Uchiyama Alarm display unit of IC tester
CN1445671A (en) * 2002-03-15 2003-10-01 联想(北京)有限公司 Monitoring method for remote alarming information in real time and with accuracy position
CN1519721A (en) * 2003-01-23 2004-08-11 英业达股份有限公司 Dynamic extendable computer testing system as well as method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6360332B1 (en) * 1998-06-22 2002-03-19 Mercury Interactive Corporation Software system and methods for testing the functionality of a transactional server
US20020116671A1 (en) * 2000-10-23 2002-08-22 Hiroto Uchiyama Alarm display unit of IC tester
CN1445671A (en) * 2002-03-15 2003-10-01 联想(北京)有限公司 Monitoring method for remote alarming information in real time and with accuracy position
CN1519721A (en) * 2003-01-23 2004-08-11 英业达股份有限公司 Dynamic extendable computer testing system as well as method

Also Published As

Publication number Publication date
CN1779655A (en) 2006-05-31

Similar Documents

Publication Publication Date Title
Lafortune et al. Failure diagnosis of dynamic systems: An approach based on discrete event systems
CN101620565B (en) Method for automatically testing functions of terminal system
CN107807877B (en) Code performance testing method and device
JP2001188765A (en) Technique for referring to fault information showing plural related fault under distributed computing environment
CN105259863B (en) A kind of PLC warm spares redundancy approach and system
CN101751329A (en) Method and system for realizing automatic testing
CN107483283B (en) Communication reliability test method and device
CN100377105C (en) Automatic alarm testing method
CN103701655A (en) Fault self-diagnosis and self-recovery method and system for interchanger
CN104133915A (en) Monitoring method and system for operation and maintenance behavior of database administrator
CN115664939A (en) Comprehensive operation and maintenance method and device based on automation technology and storage medium
WO2007099578A1 (en) Failure analyzer
CN113726553A (en) Node fault recovery method and device, electronic equipment and readable storage medium
CN101706752B (en) Method and device for in-situ software error positioning
CN102521132A (en) Automated testing method and automated testing system for real-time output logs
CN103577284A (en) Abnormity detecting and recovering method for non-transparent bridge chip
CN108733567A (en) The monitoring method and system of software resource leak case
JPH09205429A (en) Network fault diagnostic device, fault prediction device, and its diagnostic and prediction method
CN101441590A (en) Mainboard failure diagnosis device and method and mainboard monitoring device and method
CN103885441B (en) A kind of adaptive failure diagnostic method of controller local area network
CN111124785A (en) Hard disk fault checking method, device, equipment and storage medium
JP4485344B2 (en) Server apparatus, failure path diagnosis method, and failure path diagnosis program
CN114706371A (en) Complete vehicle network non-dormancy diagnosis method and device, electronic equipment and storage medium
CN111199701B (en) Synchronous control system of LED lattice display screen and self-checking method thereof
Li et al. Consistency checking of concurrent models for scenario-based specifications

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180502

Address after: London, England

Patentee after: GW partnership Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

Effective date of registration: 20180502

Address after: California, USA

Patentee after: Global innovation polymerization LLC

Address before: London, England

Patentee before: GW partnership Co.,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: 20080326

Termination date: 20211118