Automated testing method and system for checking basic functions of SPN (Serial Peripheral Network) equipment
By designing an automated testing system for SPN equipment, the problems of low testing efficiency and unintuitive result display in existing technologies have been solved, achieving an efficient and flexible testing process and result display.
Patent Information
- Application Number
- CN202511522550.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-23
- Publication Date
- 2026-02-10
AI Technical Summary
In existing technologies, the automated testing of SPN devices is inefficient and lacks support for flexible test script configuration and intuitive display of test results and problem information.
An automated testing system and method for verifying the basic functions of SPN devices are provided. The system includes a user interface module, a functional module, and an external system. Users input instructions through the user interface, communicate with the external system using the functional module, obtain test results, analyze them, and display the test analysis results.
It improves testing efficiency, reduces human error, supports flexible test script configuration, and can intuitively display test results and problem information.
Smart Images

Figure CN121509283A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of communication technology application, and particularly relates to a method and system for automatic testing of basic functions of SPN equipment. BACKGROUND
[0002] A slicing packet network (SPN) is a new network architecture for 5G bearing, and has characteristics of low latency, large bandwidth, high reliability, etc. In the process of development, production and maintenance of SPN equipment, the basic functions of the SPN equipment need to be tested comprehensively, including obtaining of network element information, board information and interface information, and creating, modifying and deleting operations of business logic objects, OAM logic objects, protection group logic objects and QoS logic objects.
[0003] In the prior art, the testing of the SPN equipment mainly depends on manual operation, and the testing efficiency is low and human errors are prone to occur. Although some automatic testing tools exist, these tools usually have single functions, do not support flexible testing script configuration, and are difficult to intuitively display testing results and problem information.
[0004] In view of the problems that the prior art does not support flexible testing script configuration and is difficult to intuitively display testing results and problem information, no effective solution has been proposed so far. SUMMARY
[0005] To solve the above technical problems, the embodiments of the present application aim to provide a method and system for automatic testing of basic functions of SPN equipment, so as to at least solve the problems that the prior art does not support flexible testing script configuration and is difficult to intuitively display testing results and problem information.
[0006] The technical scheme of the present application is implemented as follows: The embodiment of the application provides an automatic test system for testing basic functions of an SPN device, comprising a user interface module, a function module and an external system, wherein the user interface module is configured to display user operation function buttons and a test analysis result display interface; the user operation function buttons are configured to input relevant instruction information of the test SPN device; the function module is connected with the user interface module and the external system respectively, and is configured to transmit the relevant instruction information of the test SPN device input by the user interface module to the SPN device in the external system through communication, acquire a test result returned by the SPN device according to the relevant instruction information, analyze the test result and an expected test result, obtain a test analysis result, and return the test analysis result to the test analysis result display interface in the user interface module; and the external system comprises the SPN device, is configured to receive the relevant instruction information, execute a test task according to the relevant instruction information, acquire the test result, and return the test result to the function module.
[0007] Optionally, the user operation function buttons comprise a start test button, an interrupt test button, a test script path input box, a password input box, a login username input box and a device IP address input box; the device IP address input box is configured to receive an IP address of the SPN device input by a user; the login username input box is configured to receive a username input by the user; the password input box is configured to receive a password corresponding to the username input by the user; the test script path input box is configured to receive a test script path input / selected by the user, so that the function module acquires a corresponding test script according to the test script path; the start test button is configured to receive an operation of starting the test triggered by the user; and the interrupt test button is configured to receive an operation of interrupting the test triggered by the user.
[0008] Further, optionally, the functional modules include: a test execution module, a result display module, a communication module, a result comparison module, and a test script parsing module. The test execution module is connected to the start test button, the interrupt test button, the result display module, the communication module, the result comparison module, and the test script parsing module. It controls the functions of the result display module, the communication module, and the result comparison module during the SPN device testing process by receiving the test script parsed by the test script parsing module and triggering the start test operation via the start test button or the interrupt test operation via the interrupt test button. The communication module is connected to the SPN device, the password input box, the login username input box, and the device IP address input box in the external system. It logs into the SPN device based on the password entered in the password input box, the username entered in the login username input box, and the SPN device IP address entered in the device IP address input box, sends relevant instruction information to the SPN device, and obtains the test results returned by the SPN device based on the relevant instruction information. The test script parsing module, connected to the test script path input box, retrieves the corresponding test script based on the input / selected test script path. It parses the XML format test script to extract the input and output XML. The test script is an XML file containing input and output XML. The input XML includes test content for basic SPN functions, including the acquisition of network element information, board information, and interface information; and the creation, modification, and deletion of service logic objects, OAM logic objects, protection group logic objects, and QoS logic objects. The result comparison module, connected to both the test script parsing module and the communication module, analyzes the test results received by the communication module from the SPN device against the extracted output XML to obtain the test analysis results. The result display module, connected to the test analysis result display interface, returns the test analysis results to this interface.
[0009] Optionally, the test analysis result display interface includes a test result text box, which is connected to the test display module. If the test result is the same as the output XML, the test analysis result is determined to be a pass for the test case, indicating that the test was successful and proceeding to the next test case. If the test result is different from the output XML, the test analysis result is determined to be a stop for the test, and the input XML, test result, and output XML are fed back to the user for problem analysis.
[0010] Optionally, the user interface module and functional modules may run on a specified device based on a specific protocol.
[0011] This invention provides an automated testing method for verifying the basic functions of an SPN device, applied to an automated testing system for verifying the basic functions of an SPN device. The method includes: transmitting relevant instruction information for testing the SPN device via communication with an SPN device in an external system, based on instruction information input from a user interface module; obtaining test results returned by the SPN device based on the instruction information; analyzing the test results against the expected test results to obtain test analysis results; and returning the test analysis results to a test analysis result display interface in the user interface module.
[0012] Optionally, based on the relevant instruction information for testing the SPN device input through the user interface module, the relevant instruction information is transmitted via communication with the SPN device in the external system. This includes: if the relevant instruction information includes: username, password corresponding to the username, IP address of the SPN device, test script path, and start test, authentication is performed based on the username and password corresponding to the username; if authentication is successful, a connection is established with the SPN device based on the IP address of the SPN device; the test script is obtained through the test script path; and the test script is imported into the SPN device by starting test, so that the SPN device can trigger the test of the test script by starting test.
[0013] Furthermore, optionally, the test script is an XML file, which contains: input XML and output XML; the input XML contains: test content for the basic functions of SPN, including: acquisition of network element information, board information, interface information, and creation, modification, and deletion operations of service logic objects, OAM logic objects, protection group logic objects, and QoS logic objects.
[0014] Optionally, the test analysis results are obtained by analyzing the test results against the expected test results. This includes: if the expected test results include output XML, analyzing the test results against the output XML to obtain test analysis results; wherein, analyzing the test results against the output XML to obtain test analysis results includes: if the test results are the same as the output XML, then the test analysis result is determined to be a pass for the test case, indicating that the test was successful, and proceeding to the next test case; if the test results are different from the output XML, then the test analysis result is determined to be a stop for the test, and the input XML, test results, and output XML are fed back to the user for problem analysis.
[0015] Optionally, the method further includes: if the connection with the SPN device fails, or if the test analysis result is that the test case passes, and the relevant instruction information also includes an operation to interrupt the test, then the test ends.
[0016] This invention provides an automated testing method and system for verifying the basic functions of SPN devices. The method involves transmitting relevant instruction information about the SPN device via communication with an external system, based on input from a user interface module; obtaining test results returned by the SPN device based on the instruction information; analyzing the test results against expected test results to obtain test analysis results; and returning the test analysis results to a test analysis result display interface in the user interface module. This approach improves testing efficiency, reduces human error, and provides a clear and intuitive display of test results and problem information. Attached Figure Description
[0017] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings: Figure 1 A schematic diagram of an automated testing system for verifying the basic functions of an SPN device, provided in an embodiment of the present invention; Figure 2 A schematic diagram of another automated testing system for verifying the basic functions of an SPN device provided in an embodiment of the present invention; Figure 3 An interactive schematic diagram of an automated testing system for verifying the basic functions of an SPN device, provided in an embodiment of the present invention; Figure 4 A schematic diagram of the user interface in an automated testing system for verifying the basic functions of an SPN device, provided as an embodiment of the present invention; Figure 5 A schematic diagram of the user interface in an automated testing system for verifying the basic functions of an SPN device, provided in an embodiment of the present invention; Figure 6 A schematic diagram of a test script in an automated test system for verifying the basic functions of an SPN device, provided as an embodiment of the present invention; Figure 7 A schematic diagram of a test script in an automated test system for verifying the basic functions of an SPN device, provided in an embodiment of the present invention; Figure 8 This is a flowchart illustrating an automated testing method for verifying the basic functions of an SPN device, provided as an embodiment of the present invention. Detailed Implementation
[0018] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0019] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this invention are used to distinguish different objects, rather than to limit a specific order.
[0020] It should also be noted that the various embodiments of the present invention described below can be executed individually or in combination with each other, and the embodiments of the present invention do not impose specific limitations in this regard.
[0021] This invention provides an automated testing system for verifying the basic functions of SPN devices. Figure 1 A schematic diagram of an automated testing system for verifying the basic functions of an SPN device, provided as an embodiment of the present invention; as shown. Figure 1 As shown in the embodiment of this application, the automated testing system for verifying the basic functions of an SPN device includes: The system comprises a user interface module 12, a function module 14, and an external system 16. The user interface module 12 displays user operation function keys and a test analysis result display interface. The user operation function keys are used to input relevant command information for testing the SPN device. The function module 14 is connected to both the user interface module 12 and the external system 16. Based on the command information input from the user interface module 12, it communicates with the SPN device in the external system 16 to transmit the command information, obtains the test results returned by the SPN device, analyzes the test results against the expected test results, and returns the test analysis results to the test analysis result display interface in the user interface module 12. The external system 16 includes the SPN device, which receives the command information, executes test tasks based on the command information, obtains test results, and returns the test results to the function module 14.
[0022] Optionally, the user operation function buttons include: a start test button, an interrupt test button, a test script path input box, a password input box, a login username input box, and a device IP address input box; wherein, the device IP address input box is used to receive the IP address of the SPN device entered by the user; the login username input box is used to receive the username entered by the user; the password input box is used to receive the password for the corresponding username entered by the user; the test script path input box is used to receive the test script path entered / selected by the user, so that the functional module 14 can obtain the corresponding test script according to the test script path; the start test button is used to receive the operation of starting the test triggered by the user; and the interrupt test button is used to receive the operation of interrupting the test triggered by the user.
[0023] Further, optionally, functional module 14 includes: a test execution module, a result display module, a communication module, a result comparison module, and a test script parsing module. The test execution module is connected to the start test button, the interrupt test button, the result display module, the communication module, the result comparison module, and the test script parsing module, respectively. It controls the functions of the result display module, the communication module, and the result comparison module during the SPN device testing process by receiving the test script parsed by the test script parsing module and triggering the start test operation via the start test button or the interrupt test operation via the interrupt test button. The communication module is connected to the SPN device, the password input box, the login username input box, and the device IP address input box in the external system 16, respectively. It logs into the SPN device based on the password entered in the password input box, the username entered in the login username input box, and the SPN device IP address entered in the device IP address input box, sends relevant instruction information to the SPN device, and obtains the test results returned by the SPN device based on the relevant instruction information. The test script parsing module, connected to the test script path input box, is used to obtain the test script corresponding to the test script path entered / selected in the test script path input box. It extracts the input XML and output XML from the test script by parsing the XML format. The test script is an XML file containing input XML and output XML. The input XML contains the test content of SPN basic functions, including the acquisition of network element information, board information, interface information, and the creation, modification, and deletion of service logic objects, OAM logic objects, protection group logic objects, and QoS logic objects. The result comparison module, connected to both the test script parsing module and the communication module, analyzes the test results received by the communication module from the SPN device with the output XML extracted from the test script parsing module to obtain the test analysis results. The result display module, connected to the test analysis result display interface, returns the test analysis results to the test analysis result display interface.
[0024] Optionally, the test analysis result display interface includes a test result text box, which is connected to the test display module. If the test result is the same as the output XML, the test analysis result is determined to be a pass for the test case, indicating that the test was successful and proceeding to the next test case. If the test result is different from the output XML, the test analysis result is determined to be a stop for the test, and the input XML, test result, and output XML are fed back to the user for problem analysis.
[0025] Optionally, the user interface module 12 and the functional module 14 operate on a specified device based on a specific protocol.
[0026] In conclusion, Figure 2 A schematic diagram of another automated testing system for verifying the basic functions of an SPN device provided in an embodiment of the present invention; as shown. Figure 2 As shown in the embodiments of this application, the automated testing system for verifying the basic functions of SPN devices is as follows: In this embodiment, the specific protocol can be the NETCONF protocol, and the specified device can be a personal computer or a terminal with computing and communication functions. Taking a personal computer as an example, in this embodiment, the user interface module 12 and the function module 14 run on a PC based on the NETCONF protocol. The user interface module 12 includes: user operation function keys and a test analysis result display interface. User operation function buttons include: Start Test button, Stop Test button, Test Script Path Input Box, Password Input Box, Login Username Input Box, and Device IP Address Input Box; Test analysis result display interface includes: Test Result Text Box and User Interface; The user interface displays a test result text box, a start test button, an interrupt test button, a test script path input box, a password input box, a login username input box, and a device IP address input box. Users input relevant instructions for testing the SPN device through the user interface. In this embodiment, the relevant instructions include: username, password, SPN device IP address, test script path, and start test. Specifically, the user enters their username in the login username input box, their password in the password input box, the SPN device IP address in the device IP address input box, the test script path in the test script path input box, and triggers the start test operation by clicking the start test button.
[0027] The test results text box can display the test analysis results returned by the functional modules.
[0028] In this embodiment, functional module 14 includes: a test execution module, a result display module, a communication module, a result comparison module, and a test script parsing module. The test execution module is connected to the start test button, the interrupt test button, the result display module, the communication module, the result comparison module, and the test script parsing module, and is used to control the functions of the result display module, the communication module, and the result comparison module during the testing of the SPN device by receiving the start test button or the interrupt test button, based on the test script parsed by the test script parsing module. The communication module is connected to the SPN device and password in the external system 16. The input fields, login username input field, and device IP address input field are connected. This allows login to the SPN device based on the password entered in the password input field, the username entered in the login username input field, and the SPN device IP address entered in the device IP address input field. It then sends relevant command information to the SPN device and retrieves the test results returned by the SPN device based on the command information. The test script parsing module, connected to the test script path input field, retrieves the test script corresponding to the entered / selected test script path. It then parses the XML format test script to extract the input XML and output XML. For example... Figure 2 As shown, the communication module is labeled as the NETCONF communication module.
[0029] Specifically, the user interface module 12 provides a user-friendly interface, including a device IP address input box, a login username input box, a password input box, a test script path input box, a start test button, an interrupt test button, and a test result text box. Users can use these components to input test parameters, control the test process, and view test results.
[0030] The NETCONF communication module communicates with the SPN device based on the NETCONF protocol, and is responsible for establishing connections, sending commands, and receiving responses.
[0031] The test script parsing module is responsible for parsing XML-formatted test scripts, extracting the input XML and expected output XML. The test scripts must be prepared in advance and contain the test content for the basic functions of SPN.
[0032] The test execution module is the core of the automated test system for verifying the basic functions of SPN devices provided in this application embodiment. It is responsible for controlling the test process and executing test cases in the order of the test script.
[0033] The result comparison module is responsible for comparing the actual output XML of the device (i.e., the test result in this embodiment) with the expected output XML (i.e., the output XML in this embodiment) to determine whether the test passes.
[0034] The results display module is responsible for displaying the test results in the test results text box, including success information or failure details.
[0035] The SPN device in the external system 16 receives the test script, performs the test according to the test script by starting the test, and returns the test results to the functional module 14.
[0036] Figure 3 This is an interactive schematic diagram of an automated testing system for verifying the basic functions of an SPN device provided in an embodiment of the present invention. The test flow of the automated testing system for verifying the basic functions of an SPN device provided in this application embodiment is as follows: Figure 3 As shown, the details are as follows: Step 1. Input parameters through user interface module 12. The user enters the device IP address, login username, password and test script path in the user interface; Step 2. Start the test by clicking the Start Test button in the user interface module 12. When the user clicks the Start Test button, the test execution module in the function module 14 starts executing the test. Step 3. The test script is parsed by the test script parsing module in functional module 14. The test script parsing module parses the test script and extracts the input XML and the expected output XML (i.e., the output XML in this embodiment of the application). Step 4. Commands are sent through the NETCONF communication module in functional module 14. The test execution module sends input XML to the SPN device in external system 16 through the NETCONF communication module. Step 5. Response reception is performed through the NETCONF communication module in functional module 14. The NETCONF communication module receives the actual output XML of the SPN device (i.e., the test results in this embodiment). Step 6. Compare the results using the result comparison module in functional module 14. The result comparison module compares the actual output XML with the expected output XML. Step 7. The test analysis results are returned to the test analysis result display interface through the result display module in function module 14. The test result text box in the test analysis result display interface is used to judge the result. If the comparison results are the same, the test case is passed, and the result display module will indicate success in the test result text box and proceed to the next test case. If the comparison results are different, the test is stopped, and the result display module will display the current input XML, the actual output XML, and the expected XML in the test result text box. Step 8. Interrupt the test by clicking the interrupt test button in the user operation function key test. The user can terminate the test process at any time by clicking the interrupt test button.
[0037] Figure 4 A schematic diagram of the user interface in an automated testing system for verifying the basic functions of an SPN device, provided as an embodiment of the present invention, is shown below. Figure 4 As shown in the embodiment of this application, the user interface of the automated testing system for verifying the basic functions of an SPN device displays: a start test button, an interrupt test button, a test script path input box, a password input box, a login username input box, and a device IP address input box. The start test button is marked as executing, the interrupt test button is marked as stopping, the test script path input box is marked as path, the password input box is marked as password, the login username input box is marked as username, and the device IP address input box is marked as host. In addition, the user interface also includes: number of loops, time interval, and tester.
[0038] Figure 5 A schematic diagram of the user interface in another automated testing system for verifying the basic functions of an SPN device, provided in an embodiment of the present invention, is shown below. Figure 5 As shown, the automated testing system for verifying the basic functions of SPN devices provided in this application embodiment displays the user interface's successful test result feedback information (i.e., the test results in this application embodiment).
[0039] Figure 6 This is a schematic diagram of a test script in an automated test system for verifying the basic functions of an SPN device, provided by an embodiment of the present invention. Figure 7 A schematic diagram of a test script in an automated test system for verifying the basic functions of an SPN device, provided in an embodiment of the present invention, is shown below. Figure 6 and Figure 7 As shown in the figure, the automated testing system for verifying the basic functions of SPN devices provided in this application embodiment displays a test script sample.
[0040] The automated testing system for verifying the basic functions of SPN devices provided in this application is applicable to FIFO / FIFR, realizing automated testing of the basic functions of SPN devices, greatly improving testing efficiency; reducing human error and improving testing accuracy; supporting flexible test script configuration, allowing for expansion of test content as needed; intuitively displaying test results and problem information, facilitating problem analysis by testers and R&D personnel; and allowing the testing process to be interrupted at any time, improving testing flexibility.
[0041] This invention provides an automated testing system for verifying the basic functions of SPN devices. A user interface module displays user operation function keys and a test analysis result display interface. The user operation function keys are used to input relevant instructions for testing the SPN device. A function module, connected to both the user interface module and an external system, communicates with the SPN device in the external system to transmit the input instructions, obtains the test results returned by the SPN device, analyzes the test results against expected results, and returns the test analysis results to the test analysis result display interface in the user interface module. The external system, including the SPN device, receives the instructions, executes test tasks, obtains test results, and returns the results to the function module. This system improves testing efficiency, reduces human error, and provides a clear and intuitive display of test results and problem information.
[0042] This invention provides an automated testing method for verifying the basic functions of an SPN device. Figure 8 A flowchart illustrating an automated testing method for verifying the basic functions of an SPN device, provided by an embodiment of the present invention; as shown. Figure 8 As shown, applied to Figure 1 The automated testing system for verifying the basic functions of SPN devices, as shown in the embodiments of this application, includes the following automated testing method for verifying the basic functions of SPN devices: Step S802: Based on the relevant instruction information of the test SPN device input by the user interface module, transmit the relevant instruction information through communication with the SPN device in the external system; Optionally, in step S802, based on the relevant instruction information for testing the SPN device input by the user interface module, the transmission of relevant instruction information through communication with the SPN device in the external system includes: if the relevant instruction information includes: username, password corresponding to the username, IP address of the SPN device, test script path, and start test, performing authentication based on the username and password corresponding to the username; if authentication is successful, establishing a connection with the SPN device based on the IP address of the SPN device; obtaining the test script through the test script path; and importing the test script into the SPN device by starting test, so that the SPN device can trigger the test of the test script by starting test.
[0043] Furthermore, optionally, the test script is an XML file, which contains: input XML and output XML; the input XML contains: test content for the basic functions of SPN, including: acquisition of network element information, board information, interface information, and creation, modification, and deletion operations of service logic objects, OAM logic objects, protection group logic objects, and QoS logic objects.
[0044] Step S804: Obtain the test results returned by the SPN device based on the relevant instruction information; Step S806: Analyze the test results and expected test results to obtain the test analysis results; Optionally, step S806 involves analyzing the test results against the expected test results to obtain test analysis results. This includes: if the expected test results include output XML, analyzing the test results against the output XML to obtain test analysis results. Specifically, analyzing the test results against the output XML to obtain test analysis results includes: if the test results are the same as the output XML, then the test analysis result is determined to be a pass for the test case, a success message is displayed, and the next test case is started; if the test results are different from the output XML, then the test analysis result is determined to be a stop for the test, and the input XML, test results, and output XML are fed back to the user for problem analysis.
[0045] Step S808: Return the test analysis results to the test analysis result display interface in the user interface module.
[0046] Optionally, the automated testing method for verifying the basic functions of the SPN device provided in this application embodiment further includes: when the connection with the SPN device fails, or when the test analysis result is that the test case passes, if the relevant instruction information also includes an operation to interrupt the test, receiving the operation to interrupt the test and ending the test.
[0047] In summary, steps S802 to S808 in the embodiments of this application are applied to Figure 1 In the automated testing system for verifying the basic functions of the SPN device shown, the automated testing method for verifying the basic functions of the SPN device provided in this application embodiment can be applied to the user interface module 12 and the functional module 14, which will not be described in detail here.
[0048] This invention provides an automated testing method for verifying the basic functions of an SPN device. The method involves transmitting relevant instruction information about the SPN device via communication with an external system, based on input from a user interface module; obtaining test results returned by the SPN device based on the instruction information; analyzing the test results against expected test results to obtain test analysis results; and returning the test analysis results to a test analysis result display interface in the user interface module. This method improves testing efficiency, reduces human error, and provides a clear and intuitive display of test results and problem information.
[0049] The above are merely preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention.
Claims
1. An automated testing system for verifying the basic functions of an SPN device, characterized in that, include: User interface module, functional modules, and external systems, among which, The user interface module is used to display user operation function buttons and a test analysis result display interface; wherein, the user operation function buttons are used to input relevant command information for testing the SPN device; The functional module is connected to the user interface module and the external system respectively. It is used to transmit the relevant instruction information for testing the SPN device by communicating with the SPN device in the external system according to the relevant instruction information input by the user interface module, obtain the test results returned by the SPN device according to the relevant instruction information, analyze the test results and expected test results to obtain test analysis results, and return the test analysis results to the test analysis result display interface in the user interface module. The external system includes the SPN device, which is used to receive the relevant instruction information, execute test tasks according to the relevant instruction information, obtain the test results, and return the test results to the functional module.
2. The automated testing system for verifying the basic functions of SPN equipment according to claim 1, characterized in that, The user operation function buttons include: a start test button, an interrupt test button, a test script path input box, a password input box, a login username input box, and a device IP address input box; wherein... The device IP address input box is used to receive the IP address of the SPN device input by the user; The login username input box is used to receive the username entered by the user; The password input box is used to receive the password entered by the user corresponding to the username; The test script path input box is used to receive the test script path input / selected by the user, so that the functional module can obtain the corresponding test script according to the test script path; The "Start Test" button is used to receive the user's command to start the test. The interrupt test button is used to receive the user's operation to trigger an interrupt test.
3. The automated testing system for verifying the basic functions of SPN equipment according to claim 2, characterized in that, The functional modules include: a test execution module, a result display module, a communication module, a result comparison module, and a test script parsing module. The test execution module is connected to the start test button, the interrupt test button, the result display module, the communication module, the result comparison module, and the test script parsing module, respectively. It is used to control the functions of the result display module, the communication module, and the result comparison module during the testing of the SPN device by receiving the start test button or the interrupt test button to trigger the start test, based on the test script parsed by the test script parsing module. The communication module is connected to the SPN device, the password input box, the login username input box, and the device IP address input box in the external system, respectively. It is used to log in to the SPN device according to the password entered in the password input box, the username entered in the login username input box, and the SPN device IP address entered in the device IP address input box, send the relevant instruction information to the SPN device, and obtain the test results returned by the SPN device according to the relevant instruction information. The test script parsing module is connected to the test script path input box. It is used to obtain the test script corresponding to the test script path input / selected by the test script path input box, and to extract the input XML and output XML from the test script by parsing the XML format test script. The test script is an XML file containing the input XML and the output XML. The input XML contains the test content for basic SPN functions, which includes operations such as obtaining network element information, board information, and interface information; and creating, modifying, and deleting service logic objects, OAM logic objects, protection group logic objects, and QoS logic objects. The result comparison module is connected to the test script parsing module and the communication module respectively, and is used to analyze the test results of the SPN device received by the communication module and the output XML extracted by the test script parsing module to obtain test analysis results; The result display module is connected to the test analysis result display interface and is used to return the test analysis results to the test analysis result display interface.
4. The automated testing system for verifying the basic functions of SPN equipment according to claim 3, characterized in that, The test analysis result display interface includes: a test result text box, wherein... The test result text box is connected to the test display module. If the test result is the same as the output XML, the test analysis result is determined to be a successful test case, a test success message is displayed, and the next test case is started. If the test result is different from the output XML, the test analysis result is determined to be a stop test, and the input XML, the test result, and the output XML are fed back to the user for problem analysis.
5. The automated testing system for verifying the basic functions of SPN equipment according to claim 1, characterized in that, The user interface module and the functional modules operate on a designated device based on a specific protocol.
6. An automated testing method for verifying the basic functions of an SPN device, characterized in that, An automated testing system for verifying the basic functions of SPN equipment includes: Based on the relevant instruction information of the test SPN device input by the user interface module, the relevant instruction information is transmitted through communication with the SPN device in the external system; Obtain the test results returned by the SPN device based on the relevant instruction information; Based on the test results and the expected test results, the test analysis results are obtained. The test analysis results are returned to the test analysis results display interface in the user interface module.
7. The automated testing method for verifying the basic functions of an SPN device according to claim 6, characterized in that, The step of transmitting the relevant instruction information of the test SPN device based on the input of the user interface module through communication with the SPN device in the external system includes: When the relevant instruction information includes: username, password corresponding to the username, IP address of the SPN device, test script path, and start test, authorization authentication is performed based on the username and password corresponding to the username; If authentication is successful, a connection is established with the SPN device based on the SPN device's IP address; Obtain the test script via the specified test script path; The test script is imported into the SPN device through the start test, so that the SPN device triggers a test on the test script through the start test.
8. The automated testing method for verifying the basic functions of an SPN device according to claim 7, characterized in that, The test script is an XML file, which contains: input XML and output XML; the input XML contains: test content of SPN basic functions, which includes: acquisition of network element information, board information, interface information, and creation, modification, and deletion of service logic objects, OAM logic objects, protection group logic objects, and QoS logic objects.
9. The automated testing method for verifying the basic functions of an SPN device according to claim 8, characterized in that, The analysis based on the test results and the expected test results yields the following test analysis results: If the expected test results include the output XML, the test results and the output XML are analyzed to obtain the test analysis results; The step of analyzing the test results and the output XML to obtain the test analysis results includes: If the test result is the same as the output XML, then the test analysis result is determined to be a successful test case, a test success message is displayed, and the next test case is performed. If the test result is different from the output XML, then the test analysis result is determined to be a stop test, and the input XML, the test result, and the output XML are fed back to the user to analyze the problem.
10. The automated testing method for verifying the basic functions of an SPN device according to claim 6, characterized in that, The method further includes: If the connection to the SPN device fails, or if the test analysis result indicates that the test case has passed, and the relevant instruction information also includes an operation to interrupt the test, the operation to interrupt the test is received, and the test ends.