Server test method and device, electronic equipment and storage medium

By obtaining and verifying the customized standards of the server and using multimodal networks to perform server testing, the problem of low testing efficiency of multimodal network servers is solved, targeted testing and security verification are achieved, and testing efficiency and accuracy are improved.

CN119226058APending Publication Date: 2024-12-31INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411215206.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

During the server testing process in a multimodal network, as the server configuration increases, the testing efficiency is inefficient, and multiple types of data cannot be supported. The diagnostic refresh process is cumbersome, resulting in low testing efficiency.

Method used

By obtaining customized standards for the server to be tested, targeted testing tasks are generated, and data identification and processing of the multimodal network are used for review. After verification is passed, the server is guided into the test system to generate test results. If it fails, the maintenance plan and verification are determined. Customize the standards and jump to the next test task, saving time to reissue the test task.

Benefits of technology

Targeted testing for different models of servers is realized, testing security is ensured, testing efficiency is improved, testing tasks are saved and time to reissue test tasks and refresh, and ensuring the correctness of customized standards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119226058A_ABST
    Figure CN119226058A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a server testing method and device, electronic equipment and a storage medium. The method comprises the steps that a current testing task for a to-be-tested server is acquired; the to-be-tested server is guided to enter a test system, so that the test system tests the to-be-tested server, and a test result is generated and output; obtaining the test result; if the test fails, determining a maintenance scheme based on the test result, and checking the customized standard to generate a checking result; the maintenance scheme comprises a maintenance mode and a jump path of a next test task of the current test task; and outputting the maintenance mode and the checking calculation result, and triggering the next test task based on the jump path. According to the embodiment of the invention, the time for re-issuing the test task and refreshing from the first diagnosis is saved, and the test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a server testing method, device, electronic equipment and storage medium. Background Art

[0002] Multimodal network refers to a network architecture that can fuse and integrate information from different modes (text, images, audio, video, etc.) to achieve more efficient and comprehensive data processing and transmission. This network architecture can support the integration of multiple network technologies, including traditional TCP / IP (Transmission Control Protocol / Internet Protocol) networks, named data networks, geolocation networks, etc., to provide richer and more flexible network services.

[0003] For servers in multimodal networks, during the life cycle of the test, at the beginning of each stage, server configuration diagnosis needs to be completed before it can be delivered to the next stage for testing. As server configurations become increasingly diverse and complex, the acceptance criteria for various configurations in the production process are becoming more and more complicated. On servers with different configurations, the target control scope and steps required for diagnostic refresh are different. Various forms of refresh tools, scripts, images, etc. cannot support multiple types of data. Moreover, when the test fails, the test task needs to be reissued, and it needs to be refreshed from the first diagnosis, resulting in low server testing efficiency. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a server testing method, device, electronic device and storage medium that overcome the above problems or at least partially solve the above problems.

[0005] In a first aspect, an embodiment of the present invention discloses a server testing method, the method comprising:

[0006] Acquire a current test task for the server to be tested; the current test task is generated based on an admission standard in a customized standard of the server to be tested;

[0007] Directing the server to be tested into a test system so that the test system tests the server to be tested and generates and outputs a test result;

[0008] Obtaining the test result;

[0009] If the test fails, a maintenance plan is determined based on the test result, and the customized standard is verified to generate a verification result; the maintenance plan includes a maintenance method and a jump path for the next test task of the current test task;

[0010] The maintenance method and the verification result are output, and the next test task is triggered based on the jump path.

[0011] Optionally, also include:

[0012] If the test is successful, the exit criteria in the customized criteria are obtained;

[0013] A retest task for the server to be tested is generated based on the admission criteria, and the retest task is triggered.

[0014] Optionally, also include:

[0015] Acquire test data of the server to be tested;

[0016] A test report is generated based on the test data.

[0017] Optionally, before obtaining the current test task for the server to be tested, the method further includes:

[0018] Sending an acquisition request for acquiring the physical machine location of the server to be tested to a server operation center, so that the operation center responds to the acquisition request, acquires the physical machine location, and returns the physical machine location;

[0019] Obtaining the physical machine location;

[0020] Distributing a direct switch route to the server to be tested based on the physical machine location to establish a direct connection with the server to be tested;

[0021] Deploy a virtualized preinstalled container, and deploy the server to be tested in the virtualized preinstalled container;

[0022] The configuration information of the server to be tested is obtained from the server to be tested.

[0023] Optionally, the step of guiding the server to be tested into a test system includes:

[0024] Auditing the server to be tested by using data recognition and processing of a multimodal network;

[0025] If the review is passed, the map is refreshed based on the model of the server to be tested, and a refresh acceptance copy of the server to be tested is generated;

[0026] Writing the refresh acceptance copy and the customized standard into a startup resource management pool for authentication;

[0027] If the writing is successful, the test mode of the server to be tested is obtained; the test mode includes a filling mode, a diskless mode and a pre-installed mode;

[0028] The server to be tested is guided into a test system using the test mode.

[0029] Optionally, determining a maintenance plan based on the test result, and verifying the customized standard to generate a verification result includes:

[0030] Register the service interface used to determine the maintenance plan;

[0031] Calling the monitoring module to obtain the test result through the service interface;

[0032] Performing a search pattern match between the test result and a maintenance solution library; wherein the maintenance solution library includes at least one preset maintenance solution;

[0033] If there is a matching item, the matching item is determined as a maintenance plan;

[0034] Inputting a snapshot of the test item with abnormalities in the test result into a repair function, so that the repair function uses the snapshot to verify the customized standard;

[0035] If the verification is passed, a first verification result of passing the verification is generated;

[0036] If the verification fails, a second verification result indicating that the verification fails is generated.

[0037] Optionally, obtaining a current test task for the server to be tested includes:

[0038] Acquire a customization standard corresponding to the server to be tested from a preset customization standard library;

[0039] Generate a current test task for the server to be tested based on the customized standard;

[0040] The customized standard library is generated in the following way:

[0041] Obtaining the production line standard of the server to be stored; the production line standard is set by the manufacturer of the server to be stored and is used to characterize the hardware parameters of the server to be tested;

[0042] Based on the production line standard of the server to be stored, and in accordance with the test requirements of the server to be stored, a customization standard of the server to be stored is generated;

[0043] The customization standards of the server to be stored in the customization standard library.

[0044] In a second aspect, an embodiment of the present invention discloses a server testing device, the device comprising:

[0045] An acquisition module, used for acquiring a current test task for the server to be tested; the current test task is generated based on an admission standard in a customized standard of the server to be tested;

[0046] A boot module, used to guide the server to be tested into a test system, so that the test system tests the server to be tested, generates and outputs a test result;

[0047] The acquisition module is further used to acquire the test result;

[0048] A determination module, for determining a maintenance plan based on the test result if the test fails, and verifying the customized standard to generate a verification result; the maintenance plan includes a maintenance method and a jump path for the next test task of the current test task;

[0049] An output module is used to output the maintenance method and the verification result, and trigger the next test task based on the jump path.

[0050] In a third aspect, the present invention further discloses an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the above-mentioned server testing method when executed by the processor.

[0051] In a fourth aspect, the present invention further discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the server testing method as described above are implemented.

[0052] The embodiments of the present invention include the following advantages:

[0053] For different models of servers, before testing, corresponding customized standards can be generated according to the production line standards of various models of servers provided by the manufacturer, and corresponding test tasks can be generated through customized standards, so that targeted tests can be performed on different models of servers. When testing the server to be tested, the server to be tested is verified through the characteristics of the multimodal network. After the verification is passed, it can be guided into the test system for testing according to the test mode of the server to be tested, which ensures the safety of the test. When the test fails, the corresponding maintenance plan can be determined according to the test results to solve the problem that caused the test failure. At the same time, the customized standards of the server to be tested can also be verified according to the test results. If there is an abnormality in the customized standard, the customized standard can be modified to ensure the correctness of the customized standard. After determining the maintenance method and verification results, the maintenance method and verification results can be output for display. At the same time, the jump path is used to trigger the next test task, so as to execute the next test task, saving the time of reissuing the test task and refreshing from the first diagnosis, and improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 is a flow chart of the steps of a server testing method provided by an embodiment of the present invention;

[0055] Figure 2 is a schematic diagram of a framework of a target object provided by an embodiment of the present invention;

[0056] Figure 3 It is a schematic diagram of the logic of generating a customized standard library provided by an embodiment of the present invention;

[0057] Figure 4 It is a logical schematic diagram for determining a maintenance plan and verifying a customized standard provided by an embodiment of the present invention;

[0058] Figure 5 is a flow chart of steps of another server testing method provided by an embodiment of the present invention;

[0059] Figure 6 It is a logical schematic diagram of guiding a server to be tested into a test system provided by an embodiment of the present invention;

[0060] Figure 7 is a flow chart of steps of another server testing method provided by an embodiment of the present invention;

[0061] Figure 8 It is a logical schematic diagram of generating a retest task provided by an embodiment of the present invention;

[0062] Fig. 9 It is a logical schematic diagram of generating a test report provided by an embodiment of the present invention;

[0063] Fig.10 is a structural block diagram of an electronic device provided by an embodiment of the present invention;

[0064] Fig.11 It is a structural block diagram of a computer-readable storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0065] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0066] like Figure 1 , shows a flow chart of the steps of a server testing method provided by an embodiment of the present invention, which can be applied to a target object for testing a server, the server can be a server in a multimodal network, the target object includes but is not limited to a system, an application client, a device, wherein the framework of the target object is as follows Figure 2 As shown, five logical modules may be included: an acceptance standard management and control module, a test task execution module, a central control device module, an equipment maintenance module and a test efficiency statistics module; the acceptance standard management and control module interacts with the equipment maintenance module for data, and sends data to the test task execution module; the test task execution module interacts with the equipment maintenance module for data; the test task execution module sends data to the test efficiency statistics module; the central control device module sends data to the test task execution module; the method may include the following steps:

[0067] Step 101: Obtain the current test task for the server to be tested.

[0068] After the server to be tested is determined, the test task for the server to be tested can be obtained (for the sake of distinction, it is recorded as "current test task"). The current test task can be obtained when an acquisition instruction is received, or when a certain preset condition is met, or it can be obtained in other ways. In actual applications, the specific method of triggering the acquisition of the current test task can be set according to actual needs, and the embodiment of the present invention does not limit this.

[0069] In one embodiment, obtaining the current test task for the server to be tested includes:

[0070] Acquire a customization standard corresponding to the server to be tested from a preset customization standard library;

[0071] Generate a current test task for the server to be tested based on the customized standard;

[0072] The customized standard library is generated in the following way:

[0073] Acquire the production line standard of the server to be stored; the production line standard is set by the manufacturer of the server to be stored and is used to characterize the hardware parameters of the server to be stored;

[0074] Based on the production line standard of the server to be stored, and in accordance with the test requirements of the server to be stored, a customization standard of the server to be stored is generated;

[0075] The customization standards of the server to be stored in the customization standard library.

[0076] Specifically, since servers have different models, the customized testing standards for servers of different models are also different. Therefore, the customized standards corresponding to the server to be tested can be obtained from the preset customized standards library, and then the current test tasks of the server to be tested are generated using the customized standards.

[0077] The preset customization standard library includes at least one customization standard and a server corresponding to each customization standard. Thus, when obtaining the customization standard, the customization standard can be obtained by matching based on the server.

[0078] Furthermore, a preset custom standard library can be generated as follows:

[0079] Reference Figure 3 , shows a logic diagram for generating a customized standard library, and the customized standard can be generated through the acceptance standard control module. Since servers have different models, the production line standards for different models of servers are also different. Among them, the production line standards of the server are set by the manufacturer of the server and are used to characterize the hardware parameters of the server. The production line standards corresponding to each model of server can be pre-stored in a database for storing production line standards.

[0080] For any server that needs to be recorded in the customized standard library (referred to as a "server to be included in the library"), the production line standard of the server to be included in the library can be obtained. The production line standard of the server to be included in the library can be obtained from a database for storing production line standards, or from a manufacturer through the network, or through other methods. In actual applications, the acquisition method can be set according to actual needs, and the embodiment of the present invention does not limit this.

[0081] After obtaining the production line standards of the servers to be stored in the warehouse, the customized standards of the servers to be stored in the warehouse can be generated according to the production line standards of the servers to be stored in the warehouse and the test requirements of the servers to be stored in the warehouse, and then the customized standards of the servers to be stored in the customized standards library.

