Test method, device, computer equipment and storage medium

By obtaining and parsing management library information files, displaying the test interface and responding to user operations, visual management of BMC test objects is achieved, which solves the problem of low test efficiency caused by manual input of instructions by operation and maintenance personnel, and improves test efficiency and user experience.

CN115718682BActive Publication Date: 2024-10-18SUMA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211452424.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-21
Publication Date
2024-10-18
Estimated Expiration
2042-11-21

AI Technical Summary

Technical Problem

When operation and maintenance personnel use the SNMP protocol to conduct BMC testing, they need to manually enter a large number of parameters and instructions, resulting in low testing efficiency.

Method used

Provides a testing method that achieves visual management and automated test operations of test objects by obtaining the management library information file of the test object, displaying the test interface, and responding to user operations to parse and display the management library information.

Benefits of technology

It improves the testing efficiency of test objects, simplifies the testing process, reduces the resource consumption of non-standard file parsing, and ensures the correctness of test operations and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115718682B_ABST
    Figure CN115718682B_ABST
Patent Text Reader

Abstract

The present application relates to a test method, device, computer equipment, storage medium and computer program product. The method comprises: obtaining a management library information file of a test object, the management library information file comprises structural information of the test object, the test object comprises a plurality of test nodes, and the test node comprises at least one available test instruction; based on each test node of the test object and each test instruction of each test node, a test interface is displayed; in response to a trigger operation on the identification information of a target test node, identification information of a plurality of test instructions corresponding to the target test node is displayed on the test interface; in response to a trigger operation on the identification information of the target test instruction, a target test operation corresponding to the target test instruction is performed on the test object. By adopting this method, visual management of the test object can be realized, parsing and display of the management library information file can be realized, and the test efficiency of the test object can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of testing technology, and in particular to a testing method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] SNMP (Simple Network Management Protocol) is an application layer protocol in the TCP / IP five-layer protocol, used for network management. Because the SNMP protocol is simple and reliable, it has been welcomed by many manufacturers and has become the most widely used network management protocol. BMC (Baseboard Management Controller) can automatically monitor the status of the system based on SNMP protocol communication. The SNMP protocol provides three basic operation commands for controlling the test object (BMC).

[0003] In the related art, the operation and maintenance personnel generally use the command line to manually input the instructions provided by NET-SNMP. In this way, the operation and maintenance personnel need to be familiar with the BMC management library information file, and then manually add a large number of parameters in sequence. When testing, the instructions need to be manually re-entered and the parameters need to be modified, which makes the efficiency of testing the test object extremely low. Summary of the invention

[0004] Based on this, it is necessary to provide a testing method, apparatus, computer equipment, computer-readable storage medium and computer program product that can improve testing efficiency in response to the above technical problems.

[0005] In a first aspect, the present application provides a testing method. The method comprises:

[0006] Acquire a management library information file of a test object, wherein the management library information file includes structural information of the test object, wherein the test object includes a plurality of test nodes, and the test node includes at least one available test instruction;

[0007] Based on each of the test nodes of the test object and each of the test instructions of the test nodes, displaying a test interface, wherein the test interface includes identification information of a plurality of test nodes;

[0008] In response to a triggering operation on identification information of a target test node, displaying identification information of a plurality of test instructions corresponding to the target test node on the test interface;

[0009] In response to a triggering operation on identification information of a target test instruction, a target test operation corresponding to the target test instruction is performed on the test object.

[0010] Based on the above solution, visual management of test objects can be achieved, parsing and display of management library information files can be realized, and the test efficiency of test objects can be improved.

[0011] In one embodiment, the method further comprises:

[0012] Obtaining target feedback information obtained by the test object executing the target test instruction;

[0013] The target feedback information is displayed in the test interface.

[0014] In this embodiment, by sending a test instruction to the test object and displaying the target feedback information obtained after the test object executes the test instruction, the visibility of the test interface can be improved and the effectiveness of displaying the target feedback information can be improved.

[0015] In one embodiment, obtaining the management library information file of the test object includes:

[0016] Display a file upload interface, wherein the file upload interface includes a file upload area;

[0017] In response to a trigger operation on a file upload area, an initial file corresponding to the trigger operation is acquired, and when the initial file is of a target format type, the initial file is used as a management library information file of the test object.

[0018] In this embodiment, by determining the format of the file uploaded by the user, resource consumption caused by parsing files in non-standard formats can be reduced, and the efficiency of file uploading and file parsing can be improved.

