WO2017140084A1 - Test method and device - Google Patents

Test method and device Download PDF

Info

Publication number
WO2017140084A1
WO2017140084A1 PCT/CN2016/090182 CN2016090182W WO2017140084A1 WO 2017140084 A1 WO2017140084 A1 WO 2017140084A1 CN 2016090182 W CN2016090182 W CN 2016090182W WO 2017140084 A1 WO2017140084 A1 WO 2017140084A1
Authority
WO
WIPO (PCT)
Prior art keywords
alarm
details
version
test
message
Prior art date
Application number
PCT/CN2016/090182
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2017140084A1 publication Critical patent/WO2017140084A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing

Definitions

  • This document relates to, but is not limited to, the field of data network communication, and in particular to a test method and apparatus applied to network management alarms.
  • the alarm test phase includes: unit test, integration test, smoke test, system test, regression test, and so on.
  • the test is performed one by one according to the function in a specific version, and the test result and the reason details are independently dispersed.
  • the convergence trend, the cause of the fault, and the high fault point of the fault need to be analyzed in different dimensions and types, the method cannot be efficiently and quickly. Provides overall data support.
  • the embodiment of the invention provides a testing method and device, which can improve the efficiency of the network management alarm test.
  • a test method including: receiving an alarm message generated by a test case library; and performing an alarm test by comparing the current version of the received alarm message with the alarm details in the historical version.
  • the testing method further includes:
  • the alarm details include: an alarm number, an alarm level, a network element location, and an alarm occurrence. Time, alarm code, location within the NE, alarm type, and confirmation status;
  • the storing, in the database, the alarm details in the current version of the alarm message includes:
  • the alarm details of the alarm message are stored in the database.
  • the performing the alarm test comprises:
  • comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message includes:
  • the testing method further includes:
  • the testing method further includes:
  • test case database If there is no alarm detail to be compared with the historical version, it is determined whether there is an alarm message to be tested in the test case database, and the test is received if there is an alarm message to be tested in the test case database.
  • the alarm message to be tested generated by the use case library.
  • the testing method further includes:
  • the data of the comparison file is analyzed, and an alarm analysis report is output.
  • the method for analyzing data of the comparison file includes at least one of the following:
  • a test apparatus is provided, where the test apparatus is applied to a network management alarm, including:
  • a receiving module configured to receive an alarm message generated by the test case library
  • the test module is configured to perform an alarm test by comparing the current version of the received alarm message with the alarm details in the historical version.
  • the testing device further includes:
  • Obtaining a module configured to obtain the alarm details in the current version and the historical version of the alarm message
  • the alarm details include: an alarm number, an alarm level, a network element location, an alarm occurrence time, an alarm code, an intra-network element location, an alarm type, and an acknowledgement status;
  • the storage module is configured to store the obtained alarm details in the current version of the obtained alarm message in a database.
  • test module is set to:
  • test module is set to:
  • the testing device further includes an alarm processing module, configured to: after comparing the alarm details in the current version with the alarm details in the historical version of the alarm message, in the alarm message If the alarm details in the historical version are in error, modify or delete the alarm details of the error.
  • an alarm processing module configured to: after comparing the alarm details in the current version with the alarm details in the historical version of the alarm message, in the alarm message If the alarm details in the historical version are in error, modify or delete the alarm details of the error.
  • the testing device further includes a comparison processing module, configured to compare the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message,
  • test case database If there is no alarm detail to be compared with the historical version, it is determined whether there is an alarm message to be tested in the test case database, and the test is received if there is an alarm message to be tested in the test case database.
  • the alarm message to be tested generated by the use case library.
  • the comparison processing module is further configured to:
  • the data of the comparison file is analyzed, and an alarm analysis report is output.
  • the technical solution provided by the embodiment of the present invention includes: receiving an alarm message generated by the test case database; performing an alarm test by comparing the current version of the received alarm message with the alarm details in the historical version.
  • the technical solution for testing the alarm by comparing the alarm details of the alarm message in the current version and the historical version improves the efficiency of the network management alarm test.
  • FIG. 1 is a flow chart of a test method according to an embodiment of the present invention.
  • FIG. 2 is a block diagram showing the structure of a test apparatus according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a testing apparatus according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a test comparison file analysis process according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a test method according to an embodiment of the present invention. As shown in FIG. 1, the process includes:
  • Step 102 Receive an alarm message generated by the test case library.
  • Step 104 Perform an alarm test by comparing the current version of the received alarm message with the alarm details in the historical version.
  • the testing method of the embodiment of the present invention further includes:
  • the alarm details in the current version of the obtained alarm packet are stored in the database.
  • the foregoing alarm details include: an alarm number, an alarm level, a network element location, an alarm occurrence time, an alarm code, an intra-network element location, an alarm type, and an acknowledgement status.
  • the test method is applied to the network management alarm;
  • the invention obtains the alarm details from the current version of the alarm message, and stores the current version of the alarm details in the database, and acquires the historical version of the alarm details.
  • the foregoing database in the embodiment of the present invention may be dedicated to storing the alarm details generated by the testing method of the embodiment of the present invention.
  • the alarm details of the temporary version may not be stored to save storage space.
  • the alarm details of the alarm packet are stored in the database.
  • the correctness of the alarm details can be regarded as a test result.
  • performing the alarm test includes:
  • comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message including: obtaining the current version of the alarm details from the alarm message; determining the alarm The alarm details in the current version of the packet are correct. If the alarm details in the current version of the alarm packet are correct, the alarm details in the current version of the alarm packet and the alarm details in the history version of the alarm packet are comparing.
  • the test method further includes: if the alarm details in the current version of the alarm message are in error, Compare the alarm details of the alarm with the alarm details of the corresponding version.
  • the foregoing determining whether the alarm details of the alarm message in the current version are correct may occur after the alarm details are stored in the database, and may be modified or deleted if the alarm details of the historical version of the alarm message are in error. Details of the error alarm.
  • the testing method further includes: if the alarm details of the historical version to be compared exist, the alarm is generated.
  • the alarm details in the current version of the packet are compared with the alarm details in the historical version of the alarm packet to be compared; if there is no alarm detail to be compared with the historical version, it is determined whether there is a test sample library to be tested.
  • the alarm packet receives the alarm packet to be tested generated by the test case database when there is an alarm packet to be tested in the test case database.
  • the method of the embodiment of the present invention further includes: if the next alarm message to be tested does not exist, the data of the comparison file may be analyzed and processed, and an alarm analysis report is output.
  • the above analysis processing may include, but is not limited to, one or more data processing of data drilling, data mining.
  • the data processing methods such as data drilling and data mining are techniques commonly used by those skilled in the art, and the output alarm analysis includes a file report of data comparison generated according to data processing methods such as data drilling and data mining.
  • the embodiment of the present invention may be implemented by a server with an operating system as a hardware execution entity, for example, a server of the WINDOWS operating system.
  • Embodiments of the present invention provide a computer storage medium, which is stored in a computer storage medium.
  • Computer executable instructions computer executable instructions for performing the above test methods.
  • FIG. 2 is a structural block diagram of a testing apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes:
  • the receiving module 22 is configured to receive an alarm message generated by the test case library
  • the test module 24 is configured to perform an alarm test by comparing the alarm details in the current version and the historical version of the received alarm message.
  • the testing device further includes:
  • the obtaining module 20 is configured to obtain the alarm details in the current version and the historical version of the alarm message;
  • the alarm details include: an alarm number, an alarm level, a network element location, an alarm occurrence time, an alarm code, an intra-network element location, an alarm type, and an acknowledgement status;
  • the storage module is configured to store the obtained alarm details in the current version of the alarm message in a database.
  • test module is set to:
  • the alarm details in the current version of the alarm packet are compared with the alarm details in the historical version of the alarm packet to generate a comparison file.
  • test module is set to:
  • the alarm details in the current version of the alarm packet are correct, the alarm details in the current version of the alarm packet are compared with the alarm details in the historical version of the alarm packet to generate a comparison file.
  • the testing device further includes an alarm processing module 210, configured to compare the alarm details in the current version with the alarm details in the historical version of the alarm message, and the alarm details in the historical version of the alarm message are incorrect. In case, modify or delete the alarm details of the error.
  • an alarm processing module 210 configured to compare the alarm details in the current version with the alarm details in the historical version of the alarm message, and the alarm details in the historical version of the alarm message are incorrect. In case, modify or delete the alarm details of the error.
  • the testing device further includes a comparison processing module 212 configured to set the current alarm message After the alarm details in the version are compared with the alarm details in the historical version of the alarm message,
  • test case database If there is no alarm detail to be compared with the historical version, it is determined whether there is an alarm message to be tested in the test case database. If there is an alarm message to be tested in the test case database, the test case library is generated. Alarm packet to be tested.
  • the comparison processing module is further configured to:
  • the data of the comparison file is analyzed, and an alarm analysis report is output.
  • the embodiment of the present invention improves the efficiency of the system test by comparing and analyzing the existing version with the historical version, and lays a solid foundation for the field test and the network access test.
  • the comparison report based on the historical database visually shows the differences and changes between the versions, and it is very beneficial for the analysis to find hidden faults.
  • the embodiment can provide a closed loop test system: the system entry can be a test case library, and the test case database is generated to generate an alarm message, and the network management device senses and displays the processing result and the solution after receiving the alarm message.
  • the export is the result of the comparison report and the history database, including the comparison file of the history version and the test version alarm details according to the policy, recording the test version of the alarm details in the library, and modifying or deleting the historical data in the historical version.
  • the correctness of the alarm details can be considered as a test result.
  • the test case library can be updated based on the previous test results, such as adding test case alarms in areas where alarms occur frequently, and reducing corresponding test case alarms when the number of alarms shows a convergence trend.
  • the above comparison file includes a comparison between the test version and the historical version of the alarm details.
  • a comparison report of the alarm details between the versions can also be output.
  • the latest result is automatically recorded at the same time of testing, and by continuously adding, modifying, and deleting data operations, the data of the historical database can be enriched step by step, the test automation and the degree of intelligence are improved, and the goal of improving the test efficiency is finally realized.
  • the above policies include but are not limited to time policies and version policies. Time policies include testing at specified times. Version policies include specific versions. The alarm details of the network management alarm are compared and analyzed.
  • FIG. 3 is a schematic structural diagram of a test apparatus according to an embodiment of the present invention, as shown in FIG. 3.
  • the test packet is generated by the test case database, and the alarm message to be tested is sent to the network management module 32.
  • the execution module 32 parses the packet and processes the alarm according to the internal logic to perceive and display the alarm details of the current version of the alarm packet, which is referred to as the current version of the alarm details.
  • the analysis module 34 judges the execution result, extracts the alarm details, performs data normalization, and summarizes the data; performs data mining of different dimensions according to the strategy set in the test case library, and uses the analysis result to update the test case library, and tests the test case therein.
  • the use case is modified; the analysis module 34 stores the summarized data in the historical database, and after each test, the historical data can be read according to the pre-strategy, the loop comparison is performed, and the comparison report can be output when needed. After the historical data reaches a certain scale, the fault occurrence frequency or convergence trend information in the alarm details recorded in the historical database is queried, and the test case library can be designed as a reference for targeted design; the data changes in the history database are also Can in turn prompt the update of the test case library.
  • the embodiment of the invention provides a test method applied to network management alarms.
  • Design a test case library define the planned network element type, version, network element management, protocol (IP) address, network segment and mask, network interface address and mask, interface end-to-end endpoint and Link attributes, Open Shortest Path First (OSPF) / Link State Routing Protocol (ISIS) / Border Gateway Protocol (BGP) routing protocol type and advertising network segment, Layer 2 and Layer 3 Virtual Private Network (VPN) ⁇ Tunnel Service Type and Protection information, connectivity fault management (CFM), Bidirectional Forwarding Detection (BFD), Virtual Router Redundancy Protocol (VRRP), operation management and maintenance (Operation, Administration, Maintenance, OAM) Key configurations such as detection type.
  • Pre-customized strategies generate comparison files and comparison reports for specific alerts.
  • test case in the test case library is called to generate an alarm and send it to the network management alarm processing module.
  • the test case determine whether it is necessary to record the alarm details.
  • the alarm details may not be recorded. If the judgment result is yes, the alarm details need to be recorded, and after the alarm details are recorded, it is determined whether the alarm details are correct.
  • the test data details of each function point in the test process are established to prepare for the next version of the test comparison. If the judgment result is negative, it is not necessary to record the alarm details, and it is directly determined whether the alarm details are correct.
  • the alarm processing result is incorrect, if the alarm processing is incorrect, no further comparison is made to determine whether there is a next alarm to be tested. If the alarm processing is correct, enter the history database and query the previous version with the version number and alarm ID as the key value. The data is compared with the location, time, level, alarm code, location, type, and status of the NE in the alarm details table. After the comparison is completed, a comparison file is generated according to the strategy in the test case library.
  • FIG. 4 is a flow chart of a test method according to an embodiment of the present invention. As shown in FIG. 4, the method includes the following steps:
  • Step 402 Design a test scenario, including planning parameters, including an interface address, a routing protocol, a service type, and a protection path.
  • OSPF Open Shortest Path First
  • step 404 a test plan and an alarm test case are written and input into the test case library.
  • the test case library is called to start testing the alarm.
  • the test version number is version 1, there is history version 2, and history version 3.
  • the comparison strategy is for all comparisons.
  • Step 406 The alarm message generated by the test case database is invoked, and the alarm message is sent to the network management system.
  • the test is performed by taking the down alarm of the test port as an example.
  • Step 408 After receiving the alarm message, the network management system performs the gateway alarm processing; the details of the alarm may be displayed in the current alarm; the alarm details may include: an alarm number, an alarm level, a network element location, an alarm occurrence time, an alarm code, Details such as location, alarm type, and acknowledgement status in the NE.
  • the alarm number is 1411008035312, the severity is severity, and the value is red.
  • the type is the communication alarm.
  • the time is the time when the alarm simulation tool is generated.
  • the alarm code is DOWN (2151), the confirmation status is unconfirmed, and the NE IP address is 10.46.
  • LACP Link Aggregation Control Protocol
  • port index 20, interface name Gei_0/0/0/10
  • port offline turns into INACTIVE.
  • Step 410 Determine whether it is necessary to record the alarm details. If the record needs to be recorded, perform the step. Step 412, in the case where recording is not required, jump to step 414;
  • Step 412 Record alarm details; may include storing the result in a database, inserting a piece of data in an alarm table, a version table, and an alarm detail table in the history database: inserting an alarm ID, a current execution result, and an execution time in the alarm table Insert the alarm ID, the version number, the version execution result, and the execution time in the version table. Insert the alarm ID, version number, version name, root alarm ID, alarm name, alarm level, time of occurrence, and network element in the alarm details table. Internal positioning, alarm code, associated service, alarm type, alarm identifier, processing suggestion, system type, attribute, and alarm cause;
  • step 414 it is determined whether the processing result of the alarm module is correct. If the processing is wrong, go to step 420. If the processing is correct, step S416 is performed;
  • Step 416 compares with the alarm details in the historical version to generate a comparison file.
  • the comparison content may include the alarm name, the alarm level, the occurrence time, the intra-network element location, the alarm code, the associated service, the alarm type, the alarm identifier, the processing suggestion, the system type, the attribute, the alarm cause, etc., and the record version 1 is generated after the comparison is completed. Version 2 compares the results of the file.
  • step 418 it is determined whether there is an older historical version. If yes, the process returns to step 416 to compare the test version with the older historical version. If not, step 420 is performed. For example, there is also a version 3 that needs to be compared. Connect the history database again and repeat the comparison process in step 416.
  • Step 420 it is determined whether there is a next alarm message, if there is a next alarm message, the process returns to step 406, if there is no next alarm message, step 422 is performed;
  • Step 422 Processing the comparison file, after testing all the alarms, acquiring two comparison files, and extracting information such as alarm details, test time, and test personnel in the file.
  • Query the failed device, The board and the port perform data drilling, query the alarm-related service, and perform data drilling.
  • the alarm details and the comparison results of all the comparison files corresponding to the same alarm are stored in the historical database, the data is stored, a comparison report is generated, and the fault change is counted;
  • step 424 it is determined whether the historical alarm details need to be updated. If the modification is required, step 426 is performed; if the modification is not required, the test is ended;
  • step 426 the historical alarm details are modified or deleted, and the test is ended after the update is completed.
  • FIG. 5 is a flowchart of a comparison file processing according to an embodiment of the present invention. As shown in FIG. 5, the method includes the following steps:
  • Step 502 Read all the comparison files, and perform data extraction on the alarm details, the test time, the test personnel, and the like;
  • Step 504 Perform data reorganization according to the condition of time and version number, and delete unnecessary or erroneous data;
  • Step 506 According to the corresponding policy, perform statistics on the number of faults, fault levels, fault modules, and the like found in the test, and perform data aggregation; for example, count the total number of faults found within one week or one month;
  • Step 508 performing data analysis including data drilling based on the aggregated data.
  • the network management alarm information Based on the network management alarm information, it is associated with the device, board, port, etc., and is associated with the alarm details and related services. Therefore, data drilling and data drilling can be performed according to the pre-strategy to query different types of faults. After discovering certain rules, such as fault high-issue function and fault convergence tendency, the test case library can be updated.
  • Step 510 Perform data analysis including data mining based on the aggregated data.
  • Network management alarms Because of the number of associated modules and devices, data mining is required for test results through a combination of different dimensions. For example, query the fault convergence trend of a specific number of versions. It is recommended to update the test case library after getting the data.
  • Step 512 performing data analysis including data storage according to the summarized data.
  • the alarm details, data drilling results and data mining results after the rounding and summarization are stored in the historical database to form a historical database with detailed analysis data.
  • a comparison report is generated. After comprehensively processing all the comparison files obtained before, the summary report of the summary is output.
  • the content is a comparison of the failures between historical versions during the test, including the comparison between specific versions and specific test phases according to the pre-strategy.
  • Step 508 and step 510 may further include step 516:
  • Step 516 update the test case library
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, being executed by a processor and stored in a memory. Programs/instructions to implement their respective functions.
  • the invention is not limited to any particular form of hardware and software Combination of.
  • the foregoing technical solution improves the testing efficiency of the network management alarm.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A test method and a device, to be applied to a network management alarm, the method comprising: receiving an alarm message generated by a test case library; and performing an alarm test by comparing alarm details in a current version and in historical versions of the received alarm message. The embodiments of the present invention improve the test efficiency of network management alarm.

