[0023] The preferred embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0024] Fig. 1 is a flowchart showing an alarm test method of a synchronous digital system device according to an embodiment of the present invention.
[0025] As shown in Figure 1, it includes the following steps: Step S102, the test control platform is respectively connected with the network element management system, the synchronous digital system equipment, and the test instrument; Step S104, the test control platform controls the test instrument to send an alarm to the synchronous digital system equipment Instruct to collect sampling alarm messages from the network element management system, and generate test input cases and test templates based on the sampling alarm messages; and step S106, the test control platform controls the network element management system, synchronous digital system equipment, and test instruments to perform the test Enter the use case, control the test instrument to send alarm instructions to the synchronous digital system equipment, collect alarm messages from the network element management system, compare the alarm messages with the test template, and record the comparison results.
[0026] In addition, in this method, the test control platform controls the test instrument to send an alarm indication to the synchronous digital system equipment through the test operation control module in the test control platform to send an alarm indication to the synchronous digital system equipment.
[0027] In addition, step S104 of the method further includes: configuring and saving the test environment parameters of the configuration module of the test control platform.
[0028] In addition, in step S104 of the method, the test control platform collects sampling alarm messages from the network element management system and generates test input cases and test templates according to the sampling alarm messages, including: the data transceiver module in the test control platform collects sampling alarm messages And the data processing module in the test control platform obtains corresponding data from the sampling alarm message according to the test environment parameters, and generates test input cases and test templates according to the obtained data.
[0029] In addition, in step S106 of the method, the test control platform controls the network element management system, the synchronous digital system equipment, and the test instrument to perform test input use cases including: the test operation control module transfers the test input use cases into the network element management system, and synchronizes the digital System equipment and test instruments; and the configuration module configures test environment parameters, and the network element management system, synchronous digital system equipment, and test instruments execute test input use cases.
[0030] In addition, in step S106 of the method, the test control platform collecting alarm messages from the network element management system includes: the data transceiver module collects the alarm messages; and the data processing module obtains corresponding data from the alarm messages according to the test environment parameters.
[0031] In addition, in step S106 of the method, using the test template to compare the alarm message includes: loading the data processing module into the test template, and comparing the corresponding data with the test template.
[0032] In addition, in this method, the synchronous digital system equipment is directly connected with the test instrument, and the network element management system and the synchronous digital system equipment are connected through the test control platform.
[0033] In addition, in this method, the test control center connects between the network management system and the device under test in an online manner. The online method refers to the access between the two communicating parties in an interventional manner, and the interactive information of the communicating parties is controlled by the test. Center forwarding; and the test instrument is connected online between the test control center and the device under test.
[0034] Fig. 2 is a schematic diagram showing the structure of a test control platform used for alarm testing of synchronous digital system equipment according to an embodiment of the present invention.
[0035] As shown in Figure 2, it includes: a test operation control module 202, used to control the test instrument to send alarm instructions to the synchronous digital system equipment; a configuration module 204, used to configure and save the test environment parameters; data transceiver module 206, from the network element management The system collects sampled alarm messages and alarm messages; and a data processing module 208, which obtains corresponding data from the sampled alarm messages according to the test environment parameters and generates test input cases and test templates according to the obtained data, and according to the test environment parameters Obtain the corresponding data from the alarm message, call the test template to compare the corresponding data with the test template, and record the comparison result.
[0036] In addition, in the test control platform, the synchronous digital system equipment is directly connected with the test instrument, and the network element management system and the synchronous digital system equipment are connected through the test control platform.
[0037] Fig. 3 is a flowchart showing an automated test method according to an embodiment of the present invention. And FIG. 4 is a processing flowchart showing an automated test method according to an embodiment of the present invention.
[0038] The following describes the embodiments of the present invention in detail with reference to FIGS. 3 and 4.
[0039] As shown in Fig. 4, the test platform, that is, the test control center, is used to automatically test the group road alarms of SDH equipment in combination with the SDH network element management system and the SDH tester. The network element management system communicates with the SDH equipment through the network port of the computer to realize various operations and management of the network element equipment.
[0040] The following describes in detail the process of using the present invention to realize the automated testing of SDH equipment group channel alarms:
[0041] 1. Set up a test environment, connect the test platform to the network management system and the equipment online; connect the test instrument to the equipment normally; establish a connection between the test platform and the equipment; establish a normal connection between the test platform and the instrument.
[0042] 2. Start the test platform and configure the test environment parameters in the configuration module of the test platform. Among them, the test environment parameters refer to various configurations of the test environment in the current test, such as the IP of the device under test, device type, and board type.
[0043] 3. Set the working mode of the test platform. Switch the platform to the regression mode.
[0044] 4. The test platform sets the test case start flag to start a test case.
[0045] 5. The test platform initializes the meter.
[0046] 6. The test platform operates the network management, configures the equipment time slot, and confirms the equipment service adjustment.
[0047] 7. The test platform obtains the current data from the meter and the network management, and after confirming that the business is normal and the tested device in the network management has no alarm, insert an alarm from the meter to the tested device. If the current business is abnormal or the network manager reports an alarm, the test will be ended directly and the test result of regression failure will be output.
[0048] 8. The test platform queries the current alarms on the network management and meters. If the meter does not have the expected alarm, it will directly terminate this use case test and output the test result of regression failure. If the meter has an expected alarm, the test platform will save all the messages that meet the set filter conditions after querying the network management alarm.
[0049] 9. The test platform resets the board with the alarm inserted in the device under test on the network management, and waits for the board to be reset.
[0050] 10. The test platform queries the alarms of the equipment under test on the network management system and saves the messages that meet the conditions.
[0051] 11. The test platform sets the alarm shield of the tested equipment on the network management.
[0052] 12. The test platform queries the alarms of the tested equipment on the network management system and saves the messages that meet the conditions.
[0053] 13. The test platform resets the single board with alarm shielding in the tested equipment on the network management, and waits for the single board to be reset.
[0054] 14. The test platform queries the alarms of the tested equipment on the network management system and saves the messages that meet the conditions.
[0055] 15. The test platform cancels the alarm shielding of the device under test in the network management.
[0056] 16. The test platform queries the alarms of the tested equipment on the network management and saves the messages that meet the conditions.
[0057] 17. Test platform control instrument, cancel the alarm insertion state in the instrument.
[0058] 18. The test platform queries the device under test alarms in the network management, and saves all messages that meet the filtering conditions.
[0059] 19. The test platform sets the end sign of the test case to end the test of a test case.
[0060] 20. The test platform starts the data processing module, completes the regression comparison task, and outputs the regression comparison result.
[0061] 21. After the test is completed, the test platform restores the initial test environment and continues the test of subsequent use cases.
[0062] In summary, the present invention successfully solves the problems of time-consuming and labor-consuming manual testing and slow test efficiency during the SDH equipment alarm system test process. It can quickly traverse the alarm test cases in the real system test network environment, and realize Automatic testing of equipment alarms.
[0063] The foregoing descriptions are only preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.