[0019] In one of the embodiments, the test interface further includes an identity feature display area;

[0020] The step of performing a target test operation corresponding to the target test instruction on the test object in response to a trigger operation on the identification information of the target test instruction includes:

[0021] In response to an input operation on the identity feature display area, acquiring address information of the test object and version information of the test object;

[0022] In response to a trigger operation on the identification information of a target test instruction, an execution instruction is generated based on the target test instruction, the address information and the version information, and the execution instruction is sent to the test object, so that the test object executes the target test operation corresponding to the target test instruction.

[0023] In this embodiment, the correctness and accuracy of the test operation executed by the test object can be guaranteed, providing a guarantee for subsequent effective testing of the test object.

[0024] In one embodiment, the displaying of a test interface based on each of the test nodes of the test object and each of the test instructions of each of the test nodes includes:

[0025] Based on the multiple test nodes of the test object and the association relationship between the test nodes, an initial tree structure diagram corresponding to the test object is generated;

[0026] Based on the initial tree structure diagram and each of the test instructions corresponding to each of the test nodes, a target tree structure diagram is generated, and a test interface including the target tree structure diagram is displayed.

[0027] In this embodiment, the effectiveness of the test interface display is improved, which facilitates the user to issue test instructions and improves the user experience.

[0028] In one embodiment, the file upload interface further includes a monitoring option; the method further includes:

[0029] In response to a triggering operation on the monitoring option, generating a monitoring instruction;

[0030] Based on the monitoring instruction, obtaining the target format information of the test object at intervals of a preset time period;

[0031] In a case where the target format information of the test object is received, the target format information of the test object is displayed.

[0032] In this embodiment, continuous monitoring of the test object can be achieved to ensure the timeliness of acquisition of SNMP information of the test object.

[0033] In a second aspect, the present application also provides a testing device. The device comprises:

[0034] An acquisition module, used for acquiring a management library information file of a test object, wherein the management library information file includes structural information of the test object, wherein the test object includes a plurality of test nodes, and wherein the test node includes at least one available test instruction;

[0035] A first display module, configured to display a test interface based on each of the test nodes of the test object and each of the test instructions of each of the test nodes, wherein the test interface includes identification information of a plurality of test nodes;

[0036] A second display module, configured to display identification information of a plurality of test instructions corresponding to the target test node on the test interface in response to a triggering operation on the identification information of the target test node;

[0037] The test module is used to perform a target test operation corresponding to the target test instruction on the test object in response to a trigger operation on the identification information of the target test instruction.

[0038] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0039] Acquire a management library information file of a test object, wherein the management library information file includes structural information of the test object, wherein the test object includes a plurality of test nodes, and the test node includes at least one available test instruction;

[0040] Based on each of the test nodes of the test object and each of the test instructions of the test nodes, displaying a test interface, wherein the test interface includes identification information of a plurality of test nodes;

[0041] In response to a triggering operation on identification information of a target test node, displaying identification information of a plurality of test instructions corresponding to the target test node on the test interface;

[0042] In response to a triggering operation on identification information of a target test instruction, a target test operation corresponding to the target test instruction is performed on the test object.

[0043] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0044] Acquire a management library information file of a test object, wherein the management library information file includes structural information of the test object, wherein the test object includes a plurality of test nodes, and the test node includes at least one available test instruction;

[0045] Based on each of the test nodes of the test object and each of the test instructions of the test nodes, displaying a test interface, wherein the test interface includes identification information of a plurality of test nodes;

[0046] In response to a triggering operation on identification information of a target test node, displaying identification information of a plurality of test instructions corresponding to the target test node on the test interface;

[0047] In response to a triggering operation on identification information of a target test instruction, a target test operation corresponding to the target test instruction is performed on the test object.

[0048] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0049] Acquire a management library information file of a test object, wherein the management library information file includes structural information of the test object, wherein the test object includes a plurality of test nodes, and the test node includes at least one available test instruction;

[0050] Based on each of the test nodes of the test object and each of the test instructions of the test nodes, displaying a test interface, wherein the test interface includes identification information of a plurality of test nodes;

[0051] In response to a triggering operation on identification information of a target test node, displaying identification information of a plurality of test instructions corresponding to the target test node on the test interface;

[0052] In response to a triggering operation on identification information of a target test instruction, a target test operation corresponding to the target test instruction is performed on the test object.

