CN117527664A - Reinforced switch testing method, system, electronic equipment and storage medium - Google Patents

Reinforced switch testing method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN117527664A
CN117527664A CN202311724623.9A CN202311724623A CN117527664A CN 117527664 A CN117527664 A CN 117527664A CN 202311724623 A CN202311724623 A CN 202311724623A CN 117527664 A CN117527664 A CN 117527664A
Authority
CN
China
Prior art keywords
test
switch
instruction
item
reinforcement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311724623.9A
Other languages
Chinese (zh)
Inventor
蔡小路
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Aoxing Technology Co ltd
Original Assignee
Beijing Aoxing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Aoxing Technology Co ltd filed Critical Beijing Aoxing Technology Co ltd
Priority to CN202311724623.9A priority Critical patent/CN117527664A/en
Publication of CN117527664A publication Critical patent/CN117527664A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/065Generation of reports related to network devices

Abstract

The application provides a method, a system, electronic equipment and a storage medium for testing a reinforcement switch, wherein a system server acquires a test instruction sent by a client, a configuration interface of the reinforcement switch is called based on the test instruction, the test instruction is sent to the reinforcement switch, and test data sent by the reinforcement switch are acquired. The test instruction is generated by the client side in response to the selection of a test item by a user, and the test data are obtained by the reinforcement switch in response to the test instruction to execute a test task corresponding to the test item. According to the method and the device, the test instruction can be generated based on the selection of the user to the test item, the test data corresponding to the test item can be obtained based on the test instruction, the user does not need to manually input the test command corresponding to the test item to test, and the test efficiency can be effectively improved.

Description