Description

测试方法及装置Test method and device 技术领域Technical field
本文涉及但不限于数据网络通信领域,尤其涉及应用于网管告警的测试方法及装置。This document relates to, but is not limited to, the field of data network communication, and in particular to a test method and apparatus applied to network management alarms.
背景技术Background technique
随着网络技术的不断发展,运营商对网管软件的管理能力和质量要求也在逐步提高,测试流程必须不断提高故障的发现能力和分析能力以应对日益增多的需求。在网管系统中,告警是一种基本功能,几乎所有的入网测试、对外测试、演示功能都需要展示告警管理能力。确保告警测试的质量是测试人员需要特别关注的一项工作。With the continuous development of network technology, operators' management capabilities and quality requirements for network management software are gradually improving. The testing process must continuously improve fault discovery and analysis capabilities to cope with increasing demands. In the network management system, alarms are a basic function. Almost all network access tests, external tests, and demonstration functions need to display alarm management capabilities. Ensuring the quality of the alarm test is a task that testers need to pay special attention to.
告警测试阶段包含:单元测试、集成测试、冒烟测试、系统测试、回归测试等。相关技术中,在进行告警测试时都是在特定版本中按照功能逐条进行测试,测试结果和原因细节独立分散,在需要以不同维度、类型分析收敛趋势、故障原因、故障高发点时无法高效快速地提供整体的数据支持。The alarm test phase includes: unit test, integration test, smoke test, system test, regression test, and so on. In the related art, when the alarm test is performed, the test is performed one by one according to the function in a specific version, and the test result and the reason details are independently dispersed. When the convergence trend, the cause of the fault, and the high fault point of the fault need to be analyzed in different dimensions and types, the method cannot be efficiently and quickly. Provides overall data support.
针对相关技术中网管告警测试效率过低的问题,相关技术还未提出有效的解决方案。In view of the problem that the efficiency of the network management alarm test in the related art is too low, the related technology has not proposed an effective solution.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供了测试方法及装置,能够提高网管告警测试效率。The embodiment of the invention provides a testing method and device, which can improve the efficiency of the network management alarm test.
根据本发明实施例的一个方面,提供一种测试方法,包括:接收测试用例库产生的告警报文;通过对比接收的告警报文的当前版本和历史版本中的告警详情进行告警测试。According to an aspect of the present invention, a test method is provided, including: receiving an alarm message generated by a test case library; and performing an alarm test by comparing the current version of the received alarm message with the alarm details in the historical version.
可选地,所述告警测试之前,所述测试方法还包括:Optionally, before the alarm test, the testing method further includes:
获取所述告警报文的当前版本和历史版本中的告警详情;Obtaining alarm details in the current version and the historical version of the alarm packet;
其中,所述告警详情包括:告警编号、告警级别、网元位置、告警发生 时间、告警码、网元内定位、告警类型、确认状态;The alarm details include: an alarm number, an alarm level, a network element location, and an alarm occurrence. Time, alarm code, location within the NE, alarm type, and confirmation status;
将获取的所述告警报文的当前版本中的所述告警详情存储于数据库中。And storing the obtained alarm details in the current version of the alarm message in a database.
可选地,所述将告警报文的当前版本中的所述告警详情存储于数据库中包括:Optionally, the storing, in the database, the alarm details in the current version of the alarm message includes:
在当前版本为正式版本的情况下,将所述告警报文的告警详情存储于数据库中。In the case that the current version is the official version, the alarm details of the alarm message are stored in the database.
可选地,所述进行告警测试包括:Optionally, the performing the alarm test comprises:
将所述告警报文的当前版本中所述告警详情与所述告警报文的历史版本中的告警详情进行对比,生成对比文件;根据生成的对比文件进行告警测试。Comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message to generate a comparison file; performing an alarm test according to the generated comparison file.
可选地,将所述告警报文的当前版本中的所述告警详情与所述告警报文的历史版本中的告警详情进行对比包括:Optionally, comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message includes:
判断所述告警报文的当前版本中的所述告警详情是否正确;Determining whether the alarm details in the current version of the alarm message are correct;
在所述告警报文的当前版本中的所述告警详情正确的情况下,将所述告警报文的当前版本中的所述告警详情与所述告警报文的历史版本中的告警详情进行对比。Comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message when the alarm details in the current version of the alarm message are correct. .
可选地,所述将当前版本中的所述告警详情与所述告警报文的历史版本中的告警详情进行对比之后,所述测试方法还包括:Optionally, after the comparing the alarm details in the current version with the alarm details in the historical version of the alarm message, the testing method further includes:
在所述告警报文的历史版本中的告警详情出错的情况下,修改或删除出错的告警详情。If the alarm details in the historical version of the alarm message are in error, modify or delete the alarm details of the error.
可选地,将所述告警报文的当前版本中的所述告警详情与所述告警报文的历史版本中的告警详情进行对比之后,所述测试方法还包括:Optionally, after comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message, the testing method further includes:
在存在待对比历史版本的告警详情的情况下,将所述告警报文的当前版本中的所述告警详情与所述待对比的所述告警报文的历史版本中的告警详情进行对比;Comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message to be compared, where the alarm details of the historical version are to be compared;
在不存在待对比历史版本的告警详情的情况下,判断所述测试用例库中是否存在待测试的告警报文,在测试用例库中存在待测试的告警报文的情况下,接收所述测试用例库产生的所述待测试的告警报文。 If there is no alarm detail to be compared with the historical version, it is determined whether there is an alarm message to be tested in the test case database, and the test is received if there is an alarm message to be tested in the test case database. The alarm message to be tested generated by the use case library.
可选地,所述测试方法还包括:Optionally, the testing method further includes:
在判断所述测试用例库中不存在待测试的告警报文的情况下,将所述对比文件的数据进行分析,输出告警分析报告。When it is determined that there is no alarm message to be tested in the test case database, the data of the comparison file is analyzed, and an alarm analysis report is output.
可选地,所述将所述对比文件的数据进行分析的方法包括以下至少之一:Optionally, the method for analyzing data of the comparison file includes at least one of the following:
数据钻取、数据挖掘、数据存储。Data drilling, data mining, data storage.
根据本发明实施例的另一方面,提供一种测试装置,所述测试装置应用于网管告警,包括:According to another aspect of the embodiments of the present invention, a test apparatus is provided, where the test apparatus is applied to a network management alarm, including:
接收模块,设置为接收测试用例库产生的告警报文;a receiving module, configured to receive an alarm message generated by the test case library;
测试模块,设置为通过对比接收的告警报文的当前版本和历史版本中的告警详情进行告警测试。The test module is configured to perform an alarm test by comparing the current version of the received alarm message with the alarm details in the historical version.
所述测试装置还包括:The testing device further includes:
获取模块,设置为获取所述告警报文的当前版本和历史版本中的告警详情;Obtaining a module, configured to obtain the alarm details in the current version and the historical version of the alarm message;
其中,所述告警详情包括:告警编号、告警级别、网元位置、告警发生时间、告警码、网元内定位、告警类型、确认状态;The alarm details include: an alarm number, an alarm level, a network element location, an alarm occurrence time, an alarm code, an intra-network element location, an alarm type, and an acknowledgement status;
存储模块,设置为将获取的所述告警报文的当前版本中的所述告警详情存储于数据库中。The storage module is configured to store the obtained alarm details in the current version of the obtained alarm message in a database.
可选地,所述测试模块是设置为:Optionally, the test module is set to:
将所述告警报文的当前版本中所述告警详情与所述告警报文的历史版本中的告警详情进行对比,生成对比文件;Comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message to generate a comparison file;
根据生成的对比文件进行告警测试。Perform an alarm test based on the generated comparison file.
可选地,所述测试模块是设置为:Optionally, the test module is set to:
判断所述告警报文的当前版本中的所述告警详情是否正确;Determining whether the alarm details in the current version of the alarm message are correct;
在所述告警报文的当前版本中的所述告警详情正确的情况下,将所述告警报文的当前版本中的所述告警详情与所述告警报文的历史版本中的告警详情进行对比,生成对比文件;Comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message when the alarm details in the current version of the alarm message are correct. , generating a comparison file;
根据生成的对比文件进行告警测试。 Perform an alarm test based on the generated comparison file.
可选地,所述测试装置还包括告警处理模块,设置为所述将当前版本中的所述告警详情与所述告警报文的历史版本中的告警详情进行对比之后,在所述告警报文的历史版本中的告警详情出错的情况下,修改或删除出错的告警详情。Optionally, the testing device further includes an alarm processing module, configured to: after comparing the alarm details in the current version with the alarm details in the historical version of the alarm message, in the alarm message If the alarm details in the historical version are in error, modify or delete the alarm details of the error.
可选地,所述测试装置还包括对比处理模块,设置为将所述告警报文的当前版本中的所述告警详情与所述告警报文的历史版本中的告警详情进行对比之后,Optionally, the testing device further includes a comparison processing module, configured to compare the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message,
在存在待对比历史版本的告警详情的情况下,将所述告警报文的当前版本中的所述告警详情与所述待对比的所述告警报文的历史版本中的告警详情进行对比;Comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message to be compared, where the alarm details of the historical version are to be compared;
在不存在待对比历史版本的告警详情的情况下,判断所述测试用例库中是否存在待测试的告警报文,在测试用例库中存在待测试的告警报文的情况下,接收所述测试用例库产生的所述待测试的告警报文。If there is no alarm detail to be compared with the historical version, it is determined whether there is an alarm message to be tested in the test case database, and the test is received if there is an alarm message to be tested in the test case database. The alarm message to be tested generated by the use case library.
可选地,所述对比处理模块还设置为:Optionally, the comparison processing module is further configured to:
在判断所述测试用例库中不存在待测试的告警报文的情况下,将所述对比文件的数据进行分析,输出告警分析报告。When it is determined that there is no alarm message to be tested in the test case database, the data of the comparison file is analyzed, and an alarm analysis report is output.
与相关技术相比,本发明实施例提供的技术方案,包括:接收测试用例库产生的告警报文;通过对比接收的告警报文的当前版本和历史版本中的告警详情进行告警测试。本发明实施例,采用通过当前版本和历史版本中该告警报文的告警详情的对比对告警进行测试的技术方案,提高了网管告警测试的效率。Compared with the related art, the technical solution provided by the embodiment of the present invention includes: receiving an alarm message generated by the test case database; performing an alarm test by comparing the current version of the received alarm message with the alarm details in the historical version. In the embodiment of the present invention, the technical solution for testing the alarm by comparing the alarm details of the alarm message in the current version and the historical version improves the efficiency of the network management alarm test.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1是本发明实施例的测试方法的流程图;1 is a flow chart of a test method according to an embodiment of the present invention;
图2是本发明实施例的测试装置的结构框图;2 is a block diagram showing the structure of a test apparatus according to an embodiment of the present invention;
图3是本发明实施例的测试装置的架构示意图;3 is a schematic structural diagram of a testing apparatus according to an embodiment of the present invention;
图4是本发明可选实施例的测试方法的流程图; 4 is a flow chart of a test method of an alternative embodiment of the present invention;
图5是本发明实施例的测试对比文件分析处理的流程图。FIG. 5 is a flowchart of a test comparison file analysis process according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
在本实施例中提供了一种测试方法及装置,图1是本发明实施例的测试方法的流程图,如图1所示,该流程包括:A test method and apparatus are provided in this embodiment. FIG. 1 is a flowchart of a test method according to an embodiment of the present invention. As shown in FIG. 1, the process includes:
步骤102,接收测试用例库产生的告警报文;Step 102: Receive an alarm message generated by the test case library.
步骤104,通过对比接收的告警报文的当前版本和历史版本中的告警详情进行告警测试。Step 104: Perform an alarm test by comparing the current version of the received alarm message with the alarm details in the historical version.
可选地,告警测试之前,本发明实施例测试方法还包括:Optionally, before the alarm test, the testing method of the embodiment of the present invention further includes:
获取告警报文的当前版本和历史版本中的告警详情;Obtain the alarm details in the current version and the historical version of the alarm packet.
将获取的告警报文的当前版本中的告警详情存储于数据库中。The alarm details in the current version of the obtained alarm packet are stored in the database.
可选地,上述告警详情包括:告警编号、告警级别、网元位置、告警发生时间、告警码、网元内定位、告警类型、确认状态。该测试方法,应用于网管告警;Optionally, the foregoing alarm details include: an alarm number, an alarm level, a network element location, an alarm occurrence time, an alarm code, an intra-network element location, an alarm type, and an acknowledgement status. The test method is applied to the network management alarm;
本发明一方面从告警报文的当前版本中获取告警详情,并将上述当前版本的告警详情存储于数据库中,另一方面,获取历史版本的告警详情。The invention obtains the alarm details from the current version of the alarm message, and stores the current version of the alarm details in the database, and acquires the historical version of the alarm details.
可选地,本发明实施例上述数据库可以专用于存储本发明实施例测试方法产生的告警详情。Optionally, the foregoing database in the embodiment of the present invention may be dedicated to storing the alarm details generated by the testing method of the embodiment of the present invention.
可选地,在当前版本为临时版本的情况下,可不存储该临时版本的告警详情,以节省存储空间。当前版本为正式版本的情况下,将该告警报文的告警详情存储于数据库中。Optionally, in the case that the current version is a temporary version, the alarm details of the temporary version may not be stored to save storage space. When the current version is the official version, the alarm details of the alarm packet are stored in the database.
本发明实施例,该告警详情的正确性可视为一种测试结果。In the embodiment of the present invention, the correctness of the alarm details can be regarded as a test result.
可选地,进行告警测试包括:Optionally, performing the alarm test includes:
将所述告警报文的当前版本中所述告警详情与所述告警报文的历史版本中的告警详情进行对比,生成对比文件;根据生成的对比文件进行告警测试。 Comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message to generate a comparison file; performing an alarm test according to the generated comparison file.
可选地,将所述告警报文的当前版本中的所述告警详情与所述告警报文的历史版本中的告警详情进行对比包括:从告警报文中获取当前版本的告警详情;判断告警报文的当前版本中的告警详情是否正确;在告警报文的当前版本中的告警详情正确的情况下,将告警报文的当前版本中的告警详情与告警报文的历史版本中的告警详情进行对比。Optionally, comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message, including: obtaining the current version of the alarm details from the alarm message; determining the alarm The alarm details in the current version of the packet are correct. If the alarm details in the current version of the alarm packet are correct, the alarm details in the current version of the alarm packet and the alarm details in the history version of the alarm packet are comparing.
可选地,将当前版本中的所述告警详情与告警报文的历史版本中的告警详情进行对比之后,测试方法还包括:在告警报文的当前版本中的告警详情出错的情况下,不对比该条告警的告警详情与其对应版本的告警详情。Optionally, after comparing the alarm details in the current version with the alarm details in the historical version of the alarm message, the test method further includes: if the alarm details in the current version of the alarm message are in error, Compare the alarm details of the alarm with the alarm details of the corresponding version.
可选的是,上述对当前版本中告警报文的该告警详情是否正确的判断可以发生在告警详情存储于数据库之后,在告警报文的历史版本的告警详情出错的情况下,可以修改或删除出错的告警详情。Optionally, the foregoing determining whether the alarm details of the alarm message in the current version are correct may occur after the alarm details are stored in the database, and may be modified or deleted if the alarm details of the historical version of the alarm message are in error. Details of the error alarm.
可选地,将告警报文的当前版本中的告警详情与告警报文的历史版本中的告警详情进行对比之后,测试方法还包括:在存在待对比历史版本的告警详情的情况下,将告警报文的当前版本中的告警详情与待对比的告警报文的历史版本中的告警详情进行对比;在不存在待对比历史版本的告警详情的情况下,判断测试用例库中是否存在待测试的告警报文,在测试用例库中存在待测试的告警报文的情况下,接收测试用例库产生的待测试的告警报文。Optionally, after comparing the alarm details in the current version of the alarm packet with the alarm details in the historical version of the alarm packet, the testing method further includes: if the alarm details of the historical version to be compared exist, the alarm is generated. The alarm details in the current version of the packet are compared with the alarm details in the historical version of the alarm packet to be compared; if there is no alarm detail to be compared with the historical version, it is determined whether there is a test sample library to be tested. The alarm packet receives the alarm packet to be tested generated by the test case database when there is an alarm packet to be tested in the test case database.
可选地,本发明实施例方法还包括:在不存在下一条待测试告警报文的情况下,可将该对比文件的数据进行分析处理,输出告警分析报告。上述分析处理可以包括但不限于数据钻取、数据挖掘的一项或多项数据处理。数据钻取、数据挖掘等数据处理方式为本领域技术人员惯用的技术,输出告警分析包括根据数据钻取、数据挖掘等数据处理方法生成的数据对比的文件报告。Optionally, the method of the embodiment of the present invention further includes: if the next alarm message to be tested does not exist, the data of the comparison file may be analyzed and processed, and an alarm analysis report is output. The above analysis processing may include, but is not limited to, one or more data processing of data drilling, data mining. The data processing methods such as data drilling and data mining are techniques commonly used by those skilled in the art, and the output alarm analysis includes a file report of data comparison generated according to data processing methods such as data drilling and data mining.
通过上述步骤,解决了相关技术中网管告警测试效率过低的问题,提高了测试效率。Through the above steps, the problem that the network management alarm test efficiency is too low in the related technology is solved, and the test efficiency is improved.
本发明实施例可以由一台带操作系统的服务器作为硬件执行主体,例如、WINDOWS操作系统的服务器。The embodiment of the present invention may be implemented by a server with an operating system as a hardware execution entity, for example, a server of the WINDOWS operating system.
本发明实施例提供了一种计算机存储介质,计算机存储介质中存储有计 算机可执行指令,计算机可执行指令用于执行上述测试方法。Embodiments of the present invention provide a computer storage medium, which is stored in a computer storage medium. Computer executable instructions, computer executable instructions for performing the above test methods.
图2是本发明实施例的测试装置的结构框图,如图2所示,该装置包括:2 is a structural block diagram of a testing apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes:
接收模块22,设置为接收测试用例库产生的告警报文;The receiving module 22 is configured to receive an alarm message generated by the test case library;
测试模块24,设置为通过对比接收的告警报文的当前版本和历史版本中的告警详情进行告警测试。The test module 24 is configured to perform an alarm test by comparing the alarm details in the current version and the historical version of the received alarm message.
所述测试装置还包括:The testing device further includes:
获取模块20,设置为获取所述告警报文的当前版本和历史版本中的告警详情;The obtaining module 20 is configured to obtain the alarm details in the current version and the historical version of the alarm message;
其中,所述告警详情包括:告警编号、告警级别、网元位置、告警发生时间、告警码、网元内定位、告警类型、确认状态;The alarm details include: an alarm number, an alarm level, a network element location, an alarm occurrence time, an alarm code, an intra-network element location, an alarm type, and an acknowledgement status;
存储模块,设置为将获取的所述告警报文的当前版本中的告警详情存储于数据库中。The storage module is configured to store the obtained alarm details in the current version of the alarm message in a database.
可选的,测试模块是设置为:Optionally, the test module is set to:
将告警报文的当前版本中告警详情与告警报文的历史版本中的告警详情进行对比,生成对比文件;The alarm details in the current version of the alarm packet are compared with the alarm details in the historical version of the alarm packet to generate a comparison file.
根据生成的对比文件进行告警测试。Perform an alarm test based on the generated comparison file.
可选的,测试模块是设置为:Optionally, the test module is set to:
判断告警报文的当前版本中的告警详情是否正确;Determine whether the alarm details in the current version of the alarm packet are correct.
在告警报文的当前版本中的告警详情正确的情况下,将告警报文的当前版本中的告警详情与所述告警报文的历史版本中的告警详情进行对比,生成对比文件;If the alarm details in the current version of the alarm packet are correct, the alarm details in the current version of the alarm packet are compared with the alarm details in the historical version of the alarm packet to generate a comparison file.
根据生成的对比文件进行告警测试。Perform an alarm test based on the generated comparison file.
可选的,测试装置还包括告警处理模块210,设置为将当前版本中的告警详情与告警报文的历史版本中的告警详情进行对比之后,在告警报文的历史版本中的告警详情出错的情况下,修改或删除出错的告警详情。Optionally, the testing device further includes an alarm processing module 210, configured to compare the alarm details in the current version with the alarm details in the historical version of the alarm message, and the alarm details in the historical version of the alarm message are incorrect. In case, modify or delete the alarm details of the error.
可选的,测试装置还包括对比处理模块212,设置为将告警报文的当前 版本中的告警详情与告警报文的历史版本中的告警详情进行对比之后,Optionally, the testing device further includes a comparison processing module 212 configured to set the current alarm message After the alarm details in the version are compared with the alarm details in the historical version of the alarm message,
在存在待对比历史版本的告警详情的情况下,将告警报文的当前版本中的告警详情与待对比的告警报文的历史版本中的告警详情进行对比;Comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message to be compared, where the alarm details of the historical version are to be compared;
在不存在待对比历史版本的告警详情的情况下,判断测试用例库中是否存在待测试的告警报文,在测试用例库中存在待测试的告警报文的情况下,接收测试用例库产生的待测试的告警报文。If there is no alarm detail to be compared with the historical version, it is determined whether there is an alarm message to be tested in the test case database. If there is an alarm message to be tested in the test case database, the test case library is generated. Alarm packet to be tested.
可选的,对比处理模块还设置为:Optionally, the comparison processing module is further configured to:
在判断测试用例库中不存在待测试的告警报文的情况下,将对比文件的数据进行分析,输出告警分析报告。When it is determined that there is no alarm message to be tested in the test case library, the data of the comparison file is analyzed, and an alarm analysis report is output.
下面结合可选实施例对本发明进行进一步说明。The invention is further described below in conjunction with alternative embodiments.
本发明的实施例通过将现有版本与历史版本进行对比分析的方式提高系统测试的效率,为外场测试、入网测试打下坚实的基础。建立在历史数据库基础上的对比报告直观展示版本之间实现的区别和变化,对分析发现隐藏故障非常有利。The embodiment of the present invention improves the efficiency of the system test by comparing and analyzing the existing version with the historical version, and lays a solid foundation for the field test and the network access test. The comparison report based on the historical database visually shows the differences and changes between the versions, and it is very beneficial for the analysis to find hidden faults.
本实施例可提供一种封闭循环的测试系统:系统入口可以是测试用例库,通过调用测试用例库产生告警报文,网管接收该告警报文后感知并展示处理结果和方案。出口是对比报告和历史数据库的处理结果,包括根据策略产生历史版本与测试版本告警详情的对比文件,将测试版本的告警详情记录在库,修改或删除历史版本中的历史数据。该告警详情的正确性可被视为是一种测试结果。经过多轮测试后,可根据先前的测试结果更新测试用例库,如在告警常发生的区域增加测试用例告警,在告警数量呈现收敛趋势的情况下减少相对应的测试用例告警。上述对比文件包括测试版本与历史版本告警详情之间的差别对比。优选地,还可输出各个版本之间告警详情的对比报告。优选地,系统测试中在测试的同时自动记录最新结果,通过不断增加、修改、删除数据操作,能够循序渐进地充实历史数据库的数据,提高测试自动化、智能化程度,最终实现提高测试效率的目标。上述策略包括但不限于时间策略和版本策略,时间策略包括在指定时间内进行测试,版本策略包括对特定版 本的网管告警的告警详情进行对比分析。The embodiment can provide a closed loop test system: the system entry can be a test case library, and the test case database is generated to generate an alarm message, and the network management device senses and displays the processing result and the solution after receiving the alarm message. The export is the result of the comparison report and the history database, including the comparison file of the history version and the test version alarm details according to the policy, recording the test version of the alarm details in the library, and modifying or deleting the historical data in the historical version. The correctness of the alarm details can be considered as a test result. After multiple rounds of testing, the test case library can be updated based on the previous test results, such as adding test case alarms in areas where alarms occur frequently, and reducing corresponding test case alarms when the number of alarms shows a convergence trend. The above comparison file includes a comparison between the test version and the historical version of the alarm details. Preferably, a comparison report of the alarm details between the versions can also be output. Preferably, in the system test, the latest result is automatically recorded at the same time of testing, and by continuously adding, modifying, and deleting data operations, the data of the historical database can be enriched step by step, the test automation and the degree of intelligence are improved, and the goal of improving the test efficiency is finally realized. The above policies include but are not limited to time policies and version policies. Time policies include testing at specified times. Version policies include specific versions. The alarm details of the network management alarm are compared and analyzed.
图3本发明实施例的测试装置架构示意图,如图3所示。通过测试用例库产生待测试告警报文,将该待测试告警报文发送到网管执行模块32。执行模块32对报文进行解析后按照内部逻辑处理,感知并展示当前版本的告警报文的告警详细信息,简称为当前版本的告警详情。分析模块34对执行结果进行判断,提取告警详情后进行数据归整、数据汇总;按照测试用例库中设定的策略进行不同维度的数据挖掘,利用分析结果可更新测试用例库,对其中的测试用例进行修改;分析模块34将汇总后的数据存储在历史数据库中,以后每次测试都可以根据前置策略读取历史数据,循环对比,在需要时可输出对比报告。在历史数据达到一定规模后,通过查询历史数据库中记载的告警详情中故障发生频率或收敛趋势信息,设计测试用例库时能以此作为参考进行有针对性的设计;历史数据库中的数据变化也能反过来提示测试用例库的更新。FIG. 3 is a schematic structural diagram of a test apparatus according to an embodiment of the present invention, as shown in FIG. 3. The test packet is generated by the test case database, and the alarm message to be tested is sent to the network management module 32. The execution module 32 parses the packet and processes the alarm according to the internal logic to perceive and display the alarm details of the current version of the alarm packet, which is referred to as the current version of the alarm details. The analysis module 34 judges the execution result, extracts the alarm details, performs data normalization, and summarizes the data; performs data mining of different dimensions according to the strategy set in the test case library, and uses the analysis result to update the test case library, and tests the test case therein. The use case is modified; the analysis module 34 stores the summarized data in the historical database, and after each test, the historical data can be read according to the pre-strategy, the loop comparison is performed, and the comparison report can be output when needed. After the historical data reaches a certain scale, the fault occurrence frequency or convergence trend information in the alarm details recorded in the historical database is queried, and the test case library can be designed as a reference for targeted design; the data changes in the history database are also Can in turn prompt the update of the test case library.
本发明实施例提供一种测试方法,应用于网管告警。设计测试用例库,定义规划好网元类型、版本,网元管理、网络之间互连的协议(IP)地址、网段和掩码,接口IP地址和掩码,链路的头尾端点和链路属性,开放式最短路径优先(OSPF)/链路状态路由协议(ISIS)/边界网关协议(BGP)路由协议类型和通告网段,二三层虚拟专用网络(VPN)\隧道业务类型和保护信息,连通性故障管理(CFM,Connectivity Fault Management)、双向转发检测(BFD,Bidirectional Forwarding Detection)、虚拟路由冗余协议(Virtual Router Redundancy Protocol,VRRP)、操作管理维护(Operation、Administration、Maintenance,OAM)检测类型等关键配置。针对特定的告警,预先定制策略生成对比文件和对比报告。The embodiment of the invention provides a test method applied to network management alarms. Design a test case library, define the planned network element type, version, network element management, protocol (IP) address, network segment and mask, network interface address and mask, interface end-to-end endpoint and Link attributes, Open Shortest Path First (OSPF) / Link State Routing Protocol (ISIS) / Border Gateway Protocol (BGP) routing protocol type and advertising network segment, Layer 2 and Layer 3 Virtual Private Network (VPN) \ Tunnel Service Type and Protection information, connectivity fault management (CFM), Bidirectional Forwarding Detection (BFD), Virtual Router Redundancy Protocol (VRRP), operation management and maintenance (Operation, Administration, Maintenance, OAM) Key configurations such as detection type. Pre-customized strategies generate comparison files and comparison reports for specific alerts.
开始执行告警测试计划。调用测试用例库中的测试用例,产生一条告警,发送到网管告警处理模块。对上报的告警,测试网管处理后显示的告警详情和统计数据。对于每条告警详情,能够显示告警编号、网元位置、发生时间、级别、告警码、网元内定位、类型、确认状态等详情,所有属性都正确、符合规范。能根据不同条件筛选,例如当前告警和历史告警,告警和通知,已确认和未确认告警等。 Start the execution of the alarm test plan. The test case in the test case library is called to generate an alarm and send it to the network management alarm processing module. For the alarms reported, test the alarm details and statistics displayed after the NMS processes. For each alarm detail, you can display the alarm number, NE location, time, level, alarm code, location, type, and status of the NE. All attributes are correct and conform to the specifications. Can be filtered according to different conditions, such as current alarms and historical alarms, alarms and notifications, acknowledged and unacknowledged alarms, etc.
根据测试用例,判断是否需要记录告警详情。在测试版本为临时版本的情况下,可不记录告警详情。在判断结果为是的情况下,也即需要记录告警详情,记录告警详情后,判断告警详情是否正确。连接历史数据库,以告警ID、版本号为键值,分别在告警表、版本表、告警详情表中插入一条数据,记录该条告警的告警详情、执行时间等,作为历史数据存储在历史数据库中。通过记录每个版本中每条告警的告警详情,建立起测试过程中上每个功能点的测试数据详情,为下一版本测试对比做准备。在判断结果为否的情况下,不需要记录告警详情,则直接判断告警详情是否正确。According to the test case, determine whether it is necessary to record the alarm details. In the case where the test version is a temporary version, the alarm details may not be recorded. If the judgment result is yes, the alarm details need to be recorded, and after the alarm details are recorded, it is determined whether the alarm details are correct. Connect the historical database with the alarm ID and version number as the key values. Insert a data in the alarm table, version table, and alarm details table to record the alarm details and execution time of the alarm. The historical data is stored in the historical database. . By recording the alarm details of each alarm in each version, the test data details of each function point in the test process are established to prepare for the next version of the test comparison. If the judgment result is negative, it is not necessary to record the alarm details, and it is directly determined whether the alarm details are correct.
判断告警处理结果是否正确,若告警处理错误,则不进行进一步对比,判断是否存在下一条待测试告警;如果告警处理正确,则进入历史数据库,以版本号和告警ID为键值查询上一个版本的数据,依次对比告警详情表中的网元位置、发生时间、级别、告警码、网元内定位、类型、确认状态等详情。对比完成后根据测试用例库中的策略生成对比文件。If the alarm processing result is incorrect, if the alarm processing is incorrect, no further comparison is made to determine whether there is a next alarm to be tested. If the alarm processing is correct, enter the history database and query the previous version with the version number and alarm ID as the key value. The data is compared with the location, time, level, alarm code, location, type, and status of the NE in the alarm details table. After the comparison is completed, a comparison file is generated according to the strategy in the test case library.
判断是否存在上一个历史版本,如果存在,再次进入历史数据库,查找该历史版本的数据进行对比,生成对比文件。如果不存在,已经完成测试版本与所有历史版本的对比,该条告警在测试过程中的对比工作已经完成。Determine whether there is a previous historical version. If it exists, enter the historical database again, find the data of the historical version for comparison, and generate a comparison file. If it does not exist, the comparison between the test version and all historical versions has been completed. The comparison of the alarm during the test has been completed.
判断是否存在下一条待测试告警,如果存在,则再次调用测试用例,产生告警后执行测试流程;如果不存在,表明所有告警都已经测试完成,进入处理对比文件流程。Determine whether there is a next alarm to be tested. If it exists, the test case is invoked again. After the alarm is generated, the test process is executed. If it does not exist, it indicates that all the alarms have been tested and the process of processing the comparison file is entered.
图4是本发明实施例测试方法的流程图,如图4所示,该方法包括以下步骤:4 is a flow chart of a test method according to an embodiment of the present invention. As shown in FIG. 4, the method includes the following steps:
步骤402,设计测试场景;包括规划参数,包括接口地址、路由协议、业务类型和保护路径等。Step 402: Design a test scenario, including planning parameters, including an interface address, a routing protocol, a service type, and a protection path.
地址规划Address planning
Figure PCTCN2016090182-appb-000001
Figure PCTCN2016090182-appb-000001
Figure PCTCN2016090182-appb-000002
Figure PCTCN2016090182-appb-000002
开放式最短路径优先(OSPF)规划:Open Shortest Path First (OSPF) planning:
Figure PCTCN2016090182-appb-000003
Figure PCTCN2016090182-appb-000003
标签分发协议(LDP)规划:Label Distribution Protocol (LDP) Planning:
Figure PCTCN2016090182-appb-000004
Figure PCTCN2016090182-appb-000004
Figure PCTCN2016090182-appb-000005
Figure PCTCN2016090182-appb-000005
步骤404,编写测试计划和告警测试用例,输入到测试用例库中。根据测试计划,调用测试用例库开始测试告警。测试版本号为版本1,存在历史版本2,历史版本3。对比策略为全部对比。In step 404, a test plan and an alarm test case are written and input into the test case library. According to the test plan, the test case library is called to start testing the alarm. The test version number is version 1, there is history version 2, and history version 3. The comparison strategy is for all comparisons.
步骤406,调用测试用例库产生的告警报文,将该告警报文发送到网管系统;这里,主要以测试端口离线(down)告警为例,;Step 406: The alarm message generated by the test case database is invoked, and the alarm message is sent to the network management system. The test is performed by taking the down alarm of the test port as an example.
步骤408,网管在接收到告警报文后,进行网关告警处理;可以在当前告警中显示该告警的详情;告警详情可以包括:告警编号、告警级别、网元位置、告警发生时间、告警码、网元内定位、告警类型、确认状态等详情。告警编号为1411008035312,级别为严重,同时标为红色,类型为通信告警,发生时间为告警模拟工具产生的时刻,告警码为接口DOWN(2151),确认状态为未确认,网元IP为10.46.60.93,网元类型为某型号路由器,网元内定位机架=0,机框=0,告警原因为端口链路协商不成功(50901),附加文本告警类型:LACP;The interface(index=20,name=Gei_0/0/0/10)turns into INACTIVE;由告警同步产生;其中,包含的字段的词义有:链路汇聚控制协议(LACP,Link Aggregation Control Protocol)、端口运行协议interface(index=20,name=Gei_0/0/0/10),端口(索引20,接口名Gei_0/0/0/10),端口离线:turns into INACTIVE。Step 408: After receiving the alarm message, the network management system performs the gateway alarm processing; the details of the alarm may be displayed in the current alarm; the alarm details may include: an alarm number, an alarm level, a network element location, an alarm occurrence time, an alarm code, Details such as location, alarm type, and acknowledgement status in the NE. The alarm number is 1411008035312, the severity is severity, and the value is red. The type is the communication alarm. The time is the time when the alarm simulation tool is generated. The alarm code is DOWN (2151), the confirmation status is unconfirmed, and the NE IP address is 10.46. 60.93, the network element type is a certain type of router, the positioning frame in the network element is =0, the chassis is =0, the alarm is caused by the unsuccessful negotiation of the port link (50901), and the additional text alarm type: LACP; The interface (index=20) , name=Gei_0/0/0/10) turns into INACTIVE; generated by alarm synchronization; wherein the meaning of the included fields are: Link Aggregation Control Protocol (LACP), port running protocol interface (index= 20, name=Gei_0/0/0/10), port (index 20, interface name Gei_0/0/0/10), port offline: turns into INACTIVE.
步骤410,判断是否需要记录告警详情,在需要记录的情况下,执行步 骤412,在不需要记录的情况下,跳转执行步骤414;Step 410: Determine whether it is necessary to record the alarm details. If the record needs to be recorded, perform the step. Step 412, in the case where recording is not required, jump to step 414;
步骤412,记录告警详情;可以包括将结果存储于数据库中,在历史数据库中的告警表、版本表和告警详情表中分别插入一条数据:在告警表中插入告警ID、当前执行结果和执行时间;在版本表中插入告警ID、版本号、该版本执行结果和执行时间;在告警详情表中插入告警ID、版本号、版本名称、根告警标识、告警名称、告警级别、发生时间、网元内定位、告警码、关联业务、告警类型、告警标识、处理建议、系统类型、属性、告警原因;Step 412: Record alarm details; may include storing the result in a database, inserting a piece of data in an alarm table, a version table, and an alarm detail table in the history database: inserting an alarm ID, a current execution result, and an execution time in the alarm table Insert the alarm ID, the version number, the version execution result, and the execution time in the version table. Insert the alarm ID, version number, version name, root alarm ID, alarm name, alarm level, time of occurrence, and network element in the alarm details table. Internal positioning, alarm code, associated service, alarm type, alarm identifier, processing suggestion, system type, attribute, and alarm cause;
步骤414,判断告警模块处理结果是否正确。如果处理错误,跳转到步骤420。如果处理正确,执行步骤S416;In step 414, it is determined whether the processing result of the alarm module is correct. If the processing is wrong, go to step 420. If the processing is correct, step S416 is performed;
需要说明的是,判断处理结果是否正确为本领域技术人员的惯用技术手段,在此不做赘述。It should be noted that determining whether the processing result is correct is a conventional technical means of those skilled in the art, and details are not described herein.
步骤416,和历史版本中的告警详情进行对比,生成对比文件。打开历史数据库,根据测试用例中的版本1搜索有关联关系的历史版本集,获得上一历史版本的告警详情。对比测试版本与上一历史版本的详情,根据策略生成对比文件。例如,查询得到版本2和版本3。根据时间排序后,选择最靠近版本1的历史版本即版本2,查询该告警在版本2中的告警详情记录,和版本1中的告警详情进行对比。对比内容可以包括告警名称、告警级别、发生时间、网元内定位、告警码、关联业务、告警类型、告警标识、处理建议、系统类型、属性、告警原因等,对比完成后生成记录版本1和版本2对比结果的文件。Step 416 compares with the alarm details in the historical version to generate a comparison file. Open the history database and search for the historical version set with the associated relationship according to version 1 in the test case to obtain the alarm details of the previous history version. Compare the test version with the details of the previous historical version and generate a comparison file based on the policy. For example, the query gets version 2 and version 3. After sorting according to the time, select the historical version closest to version 1, that is, version 2, and query the alarm detail record of the alarm in version 2, and compare it with the alarm details in version 1. The comparison content may include the alarm name, the alarm level, the occurrence time, the intra-network element location, the alarm code, the associated service, the alarm type, the alarm identifier, the processing suggestion, the system type, the attribute, the alarm cause, etc., and the record version 1 is generated after the comparison is completed. Version 2 compares the results of the file.
步骤418,判断是否存在更老的历史版本,存在则返回执行步骤416,将该测试版本与该更老的历史版本进行对比,不存在则执行步骤420。例如,还存在版本3需要对比。再次连接历史数据库,重复执行步骤416中的对比流程。In step 418, it is determined whether there is an older historical version. If yes, the process returns to step 416 to compare the test version with the older historical version. If not, step 420 is performed. For example, there is also a version 3 that needs to be compared. Connect the history database again and repeat the comparison process in step 416.
步骤420,判断是否存在下一条告警报文,若存在下一条告警报文,则返回执行步骤406,若不存在下一条告警报文,执行步骤422; Step 420, it is determined whether there is a next alarm message, if there is a next alarm message, the process returns to step 406, if there is no next alarm message, step 422 is performed;
步骤422,处理对比文件,在测试完所有告警后,获取两个对比文件,提取文件中告警详情、测试时间、测试人员等信息。查询发生故障的设备、 单板、端口,进行数据上钻,查询告警关联业务,进行数据下钻。按照告警码、告警级别等维度查询特定条件下的告警数量,进行数据挖掘。把告警详情、同一告警对应的所有对比文件的对比结果存储在历史数据库中,进行数据存储,生成对比报告,统计故障变化的情况;Step 422: Processing the comparison file, after testing all the alarms, acquiring two comparison files, and extracting information such as alarm details, test time, and test personnel in the file. Query the failed device, The board and the port perform data drilling, query the alarm-related service, and perform data drilling. Query the number of alarms under specific conditions according to the alarm code and alarm level to perform data mining. The alarm details and the comparison results of all the comparison files corresponding to the same alarm are stored in the historical database, the data is stored, a comparison report is generated, and the fault change is counted;
步骤424,判断是否需要更新历史告警详情,在需要修改的情况下,执行步骤426;在不需要做修改的情况下,结束测试;In step 424, it is determined whether the historical alarm details need to be updated. If the modification is required, step 426 is performed; if the modification is not required, the test is ended;
步骤426,修改或删除历史告警详情,更新完成之后结束测试。In step 426, the historical alarm details are modified or deleted, and the test is ended after the update is completed.
图5是本发明实施例对比文件处理的流程图,如图5所示,该方法包括以下步骤:FIG. 5 is a flowchart of a comparison file processing according to an embodiment of the present invention. As shown in FIG. 5, the method includes the following steps:
步骤502,读取所有对比文件,对告警详情、测试时间、测试人员等信息进行数据提取;Step 502: Read all the comparison files, and perform data extraction on the alarm details, the test time, the test personnel, and the like;
步骤504,按照时间、版本号的条件进行数据归整,删除不需要或者错误的数据;Step 504: Perform data reorganization according to the condition of time and version number, and delete unnecessary or erroneous data;
步骤506,根据相应策略,统计测试中发现的故障数量、故障级别、故障模块等数据,进行数据汇总;例如统计一周或一个月之内发现的总故障数量;Step 506: According to the corresponding policy, perform statistics on the number of faults, fault levels, fault modules, and the like found in the test, and perform data aggregation; for example, count the total number of faults found within one week or one month;
步骤508,根据汇总的数据进行包括数据钻取的数据分析。基于网管告警信息向上关联到设备、单板、端口等,向下关联到告警详情、关联业务等的特点,因此可以根据前置策略进行数据上钻和数据下钻,分别查询不同种类的故障。发现一定的规律,如故障高发功能、故障发生收敛趋势后,可以更新测试用例库。 Step 508, performing data analysis including data drilling based on the aggregated data. Based on the network management alarm information, it is associated with the device, board, port, etc., and is associated with the alarm details and related services. Therefore, data drilling and data drilling can be performed according to the pre-strategy to query different types of faults. After discovering certain rules, such as fault high-issue function and fault convergence tendency, the test case library can be updated.
步骤510,根据汇总的数据进行包括数据挖掘的数据分析。网管告警由于关联模块、设备类型很多,需要通过不同维度的组合对测试结果进行数据挖掘。例如查询特定几个版本的故障收敛趋势。获取数据后建议更新测试用例库。Step 510: Perform data analysis including data mining based on the aggregated data. Network management alarms Because of the number of associated modules and devices, data mining is required for test results through a combination of different dimensions. For example, query the fault convergence trend of a specific number of versions. It is recommended to update the test case library after getting the data.
步骤512,根据汇总的数据进行包括数据存储的数据分析。根据前置策略,把归整、汇总后的告警详情、数据钻取结果和数据挖掘结果存储在历史数据库中,形成具有详细分析数据的历史数据库。 Step 512, performing data analysis including data storage according to the summarized data. According to the pre-strategy, the alarm details, data drilling results and data mining results after the rounding and summarization are stored in the historical database to form a historical database with detailed analysis data.
步骤514,生成对比报告。综合处理之前获取的所有对比文件后,输出汇总的对比报告。内容为测试过程中历史版本之间产生故障的对比情况等,包括根据前置策略提示特定版本之间、特定测试阶段之间的对比情况。In step 514, a comparison report is generated. After comprehensively processing all the comparison files obtained before, the summary report of the summary is output. The content is a comparison of the failures between historical versions during the test, including the comparison between specific versions and specific test phases according to the pre-strategy.
步骤508和步骤510之后还可以包括步骤516:Step 508 and step 510 may further include step 516:
步骤516、更新测试用例库 Step 516, update the test case library
根据实际需求,如果需要修改历史数据库中的历史数据,则连接数据库,更新告警表、版本表、告警详情表中的数据。然后结束流程According to actual needs, if you need to modify the historical data in the historical database, connect to the database and update the data in the alarm table, version table, and alarm details table. Then end the process
如果不需要修改,结束流程。完成测试。If you do not need to modify, end the process. complete test.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the invention are intended to be included within the scope of the invention.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的每个模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件 的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, being executed by a processor and stored in a memory. Programs/instructions to implement their respective functions. The invention is not limited to any particular form of hardware and software Combination of.
虽然本申请所揭露的实施方式如上,但所述的内容仅为便于理解本申请而采用的实施方式,并非用以限定本申请,如本发明实施方式中的具体的实现方法。任何本申请所属领域内的技术人员,在不脱离本申请所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本申请的专利保护范围,仍须以所附的权利要求书所界定的范围为准。The embodiments disclosed in the present application are as described above, but the descriptions are only for the purpose of understanding the present application, and are not intended to limit the present application, such as the specific implementation method in the embodiments of the present invention. Any modifications and changes in the form and details of the embodiments may be made by those skilled in the art without departing from the spirit and scope of the disclosure. The scope defined by the appended claims shall prevail.
工业实用性Industrial applicability
上述技术方案提高了网管告警的测试效率。 The foregoing technical solution improves the testing efficiency of the network management alarm.