[0053] The above-mentioned test method, device, computer equipment, storage medium and computer program product, the method includes: obtaining the management library information file of the test object, the management library information file includes the structural information of the test object, the test object includes multiple test nodes, and the test node includes at least one available test instruction; based on each test node of the test object and each test instruction of each test node, displaying the test interface, the test interface includes identification information of multiple test nodes; in response to the triggering operation of the identification information of the target test node, displaying the identification information of multiple test instructions corresponding to the target test node on the test interface; in response to the triggering operation of the identification information of the target test instruction, performing the target test operation corresponding to the target test instruction on the test object. By adopting this method, visual management of the test object can be realized, parsing and display of the management library information file can be realized, and the test efficiency of the test object can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 A schematic diagram of a test method in one embodiment;

[0055] Figure 2 A schematic diagram of a flow chart of a step of displaying target feedback information in an embodiment;

[0056] Figure 3 A schematic diagram of a process for obtaining a management library information file in an embodiment;

[0057] Figure 4 A schematic diagram of a flow chart showing steps of a test interface in an embodiment;

[0058] Figure 5 A schematic diagram of a flow chart of a step of displaying target format information in one embodiment;

[0059] Figure 6 A schematic diagram of a file upload interface in one embodiment;

[0060] Fig. 7A is a schematic diagram of a test interface including a target tree structure diagram in one embodiment;

[0061] Figure 7B A schematic diagram of a file upload interface in one embodiment;

[0062] Figure 7C A schematic diagram of a file upload interface in one embodiment;

[0063] Figure 8 is a structural block diagram of a testing device in one embodiment;

[0064] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0065] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0066] In one embodiment, Figure 1 As shown, a test method is provided. This embodiment uses the method applied to a terminal as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. The above-mentioned terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be implemented with an independent server or a server cluster composed of multiple servers. In this embodiment, the test method includes the following steps:

[0067] Step 102: Obtain the management library information file of the test object.

[0068] Specifically, the management library information file includes structural information of the test object. The management library information (MIB, Management Information Base) file can be a file used to characterize the association relationship between multiple test nodes contained in the test object. It can be a file in a preset format. The preset format can be a format with a suffix of mib, that is, the file with a suffix of mib can be used as the management library information file of the test object.

[0069] The test object includes multiple test nodes, and the test node includes at least one available test instruction. The test object can be a product to be tested, for example, a baseboard management controller (BMC). BMC is a micro system independent of the machine, which can be used to monitor the temperature, fan, health status, voltage, etc. of the machine, and make corresponding adjustments to keep the machine in a normal state.

[0070] The structural information of the test object may be the association between each test node in the BMC. The test instructions corresponding to each test node may include GET instructions, SET instructions, and TRAP instructions. The GET instruction is used by the management station to read the value of the object at the agent. The SET instruction can enable the management station to set the value of the object at the agent. The TRAP instruction can enable the agent to actively notify the management station of important events.

[0071] Based on the above description, after determining the test object that needs to be tested, the terminal can obtain the management library information file corresponding to the test object.

[0072] Step 104: displaying a test interface based on each test node of the test object and each test instruction of each test node.

[0073] The test interface includes identification information of multiple test nodes.

[0074] Specifically, after obtaining the management library information file of the test object, the terminal can parse the management library information file to determine the structural information of the test object, that is, each test node contained in the test object, the test instructions corresponding to each test node, and the association relationship between each test node to date. Based on this, the terminal can generate a test interface corresponding to the test object based on the determined test nodes, the test instructions corresponding to each test node, and the association relationship between each test node to date, and display the test interface corresponding to the test object on the terminal.

[0075] Step 106 , in response to a triggering operation on the identification information of the target test node, displaying identification information of multiple test instructions corresponding to the target test node on the test interface.

[0076] The test interface can display identification information of multiple test nodes. The target test node can be a test node determined by the user based on the needs of the actual application scenario, or a test node determined randomly, or a test node determined based on a preset test strategy. The triggering operation for the identification information of the target test node can be a click operation, a touch operation, etc.

[0077] Specifically, the user performs a trigger operation on the identification information of the target test node, and the terminal responds to the trigger operation, determines the target test node determined by the trigger operation, and can query one or more target test instructions corresponding to the identification of the target test node in the association relationship table between identification information and instructions based on the identification of the target test node, and display the identification information of the above-mentioned multiple target test instructions on the test interface of the terminal.