Reinforced switch testing method, system, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of switch testing technologies, and in particular, to a method, a system, an electronic device, and a storage medium for testing a reinforced switch.
Background
The reinforced exchanger is a high-performance Ethernet exchanger, has firm and reliable internal and external design, is suitable for severe use environment, and realizes industrial-grade network interconnection application. The hardened switch test may include a functional test, a performance test, a protocol test, and the like.
At present, in order to realize the test of the reinforced switch, a tester can log in the reinforced switch system after building a test environment, input a test command according to a test item in the reinforced switch system, and perform relevant configuration on the reinforced switch to obtain test data.
Because the reinforcement switch has a plurality of functions, the test personnel input more test commands according to test items, and a great deal of time is required to be spent for configuring the test commands in the process of testing the reinforcement switch, so that the test efficiency is low.
Disclosure of Invention
Based on the above problems, the application provides a method, a system, an electronic device and a storage medium for testing a reinforced switch.
The embodiment of the application discloses the following technical scheme:
first aspect: the embodiment of the application provides a method for testing a reinforcement switch, which is applied to a system server and comprises the following steps:
acquiring a test instruction sent by a client, wherein the test instruction is generated by the client in response to the selection of a test item by a user;
calling a configuration interface of a reinforcement switch based on the test instruction, and sending the test instruction to the reinforcement switch;
and sending test data to the client, wherein the test data is generated by the reinforcement switch responding to the test instruction to execute the test task corresponding to the test item and is sent to the system server.
In one possible implementation manner, the calling the configuration interface of the hardened switch based on the test instruction, and sending the test instruction to the hardened switch includes:
based on the test items corresponding to the test instructions, obtaining the mapping relation between the test items and the interface program of the reinforcement switch;
and calling a configuration interface of the reinforcement switch corresponding to the test item based on the mapping relation, and sending the test instruction to the reinforcement switch.
Second aspect: the embodiment of the application provides a method for testing a reinforcement switch, which is applied to a client and comprises the following steps:
responding to the selection of a user to test items, and generating a test instruction corresponding to the test items;
and sending the test instruction to a system server to obtain test data corresponding to the test item, wherein the test data is obtained by the reinforcement switch executing a test task corresponding to the test item based on the test instruction sent by the system server.
In one possible implementation manner, after the sending the test instruction to the system server and obtaining the test data corresponding to the test item, the method further includes:
and generating a test report corresponding to the test data according to the structure of the test data and a preset test report template.
Third aspect: the embodiment of the application provides a method for testing a reinforced switch, which is applied to the reinforced switch and comprises the following steps:
acquiring a test instruction sent by a system server, wherein the test instruction is generated by a client in response to the selection of a test item by a user;
responding to the test instruction to execute the test task corresponding to the test item, and generating test data;
and sending the test data to the client through the system server.
In one possible implementation manner, the generating test data in response to the test instruction executing the test task corresponding to the test item includes:
responding to the test instruction, and calling a test parameter corresponding function in the test instruction;
and executing the test tasks corresponding to the test items based on the test parameter corresponding functions to generate test data.
In one possible implementation, the test tasks include at least one of configuring an Internet Protocol (IP) address to the switch, configuring a Media Access Control (MAC) address to the switch, turning on port network communications and turning off port network communications.
Fourth aspect: a ruggedized switch test system for use with a system server, comprising:
the device comprises a first acquisition module, a first sending module and a second sending module;
the first acquisition module is used for acquiring a test instruction sent by a client, wherein the test instruction is generated by the client in response to the selection of a test item by a user;
the first sending module is used for calling a configuration interface of the reinforcement switch based on the test instruction and sending the test instruction to the reinforcement switch;
the second sending module is configured to send test data to the client, where the test data is generated by the reinforcement switch executing a test task corresponding to the test item in response to the test instruction, and sent to the system server.
In one possible implementation manner, the first sending module includes:
the first acquisition unit and the first sending unit;
the first obtaining unit is configured to obtain a mapping relationship between the test item and an interface program of the reinforcement switch based on the test item corresponding to the test instruction;
the first sending unit is configured to invoke a configuration interface of the hardened switch corresponding to the test item based on the mapping relation, and send the test instruction to the hardened switch.
Fifth aspect: the embodiment of the application provides a reinforcement switch test system, which is applied to a client and comprises: the first generating module and the second acquiring module;
the first generation module is used for responding to the selection of the test items by a user and generating test instructions corresponding to the test items;
the second obtaining module is configured to send the test instruction to a system server, and obtain test data corresponding to the test item, where the test data is obtained by the reinforcement switch executing a test task corresponding to the test item based on the test instruction sent by the system server.
In one possible implementation, the system further includes: a report generation module;
the report generation module is used for generating a test report corresponding to the test data according to the structure of the test data and a preset test report template.
Sixth aspect: the embodiment of the application provides a reinforcement switch test system, is applied to reinforcement switch, includes: the device comprises a third acquisition module, a second generation module and a third sending module;
the third acquisition module is used for acquiring a test instruction sent by the system server, wherein the test instruction is generated by the client in response to the selection of a test item by a user;
the second generation module is used for responding to the test instruction to execute the test task corresponding to the test item and generating test data;
and the third sending module is used for sending the test data to the client through the system server.
In one possible implementation manner, the second generating module includes:
a calling unit and a generating unit;
the calling unit is used for responding to the test instruction and calling a function corresponding to the test parameter in the test instruction;
the generating unit is used for executing the test tasks corresponding to the test items based on the test parameter corresponding functions to generate test data.
In one possible implementation, the test tasks include at least one of configuring an Internet Protocol (IP) address to the switch, configuring a Media Access Control (MAC) address to the switch, turning on port network communications and turning off port network communications.
Seventh aspect: an embodiment of the present application provides an electronic device, including: a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the steps of a hardened switch test method as described above according to instructions in the program code.
Eighth aspect: embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a method for testing a hardened switch as described above.
Compared with the prior art, the application has the following beneficial effects:
the embodiment of the application provides a test method for a reinforcement switch, which comprises the steps of obtaining a test instruction sent by a client through a system server, calling a configuration interface of the reinforcement switch based on the test instruction, sending the test instruction to the reinforcement switch, and obtaining test data sent by the reinforcement switch. The test instruction is generated by the client side in response to the selection of a test item by a user, and the test data are obtained by the reinforcement switch in response to the test instruction to execute a test task corresponding to the test item. According to the method and the device, the test instruction can be generated based on the selection of the user to the test item, the test data corresponding to the test item can be obtained based on the test instruction, the user does not need to manually input the test command corresponding to the test item to test, and the test efficiency can be effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive faculty for a person skilled in the art.
Fig. 1 is a flowchart of a first method for testing a reinforcement switch according to an embodiment of the present application;
fig. 2 is a flowchart of a second method for testing a reinforced switch according to an embodiment of the present application;
fig. 3 is a flowchart of a third method for testing a reinforcement switch according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a testing system for a reinforced switch according to an embodiment of the present application;
fig. 5 is a timing chart of a method for testing a reinforced switch according to an embodiment of the present application.
Detailed Description
At present, in order to realize the test of the reinforced switch, a tester can log in the reinforced switch system after building a test environment, input a test command according to a test item in the reinforced switch system, and perform relevant configuration on the reinforced switch to obtain test data.
In the first aspect, the reinforcement switch has multiple functions, and the tester inputs more test commands according to test items, so that a great deal of time is required to perform configuration of the test commands in the process of performing the reinforcement switch test, resulting in low test efficiency.
In the second aspect, the presentation of the test data obtained by inputting the test command in the enhanced switch system has no fixed format, so that the presentation of the test data is not intuitive, and a user cannot easily view the specific test data.
In the third aspect, the current reinforced switch test method has high requirements on test engineers, the test commands of the reinforced switch system are many, the test engineers need to be skilled in mastering specific test commands, meanwhile, the test method of manually inputting the test commands by the test engineers is depended on, the problem that errors occur in the test due to omission and negligence of personnel can easily exist, and the test accuracy is reduced.
Based on the above, the embodiment of the application provides a method for testing a reinforcement switch, which includes that a system server obtains a test instruction sent by a client, calls a configuration interface of the reinforcement switch based on the test instruction, sends the test instruction to the reinforcement switch, and obtains test data sent by the reinforcement switch. The test instruction is generated by the client side in response to the selection of a test item by a user, and the test data are obtained by the reinforcement switch in response to the test instruction to execute a test task corresponding to the test item. According to the method and the device, the test instruction can be generated based on the selection of the user to the test item, the test data corresponding to the test item can be obtained based on the test instruction, the user does not need to manually input the test command corresponding to the test item to test, and the test efficiency can be effectively improved.
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
An embodiment of the present application provides a method for testing a consolidated switch, which is applied to a system server, as shown in fig. 1, where the fig. is a flowchart of a first method for testing a consolidated switch provided in an embodiment of the present application, and includes S101-S103.
S101, a system server acquires a test instruction sent by a client.
Wherein the test instruction is generated by the client in response to a user selection of a test item. The client is browser software which can be used for a user; the system server can be a network (Web) server, and a Web service program for reinforcing a switch test system is installed in the Web server; the reinforcement switch is provided with a service program of the reinforcement switch.
S102, the system server calls a configuration interface of the reinforcement switch based on the test instruction, and sends the test instruction to the reinforcement switch.
The system server may communicate with a service program in the hardened switch after receiving the test instruction, and may call a configuration interface of the hardened switch and carry the corresponding test instruction. The test instruction may include corresponding test item information and corresponding test parameters.
In one possible implementation manner, based on the test item corresponding to the test instruction, a mapping relationship between the test item and an interface program of the hardened switch may be obtained.
After obtaining the mapping relation between the test item and the interface program of the reinforcement switch, the configuration interface of the reinforcement switch corresponding to the test item can be called based on the mapping relation, and the test instruction is sent to the reinforcement switch.
In the embodiment of the application, the corresponding mapping relation is established before the interface program of the test item and the reinforcement switch interaction, so that the test instruction can accurately reach the reinforcement switch and be executed.
S103, the system server sends test data to the client.
And the test data are generated by the reinforcement switch responding to the test instruction to execute the test task corresponding to the test item and are sent to the system server.
According to the method and the device, the test instruction can be generated based on the selection of the user to the test item, the test data corresponding to the test item can be obtained based on the test instruction, the user does not need to manually input the test command corresponding to the test item to test, and the test efficiency can be effectively improved.
An embodiment of the present application provides a method for testing a consolidated switch, which is applied to a client, as shown in fig. 2, where the fig. is a flowchart of a second method for testing a consolidated switch provided in the embodiment of the present application, and includes S201-S202.
S201, the client responds to the selection of the test items by the user, and generates test instructions corresponding to the test items.
For example, test items may be presented to the user in a display interface of the client, for example in the form of a list. The user can select the test items to be tested at the client, for example, the user can select the test items to be tested in a checking mode.
The method comprises the steps that a user selects one or more test items at a time, and a client responds to the selection of the test items by the user and generates test instructions corresponding to the test items.
For example, if the test item selected by the user is the test item a, the client may generate the test instruction corresponding to the test item a in response to the user selecting the test item.
And the user selects the test items as the test item A and the test item B at the same time, and the client can respond to the selection of the test items by the user to generate a test instruction corresponding to the test item A and a test instruction corresponding to the test item B.
In the present application, the types and the number of the test items selected by the user at one time are not particularly limited.
S202, the client sends the test instruction to a system server, and test data corresponding to the test item is obtained.
The test data are obtained by the reinforcement switch executing the test tasks corresponding to the test items based on the test instructions sent by the system server.
In one possible implementation manner, after the sending the test instruction to the system server and obtaining the test data corresponding to the test item, the method further includes:
and generating a test report corresponding to the test data according to the structure of the test data and a preset test report template.
In an example, different test items may be corresponding to respective test report templates, and after obtaining test data corresponding to the test items, a test report corresponding to the test data may be generated according to a structure of the test data and a preset test report template. Wherein the test items correspond to a preset test report template, thereby unifying the formats of the test reports.
It should be noted that, in the present application, the specific format of the preset test report template is not specifically limited, and may be preset by the user.
After generating the test report, the client may display the test report in a display screen of the client for viewing by a user. Illustratively, the client provides a print option so that the user can print the test report.
The embodiment of the application provides a method for testing a reinforced switch, which is applied to the reinforced switch, as shown in fig. 3, and the diagram is a flow chart of a third method for testing the reinforced switch, provided in the embodiment of the application, and includes S301-S302.
S301, the reinforcement switch acquires a test instruction sent by a system server.
Wherein the test instruction is generated by the client in response to a user selection of a test item.
S302, the reinforcement switch responds to the test instruction to execute the test task corresponding to the test item, and test data are generated.
In one possible implementation manner, the generating test data in response to the test instruction executing the test task corresponding to the test item includes:
responding to the test instruction, and calling a test parameter corresponding function in the test instruction;
and executing the test tasks corresponding to the test items based on the test parameter corresponding functions to generate test data.
In one possible implementation, the test tasks include, but are not limited to, configuring an Internet Protocol (IP) address to the switch, configuring a Media Access Control (MAC) address to the switch, turning on port network communications and turning off port network communications, etc.
S303, the reinforcement switch sends the test data to the client through the system server.
For example, after receiving the test instruction, the hardened switch may execute a related program in the hardened switch system, and after the execution is completed, return test data to the system server, where the system server sends the test data to the client.
The method provided by the embodiments of the present application is generally described below in conjunction with fig. 4-5.
Fig. 4 is a schematic structural diagram of a testing system for a reinforced switch according to an embodiment of the present application. And the system server sends the test instruction sent by the client to the reinforcement switch, the reinforcement switch responds to the test instruction to generate test data, and the test data is sent to the system server. And after receiving the test data, the system server sends the test data to the client.
The system Server may be a network (Web) Server, and in this embodiment of the application, a set of Browser/Server mode structure (Browser/Server, B/S) general Web Server may be developed based on a professional software development technology.
As shown in fig. 5, the timing chart of a method for testing a hardened switch according to an embodiment of the present application includes S401-S406.
S401, the client responds to the selection of the test items by the user and sends a test instruction to the system server.
Illustratively, after the user connects the tester, the hardened switch, the network management device, and other devices and builds the test environment of the hardened switch, the client may send a test instruction to the system server in response to the user selecting a test item.
Wherein the network management device may be a computer device. The test instruction corresponds to the test item, and the client can respond to the selection of the test item by the user, generate the test instruction corresponding to the test item and send the test instruction to the system server.
The user can log in the reinforced switch test system through the client browser, and select test items to be tested in a display interface of the client so that the client can generate test instructions.
S402, the system server responds to the test instruction, calls a configuration interface of the reinforcement switch and sends the test instruction to the reinforcement switch.
The system server may communicate with a service program in the hardened switch after receiving the test instruction, and may call a configuration interface of the hardened switch and carry corresponding test instruction data.
S403, the reinforcement switch responds to the test instruction to generate test data corresponding to the test item.
For example, after receiving the test instruction, the hardened switch may execute a related program in the hardened switch system to generate test data.
S404, the reinforcement switch sends test data to the system server.
S405, the system server sends test data to the client.
S406, the client generates a test report based on the test data.
The client receives the test data returned by the system server, and according to the structure of the test data and a predefined test report template, a test report corresponding to the test data can be generated and presented to the user in a fixed format, so that the test project is completed. Wherein the test report may correspond to a type of test item.
In summary, in the present application, all the test items may be listed through the client, and through the visualization operation, the user may conveniently select which test items are specifically tested. Meanwhile, the mapping relation between the test items and the interface program interacted with the reinforcement switch is established, so that the test command can accurately reach the reinforcement switch and be executed. The mode of the test report is unified through the preset test report template, so that the user can check conveniently.
Through the method provided by the application, the test process of the reinforcement switch is more convenient and quick, the user is not required to manually input commands one by one in the reinforcement switch system to test, the test data corresponding to the test items can be obtained only by selecting the test items to be tested at the client, and meanwhile, the test data can be conveniently and intuitively presented to the user through the preset test report template. The method provided by the application can help the user to complete the test work faster and better, and the test efficiency is greatly improved.
The embodiment of the application provides a reinforced switch testing system, which is applied to a system server, and the specific implementation manner of the reinforced switch testing system is consistent with the implementation manner and the achieved technical effect recorded in the embodiment of the method, and part of the contents are not repeated.
A ruggedized switch test system, comprising:
the device comprises a first acquisition module, a first sending module and a second sending module;
the first acquisition module is used for acquiring a test instruction sent by a client, wherein the test instruction is generated by the client in response to the selection of a test item by a user;
the first sending module is used for calling a configuration interface of the reinforcement switch based on the test instruction and sending the test instruction to the reinforcement switch;
the second sending module is configured to send test data to the client, where the test data is generated by the reinforcement switch executing a test task corresponding to the test item in response to the test instruction, and sent to the system server.
In one possible implementation manner, the first sending module includes:
the first acquisition unit and the first sending unit;
the first obtaining unit is configured to obtain a mapping relationship between the test item and an interface program of the reinforcement switch based on the test item corresponding to the test instruction;
the first sending unit is configured to invoke a configuration interface of the hardened switch corresponding to the test item based on the mapping relation, and send the test instruction to the hardened switch.
The embodiment of the application provides a system for testing a reinforced switch, which is applied to a client, and the specific implementation manner of the system is consistent with the implementation manner and the achieved technical effect recorded in the embodiment of the method, and part of the contents are not repeated.
A ruggedized switch test system, comprising:
comprising the following steps: the first generating module and the second acquiring module;
the first generation module is used for responding to the selection of the test items by a user and generating test instructions corresponding to the test items;
the second obtaining module is configured to send the test instruction to a system server, and obtain test data corresponding to the test item, where the test data is obtained by the reinforcement switch executing a test task corresponding to the test item based on the test instruction sent by the system server.
In one possible implementation, the system further includes: a report generation module;
the report generation module is used for generating a test report corresponding to the test data according to the structure of the test data and a preset test report template.
The embodiment of the application provides a reinforced switch test system, which is applied to a reinforced switch, and the specific implementation manner of the reinforced switch test system is consistent with the implementation manner and the achieved technical effect recorded in the embodiment of the method, and part of the contents are not repeated.
A ruggedized switch test system, comprising:
the device comprises a third acquisition module, a second generation module and a third sending module;
the third acquisition module is used for acquiring a test instruction sent by the system server, wherein the test instruction is generated by the client in response to the selection of a test item by a user;
the second generation module is used for responding to the test instruction to execute the test task corresponding to the test item and generating test data;
and the third sending module is used for sending the test data to the client through the system server.
In one possible implementation manner, the second generating module includes:
a calling unit and a generating unit;
the calling unit is used for responding to the test instruction and calling a function corresponding to the test parameter in the test instruction;
the generating unit is used for executing the test tasks corresponding to the test items based on the test parameter corresponding functions to generate test data.
In one possible implementation, the test tasks include at least one of configuring an Internet Protocol (IP) address to the switch, configuring a Media Access Control (MAC) address to the switch, turning on port network communications and turning off port network communications.
The embodiment of the application provides a test system for a reinforcement switch, which is characterized in that a system server acquires a test instruction sent by a client, a configuration interface of the reinforcement switch is called based on the test instruction, the test instruction is sent to the reinforcement switch, and test data sent by the reinforcement switch are acquired. The test instruction is generated by the client side in response to the selection of a test item by a user, and the test data are obtained by the reinforcement switch in response to the test instruction to execute a test task corresponding to the test item. According to the method and the device, the test instruction can be generated based on the selection of the user to the test item, the test data corresponding to the test item can be obtained based on the test instruction, the user does not need to manually input the test command corresponding to the test item to test, and the test efficiency can be effectively improved.
An embodiment of the present application provides an electronic device, including: a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the steps of a hardened switch test method as described above according to instructions in the program code.
Embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a method for testing a hardened switch as described above.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment is mainly described in a different point from other embodiments. In particular, for the apparatus and system embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, with reference to the description of the method embodiments in part. The above-described apparatus and system embodiments are merely illustrative, in which elements illustrated as separate elements may or may not be physically separate, and elements illustrated as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing is merely one specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for testing a ruggedized switch, the method being applied to a system server and comprising:
acquiring a test instruction sent by a client, wherein the test instruction is generated by the client in response to the selection of a test item by a user;
calling a configuration interface of a reinforcement switch based on the test instruction, and sending the test instruction to the reinforcement switch;
and sending test data to the client, wherein the test data is generated by the reinforcement switch responding to the test instruction to execute the test task corresponding to the test item and is sent to the system server.
2. The method of claim 1, wherein the invoking the configuration interface of the hardened switch based on the test instruction, the sending the test instruction to the hardened switch, comprises:
based on the test items corresponding to the test instructions, obtaining the mapping relation between the test items and the interface program of the reinforcement switch;
and calling a configuration interface of the reinforcement switch corresponding to the test item based on the mapping relation, and sending the test instruction to the reinforcement switch.
3. A method for testing a hardened switch, applied to a client, comprising:
responding to the selection of a user to test items, and generating a test instruction corresponding to the test items;
and sending the test instruction to a system server to obtain test data corresponding to the test item, wherein the test data is obtained by the reinforcement switch executing a test task corresponding to the test item based on the test instruction sent by the system server.
4. The method of claim 3, wherein the sending the test instruction to the system server, after obtaining the test data corresponding to the test item, further comprises:
and generating a test report corresponding to the test data according to the structure of the test data and a preset test report template.
5. A method for testing a ruggedized switch, the method being applied to the ruggedized switch and comprising:
acquiring a test instruction sent by a system server, wherein the test instruction is generated by a client in response to the selection of a test item by a user;
responding to the test instruction to execute the test task corresponding to the test item, and generating test data;
and sending the test data to the client through the system server.
6. The method of claim 5, wherein the generating test data in response to the test instruction executing the test task corresponding to the test item comprises:
responding to the test instruction, and calling a test parameter corresponding function in the test instruction;
and executing the test tasks corresponding to the test items based on the test parameter corresponding functions to generate test data.
7. The method of claim 5, wherein the test tasks include at least one of configuring an internet protocol, IP, address to the switch, configuring a media access control, MAC, address to the switch, turning on port network communications, and turning off port network communications.
8. A ruggedized switch test system, for use with a system server, comprising:
the device comprises a first acquisition module, a first sending module and a second sending module;
the first acquisition module is used for acquiring a test instruction sent by a client, wherein the test instruction is generated by the client in response to the selection of a test item by a user;
the first sending module is used for calling a configuration interface of the reinforcement switch based on the test instruction and sending the test instruction to the reinforcement switch;
the second sending module is configured to send test data to the client, where the test data is generated by the reinforcement switch executing a test task corresponding to the test item in response to the test instruction, and sent to the system server.
9. An electronic device, the electronic device comprising: a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the steps of a method for testing a hardened switch according to any of claims 1-7 according to instructions in the program code.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of a method for testing a hardened switch according to any of claims 1-7.
CN202311724623.9A 2023-12-14 2023-12-14 Reinforced switch testing method, system, electronic equipment and storage medium Pending CN117527664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311724623.9A CN117527664A (en) 2023-12-14 2023-12-14 Reinforced switch testing method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311724623.9A CN117527664A (en) 2023-12-14 2023-12-14 Reinforced switch testing method, system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117527664A true CN117527664A (en) 2024-02-06