Claims (16)

  1. 一种测试方法,所述测试方法应用于网管告警,包括:A test method is applied to network management alarms, including:
    接收通过测试用例库产生的告警报文;Receiving an alarm message generated by the test case library;
    通过对比接收的告警报文的当前版本和历史版本中的告警详情进行告警测试。The alarm test is performed by comparing the alarm details in the current version and the historical version of the received alarm message.
  2. 根据权利要求1所述的测试方法,所述告警测试之前,所述测试方法还包括:The testing method according to claim 1, before the warning test, the testing method further comprises:
    获取所述告警报文的当前版本和历史版本中的告警详情;Obtaining alarm details in the current version and the historical version of the alarm packet;
    其中,所述告警详情包括:告警编号、告警级别、网元位置、告警发生时间、告警码、网元内定位、告警类型、确认状态;The alarm details include: an alarm number, an alarm level, a network element location, an alarm occurrence time, an alarm code, an intra-network element location, an alarm type, and an acknowledgement status;
    将获取的所述告警报文的当前版本中的所述告警详情存储于数据库中。And storing the obtained alarm details in the current version of the alarm message in a database.
  3. 根据权利要求2所述的测试方法,其中,所述将告警报文的当前版本中的所述告警详情存储于数据库中包括:The test method according to claim 2, wherein the storing the alarm details in the current version of the alarm message in the database comprises:
    在当前版本为正式版本的情况下,将所述告警报文的告警详情存储于数据库中。In the case that the current version is the official version, the alarm details of the alarm message are stored in the database.
  4. 根据权利要求2所述的测试方法,其中,所述进行告警测试包括:The testing method according to claim 2, wherein the performing the warning test comprises:
    将所述告警报文的当前版本中所述告警详情与所述告警报文的历史版本中的告警详情进行对比,生成对比文件;根据生成的对比文件进行告警测试。Comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message to generate a comparison file; performing an alarm test according to the generated comparison file.
  5. 根据权利要求4所述的测试方法,其中,将所述告警报文的当前版本中的所述告警详情与所述告警报文的历史版本中的告警详情进行对比包括:The test method of claim 4, wherein comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message comprises:
    判断所述告警报文的当前版本中的所述告警详情是否正确;Determining whether the alarm details in the current version of the alarm message are correct;
    在所述告警报文的当前版本中的所述告警详情正确的情况下,将所述告警报文的当前版本中的所述告警详情与所述告警报文的历史版本中的告警详情进行对比。Comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message when the alarm details in the current version of the alarm message are correct. .
  6. 根据权利要求4或5所述的测试方法,所述将当前版本中的所述告警详情与所述告警报文的历史版本中的告警详情进行对比之后,所述测试方法 还包括:The testing method according to claim 4 or 5, after the comparing the alarm details in the current version with the alarm details in the historical version of the alarm message, the testing method Also includes:
    在所述告警报文的历史版本中的告警详情出错的情况下,修改或删除出错的告警详情。If the alarm details in the historical version of the alarm message are in error, modify or delete the alarm details of the error.
  7. 根据权利要求4或5所述的方法,将所述告警报文的当前版本中的所述告警详情与所述告警报文的历史版本中的告警详情进行对比之后,所述测试方法还包括:The method according to claim 4 or 5, after comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message, the testing method further includes:
    在存在待对比历史版本的告警详情的情况下,将所述告警报文的当前版本中的所述告警详情与所述待对比的所述告警报文的历史版本中的告警详情进行对比;Comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message to be compared, where the alarm details of the historical version are to be compared;
    在不存在待对比历史版本的告警详情的情况下,判断所述测试用例库中是否存在待测试的告警报文,在测试用例库中存在待测试的告警报文的情况下,接收所述测试用例库产生的所述待测试的告警报文。If there is no alarm detail to be compared with the historical version, it is determined whether there is an alarm message to be tested in the test case database, and the test is received if there is an alarm message to be tested in the test case database. The alarm message to be tested generated by the use case library.
  8. 根据权利要求7所述的测试方法,所述测试方法还包括:The testing method according to claim 7, further comprising:
    在判断所述测试用例库中不存在待测试的告警报文的情况下,将所述对比文件的数据进行分析,输出告警分析报告。When it is determined that there is no alarm message to be tested in the test case database, the data of the comparison file is analyzed, and an alarm analysis report is output.
  9. 根据权利要求8所述的测试方法,其中,所述将所述对比文件的数据进行分析的方法包括以下至少之一:The testing method according to claim 8, wherein said method of analyzing data of said comparison file comprises at least one of the following:
    数据钻取、数据挖掘、数据存储。Data drilling, data mining, data storage.
  10. 一种测试装置,所述测试装置应用于网管告警,包括:A test device is applied to a network management alarm, including:
    接收模块,设置为接收测试用例库产生的告警报文;a receiving module, configured to receive an alarm message generated by the test case library;
    测试模块,设置为通过对比接收的告警报文的当前版本和历史版本中的告警详情进行告警测试。The test module is configured to perform an alarm test by comparing the current version of the received alarm message with the alarm details in the historical version.
  11. 根据权利要求10所述的测试装置,所述测试装置还包括:The testing device of claim 10, further comprising:
    获取模块,设置为获取所述告警报文的当前版本和历史版本中的告警详情;Obtaining a module, configured to obtain the alarm details in the current version and the historical version of the alarm message;
    其中,所述告警详情包括:告警编号、告警级别、网元位置、告警发生时间、告警码、网元内定位、告警类型、确认状态; The alarm details include: an alarm number, an alarm level, a network element location, an alarm occurrence time, an alarm code, an intra-network element location, an alarm type, and an acknowledgement status;
    存储模块,设置为将获取的所述告警报文的当前版本中的所述告警详情存储于数据库中。The storage module is configured to store the obtained alarm details in the current version of the obtained alarm message in a database.
  12. 根据权利要求11所述的测试装置,其中,所述测试模块是设置为:The testing device of claim 11 wherein said test module is configured to:
    将所述告警报文的当前版本中所述告警详情与所述告警报文的历史版本中的告警详情进行对比,生成对比文件;Comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message to generate a comparison file;
    根据生成的对比文件进行告警测试。Perform an alarm test based on the generated comparison file.
  13. 根据权利要求12所述的测试装置,其中,所述测试模块是设置为:The testing device of claim 12 wherein said test module is configured to:
    判断所述告警报文的当前版本中的所述告警详情是否正确;Determining whether the alarm details in the current version of the alarm message are correct;
    在所述告警报文的当前版本中的所述告警详情正确的情况下,将所述告警报文的当前版本中的所述告警详情与所述告警报文的历史版本中的告警详情进行对比,生成对比文件;Comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message when the alarm details in the current version of the alarm message are correct. , generating a comparison file;
    根据生成的对比文件进行告警测试。Perform an alarm test based on the generated comparison file.
  14. 根据权利要求12或13所述的测试装置,所述测试装置还包括告警处理模块,设置为所述将当前版本中的所述告警详情与所述告警报文的历史版本中的告警详情进行对比之后,在所述告警报文的历史版本中的告警详情出错的情况下,修改或删除出错的告警详情。The testing device according to claim 12 or 13, the testing device further comprising an alarm processing module configured to compare the alarm details in the current version with the alarm details in the historical version of the alarm message Then, in the case that the alarm details in the historical version of the alarm message are in error, the error alarm details are modified or deleted.
  15. 根据权利要求12或13所述的测试装置,所述测试装置还包括对比处理模块,设置为将所述告警报文的当前版本中的所述告警详情与所述告警报文的历史版本中的告警详情进行对比之后,The testing device according to claim 12 or 13, wherein the testing device further comprises a comparison processing module, configured to: in the historical version of the alarm message, the alarm details in the current version of the alarm message After comparing the alarm details,
    在存在待对比历史版本的告警详情的情况下,将所述告警报文的当前版本中的所述告警详情与所述待对比的所述告警报文的历史版本中的告警详情进行对比;Comparing the alarm details in the current version of the alarm message with the alarm details in the historical version of the alarm message to be compared, where the alarm details of the historical version are to be compared;
    在不存在待对比历史版本的告警详情的情况下,判断所述测试用例库中是否存在待测试的告警报文,在测试用例库中存在待测试的告警报文的情况下,接收所述测试用例库产生的所述待测试的告警报文。If there is no alarm detail to be compared with the historical version, it is determined whether there is an alarm message to be tested in the test case database, and the test is received if there is an alarm message to be tested in the test case database. The alarm message to be tested generated by the use case library.
  16. 根据权利要求15所述的测试装置,所述对比处理模块还设置为:The testing device according to claim 15, wherein the comparison processing module is further configured to:
    在判断所述测试用例库中不存在待测试的告警报文的情况下,将所述对比文件的数据进行分析,输出告警分析报告。 When it is determined that there is no alarm message to be tested in the test case database, the data of the comparison file is analyzed, and an alarm analysis report is output.
PCT/CN2016/090182 2016-02-15 2016-07-15 Test method and device WO2017140084A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610086703.XA CN107085552A (en) 2016-02-15 2016-02-15 Method of testing and device
CN201610086703.X 2016-02-15

Publications (1)

Publication Number Publication Date
WO2017140084A1 true WO2017140084A1 (en) 2017-08-24

Family

ID=59614102

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/090182 WO2017140084A1 (en) 2016-02-15 2016-07-15 Test method and device

Country Status (2)

Country Link
CN (1) CN107085552A (en)
WO (1) WO2017140084A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112312209A (en) * 2020-10-30 2021-02-02 中移(杭州)信息技术有限公司 Comprehensive alarm generation method, device, server and storage medium
CN112559323A (en) * 2020-11-26 2021-03-26 成都市吉祥锐意科技有限公司 Method for testing alarm information of test server
CN112653937A (en) * 2019-10-10 2021-04-13 中盈优创资讯科技有限公司 Optical network access equipment management method and device
CN114064421A (en) * 2021-11-16 2022-02-18 展讯通信(上海)有限公司 Alarm processing method and device
CN114172271A (en) * 2021-12-13 2022-03-11 南方电网科学研究院有限责任公司 Intelligent alarm testing method, system and equipment for online monitoring control function of master station

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815134A (en) * 2018-12-29 2019-05-28 厦门网宿有限公司 The methods, devices and systems of combined data library auto Analysis test result

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217332A (en) * 2008-01-10 2008-07-09 中兴通讯股份有限公司 Alarming test method and test control platform of synchronous digital system device
CN101895438A (en) * 2010-06-24 2010-11-24 中兴通讯股份有限公司 Alarm simulation method and system and alarm accuracy detection method and system
CN104022913A (en) * 2013-12-18 2014-09-03 深圳市腾讯计算机系统有限公司 Test method and device for data cluster

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217332A (en) * 2008-01-10 2008-07-09 中兴通讯股份有限公司 Alarming test method and test control platform of synchronous digital system device
CN101895438A (en) * 2010-06-24 2010-11-24 中兴通讯股份有限公司 Alarm simulation method and system and alarm accuracy detection method and system
CN104022913A (en) * 2013-12-18 2014-09-03 深圳市腾讯计算机系统有限公司 Test method and device for data cluster

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112653937A (en) * 2019-10-10 2021-04-13 中盈优创资讯科技有限公司 Optical network access equipment management method and device
CN112312209A (en) * 2020-10-30 2021-02-02 中移(杭州)信息技术有限公司 Comprehensive alarm generation method, device, server and storage medium
CN112312209B (en) * 2020-10-30 2023-07-21 中移(杭州)信息技术有限公司 Comprehensive alarm generation method, device, server and storage medium
CN112559323A (en) * 2020-11-26 2021-03-26 成都市吉祥锐意科技有限公司 Method for testing alarm information of test server
CN114064421A (en) * 2021-11-16 2022-02-18 展讯通信(上海)有限公司 Alarm processing method and device
CN114064421B (en) * 2021-11-16 2022-04-22 展讯通信(上海)有限公司 Alarm processing method and device
CN114172271A (en) * 2021-12-13 2022-03-11 南方电网科学研究院有限责任公司 Intelligent alarm testing method, system and equipment for online monitoring control function of master station
CN114172271B (en) * 2021-12-13 2024-01-23 南方电网科学研究院有限责任公司 Intelligent alarm test method, system and equipment for online monitoring control function of master station

Also Published As

Publication number Publication date
CN107085552A (en) 2017-08-22

Similar Documents

Publication Publication Date Title
WO2017140084A1 (en) Test method and device
EP3175579B1 (en) Systems and methods for network management
US11528283B2 (en) System for monitoring and managing datacenters
AU2021200243B2 (en) Systems and methods for an interactive network analysis platform
US10469320B2 (en) Versioning system for network states in a software-defined network
US9225601B2 (en) Network-wide verification of invariants
US9929924B2 (en) SDN controller logic-inference network troubleshooter (SDN-LINT) tool
EP3849142B1 (en) Automatic root cause diagnosis in networks
US20130290512A1 (en) Network configuration predictive analytics engine
US20170272344A1 (en) Real-Time Detection of Abnormal Network Connections in Streaming Data
US7898971B2 (en) Method and apparatus for automating hub and spoke Internet Protocol Virtual Private Network trouble diagnostics
US20180124097A1 (en) Network device vulnerability prediction
EP3544330B1 (en) System and method for validating correctness of changes to network device configurations
US20220094614A1 (en) Systems for and methods of modelling, analysis and management of data networks
US7792045B1 (en) Method and apparatus for configuration and analysis of internal network routing protocols
CN113821412A (en) Equipment operation and maintenance management method and device
US20220239730A1 (en) Detecting anomalies in a distributed application
CN113992495B (en) Alarm information processing method and device, computer equipment and storage medium
CN117493133A (en) Alarm method, alarm device, electronic equipment and medium
Le et al. Characterization and problem detection of routing policy configurations

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16890314

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16890314

Country of ref document: EP

Kind code of ref document: A1