[0078] In one example, the association table between identification information and instructions can be generated by the terminal based on the management library information file of the test object. The terminal displays the identification information of multiple test instructions corresponding to the target test node on the test interface in a pop-up window, for example, the pop-up window can be a floating pop-up window, etc.

[0079] Step 108 , in response to a trigger operation on the identification information of the target test instruction, performing a target test operation corresponding to the target test instruction on the test object.

[0080] Specifically, the user can determine the target test instruction based on actual application requirements, and trigger the identification information corresponding to the target test instruction. In this way, the terminal can determine the target test instruction corresponding to the trigger operation in response to the trigger operation, and execute the target test operation corresponding to the target test instruction on the test object.

[0081] In one example, the user performs a trigger operation on the identification information of the GET instruction, so that the terminal can perform a GET operation on the target test node in the test object based on the trigger operation.

[0082] The above-mentioned test method obtains the management library information file of the test object, the management library information file includes the structural information of the test object, the test object includes multiple test nodes, and the test node includes at least one available test instruction. Based on each test node of the test object and each test instruction of each test node, a test interface is displayed, and the test interface includes identification information of multiple test nodes. In response to the triggering operation of the identification information of the target test node, the identification information of multiple test instructions corresponding to the target test node is displayed on the test interface. In response to the triggering operation of the identification information of the target test instruction, the target test operation corresponding to the target test instruction is performed on the test object. By adopting this method, visual management of the test object can be realized, parsing and display of the management library information file can be realized, and the test efficiency of the test object can be improved.

[0083] In one embodiment, Figure 2 As shown, the test method also includes:

[0084] Step 202: Obtain target feedback information obtained by the test object executing the target test instruction.

[0085] Step 204: display target feedback information in the test interface.

[0086] The target feedback information is feedback from the test object, and is information generated after the test object executes the test operation corresponding to the target test instruction.

[0087] Specifically, based on the user's triggering operation on the target test instruction, the terminal can perform the test operation corresponding to the target test instruction on the target test node of the test object. The specific process of executing the test operation can be: the terminal obtains the SNMP OID information of the test node and the configuration information corresponding to the test instruction, generates an execution instruction based on the SNMP OID information and the configuration information, and sends the execution instruction to the test object (for example, it can be a BMC), so that the test object executes the execution instruction when receiving the execution instruction, and generates an execution result, that is, the target feedback information. Based on this, the test object can feed back the target feedback information to the terminal.

[0088] Optionally, after receiving the target feedback information returned by the test object, the terminal may display the target feedback information in a table format on the test interface.

[0089] In this embodiment, by sending a test instruction to the test object and displaying the target feedback information obtained after the test object executes the test instruction, the visibility of the test interface can be improved and the effectiveness of displaying the target feedback information can be improved.

[0090] In one embodiment, if Figure 3As shown, obtain the management library information file of the test object, including:

[0091] Step 302: Display the file upload interface.

[0092] Wherein, the file upload interface includes a file upload area;

[0093] Specifically, the file upload interface includes a file upload area; the file upload area may include a prompt information display area and a first option, the first option may be a display option of "click to upload", and the terminal may display a file upload interface including the file upload area.

[0094] Step 304, in response to the trigger operation on the file upload area, an initial file corresponding to the trigger operation is obtained, and when the initial file is of the target format type, the initial file is used as the management library information file of the test object.

[0095] The format of the uploaded file needs to be the standard format of the management library information file, for example, the suffix may be mib.

[0096] Specifically, the terminal responds to a trigger operation on the file upload area, obtains the initial file carried by the trigger operation, and determines the format of the initial file. When the format of the initial file is the standard format of the management library information file, the terminal can determine that the initial file is an upload file.

[0097] In this embodiment, by determining the format of the file uploaded by the user, resource consumption caused by parsing files in non-standard formats can be reduced, and the efficiency of file uploading and file parsing can be improved.

[0098] In one of the embodiments, the test interface further includes an identity feature display area;

[0099] In response to a trigger operation on identification information of a target test instruction, performing a target test operation corresponding to the target test instruction on a test object includes:

[0100] In response to an input operation on the identity feature display area, address information of the test object and version information of the test object are acquired.

[0101] The identity feature display area may include an address information display area for the test object and a version information display area for the test object. The version information of the test object is information used to characterize an updated version of the test object, such as v1, v2, v3, etc.