[0082] Among them, the items of test requirements include but are not limited to the test item category, test phase, and server configuration strategy. The items of customized standards include but are not limited to: device type (single machine, multi-node, edge, etc.), customer identification, access mode (trial production, laboratory pre-inspection, non-blocking, etc.), exit mode, polling mode (time, frequency, restart value, etc.), polling path (start item, jump item, end point item, etc.). Of course, in actual applications, the specific items of test requirements and customized standards can be set according to actual needs, and the embodiments of the present invention do not limit this.

[0083] In this way, for different models of servers, before testing, corresponding customized standards can be generated according to the production line standards of each model of server provided by the manufacturer, and corresponding test tasks can be generated through customized standards, so that targeted testing can be performed on different models of servers.

[0084] Step 102: guide the server to be tested into a test system, so that the test system tests the server to be tested, generates and outputs a test result.

[0085] After obtaining the test task, the server to be tested can be guided into the test system. After the server to be tested enters the test system, the test system can test the server to be tested, thereby generating test results and outputting the test results. The test system can be an independent third-party system.

[0086] In one embodiment, the step of guiding the server to be tested into the test system includes:

[0087] Auditing the server to be tested by using data recognition and processing of a multimodal network;

[0088] If the review is passed, the map is refreshed based on the model of the server to be tested, and a refresh acceptance copy of the server to be tested is generated;

[0089] Writing the refresh acceptance copy and the customized standard into a startup resource management pool for authentication;

[0090] If the writing is successful, the test mode of the server to be tested is obtained; the test mode includes a filling mode, a diskless mode and a pre-installed mode;

[0091] The server to be tested is guided into a test system using the test mode.

[0092] Specifically, when executing the test task, the data recognition and processing characteristics of the multimodal network can be used to audit the server to be tested. If the audit is passed, the map can be refreshed based on the model of the server to be tested, thereby generating a refresh acceptance copy of the server to be tested. Then the refresh acceptance copy and the obtained custom standards are written to the startup resource management pool for authentication. If it can be written, it means that the authentication is successful. If it cannot be written, it means that the authentication has failed.

[0093] When the writing is successful, the test mode of the server to be tested can be obtained, and then the server to be tested is guided into the test system using the test mode. The test mode includes but is not limited to the filling mode, the diskless mode and the pre-installed mode.

[0094] Furthermore, an identifier for representing the test mode may be set in the server. Based on this, when obtaining the test mode of the server to be tested, the identifier of the server to be tested may be obtained to determine the test mode.

[0095] In this way, the server to be tested is verified through the characteristics of the multimodal network, and after the verification is passed, it can be guided into the test system for testing according to the test mode of the server to be tested, thereby ensuring the security of the test.

[0096] Step 103, obtaining the test result.

[0097] After the test system outputs the test result, the test result can be obtained, where the test result can be the result corresponding to a successful test or the result corresponding to a failed test.

[0098] Step 104, if the test fails, a maintenance plan is determined based on the test result, and the customized standard is verified to generate a verification result; the maintenance plan includes a maintenance method and a jump path for the next test task of the current test task.

[0099] If the test fails, a maintenance plan for the server to be tested can be determined based on the test results, and the customized standard of the server to be tested can be verified to generate a verification result. The maintenance plan includes a maintenance method and a jump path for the next test task of the current test task.

[0100] The troubleshooting method can be a method of dealing with the cause of the test failure; the jump path is used to jump to the next test task, that is, if the current test task fails, then you can jump to the next test task.

[0101] Furthermore, the purpose of verifying the customized standard is to detect whether the customized standard is correct. That is, if the verification fails, it means that there may be problems with the customized standard of the server to be tested, and the customized standard needs to be modified.

[0102] In one embodiment, determining a maintenance plan based on the test results, and verifying the customized standard to generate a verification result includes:

[0103] Register the service interface used to determine the maintenance plan;

[0104] Calling the monitoring module to obtain the test result through the service interface;

[0105] Performing a search pattern match between the test result and a maintenance solution library; wherein the maintenance solution library includes at least one preset maintenance solution;

[0106] If there is a matching item, the matching item is determined as a maintenance plan;

[0107] Inputting a snapshot of the test item with abnormalities in the test result into a repair function, so that the repair function uses the snapshot to verify the customized standard;

[0108] If the verification is passed, a first verification result of passing the verification is generated;

[0109] If the verification fails, a second verification result indicating that the verification fails is generated.