Family

ID=89762734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311724623.9A Pending CN117527664A (en) 2023-12-14 2023-12-14 Reinforced switch testing method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117527664A (en)

Similar Documents

Publication Publication Date Title
CN109634728B (en) Job scheduling method and device, terminal equipment and readable storage medium
CN109933522B (en) Test method, test system and storage medium for automatic case
WO2018006789A1 (en) Parameter checking method and apparatus, and network management server and computer storage medium
US20150100829A1 (en) Method and system for selecting and executing test scripts
CN109460223B (en) API gateway management system and method thereof
US20150100832A1 (en) Method and system for selecting and executing test scripts
CN107241315B (en) Access method and device of bank gateway interface and computer readable storage medium
US20150100830A1 (en) Method and system for selecting and executing test scripts
US20150100831A1 (en) Method and system for selecting and executing test scripts
CN112187933B (en) Method and system for monitoring services in multi-architecture cloud platform
CN114064152A (en) Embedded multi-core debugging system based on dynamic loading and debugging method thereof
US20210344679A1 (en) Feedback framework
CN101699403A (en) Method for graphically installing distributed system
CN112115044A (en) Automatic testing method and system for electric power information communication equipment
WO2014058636A2 (en) Model-based configuration capture and replay in a converged infrastructure system to support remote troubleshooting
CN113590593A (en) Method and device for generating data table information, storage medium and electronic device
CN117041111A (en) Vehicle cloud function test method and device, electronic equipment and storage medium
CN117527664A (en) Reinforced switch testing method, system, electronic equipment and storage medium
CN112199270B (en) Program testing method, device, equipment and medium
CN113220586A (en) Automatic interface pressure test execution method, device and system
CN112416995A (en) Data statistical method and device, computer equipment and storage medium
WO2017197829A1 (en) Test information management method and apparatus, and test case execution system and device
CN113407440B (en) Testing system and method for wireless communication module
CN116909581B (en) HBase service multi-instance management method, device, equipment and storage medium
CN117130318B (en) Industrial data acquisition method, device, system and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination