CN1160906C - Analogue web element testing method based on message recording and playback - Google Patents

Analogue web element testing method based on message recording and playback Download PDF

Info

Publication number
CN1160906C
CN1160906C CNB991171942A CN99117194A CN1160906C CN 1160906 C CN1160906 C CN 1160906C CN B991171942 A CNB991171942 A CN B991171942A CN 99117194 A CN99117194 A CN 99117194A CN 1160906 C CN1160906 C CN 1160906C
Authority
CN
China
Prior art keywords
message
management system
network management
network element
network
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
CNB991171942A
Other languages
Chinese (zh)
Other versions
CN1287427A (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 CNB991171942A priority Critical patent/CN1160906C/en
Publication of CN1287427A publication Critical patent/CN1287427A/en
Application granted granted Critical
Publication of CN1160906C publication Critical patent/CN1160906C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a simulative network element testing method based on message recording and playback, which is used for testing a network management system of a telecommunication network of a telecommunication field. The method mainly comprises a message recording module and a message playback module, wherein the message recording module realizes the functions of retransmitting and checking messages, and recording and storing required messages. The message playback module uses a database of the messages which are recorded and stored by the message recording module to simulate a network element device, and returns relevant messages. When a network management system is tested by the present invention, the investment number of actual net element devices can be reduced, the actual net element devices are substituted by simulative network elements which are as many as possible, and commercial regression testing software can be used for carrying out regression test.

Description

A kind of analogue web element testing method based on message recording and playback
Technical field
The present invention relates to field of telecommunications telecommunication network management (hereinafter to be referred as network management system), relate more specifically to a kind of method of improving the test job of network management system with analogue network element.
Background technology
At present, in the development process of webmastering software system, to carry out repeatedly regression test inevitably, each test all will be built the various actual network element of various types of quantity in the laboratory and be constructed (comprising actual Telecommunication network equipment and software) test environment of various complexity and be used for the network management system test, material resources had both greatly been wasted, very infeasible again in the laboratory, as also to cause the preliminary preparation excessive cycle of testing, the efficient that influences test job, the delay network management system construction cycle.In addition, replace heavy manual test with automatic test is the improved target of network management system test job always, use present commercial regression test software can carry out automatic regression test in network management system client, but the order of network element device return results and content must be identical when recording when requiring playback, and real-time multi-task, the telecommunication system network element device of distributed treatment is difficult to meet this requirement, this makes commercial regression test software be difficult to use in the automatic test of network management system, and have to adopt the method for artificial manual test, waste manpower greatly, reduced efficient.The above 2 reason causes the method for testing operating efficiency of present employing low, has taken the network element device of a large amount of costlinesses simultaneously in test process again, brings inconvenience to test job.
Summary of the invention
The objective of the invention is in order to overcome the drawback of above-described prior art, and a kind of analogue web element testing method based on message recording and playback is provided.In the network management system development and testing stage, reduce the input quantity of actual network element device as far as possible, thereby and replace huge and expensive actual network element group network to reach the purpose of Test Network guard system with analogue network element as much as possible; In addition, the order and the content of return results and identical when recording are carried out the regression tested requirement to satisfy commercial regression test software when guaranteeing playback by analogue network element.
The invention provides a kind of analogue web element testing method, it is characterized in that comprising the steps: based on message recording and playback
1, obtains the communication interface agreement of network management system and network element device;
2, on network management system and the interconnective link of network element device, insert information recording module of the present invention, information recording module monitors between network management system and the network element device message of communication mutually by the communication interface agreement that adopts network management system and network element device, and realizes function that all these message are transmitted, checked and the message of needs realized recording and storing;
3, network element device (400) is removed, between network management system (300) and message playback module (200), set up link, message playback module (200) also adopts the communication interface agreement of network management system (300) and network element device (400), set up communication with network management system (300), and the message database (500) of utilizing information recording module (100) recording and storing to get off, the network element device (400) that simulation is removed returns relevant message.
Described analogue web element testing method, its feature are that also described information recording module comprises the steps:
1, two LI(link interface)s is set in information recording module, a LI(link interface) is used to connect network management system, another LI(link interface) is used to connect network element device, and two LI(link interface)s all use the communication interface agreement of network management system and network element device to make information recording module and network management system and network element device set up communication respectively;
2, the message that receives of two LI(link interface)s all is delivered to message handling device;
3, after message handling device received message, the message call transponder was realized the two-way forwarding capability of message between two interfaces;
4, message call transcripter query messages predefine table is checked whether be the message that needs, and is realized the defined action of this action message according to the action message in the message predefine table.
Described analogue web element testing method, its feature are that also described message playback module comprises the steps:
1, a LI(link interface) is set, is used for being connected with the link of network management system, LI(link interface) uses the communication interface agreement and the network management system of network management system and network element device to set up communication;
2, LI(link interface) is delivered to message handling device with the message that the network management system direction transmits;
3, message call playback device query messages predefine table is checked whether be predefined message, and is realized the defined action of this action message according to the action message in the message predefine table.
Above-mentioned message predefine table is a two-dimentional form, the information that will be monitored in advance by the tester and record action and insert this table.The function that message forwarder is realized is exactly the two-way forwarding capability of aforesaid message, is about to intactly be transmitted to network element device from the message that the LI(link interface) that connects network management system is received; To intactly be transmitted to network management system from the message that the LI(link interface) that connects network element device is received.The function that the message recording device is realized has two as mentioned above: the one, and contrast message predefine table, the function for monitoring of realization predefine message, the 2nd, the message that is monitored is realized the defined predefine action of message predefine table.When the message recording device is carried out the storage action of message, at first in message library, search whether have identical Storage Item,,, then do not do any processing if having identical Storage Item if there is not then storage according to unique sign of message.
Analogue network element based on message recording and playback of the present invention has following advantage:
1, the message library that single actual network element device is recorded can be used to set up complicated analogue network element test environment, to satisfy the requirement of Laboratory Network guard system test to test environment, if and use actual network element device to carry out this test, be infeasible substantially in the laboratory;
2, can utilize the present invention to cooperate the macros instrument of network management system or business-like Software Testing Tool (as the SQAsuite software of U.S. Rational company) to play the simplification testing procedure, shorten the effect of test period, thereby realize the network management system test automation;
3, analogue network element of the present invention is simple in structure, is easy to realize, thereby can begins synchronously with the exploitation of network management system, even can be prior to the exploitation of network management system, thereby in the whole development process of network management system, can use, be convenient to webmaster developer debugging and correct mistakes, good practicability is arranged;
4, use analogue network element of the present invention to record once on actual network element device, the message library of generation just can replace this actual network element device to be used for test afterwards, and message recording does not influence the carrying out of test job;
5, because the message library structure organization that information recording module generates is comparatively simple, so the generation of message library is also comparatively flexible, can adopt append, delete, mode such as replacement generates the message library that is fit to testing requirement more.
Description of drawings
Fig. 1 is overall structure figure of the present invention
Fig. 2 (a) be information recording module basic composition module and with the connection layout of network management system and network element device
Fig. 2 (b) be message playback module basic composition module and with the connection layout of network management system
Fig. 3 (a) is the whole networking diagram of information recording module and network management system and network element
Fig. 3 (b) is the whole networking diagram of message playback module and network management system
Fig. 4 (a) is the process chart of information recording module
Fig. 4 (b) is the process chart of message playback module
Embodiment
Below by specific embodiment and in conjunction with the accompanying drawings to the description in further detail of the present invention's do.
Fig. 1 shows overall structure of the present invention.Information recording module 100 is two elements of whole system with message playback module 200, information recording module 100 connects with network management system 300 and network element device 400 respectively, be used to generate message database 500, message database 500 is carried out " read/write " operation; 200 of message playback modules are connected with network management system 300, realize the function of analogue network element by using message database 500, and 500 of message database are carried out " reading " operation.
Fig. 2 (a) show information recording module 100 the basic composition module and with the annexation of network management system 300 and network element device 400.Information recording module 100 connects with network management system 300 and network element device 400 respectively by LI(link interface) A 101 and LI(link interface) B 102, between Q interface 11,12 adopt TCP/IP bottom link protocols usually.Information recording module 100 is programs, and it can run on Windows system or unix system.LI(link interface) A 101, B 102 adopt web socket socket.Q interface the 11, the 12nd, the communications protocol between network management system server 302 and the network management system front end processor 401, if webmaster front end processor 401 does not carry out the protocol conversion between NM server 302 and the network element 402, Q interface 11,12 is exactly the interface protocol of network management system 300 and network element 402 so.Below introduce the different disposal that message that 100 pairs of information recording module receive from LI(link interface) A 101 and LI(link interface) B 102 is done respectively.
After LI(link interface) A 101 receives the message that network management system 300 sends here, it is sent to message handling device 103, message handling device 103 is message call transponder 104 at first, message forwarder 104 is not done any processing to this message and directly it is sent to network element 402 by LI(link interface) B 102, thereafter message handling device 103 is sent to message recording device 105 and message call transcripter 105 with this message, whether message recording device 105 is predefined message in message predefine table 1 as follows li this message of inquiry at first, if then take corresponding action according to the action message of message predefine table 1 li definition.For example be the manmachine command message that network management system 300 issues, then message recording device 105 is taked following action, check at first whether network element that message predefine table 1 li this message corresponding net element number and manmachine command message assigns is number consistent, if it is identical, then generate the unique sign of message and insert in the ID item of this message correspondence in the table according to certain algorithm, as difference then the message recording device do not do any action.Herein, the calculating of the unique sign of message can be adopted following algorithm: each parameter of ID=manmachine command message * each parameter sequence number sum+manmachine command number * m+ network element number * n.(m, n are non-0 integer, general m, the bigger effects of n value are better).
Message predefine table 1
Message name Action ID Network element number
Order Use algorithm to generate ID, and put ID position thereafter 1
Return results Obtain the ID of corresponding command messages, and storage in the lump with it 1
Alarm Use algorithm to generate ID, store in the lump with the alarm information body 1
After LI(link interface) B 102 receives the message that network element 402 reports, this message is sent to message handling device 103 to be handled, after message handling device 103 received message, at first the message call transponder 104, and message forwarder 104 is sent to LI(link interface) A 101 with this message and sends to network management system 300.Follow message handling device 103 message call transcripters 105, whether message recording device 105 is predefined message in message predefine table 1 as implied above li this message of inquiry at first after receiving message, if then take corresponding action according to the corresponding actions information of message predefine table 1 li definition.For example: if alarm information, then generate unique sign ID of this alarm information according to certain algorithm, herein, the calculating of the unique sign of message can be adopted following algorithm: all byte sums of ID=alarm information body, subsequently with this message body therewith unique sign of message deposit message database 500 in; If manmachine command return results message, then at first in message predefine table, obtain ID value with the command messages correspondence of network element number, deposit return results message body and the ID value that obtains in message database 500 thereafter.Need before the storage whether to have duplicate keys in the inquiry storehouse, do not have and to store.
More than introduced the implementation method of information recording module 100, wherein being provided with mainly of " network element number " in the message predefine table is provided with in order to solve the complicated networking of recording environment shown in Fig. 3 (a), to prevent obscuring of each network element message.Fig. 4 (a) has provided the handling process of information recording module 100.
The implementation method of introducing message playback module 200 below with and concrete application in test.Shown in Fig. 2 (b), message playback module 200 is programs, can be in together in the program with information recording module 100 shown in Fig. 2 (a), also can be independent.LI(link interface) 201 is realized being connected with the link of network management system 300 based on ICP/IP protocol, and message playback module 200 is Q interface protocols with the communications protocol of network management system 300.After the message that the network management system 300 that receives LI(link interface) 201 transmits (normally manmachine command message) it being sent to message handling device 202 deals with, message handling device 202 is sent to message playback device 203 and message call playback device 203 with this message after receiving message, message playback device 203 is inquired about message predefine table 2 as follows, and takes corresponding action according to the action message of message predefine table 2 li message name correspondence.For example realize the generation of the unique sign of message ID for the command messages that receives, ID according to message name and generation searches whether occurrence is arranged in the database 500 that information recording module is set up then, if have, the message body that then will search is read and is sent to LI(link interface) 201, sends to network management system 300 by LI(link interface) 201; If no, then give network management system 300 from the message of LI(link interface) 201 transmissions " no result ".The occurrence that finds in the database promptly is the pairing return results message of order.If being network element device 400, alarm information initiatively reports network management system 300, message playback module 200 regularly reads whole alarm informations of this class in the alarm storehouse and it is initiatively reported network management system 300 so, for the alarm information that network management system 300 just reports by order inquiry network element, it handles with the processing of the return results message of order identical.By above method, just reached the effect of analogue network element.
Message predefine table 2
Message name Action
Order The 106 same method algorithms of message recording device shown in use and Fig. 2 (a) generate ID, are that occurrence searched in index in message database with this ID.
Fig. 4 (b) is the process chart of message playback module.Fig. 3 (b) is the Test Networking figure of message playback module and network management system, the network management system front end processor of each message playback module simulation shown in Fig. 3 (a) with a plurality of network elements.
Under lab the environment shown in Fig. 3 (b) is easy to build very much.Under above-mentioned experimental situation,, use the message playback module, just can play and test effect preferably network management system in conjunction with the business-like SQASuite of testing software.

Claims (3)

1, a kind of analogue web element testing method based on message recording and playback is characterized in that comprising the steps:
(1) obtains the communication interface agreement of network management system (300) and network element device (400);
(2) on network management system (300) and the interconnective link of network element device (400), insert information recording module (100), information recording module (100) monitors between network management system (300) and the network element device (400) message of communication mutually by the communication interface agreement that adopts network management system (300) and network element device (400), and realization is transmitted, checked all these message and to the function of the message realization recording and storing of needs;
(3) network element device (400) is removed, between network management system (300) and message playback module (200), set up link, message playback module (200) also adopts the communication interface agreement of network management system (300) and network element device (400), set up communication with network management system (300), and the message database (500) of utilizing information recording module (100) recording and storing to get off, the network element device (400) that simulation is removed returns relevant message.
2, described analogue web element testing method based on message recording and playback as claimed in claim 1, its feature is that also described information recording module (100) comprises the steps:
(1) two LI(link interface)s is set in information recording module (100), a LI(link interface) (101) is used to connect network management system, another LI(link interface) (102) is used to connect network element device, and two LI(link interface)s all use the network management system (300) and the communication interface agreement of network element device (400) to make information recording module (100) and network management system (300) and network element device (400) set up communication respectively;
(2) two message that LI(link interface) receives all are delivered to message handling device (103);
(3) after message handling device (103) received message, message call transponder (104) was realized the two-way forwarding capability of message between two interfaces;
(4) message call transcripter (105) query messages predefine table is checked whether be the message that needs, and is realized the defined action of this action message according to the action message in the message predefine table.
3, the analogue web element testing method based on message recording and playback as claimed in claim 1, its feature are that also described message playback module (200) comprises the steps:
(1) LI(link interface) (201) is set, is used for being connected with the link of network management system (300), LI(link interface) (201) uses network management system (300) and the communication interface agreement and the network management system (300) of network element device (400) to set up communication;
(2) LI(link interface) (201) is delivered to message handling device (202) with the message that network management system (300) direction transmits;
(3) message call playback device (203) query messages predefine table is checked whether be predefined message, and is realized the defined action of this action message according to the action message in the message predefine table.
CNB991171942A 1999-11-05 1999-11-05 Analogue web element testing method based on message recording and playback Expired - Fee Related CN1160906C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB991171942A CN1160906C (en) 1999-11-05 1999-11-05 Analogue web element testing method based on message recording and playback

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB991171942A CN1160906C (en) 1999-11-05 1999-11-05 Analogue web element testing method based on message recording and playback

Publications (2)

Publication Number Publication Date
CN1287427A CN1287427A (en) 2001-03-14
CN1160906C true CN1160906C (en) 2004-08-04

Family

ID=5279834

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB991171942A Expired - Fee Related CN1160906C (en) 1999-11-05 1999-11-05 Analogue web element testing method based on message recording and playback

Country Status (1)

Country Link
CN (1) CN1160906C (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100397832C (en) * 2004-08-29 2008-06-25 华为技术有限公司 Information receiving and transmitting controller based on information test and method thereof
CN100407664C (en) * 2005-01-13 2008-07-30 中兴通讯股份有限公司 Multi-network element emulation test system and implementation method
CN100417100C (en) * 2005-05-23 2008-09-03 中兴通讯股份有限公司 Sofeware simulation method of large number quipments
CN100479394C (en) * 2007-01-15 2009-04-15 华为技术有限公司 Simulated testing system and method of the business processing network element
CN102036275B (en) * 2010-12-08 2014-12-17 大唐移动通信设备有限公司 Simulator and message processing method
CN103580945B (en) * 2012-08-07 2018-07-13 百度在线网络技术(北京)有限公司 A kind of method and apparatus generating test data for complex business systems
CN104796448B (en) * 2014-01-22 2019-02-12 腾讯科技(深圳)有限公司 The data processing method and device of network system
CN105991322B (en) * 2015-02-09 2020-01-31 中兴通讯股份有限公司 Processing method and device for acquisition adapter management system
CN105471643B (en) * 2015-11-30 2018-10-30 中国联合网络通信集团有限公司 A kind of Approaches of Alarm Correlation and system applied to NFV networks
CN105871662B (en) * 2016-06-22 2018-10-23 腾讯科技(深圳)有限公司 A kind of agreement records, back method and terminal
CN110597725B (en) * 2019-09-19 2023-05-05 浙江诺诺网络科技有限公司 Mysql simulation return method, device and equipment

Also Published As

Publication number Publication date
CN1287427A (en) 2001-03-14

Similar Documents

Publication Publication Date Title
CN1160906C (en) Analogue web element testing method based on message recording and playback
CN112347071B (en) Power distribution network cloud platform data fusion method and power distribution network cloud platform
CN107070890A (en) Flow data processing device and communication network major clique system in a kind of communication network major clique system
CN108347095B (en) Simulation test method and system for background monitoring system of transformer substation
CN103248512A (en) Method and system for generating topological structure of application layer in communication network
CN1805381A (en) Multi-network element emulation test system and implementation method
CN112905616B (en) Storage system of block chain account book
CN111400288A (en) Data quality inspection method and system
CN102508919A (en) Data processing method and system
CN109857631A (en) Code coverage statistical method, device, equipment and storage medium based on artificial intelligence
CN109150854A (en) Dynamic and configurable communication protocol converting system based on XML file
CN114123482A (en) Main plant station information joint debugging decoupling method
CN114401284A (en) Real-time data acquisition and transmission system and method for fixed pollution source treatment working condition
CN106130929B (en) The service message automatic processing method and system of internet insurance field based on graph-theoretical algorithm
CN114095535A (en) Method for automatically mapping time sequence variable of physical equipment into digital model
CN114422873A (en) Method, device and equipment for dynamically accessing industrial Internet identification analysis platform
CN112416557B (en) Method and device for determining call relation, storage medium and electronic device
CN1858744A (en) Data inquire system and method
CN105389401A (en) Method and device for testing performance of database
CN110209722A (en) A kind of data-interface for data exchange
CN114489673A (en) Method and device for deleting invalid codes in application program
CN115269516A (en) Log data acquisition management method, system, storage medium and electronic equipment
CN111324587B (en) Compression method, analysis method and system for data of OBJ file
CN109814871B (en) Node management method and system based on DDS bus
CN115878721A (en) Data synchronization method, device, terminal and computer readable storage medium

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20040804

Termination date: 20131105