[0110] Reference Figure 4 , showing a logical schematic diagram for determining the maintenance plan and verifying the customized standards, which can be executed through the equipment maintenance module. Specifically, if the test fails, a service interface can be registered, and the function of the service interface is to determine the maintenance plan. Then the monitoring module is called to obtain the test results through the service interface, and the test results are matched with the various preset maintenance plans in the maintenance plan library for retrieval paradigm. If there is a match, the match can be determined as the maintenance plan. Among them, the maintenance plan library includes at least one preset maintenance plan, and the preset maintenance plan can be generated based on the equipment specification provided by the manufacturer and combined with the solution in the actual application. The maintenance plan library can provide a multi-level retrieval paradigm (layer-by-layer retrieval to determine the fine division of the plan directory), morphological type, importance level, analysis reason, processing execution flow, etc.

[0111] Furthermore, the test results can record the test items that cause the test failure and have abnormalities, and then input the snapshot of the test items into a preset maintenance function. The maintenance function can use the snapshot to verify the customized standard. If the verification passes, then a verification result of passing the verification can be generated (recorded as the "first verification result"). If the verification fails, then a verification result of failing the verification can be generated (recorded as the "second verification result").

[0112] In this way, when the test fails, the corresponding maintenance plan can be determined based on the test results to solve the problem that caused the test failure. At the same time, the customized standards of the server to be tested can also be verified based on the test results. If there are abnormalities in the customized standards, the customized standards can be modified to ensure the correctness of the customized standards.

[0113] It should be noted that, in addition to obtaining the test results through the service interface, the monitoring module can also obtain the maintenance records and frequencies of the server to be tested as test data for subsequent generation of a test report.

[0114] Step 105: output the maintenance method and the verification result, and trigger the next test task based on the jump path.

[0115] After the inspection method and verification result are determined, the inspection method and verification result can be output for display. At the same time, the jump path is used to trigger the next test task, so as to execute the next test task.

[0116] Furthermore, after outputting the maintenance method, if the conditions for automatic maintenance are met, the maintenance method can be automatically executed; if the conditions for automatic maintenance are not met, the maintenance method can be manually executed.

[0117] In an embodiment of the present invention, for servers of different models, before testing, corresponding customized standards can be generated according to the production line standards of various models of servers provided by the manufacturer, and corresponding test tasks can be generated through customized standards, so that targeted tests can be performed on servers of different models. When testing the server to be tested, the server to be tested is verified by the characteristics of the multimodal network. After the verification is passed, it can be guided into the test system for testing according to the test mode of the server to be tested, thereby ensuring the safety of the test. When the test fails, the corresponding maintenance plan can be determined according to the test results to solve the problem that caused the test failure. At the same time, the customized standards of the server to be tested can also be verified according to the test results. If there is an abnormality in the customized standards, the customized standards can be modified to ensure the correctness of the customized standards. After determining the maintenance method and verification results, the maintenance method and verification results can be output for display. At the same time, the jump path is used to trigger the next test task, so as to execute the next test task, saving the time of reissuing the test task and refreshing from the first diagnosis, and improving the test efficiency.

[0118] like Figure 5 , shows a flow chart of steps of another server testing method provided by an embodiment of the present invention, which can be applied to target objects for testing servers, including but not limited to systems, application clients, and devices. The method may include the following steps:

[0119] Step 501, sending an acquisition request for acquiring the physical machine location of the server to be tested to a server operation center, so that the operation center responds to the acquisition request, acquires the physical machine location, and returns the physical machine location;

[0120] Step 502, obtaining the physical machine location;

[0121] Step 503, distributing a direct switch route to the server to be tested based on the physical machine location to establish a direct connection with the server to be tested;

[0122] Step 504: deploy a virtualized preinstalled container, and deploy the server to be tested in the virtualized preinstalled container;

[0123] Step 505: Acquire configuration information of the server to be tested from the server to be tested.

[0124] Reference Figure 6, shows a logical schematic diagram of guiding the server to be tested into the test system, and the guidance can be performed by the central control device module. Specifically, the servers to be tested can be centrally managed by the server operation center, so before the test, you can access the server operation center and send a request to the server operation center to obtain the physical machine location of the server to be tested. The physical machine location of the server to be tested is used to characterize the physical location information of the server to be tested. After receiving the acquisition request, the server operation center can determine the physical machine location of the server to be tested and return the physical machine location.