[0102] Specifically, based on the address information display area of ​​the test object and the version information display area of ​​the test object displayed on the terminal, the user can perform input operations on the address information display area, and the terminal can obtain the address information corresponding to the input operation, that is, the address information of the test object; similarly, the user can perform input operations on the version information display area, and the terminal can obtain the version information corresponding to the input operation, that is, the version information of the test object; the user can perform a trigger operation on the file upload area based on the prompt information displayed in the prompt information display area. In response to the trigger operation, the terminal can obtain the uploaded file corresponding to the trigger operation, that is, obtain the initial management library information file of the test object uploaded by the user.

[0103] In response to a trigger operation on the identification information of a target test instruction, an execution instruction is generated based on the target test instruction, address information and version information, and the execution instruction is sent to the test object, so that the test object executes the target test operation corresponding to the target test instruction.

[0104] Specifically, the terminal can obtain the configuration information input by the user in response to the user's triggering operation on the identification information of the target test instruction, and the configuration information includes address information and version information, so that the terminal can generate an execution instruction based on the address information, version information and the target test instruction. The terminal can send the generated execution instruction to the test object. After the test object receives the execution instruction, the execution instruction can be parsed, and based on the result of the parsing, the target test operation corresponding to the target test instruction contained in the execution instruction is executed.

[0105] In this embodiment, the correctness and accuracy of the test operation executed by the test object can be guaranteed, providing a guarantee for subsequent effective testing of the test object.

[0106] In one embodiment, Figure 4 As shown, the specific processing process of the step of "displaying the test interface based on each test node of the test object and each test instruction of each test node" includes:

[0107] Step 402: Generate an initial tree structure diagram corresponding to the test object based on multiple test nodes of the test object and the association relationship between the test nodes.

[0108] The association relationship between the test nodes may be the relationship between a parent node and a child node of the parent node.

[0109] Specifically, the terminal may determine the parent-child structure between the test nodes based on the parent-child association relationship between the test nodes, and generate an initial tree structure diagram corresponding to the test object.

[0110] Step 404 , based on the initial tree structure diagram and each test instruction corresponding to each test node, a target tree structure diagram is generated, and a test interface including the target tree structure diagram is displayed.

[0111] Specifically, the terminal can determine one or more test instructions corresponding to each test node based on the relevant information of each test instruction corresponding to each test node contained in the test object. In this way, the terminal can generate a target tree structure diagram based on the one or more test instructions corresponding to the determined test node and the initial tree structure diagram, and display a test interface including the target tree structure diagram.

[0112] In this embodiment, the effectiveness of the test interface display is improved, which facilitates the user to issue test instructions and improves the user experience.

[0113] In one embodiment, the file upload interface also includes a monitoring option. Figure 5 As shown, the test method also includes:

[0114] Step 502: Generate a monitoring instruction in response to a trigger operation on a monitoring option.

[0115] Specifically, the monitoring option may be a display control displayed on the file upload interface or the test interface, for example, a virtual button “SNMP TRAP switch”. In this way, the terminal may generate a monitoring instruction in response to the user's triggering operation on the monitoring option.

[0116] Step 504 : based on the monitoring instruction, obtaining the target format information of the test object at intervals of a preset time period, and displaying the target format information of the test object.

[0117] The preset time period may be a time length determined based on an actual application scenario, for example, thirty seconds, and the present application does not limit the specific value of the preset time period. The target format information may be SNMP information.

[0118] Specifically, the terminal can obtain the target format information generated by the test object at preset time intervals based on the monitoring instruction, and display the target format information on the test interface. For example, the terminal can parse the target format information and display the parsed target format information on the test interface.

[0119] In this embodiment, continuous monitoring of the test object can be achieved to ensure the timeliness of acquisition of SNMP information of the test object.

[0120] The specific implementation process of the above test method is described in detail below in conjunction with a specific embodiment:

[0121] SNMP is an application layer protocol in the TCP / IP five-layer protocol, used for network management. Because the SNMP protocol is simple and reliable, it has been welcomed by many manufacturers and has become the most widely used network management protocol. BMC can automatically monitor the status of the system based on SNMP protocol communication. The SNMP protocol provides three basic operation commands for controlling MIB objects, including Get, Set and Trap.