[0125] After obtaining the physical machine location, the direct switch route can be distributed to the server to be tested according to the physical machine location, thereby establishing a direct connection with the server to be tested. In other words, after establishing a direct connection with the server to be tested, data can be directly interacted with the server to be tested without having to interact with the server to be tested through the server operation center.

[0126] After establishing a direct connection with the server to be tested, a virtualized pre-installed container can be deployed to isolate the server to be tested from the network. After deployment, the server to be tested can be deployed in the virtualized pre-installed container and the corresponding configuration information can be obtained from the server to be tested. The server to be tested can store the configuration information in the physical memory space in advance, and after establishing the direct connection, it can be directly obtained from the physical memory space.

[0127] In this way, before testing the server, the server to be tested can be determined through the server operation center, and a direct connection can be established with the server to be tested, reducing intermediate nodes. Then, the server to be tested is deployed in a virtualized pre-installed container, thereby achieving network isolation and reducing interference during the test process.

[0128] Step 506, obtaining a current test task for the server to be tested; the current test task is generated based on the admission criteria in the customized criteria of the server to be tested;

[0129] Step 507, guiding the server to be tested into the test system, so that the test system tests the server to be tested, generates and outputs the test result;

[0130] Step 508, obtaining the test result;

[0131] Step 509: if the test fails, a maintenance plan is determined based on the test result, and the customized standard is verified to generate a verification result; the maintenance plan includes a maintenance method and a jump path for the next test task of the current test task;

[0132] Step 5010: output the inspection method and the verification result, and trigger the next test task based on the jump path.

[0133] Among them, steps 506 to 5010 are substantially the same as steps 101 to 105, and will not be described here to avoid repetition.

[0134] like Figure 7 , shows a flow chart of steps of another server testing method provided by an embodiment of the present invention, which can be applied to target objects for testing servers, including but not limited to systems, application clients, and devices. The method may include the following steps:

[0135] Step 701, obtaining a current test task for a server to be tested; the current test task is generated based on an admission standard in a customized standard of the server to be tested;

[0136] Step 702, guiding the server to be tested into a test system, so that the test system tests the server to be tested, generates and outputs a test result;

[0137] Step 703, obtaining the test result;

[0138] Step 704: if the test fails, a maintenance plan is determined based on the test result, and the customized standard is verified to generate a verification result; the maintenance plan includes a maintenance method and a jump path for the next test task of the current test task;

[0139] Step 705: output the inspection method and the verification result, and trigger the next test task based on the jump path.

[0140] Among them, steps 701 to 705 are substantially the same as steps 101 to 105, and will not be described here to avoid repetition.

[0141] Step 706, if the test is successful, obtaining the exit criteria in the customized criteria;

[0142] Step 707: Generate a retest task for the server to be tested based on the exit criteria, and trigger the retest task.

[0143] Reference Figure 8, shows a logical diagram of generating a retest task, which can be executed by the central control device module. Specifically, if the test system successfully tests the server to be tested, then the exit criteria in the customized standard can be obtained, and then a retest task for the server to be tested is generated according to the exit criteria. That is to say, after the server to be tested is successfully tested, the server to be tested needs to be retested once, and when the retest meets the exit criteria, the test for the server to be tested can be completed.

[0144] After the retest task is generated, the retest task can be used as the current test task, and the process jumps to step 701 to start execution. In this way, after the server to be tested is successfully tested, the server to be tested can be retested and verified based on the exit criteria, thereby ensuring the correctness of the test.

[0145] Step 708, obtaining test data of the server to be tested;

[0146] Step 709: Generate a test report based on the test data.

[0147] Reference Fig. 9 , showing a logical schematic diagram of generating a test report, which can be executed by a test efficiency statistics module. Specifically, after the test of the server to be tested is completed, the test data related to the server to be tested can be obtained, and then a test report can be generated based on the test data, and the test report can be visualized. Among them, the test data includes but is not limited to: transfer pass rate, maintenance probability, retest rate, and the difference rate between customization and standard mode. Of course, the test data may also include other data. In actual applications, the specific content of the test data can be set according to actual needs, and the embodiment of the present invention is not limited to this.