[0122] The present application provides a test method that can implement the test of the test object, specifically, it can implement the SNMP read and write function and the continuous monitoring function. When using the read and write function, the terminal can display the file upload interface, and the user can first upload the upload file (management library information file, mib file) of the test object. In this way, the terminal can generate a target tree structure diagram based on the overall structure of the test object in the management library information file, the test nodes contained in the overall structure, and the test instructions contained in each test node. The terminal can display a test interface corresponding to the target tree structure diagram, and the terminal can obtain the target test instruction in response to the user's trigger operation on the target test instruction of the test node. The terminal responds to the user's trigger operation on the address information display area and the trigger operation on the version information display area, and obtains the address information and version information entered by the user.

[0123] Based on the above solution, the terminal can generate an execution instruction based on the address information, version information and the target test instruction, and send the execution instruction to the test object so that the test object performs the test.

[0124] In one example, the terminal can obtain the overall structure of the Mib file and each instruction to form a tree diagram, and then the user selects the required information in the input box and drop-down box on the web page, such as the IP address of the BMC, the version of SNMP, etc., and finally selects the instruction to be sent in the tree diagram. Then the platform will send the instruction to the BMC through the SNMP protocol, and then receive the reply information from the BMC, parse the reply, and display the reply information on the test interface.

[0125] Specifically, the terminal needs to be configured with the test object (BMC) to ensure that the terminal can communicate with the test object. The terminal can display the file upload interface, such as Figure 6 As shown, the file upload interface may include an address information display area "BMCIP", and the displayed prompt information may be "Please enter BMCIP"; it may also include a version information display area, which may be a pop-up display interface, and the displayed prompt information may be "Select SNMP version"; it may also include a file upload virtual button, and the displayed prompt information may be "Click to upload, upload Mib file".

[0126] Optionally, the file upload interface may also include a “read-write group name” display area, a “read-only group name” display area, a “user name” display area, a “v3 authentication protocol” display area, a “v3 privacy protocol” display area, and a “v3 password” display area. The file upload interface may also have a target virtual button, and the prompt message on the target virtual button may be “Go!”.

[0127] In an example, if the test object is SNMP V1 or V2, the file upload interface also displays an editable "read-write community name" display area and a "read-only community name" display area. At this time, it is consistent with the corresponding information on the BMC and is used as information authentication for SNMP V1 or V2. Other configuration items do not need to be filled in at this time, and the configuration bar will become gray and uneditable. If SNMP V3 is selected, the "read-write community name" and "read-only community name" will become gray and uneditable. Due to the encryption characteristics of SNMP V3, the user information for setting this permission on the BMC needs to be filled in, including the user name, user password, authentication protocol, and privacy protocol.

[0128] Optionally, the test interface including the target tree structure diagram can be as follows Fig. 7A shown.

[0129] Specifically, in response to a user triggering operation on a sub-node in the test interface, the terminal can obtain the SNMP OID corresponding to the sub-node, and edit it into an instruction based on the above configuration information and the OID of the sub-node and submit it to the BMC. Figure 7B As shown, the terminal receives the target feedback information returned by the BMC and can display it on the test interface in a table format, where the table includes a name and data.

[0130] In one example, if Figure 7C As shown, the file upload interface also includes a monitoring option. The monitoring option can be a display control displayed on the file upload interface, for example, it can be a virtual button "SNMP TRAP switch". In this way, the terminal can generate a monitoring instruction in response to the user's trigger operation on the monitoring option. The SNMP information generated by the BMC will be received, parsed and presented on the web page by the tool.

[0131] In response to the triggering operation of the monitoring option, when the version information is SNMP V1 and V2, the terminal needs to obtain the group name; when the version information is SNMP V3, the terminal needs to obtain the user name, password, authentication protocol, and privacy protocol as required items, and change the "read-write group name" and "read-only group name" in the file upload interface to gray and uneditable state.

[0132] The present invention provides a testing method, which can realize the parsing and display of mib files, the sending and receiving of information of various versions of SNMP, and the continuous monitoring of BMC by SNMP.

[0133] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0134] Based on the same inventive concept, the embodiment of the present application also provides a test device for implementing the test method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more test device embodiments provided below can refer to the limitations on the test method above, and will not be repeated here.

[0135] In one embodiment, Figure 8 As shown, a testing device 800 is provided, including: an acquisition module 802, a first display module 804, a second display module 806 and a testing module 808, wherein:

[0136] The acquisition module 802 is used to acquire a management library information file of a test object, where the management library information file includes structural information of the test object. The test object includes multiple test nodes, and the test node includes at least one available test instruction.