[0148] Further, regardless of whether the test on the server to be tested is successful or not, after the test is completed, the test data can be obtained. That is, step 708 can be executed after step 705 or after step 707. The embodiment of the present invention takes step 708 being executed after step 707 as an example for explanation. In this way, regardless of whether the test on the server to be tested is successful or not, after the test is completed, a test report can be generated and the test report can be visualized, which provides convenience for analyzing the test data.

[0149] The present invention also provides a server testing device, the device comprising:

[0150] An acquisition module, used for acquiring a current test task for the server to be tested; the current test task is generated based on an admission standard in a customized standard of the server to be tested;

[0151] A boot module, used to guide the server to be tested into a test system, so that the test system tests the server to be tested, generates and outputs a test result;

[0152] The acquisition module is further used to acquire the test result;

[0153] A determination module, for determining a maintenance plan based on the test result if the test fails, and verifying the customized standard to generate a verification result; the maintenance plan includes a maintenance method and a jump path for the next test task of the current test task;

[0154] An output module is used to output the maintenance method and the verification result, and trigger the next test task based on the jump path.

[0155] Optionally, the acquisition module is further used to acquire the exit criteria in the customized criteria if the test is successful;

[0156] The generating module is further used to generate a retest task for the server to be tested based on the exit criteria, and trigger the retest task.

[0157] Optionally, also include:

[0158] The acquisition module is further used to acquire the test data of the server to be tested;

[0159] The generating module is further used to generate a test report based on the test data.

[0160] Optionally, also include:

[0161] A sending module, used for sending an acquisition request for acquiring the physical machine location of the server to be tested to a server operation center before acquiring the current test task for the server to be tested, so that the operation center responds to the acquisition request, acquires the physical machine location, and returns the physical machine location;

[0162] The acquisition module is further used to acquire the physical machine position;

[0163] The sending module is further used to distribute the direct switch route to the server to be tested based on the physical machine location to establish a direct connection with the server to be tested;

[0164] A deployment module, used to deploy a virtualized preinstalled container, and deploy the server to be tested in the virtualized preinstalled container;

[0165] The acquisition module is further used to acquire the configuration information of the server to be tested from the server to be tested.

[0166] Optionally, the guiding module is specifically used for:

[0167] Auditing the server to be tested by using data recognition and processing of a multimodal network;

[0168] If the review is passed, the map is refreshed based on the model of the server to be tested, and a refresh acceptance copy of the server to be tested is generated;

[0169] Writing the refresh acceptance copy and the customized standard into a startup resource management pool for authentication;

[0170] If the writing is successful, the test mode of the server to be tested is obtained; the test mode includes a filling mode, a diskless mode and a pre-installed mode;

[0171] The server to be tested is guided into a test system using the test mode.

[0172] Optionally, the determining module is specifically used to:

[0173] Register the service interface used to determine the maintenance plan;

[0174] Calling the monitoring module to obtain the test result through the service interface;

[0175] Performing a search pattern match between the test result and a maintenance solution library; wherein the maintenance solution library includes at least one preset maintenance solution;

[0176] If there is a matching item, the matching item is determined as a maintenance plan;

[0177] Inputting a snapshot of the test item with abnormalities in the test result into a repair function, so that the repair function uses the snapshot to verify the customized standard;

[0178] If the verification is passed, a first verification result of passing the verification is generated;

[0179] If the verification fails, a second verification result indicating that the verification fails is generated.

[0180] Optionally, the acquisition module is specifically used to:

[0181] Acquire a customization standard corresponding to the server to be tested from a preset customization standard library;

[0182] Generate a current test task for the server to be tested based on the customized standard;

[0183] The customized standard library is generated in the following way:

[0184] Obtaining the production line standard of the server to be stored; the production line standard is set by the manufacturer of the server to be stored and is used to characterize the hardware parameters of the server to be tested;

[0185] Based on the production line standard of the server to be stored, and in accordance with the test requirements of the server to be stored, a customization standard of the server to be stored is generated;

[0186] The customization standards of the server to be stored in the customization standard library.

[0187] like Fig.10 , showing a structural block diagram of an electronic device 100 provided in an embodiment of the present invention, including:

[0188] A processor 1001, a memory 1002, and a computer program 10021 stored in the memory 1002 and capable of running on the processor 1001. When the computer program 10021 is executed by the processor 1001, the various processes of the above-mentioned server testing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0189] like Fig.11 , showing a structural block diagram of a computer-readable storage medium 110 provided in an embodiment of the present invention, a computer program 1101 is stored on the computer-readable storage medium 110, and when the computer program 1101 is executed by the processor, each process of the above-mentioned server testing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0190] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0191] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0192] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0193] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0194] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0195] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0196] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0197] The server testing method, device, electronic device and storage medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A server testing method, characterized in that: The method comprises: Acquire a current test task for the server to be tested; the current test task is generated based on an admission standard in a customized standard of the server to be tested; Directing the server to be tested into a test system so that the test system tests the server to be tested and generates and outputs a test result; Obtaining the test result; If the test fails, a maintenance plan is determined based on the test result, and the customized standard is verified to generate a verification result; the maintenance plan includes a maintenance method and a jump path for the next test task of the current test task; The maintenance method and the verification result are output, and the next test task is triggered based on the jump path.

2. The server testing method according to claim 1, characterized in that: Also includes: If the test is successful, the exit criteria in the customized criteria are obtained; A retest task for the server to be tested is generated based on the admission criteria, and the retest task is triggered.

3. The server testing method according to claim 1 or 2, characterized in that: Also includes: Acquire test data of the server to be tested; A test report is generated based on the test data.

4. The server testing method according to claim 1, characterized in that: Before obtaining the current test task for the server to be tested, the method further includes: Sending an acquisition request for acquiring the physical machine location of the server to be tested to a server operation center, so that the operation center responds to the acquisition request and acquires the physical machine location, And return the physical machine position; Obtaining the physical machine location; Distributing a direct switch route to the server to be tested based on the physical machine location to establish a direct connection with the server to be tested; Deploy a virtualized preinstalled container, and deploy the server to be tested in the virtualized preinstalled container; The configuration information of the server to be tested is obtained from the server to be tested.

5. The server testing method according to claim 1, characterized in that: The step of guiding the server to be tested into the test system comprises: Auditing the server to be tested by using data recognition and processing of a multimodal network; If the review is passed, the map is refreshed based on the model of the server to be tested, and a refresh acceptance copy of the server to be tested is generated; Writing the refresh acceptance copy and the customized standard into a startup resource management pool for authentication; If the writing is successful, the test mode of the server to be tested is obtained; the test mode includes a filling mode, a diskless mode and a pre-installed mode; The server to be tested is guided into a test system using the test mode.

6. The server testing method according to claim 1, characterized in that: The maintenance plan is determined based on the test results, and the customized standard is verified to generate a verification result, including: Register the service interface used to determine the maintenance plan; Calling the monitoring module to obtain the test result through the service interface; Performing a search pattern match between the test result and a maintenance solution library; wherein the maintenance solution library includes at least one preset maintenance solution; If there is a matching item, the matching item is determined as a maintenance plan; Inputting a snapshot of the test item with abnormalities in the test result into a repair function, so that the repair function uses the snapshot to verify the customized standard; If the verification is passed, a first verification result of passing the verification is generated; If the verification fails, a second verification result indicating that the verification fails is generated.

7. The server testing method according to claim 1, characterized in that: The obtaining of the current test task for the server to be tested includes: Acquire a customization standard corresponding to the server to be tested from a preset customization standard library; Generate a current test task for the server to be tested based on the customized standard; The customized standard library is generated in the following way: Obtaining the production line standard of the server to be stored; the production line standard is set by the manufacturer of the server to be stored and is used to characterize the hardware parameters of the server to be tested; Based on the production line standard of the server to be stored, and in accordance with the test requirements of the server to be stored, a customization standard of the server to be stored is generated; The customization standards of the server to be stored in the customization standard library.

8. A server testing device, characterized in that: The device comprises: An acquisition module, used for acquiring a current test task for the server to be tested; the current test task is generated based on an admission standard in a customized standard of the server to be tested; A boot module, used to guide the server to be tested into a test system, so that the test system tests the server to be tested, generates and outputs a test result; The acquisition module is further used to acquire the test result; A determination module, for determining a maintenance plan based on the test result if the test fails, and verifying the customized standard to generate a verification result; the maintenance plan includes a maintenance method and a jump path for the next test task of the current test task; An output module is used to output the maintenance method and the verification result, and trigger the next test task based on the jump path.

9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the server testing method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the server testing method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Memory test system

    CN120929320A