[0137] A first display module 804, configured to display a test interface based on each test node of the test object and each test instruction of each test node, wherein the test interface includes identification information of multiple test nodes;

[0138] A second display module 806, configured to display identification information of a plurality of test instructions corresponding to the target test node on the test interface in response to a triggering operation on the identification information of the target test node;

[0139] The testing module 808 is used to perform a target testing operation corresponding to the target testing instruction on the test object in response to a triggering operation on the identification information of the target testing instruction.

[0140] Each module in the above-mentioned test device 800 can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module above.

[0141] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store test data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a test method is implemented.

[0142] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0143] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0144] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0145] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0146] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0147] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0148] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0149] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A testing method, characterized in that: The method comprises: Acquire a management library information file of a test object, wherein the management library information file includes structural information of the test object, wherein the test object includes a plurality of test nodes, and the test node includes at least one available test instruction; Based on each of the test nodes of the test object and each of the test instructions of the test nodes, displaying a test interface, wherein the test interface includes identification information of a plurality of test nodes; In response to a triggering operation on identification information of a target test node, displaying identification information of a plurality of test instructions corresponding to the target test node on the test interface; In response to a trigger operation on identification information of a target test instruction, performing a target test operation corresponding to the target test instruction on the test object; The step of obtaining the management library information file of the test object includes: Display a file upload interface, wherein the file upload interface includes a file upload area; In response to a trigger operation on a file upload area, an initial file corresponding to the trigger operation is acquired, and when the initial file is of a target format type, the initial file is used as a management library information file of the test object.

2. The method according to claim 1, characterized in that The method further comprises: Obtaining target feedback information obtained by the test object executing the target test instruction; The target feedback information is displayed in the test interface.

3. The method according to claim 1, characterized in that: The test interface also includes an identity feature display area; The step of performing a target test operation corresponding to the target test instruction on the test object in response to a trigger operation on the identification information of the target test instruction includes: In response to an input operation on the identity feature display area, acquiring address information of the test object and version information of the test object; In response to a trigger operation on the identification information of a target test instruction, an execution instruction is generated based on the target test instruction, the address information and the version information, and the execution instruction is sent to the test object, so that the test object executes the target test operation corresponding to the target test instruction.

4. The method according to claim 1, characterized in that The displaying of a test interface based on each of the test nodes of the test object and each of the test instructions of each of the test nodes includes: Based on the multiple test nodes of the test object and the association relationship between the test nodes, an initial tree structure diagram corresponding to the test object is generated; Based on the initial tree structure diagram and each of the test instructions corresponding to each of the test nodes, a target tree structure diagram is generated, and a test interface including the target tree structure diagram is displayed.

5. The method according to claim 1, characterized in that The file upload interface also includes a monitoring option; the method also includes: In response to a triggering operation on the monitoring option, generating a monitoring instruction; Based on the monitoring instruction, obtaining the target format information of the test object at intervals of a preset time period; In a case where the target format information of the test object is received, the target format information of the test object is displayed.

6. A testing device, characterized in that: The device comprises: An acquisition module, used for acquiring a management library information file of a test object, wherein the management library information file includes structural information of the test object, wherein the test object includes a plurality of test nodes, and wherein the test node includes at least one available test instruction; A first display module, configured to display a test interface based on each of the test nodes of the test object and each of the test instructions of each of the test nodes, wherein the test interface includes identification information of a plurality of test nodes; A second display module, configured to display identification information of a plurality of test instructions corresponding to the target test node on the test interface in response to a triggering operation on the identification information of the target test node; A test module, configured to perform a target test operation corresponding to the target test instruction on the test object in response to a trigger operation on the identification information of the target test instruction; The acquisition module is specifically used to display a file upload interface, which includes a file upload area; in response to a trigger operation on the file upload area, an initial file corresponding to the trigger operation is acquired, and when the initial file is of a target format type, the initial file is used as a management library information file of the test object.

7. The device according to claim 6, characterized in that The test interface also includes an identity feature display area; the test module is specifically used to: In response to an input operation on the identity feature display area, the address information of the test object and the version information of the test object are obtained; in response to a trigger operation on the identification information of a target test instruction, an execution instruction is generated based on the target test instruction, the address information and the version information, and the execution instruction is sent to the test object, so that the test object executes the target test operation corresponding to the target test instruction.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Testing method and device

    CN111984476A