A BIOS automated testing method, device, medium and electronic device

By establishing a SOL channel in BIOS testing, automated remote testing of BIOS is realized, solving the problem of inefficient testing of existing BIOS and improving the speed and accuracy of the test.

CN119782179APending Publication Date: 2025-04-08NINGCHANG INFORMATION TECH (HANGZHOU) CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411968026.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

The existing BIOS testing methods are relatively inefficient, and it is necessary to provide a method that can improve the efficiency of BIOS testing.

Method used

By establishing a SOL channel, the BIOS is automatically tested remotely. The specific steps include responding to user testing instructions, obtaining device information and test item information, establishing SOL channels, selecting test items one by one, monitoring channel information, and deciding whether to continue to execute the test items based on the channel information.

Benefits of technology

Through automated testing, this method significantly improves the efficiency of BIOS testing, and can check and verify BIOS configuration and system stability more quickly and accurately.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119782179A_ABST
    Figure CN119782179A_ABST
Patent Text Reader

Abstract

The present application provides a method, device, medium and electronic device for automated testing of BIOS, and relates to the field of computer technology. The method, in which the device information of the device to be tested and the test item information to be executed are obtained in response to the user's test instruction; based on the device information, a SOL channel is established with the device to be tested; test items are selected one by one, and a project start instruction corresponding to the currently selected test item is sent to the device to be tested; the channel information of the SOL channel generated when the device to be tested executes the currently selected test item is monitored; if it is judged based on the newly generated channel information that the currently selected test item has no abnormality, and it is judged that the currently selected test item has not been executed, then a project continuation instruction corresponding to the next test step of the currently selected test item is sent to the device to be tested. This method can effectively improve the efficiency of testing BIOS.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a BIOS automated testing method, device, medium, and electronic device. Background Art

[0002] BIOS (Basic Input / Output System) is the firmware loaded when the computer system starts up, responsible for key tasks such as hardware initialization, self-test, and booting the operating system. In the process of computer hardware testing and maintenance, automated testing is very important for quickly and accurately checking and verifying BIOS configuration and system stability.

[0003] The existing BIOS test method is usually tested by on-site operation, and the test efficiency is low. Therefore, how to provide a BIOS test method to solve the problem of low test efficiency of BIOS has important practical significance. Summary of the invention

[0004] The embodiments of the present application provide a BIOS automated testing method, device, medium, and electronic device, which can improve the efficiency of testing the BIOS.

[0005] To achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides an automated testing method for BIOS, which is applied to a testing device; comprising:

[0007] In response to a test instruction from a user, obtain device information of the device to be tested and test item information of the test to be performed; the test item information includes at least one test item;

[0008] Based on the device information, establish a SOL channel with the device under test;

[0009] Select the test items one by one, and send a project start instruction corresponding to the currently selected test item to the device under test;

[0010] Monitoring the channel information of the SOL channel generated when the device under test executes the currently selected test item;

[0011] If it is determined based on the newly generated channel information that the currently selected test item has no abnormality and that the currently selected test item has not been completed, a project continuation instruction corresponding to the next test step of the currently selected test item is sent to the device under test to complete the currently selected test item.

[0012] The automated testing method of BIOS provided in the embodiment of the present application, in the process of testing BIOS, responds to the user's test instruction, obtains the device information of the device to be tested and the test item information to be executed; the test item information includes at least one test item; based on the device information, establishes a SOL channel with the device to be tested; selects the test items one by one, and sends the project start instruction corresponding to the currently selected test item to the device to be tested; monitors the channel information of the SOL channel generated when the device to be tested executes the currently selected test item; if it is judged based on the newly generated channel information that the currently selected test item has no abnormality, and it is judged that the currently selected test item has not been executed, then sends the project continuation instruction corresponding to the next test step of the currently selected test item to the device to be tested, so as to complete the currently selected test item. This method can effectively improve the efficiency of testing BIOS by establishing a SOL channel and automatically performing remote testing on BIOS.

[0013] In an optional embodiment, after monitoring the channel information of the SOL channel generated when the device under test executes the currently selected test item, and before sending the project continuing instruction corresponding to the currently selected test item to the device under test, the method further includes:

[0014] If the channel information is indication information of a preset key item, generating simulated key operation information of the key item;

[0015] Based on the simulated key operation information, the item continuing instruction corresponding to the currently selected test item is obtained.

[0016] The method of this embodiment, after monitoring the channel information of the SOL channel generated in the execution of the currently selected test item by the device under test, and before sending the project continuation instruction corresponding to the currently selected test item to the device under test, the method also includes: if the channel information is indication information of a preset key item, then generating simulated key operation information of the key item; based on the simulated key operation information, obtaining the project continuation instruction corresponding to the currently selected test item. In this method, the simulated key operation information is used to simulate key operation on the BIOS, and the project continuation instruction may include the simulated key operation information, which can provide a flexible simulated key operation mechanism based on the SOL channel. Using the SOL channel for character recognition can improve recognition accuracy and more efficiently improve the efficiency of testing the BIOS.

[0017] In an optional embodiment, the device information includes operating system login verification information, operating system address, BMC login verification information and BMC address; and establishing a SOL channel with the device under test based on the device information includes:

[0018] Connecting the BMC device of the device under test through the IPMI tool according to the operating system login verification information, the operating system address, the BMC login verification information and the BMC address;

[0019] Initiate a SOL session with the BMC device to establish a SOL channel with the device under test.

[0020] The method of this embodiment includes connecting the BMC device of the device under test through the IPMI tool according to the operating system login verification information, the operating system address, the BMC login verification information and the BMC address; starting a SOL session with the BMC device to establish a SOL channel with the device under test. The method provides a mechanism for establishing a SOL channel through the IPMI tool, which can achieve efficient information acquisition of the SOL channel when the BIOS is tested, thereby improving the efficiency of testing the BIOS.

[0021] In an optional embodiment, the device information includes model information; before establishing the SOL channel with the device under test based on the device information, the method further includes:

[0022] Based on the machine model information, the test items included in the test item information are parsed so that the test items included in the parsed test item information include differentiation parameters corresponding to the machine model information; the differentiation parameters include the indication information.

[0023] In the method of this embodiment, the device information includes model information; before establishing a SOL channel with the device under test based on the device information, the method further includes: parsing the test items included in the test item information based on the model information, so that the test items included in the parsed test item information contain differentiation parameters corresponding to the model information; the differentiation parameters include the indication information. In this method, the model information characterizes the type of the device under test, and by matching the corresponding differentiation parameters for different types of devices under test, it is possible to consider the different requirements of various hardware environments and BIOS versions, improve the environmental compatibility of the test process, accurately and efficiently provide parameter information used in the automated test process of BIOS, and more effectively improve the efficiency of testing BIOS.

[0024] In an optional embodiment, the method further includes:

[0025] If it is monitored that the test item in the test item information is completed, the test result of the device under test is output; the test result indicates whether the test of the BIOS meets expectations.

[0026] The method of this embodiment also includes: if it is monitored that the test item in the test item information is completed, outputting the test result of the device under test; the test result represents whether the test of the BIOS meets expectations, and automatically outputting the test result of the device under test, which can more efficiently determine whether the test of the BIOS meets expectations, and can further improve the efficiency of testing the BIOS.

[0027] In a second aspect, the embodiment of the present application further provides an automated testing method for BIOS, which is applied to a device under test; comprising:

[0028] Responding to a connection request sent by a test device, establishing a SOL channel with the test device; the connection request includes device information of the device under test;

[0029] In response to the project start instruction sent by the test device, the currently selected test project is started; the project start instruction is for the test device to select the test projects one by one and send to the device under test; the project start instruction corresponds to the currently selected test project;

[0030] In response to a project continuation instruction sent by the test device, continue to execute the next test step of the currently selected test item to complete the currently selected test item; the project continuation instruction is sent by the test device if it is determined based on the newly generated channel information that the currently selected test item has no abnormality and it is determined that the currently selected test item has not been completed; the project continuation instruction corresponds to the next test step of the currently selected test item.

[0031] The embodiment of the present application provides an automated testing method for BIOS. In the process of testing BIOS, the device under test responds to a connection request sent by the test device and establishes a SOL channel with the test device; the connection request includes the device information of the device under test; responds to the project start instruction sent by the test device and starts the currently selected test item; the project start instruction is sent to the device under test for the test device to select the test items one by one; the project start instruction corresponds to the currently selected test item; responds to the project continue instruction sent by the test device and continues to execute the next test step of the currently selected test item to complete the currently selected test item; the project continue instruction is sent by the test device if it is judged based on the newly generated channel information that the currently selected test item has no abnormality and it is judged that the currently selected test item has not been executed; the project continue instruction corresponds to the next test step of the currently selected test item. This method can effectively improve the efficiency of testing BIOS by establishing a SOL channel and automatically performing remote testing on BIOS.

[0032] In a third aspect, the embodiment of the present application further provides an automated testing device for BIOS, which is applied to a testing device; comprising:

[0033] An information acquisition module, used to respond to a user's test instruction and acquire device information of the device to be tested and test item information of the test to be performed; the test item information includes at least one test item;

[0034] A communication connection module, used to establish a SOL channel with the device under test based on the device information;

[0035] A project start module, used to select the test items one by one and send a project start instruction corresponding to the currently selected test item to the device under test;

[0036] A channel monitoring module, used to monitor the channel information of the SOL channel generated when the device under test executes the currently selected test item;

[0037] A test control module is used to send a project continuation instruction corresponding to the next test step of the currently selected test item to the device under test if it is judged based on the newly generated channel information that there is no abnormality in the currently selected test item and it is judged that the currently selected test item has not been completed, so as to complete the currently selected test item.

[0038] In an optional embodiment, the device further includes an information generation module; the information generation module is used to:

[0039] If the channel information is indication information of a preset key item, generating simulated key operation information of the key item;

[0040] Based on the simulated key operation information, the item continuing instruction corresponding to the currently selected test item is obtained.

[0041] In an optional embodiment, the device information includes operating system login verification information, operating system address, BMC login verification information and BMC address; the communication connection module is specifically used to:

[0042] Connecting the BMC device of the device under test through the IPMI tool according to the operating system login verification information, the operating system address, the BMC login verification information and the BMC address;

[0043] Initiate a SOL session with the BMC device to establish a SOL channel with the device under test.

[0044] In an optional embodiment, the device information includes model information; the apparatus further includes a project parsing module; the project parsing module is used to:

[0045] Based on the machine model information, the test items included in the test item information are parsed so that the test items included in the parsed test item information include differentiation parameters corresponding to the machine model information; the differentiation parameters include the indication information.

[0046] In an optional embodiment, the device further includes a comprehensive analysis module; the comprehensive analysis module is used to:

[0047] If it is monitored that the test item in the test item information is completed, the test result of the device under test is output; the test result indicates whether the test of the BIOS meets expectations.

[0048] In a fourth aspect, the embodiment of the present application further provides an automated testing device for BIOS, which is applied to a device under test; comprising:

[0049] A connection response module, used to respond to a connection request sent by a test device and establish a SOL channel with the test device; the connection request includes device information of the device under test;

[0050] The start response module is used to respond to the project start instruction sent by the test device to start the currently selected test project; the project start instruction is for the test device to select the test items one by one and send them to the device under test; the project start instruction corresponds to the currently selected test item;

[0051] A control response module is used to respond to a project continuation instruction sent by the test device to continue executing the next test step of the currently selected test item to complete the currently selected test item; the project continuation instruction is sent by the test device if it is judged based on the newly generated channel information that the currently selected test item has no abnormality and it is judged that the currently selected test item has not been executed completely; the project continuation instruction corresponds to the next test step of the currently selected test item.

[0052] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect or the method described in the second aspect is implemented.

[0053] In a sixth aspect, an embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the computer program is executed by the processor, the processor implements the method described in the first aspect or the method described in the second aspect.

[0054] The technical effects brought about by any one of the implementation methods in the third to sixth aspects can be referred to the technical effects brought about by the corresponding implementation method in the first aspect or the corresponding implementation method in the second aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0056] Figure 1 A flowchart of an automated BIOS testing method provided in an embodiment of the present application;

[0057] Figure 2 A schematic diagram of a flow chart of establishing a SOL channel in a BIOS automated testing method provided in an embodiment of the present application;

[0058] Figure 3 A schematic diagram of a flow chart of generating a project continuation instruction during a simulated key operation of a BIOS automated testing method provided in an embodiment of the present application;

[0059] Figure 4 A second flowchart of an automated BIOS testing method provided in an embodiment of the present application;

[0060] Figure 5 A third flowchart of a BIOS automated testing method provided in an embodiment of the present application;

[0061] Figure 6 A flowchart of another BIOS automated testing method provided in an embodiment of the present application;

[0062] Figure 7 One of the structural schematic diagrams of a BIOS automated testing device provided in an embodiment of the present application;

[0063] Figure 8 A second structural diagram of a BIOS automated testing device provided in an embodiment of the present application;

[0064] Fig. 9A third structural diagram of a BIOS automated testing device provided in an embodiment of the present application;

[0065] Fig.10 A fourth structural diagram of a BIOS automated testing device provided in an embodiment of the present application;

[0066] Fig.11 A schematic diagram of the structure of another BIOS automated testing device provided in an embodiment of the present application;

[0067] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0068] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0069] It should be noted that the terms "including" and "having" and their variations involved in the documents of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0070] The following are explanations of some of the terms that appear in the text:

[0071] (1) SOL (Serial Over LAN): SOL redirects the BMC's serial controller during the IPMI connection phase, including asynchronous serial transmission between the operating system and the BMC.

[0072] (2) IPMI (Intelligent Platform Management Interface): IPMI is an industrial standard for managing peripheral devices used in Intel-based enterprise systems. IPMI can span different operating systems, firmware, and hardware platforms, and can intelligently monitor, control, and automatically report the operating status of a large number of servers.

[0073] (4) BIOS (Basic Input Output System): BIOS is a set of programs fixed on a ROM chip on the computer's motherboard. It stores the computer's most important basic input and output programs, system setting information, self-test programs after powering on, and system startup programs. Its main function is to provide the computer with the lowest-level and most direct hardware settings and controls.

[0074] (5) BMC (Baseboard Management Controller): BMC is a basic core functional subsystem of a server, responsible for the server's hardware status management, operating system management, health status management, power consumption management and other core functions.

[0075] BIOS (Basic Input / Output System) is the firmware loaded when the computer system starts up, responsible for key tasks such as hardware initialization, self-test, and booting the operating system. In the process of computer hardware testing and maintenance, automated testing is very important for quickly and accurately checking and verifying BIOS configuration and system stability.

[0076] The existing BIOS test method is usually tested by on-site operation, and the test efficiency is low. Therefore, how to provide a BIOS test method to solve the problem of low test efficiency of BIOS has important practical significance.

[0077] In order to solve the existing technical problems, the embodiment of the present application provides a BIOS automated testing method, device, medium and electronic device. In the process of testing the BIOS, the user's test instructions are responded to, and the device information of the device to be tested and the test item information to be executed are obtained; the test item information includes at least one test item; based on the device information, a SOL channel is established with the device to be tested; the test items are selected one by one, and the project start instruction corresponding to the currently selected test item is sent to the device to be tested; the channel information of the SOL channel generated when the device to be tested executes the currently selected test item is monitored; if it is judged based on the newly generated channel information that the currently selected test item has no abnormality, and it is judged that the currently selected test item has not been executed, then the project continuation instruction corresponding to the next test step of the currently selected test item is sent to the device to be tested to complete the currently selected test item. This method can effectively improve the efficiency of testing the BIOS by establishing a SOL channel and automatically performing remote testing on the BIOS.

[0078] In order to make the invention purpose, technical scheme and advantages of the embodiments of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0079] The technical solution provided in the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0080] The automated testing method for BIOS provided in the embodiment of the present application can be applied to a server or a terminal device. The following embodiments of the present application are described by taking the automated testing method for BIOS applied to a terminal device as an example.

[0081] The present application embodiment provides a BIOS automated testing method, which is applied to a testing device, such as Figure 1 As shown, the following steps are included:

[0082] Step S101, responding to a test instruction from a user, obtaining device information of a device to be tested and test item information of a test to be performed; the test item information includes at least one test item.

[0083] In a specific implementation, the test device responds to the user's test instruction and obtains the device information of the device to be tested and the test item information of the test to be executed; the test item information includes at least one test item.

[0084] In some optional embodiments, the device information is key information related to the device under test.

[0085] In some optional embodiments, the device information includes but is not limited to the following information items: an account password of the operating system of the device under test, an account password of the BMC of the device under test, and a server model of the device under test.

[0086] In some optional embodiments, device information is stored and managed in XML file format, which can ensure that the data is structured and easily accessible.

[0087] In the above embodiment, the design of recording device information in XML file format fully reflects the modernization and intelligence of data management. The advantages of this method in structured storage, easy expansion, and cross-platform interoperability make information management more convenient, ensure efficient, stable and secure information recording, provide flexibility and operability for BIOS testing, and significantly improve the efficiency of BIOS testing.

[0088] In some optional embodiments, the test item information is obtained by creating a table in Excel to list all test items that need to be executed.

[0089] In some optional embodiments, the test item information includes a test number, a test item, a test description, and an execution status.

[0090] In some optional embodiments, the test item information further includes an execution order; the execution order is used to indicate that the test items are executed in a specified order.

[0091] In some optional embodiments, each test item is executed one by one according to the test item information. During the execution process, the execution status can be updated and the test results can be recorded.

[0092] Step S102: establishing a SOL channel with the device under test based on the device information.

[0093] During specific implementation, the test device establishes a SOL channel with the device under test based on the device information.

[0094] In some optional embodiments, the device information includes operating system login verification information, operating system address, BMC login verification information and BMC address; in the above step S102, the process of establishing a SOL channel with the device under test based on the device information is as follows: Figure 2 As shown, this can be achieved by following the steps below:

[0095] Step S201, connecting to the BMC device of the device under test through the IPMI tool according to the operating system login verification information, the operating system address, the BMC login verification information and the BMC address.

[0096] During specific implementation, the test device connects to the BMC device of the device under test through the IPMI tool according to the operating system login verification information, the operating system address, the BMC login verification information and the BMC address.

[0097] In some optional embodiments, the device information includes operating system login verification information, operating system address, BMC login verification information and BMC address; in the above step S201, the process of connecting the BMC device of the device under test through the IPMI tool according to the operating system login verification information, the operating system address, the BMC login verification information and the BMC address is specifically: according to the operating system login verification information, the operating system address, the BMC login verification information and the BMC address, a connection request is sent to the device under test through the IPMI tool to connect the BMC device of the device under test; wherein the connection request includes the device information of the device under test.

[0098] Step S202: Start a SOL session with the BMC device to establish a SOL channel with the device under test.

[0099] During specific implementation, the test device initiates a SOL session with the BMC device to establish a SOL channel with the device under test.

[0100] The method of this embodiment connects the BMC device of the device under test through the IPMI tool according to the operating system login verification information, the operating system address, the BMC login verification information and the BMC address; and starts the SOL session with the BMC device to establish the SOL channel with the device under test. The method provides a mechanism for establishing the SOL channel through the IPMI tool, which can achieve efficient information acquisition of the SOL channel when the BIOS is tested, thereby improving the efficiency of testing the BIOS.

[0101] In some embodiments of the present application, before the process of establishing a SOL channel with the device under test based on the device information in step S102, the method further includes:

[0102] Create a log process based on parallel processing; the log process is used to record information about the execution process.

[0103] In some embodiments of the present application, after reading the test item information in the Excel table, the main operation file is entered, and a log log process is generated to obtain information about the execution process; the main operation file contains the logic and process of executing the test items. In the main operation file, according to the read test item information, the tests are executed one by one, and the execution process and results are recorded.

[0104] In some optional embodiments, in order to realize the simultaneous generation of log processes to obtain information about the execution process, Python's multi-process or multi-threading is used for parallel processing. The method of this embodiment creates an independent log process responsible for recording information about the execution process in real time to avoid interference with the main running process, further improving the efficiency of testing the BIOS.

[0105] Step S103, selecting test items one by one, and sending a project start instruction corresponding to the currently selected test item to the device under test.

[0106] In specific implementation, the test device selects test items one by one from the test item information, and when each test item is selected, based on the currently selected test item, sends a project start instruction corresponding to the currently selected test item to the device under test; the project start instruction is used to enable the device under test to start the currently selected test item.

[0107] In some embodiments of the present application, the testing device selects test items one by one in the test item information, and sends a project start instruction corresponding to the currently selected test item to the device under test, specifically an instruction corresponding to the first test step of the currently selected test item.

[0108] Step S104, monitoring the channel information of the SOL channel generated when the device under test executes the currently selected test item.

[0109] In a specific implementation, the test device monitors the channel information of the SOL channel generated when the device under test executes the currently selected test item.

[0110] In some embodiments of the present application, the channel information includes printing information.

[0111] In some embodiments of the present application, when the test device initiates a SOL session with the BMC device, the SOL session is established, and the test device can monitor the SOL channel to obtain channel information. Typically, the BMC device sends the console output of the device under test to the SOL channel, and the test device can obtain the channel information of the device under test by receiving and parsing this information.

[0112] Step S105, if it is determined based on the newly generated channel information that the currently selected test item has no abnormality and that the currently selected test item has not been completed, a project continuation instruction corresponding to the next test step of the currently selected test item is sent to the device under test to complete the currently selected test item.

[0113] In specific implementation, if the test device determines that there is no abnormality in the currently selected test item based on the newly generated channel information, and determines that the currently selected test item has not been executed, the test device sends a project continuation instruction corresponding to the next test step of the currently selected test item to the device under test; the project continuation instruction is used to enable the device under test to continue to execute the next test step of the currently selected test item to complete the currently selected test item.

[0114] In one embodiment of the present application, the channel information is printing information; if it is judged based on the newly generated channel information that the currently selected test item has no abnormality, and it is judged that the currently selected test item has not been executed, then a project continuation instruction corresponding to the next test step of the currently selected test item is sent to the device under test to complete the currently selected test item. Specifically, if it is judged based on the newly generated printing information that the currently selected test item has no abnormality, and it is judged that the currently selected test item has not been executed, then a project continuation instruction corresponding to the next test step of the currently selected test item is sent to the device under test to complete the currently selected test item.

[0115] In some optional embodiments, after monitoring the channel information of the SOL channel generated by the device under test executing the currently selected test item in the above step S104, before sending the project continuation instruction corresponding to the currently selected test item to the device under test in the above step S104, it also includes a simulated key operation process, such as Figure 3As shown, the simulated key operation process can be implemented by the following steps:

[0116] Step S301: If the channel information is indication information of a preset key item, then simulated key operation information of the key item is generated.

[0117] In some embodiments, the simulated key operation information is used to perform simulated key operations on the BIOS.

[0118] Step S302: obtaining an item continuing instruction corresponding to the currently selected test item based on the simulated key operation information.

[0119] In some embodiments, the project continuation instruction includes simulated key operation information.

[0120] The method of this embodiment can provide a flexible simulation key operation mechanism based on the SOL channel. Using the SOL channel for character recognition can improve recognition accuracy and more effectively improve the efficiency of testing BIOS.

[0121] In some optional embodiments, in the above step S104, after monitoring the channel information of the SOL channel generated by the device under test executing the currently selected test item, in the above step S104, before sending the project continuation instruction corresponding to the currently selected test item to the device under test, it also includes a simulated key operation process, and the simulated key operation process is specifically: if the channel information is indication information of a preset key item, then generating simulated key operation information of the key item; sending the simulated key operation information to the device under test to perform a simulated key operation on the device under test.

[0122] The method of this embodiment responds to the user's test instructions, obtains the device information of the device under test and the test item information to be executed; based on the device information, establishes a SOL channel with the device under test; selects test items one by one, and sends a project start instruction corresponding to the currently selected test item to the device under test; monitors the channel information of the SOL channel generated when the device under test executes the currently selected test item; if it is determined based on the newly generated channel information that the currently selected test item has no abnormality, and it is determined that the currently selected test item has not been executed, then sends a project continue instruction corresponding to the next test step of the currently selected test item to the device under test. This method can effectively improve the efficiency of testing BIOS.

[0123] In some embodiments of the present application, the device information includes model information; before establishing a SOL channel with the device to be tested based on the device information, the automated testing method of the BIOS also includes: based on the model information, parsing the test items included in the test item information, so that the test items included in the parsed test item information contain differentiation parameters corresponding to the model information; the differentiation parameters include indication information.

[0124] Figure 4 The present invention provides an automated BIOS testing method, which is applied to a testing device. Figure 4 As shown, the following steps are included:

[0125] Step S401, responding to a user's test instruction, obtaining device information of the device to be tested and test item information of the test to be executed; the test item information includes at least one test item; the device information includes model information.

[0126] Step S402: parsing the test items included in the test item information based on the machine model information, so that the test items included in the parsed test item information include differentiation parameters corresponding to the machine model information; the differentiation parameters include indication information.

[0127] In a specific implementation, the test device parses the test items included in the test item information based on the machine model information, so that the test items included in the parsed test item information include differentiation parameters corresponding to the machine model information; the differentiation parameters include indication information.

[0128] Step S403: establishing a SOL channel with the device under test based on the device information.

[0129] Step S404, selecting test items one by one, and sending a project start instruction corresponding to the currently selected test item to the device under test; the project start instruction is used to make the device under test start the currently selected test item.

[0130] Step S405 , monitoring the channel information of the SOL channel generated when the device under test executes the currently selected test item.

[0131] Step S406: if the channel information is indication information of a preset key item, then generate simulated key operation information of the key item.

[0132] Step S407, based on the simulated key operation information, obtaining an item continuing instruction corresponding to the currently selected test item.

[0133] Step S408, if it is determined based on the newly generated channel information that the currently selected test item has no abnormality and that the currently selected test item has not been completed, a project continuation instruction corresponding to the next test step of the currently selected test item is sent to the device under test to complete the currently selected test item.

[0134] In the method of this embodiment, the device information includes model information; based on the device information, before establishing a SOL channel with the device under test, the method further includes: parsing the test items included in the test item information based on the model information, so that the test items included in the parsed test item information contain differential parameters corresponding to the model information; the differential parameters include indication information. In this method, the model information characterizes the type of the device under test, and by matching the corresponding differential parameters for different types of devices under test, it is possible to consider the different requirements of various hardware environments and BIOS versions, improve the environmental compatibility of the test process, accurately and efficiently provide parameter information used in the automated test process of BIOS, and more effectively improve the efficiency of testing BIOS.

[0135] In some embodiments of the present application, it also includes: if it is monitored that the test items in the test item information are completed, the test results of the device under test are output; the test results represent whether the BIOS test meets expectations.

[0136] In some embodiments of the present application, the method further includes collecting and storing channel information of the SOL channel; after completing the test items included in the test item information, obtaining actual operation information based on the stored channel information of the SOL channel, and comparing it with the expected information to obtain the test results; finally, filling the test results back into the Excel table of the test item information to generate a test report.

[0137] In some embodiments of the present application, the test result is obtained by comparing the actual operation information obtained with the expected information. This method compares the actual console output with the expected result according to the setting of the test item or the expected operation to determine whether the operation of the test item is successful or meets expectations.

[0138] In some embodiments of the present application, the test result of the operation of each test item is recorded according to the comparison result of comparing the actual operation information obtained with the expected information. The actual operation information, the expected information and the test result are recorded in a data structure so as to generate a test report later.

[0139] In some embodiments of the present application, a test report is generated by filling the recorded comparison results back into an Excel table of test item information.

[0140] In some embodiments of the present application, after the test report is generated, the test results included in the test report are analyzed and summarized, the execution of the operation of each test item is checked, the successful, failed or abnormal operations are recorded, and the possible causes of the problems are further analyzed.

[0141] Figure 5 The present invention provides an automated BIOS testing method, which is applied to a testing device. Figure 5 As shown, the following steps are included:

[0142] Step S501, responding to a test instruction from a user, obtaining device information of a device to be tested and test item information of a test to be performed; the test item information includes at least one test item.

[0143] Step S502: Establish a SOL channel with the device under test based on the device information.

[0144] Step S503, selecting test items one by one, and sending a project start instruction corresponding to the currently selected test item to the device under test; the project start instruction is used to make the device under test start the currently selected test item.

[0145] Step S504, monitoring the channel information of the SOL channel generated when the device under test executes the currently selected test item.

[0146] Step S505, if it is determined based on the newly generated channel information that the currently selected test item has no abnormality and that the currently selected test item has not been completed, a project continuation instruction corresponding to the next test step of the currently selected test item is sent to the device under test to complete the currently selected test item.

[0147] Step S506: if it is monitored that the test items in the test item information are completed, the test result of the device under test is output; the test result indicates whether the BIOS test meets expectations.

[0148] The method of this embodiment also includes: if it is monitored that the test items in the test item information are completed, the test results of the device under test are output; the test results represent whether the BIOS test meets expectations, and the test results of the device under test are automatically output, which can more efficiently determine whether the BIOS test meets expectations, and can further improve the efficiency of testing the BIOS.

[0149] The automated testing method of BIOS provided in the embodiment of the present application, in the process of testing BIOS, responds to the user's test instructions, obtains the device information of the device to be tested and the test item information of the test to be executed; the test item information includes at least one test item; based on the device information, establishes a SOL channel with the device to be tested; selects the test items one by one, and sends the project start instruction corresponding to the currently selected test item to the device to be tested; monitors the channel information of the SOL channel generated when the device to be tested executes the currently selected test item; if it is judged based on the newly generated channel information that the currently selected test item has no abnormality, and it is judged that the currently selected test item has not been executed, then sends the project continuation instruction corresponding to the next test step of the currently selected test item to the device to be tested to complete the currently selected test item. This method can effectively improve the efficiency of testing BIOS by establishing a SOL channel and automatically performing remote testing on BIOS.

[0150] The present application embodiment provides another BIOS automated testing method, which is applied to a device under test, such as Figure 6 As shown, the following steps are included:

[0151] Step S601, responding to a connection request sent by a test device, establishing a SOL channel with the test device; the connection request includes device information of the device under test.

[0152] Step S602, responding to the project start instruction sent by the test device, starting the currently selected test project; the project start instruction is for the test device to select test projects one by one and send to the device under test; the project start instruction corresponds to the currently selected test project.

[0153] Step S603, respond to the project continuation instruction sent by the test device, and continue to execute the next test step of the currently selected test item to complete the currently selected test item; the project continuation instruction is sent by the test device if it is determined based on the newly generated channel information that there is no abnormality in the currently selected test item, and it is determined that the currently selected test item has not been executed; the project continuation instruction corresponds to the next test step of the currently selected test item.

[0154] The automated testing method for BIOS provided by the embodiment of the present application, in the process of testing BIOS, the device under test responds to the connection request sent by the test device and establishes a SOL channel with the test device; the connection request includes the device information of the device under test; responds to the project start instruction sent by the test device and starts the currently selected test item; the project start instruction is for the test device to select the test items one by one and send to the device under test; the project start instruction corresponds to the currently selected test item; responds to the project continue instruction sent by the test device and continues to execute the next test step of the currently selected test item to complete the currently selected test item; the project continue instruction is sent by the test device if it is judged based on the newly generated channel information that the currently selected test item has no abnormality and it is judged that the currently selected test item has not been executed completely; the project continue instruction corresponds to the next test step of the currently selected test item. This method can effectively improve the efficiency of testing BIOS by establishing a SOL channel and automatically performing remote testing on BIOS.

[0155] Based on the same inventive concept, an automatic testing device for BIOS is also provided in the embodiment of the present application. Since the device corresponds to an automatic testing method for BIOS provided in the embodiment of the present application, and the principle of solving the problem by the device is similar to that of the method, the implementation of the device can refer to the implementation of the above method, and the repeated parts will not be repeated.

[0156] Figure 7 The structure diagram of a BIOS automatic test device provided in an embodiment of the present application is shown. The BIOS automatic test device is applied to a test device, such as Figure 7 As shown, the BIOS automatic testing device includes an information acquisition module 701 , a communication connection module 702 , an item opening module 703 , a channel monitoring module 704 and a test control module 705 .

[0157] The information acquisition module 701 is used to respond to the user's test instruction and acquire the device information of the device to be tested and the test item information of the test to be executed; the test item information includes at least one test item;

[0158] The communication connection module 702 is used to establish a SOL channel with the device under test based on the device information;

[0159] The project start module 703 is used to select test items one by one and send a project start instruction corresponding to the currently selected test item to the device under test;

[0160] The channel monitoring module 704 is used to monitor the channel information of the SOL channel generated when the device under test executes the currently selected test item;

[0161] The test control module 705 is used to send a project continuation instruction corresponding to the next test step of the currently selected test item to the device under test if it is determined based on the newly generated channel information that there is no abnormality in the currently selected test item and that the currently selected test item has not been completed, so as to complete the currently selected test item.

[0162] In an optional embodiment, if Figure 8 As shown, the device further includes an information generating module 801; the information generating module 801 is used to:

[0163] If the channel information is indication information of a preset key item, then generating simulated key operation information of the key item;

[0164] Based on the simulated key operation information, an item continuing instruction corresponding to the currently selected test item is obtained.

[0165] In an optional embodiment, the device information includes operating system login verification information, operating system address, BMC login verification information and BMC address; the communication connection module 702 is specifically used to:

[0166] Use the IPMI tool to connect to the BMC device of the device under test based on the operating system login verification information, operating system address, BMC login verification information and BMC address;

[0167] Start a SOL session with the BMC device to establish a SOL channel with the device under test.

[0168] In an optional embodiment, the device information includes model information; Fig. 9 As shown, the device further includes a project parsing module 901; the project parsing module 901 is used to:

[0169] Based on the machine model information, the test items included in the test item information are parsed so that the test items included in the parsed test item information include differentiation parameters corresponding to the machine model information; the differentiation parameters include indication information.

[0170] In an optional embodiment, if Fig.10 As shown, the device further includes a comprehensive analysis module 1001; the comprehensive analysis module 1001 is used to:

[0171] If the test items in the test item information are monitored to be completed, the test results of the device under test are output; the test results indicate whether the BIOS test meets expectations.

[0172] Fig.11 FIG. 1 shows a schematic diagram of the structure of another BIOS automated testing device provided in an embodiment of the present application. The BIOS automated testing device is applied to a device to be tested, such as Fig.11As shown, the BIOS automatic testing device includes a connection response module 1101 , an opening response module 1102 and a control response module 1103 .

[0173] The connection response module 1101 is used to respond to the connection request sent by the test device and establish a SOL channel with the test device; the connection request includes device information of the device under test;

[0174] The start response module 1102 is used to respond to the project start instruction sent by the test device to start the currently selected test project; the project start instruction is for the test device to select test projects one by one and send to the device under test; the project start instruction corresponds to the currently selected test project;

[0175] The control response module 1103 is used to respond to the project continuation instruction sent by the test device, and continue to execute the next test step of the currently selected test item to complete the currently selected test item; the project continuation instruction is sent by the test device if it is judged based on the newly generated channel information that there is no abnormality in the currently selected test item, and it is judged that the currently selected test item has not been executed; the project continuation instruction corresponds to the next test step of the currently selected test item.

[0176] Based on the same inventive concept, an automated BIOS test system is also provided in the embodiment of the present application. Since the system includes the test equipment and the device to be tested provided by the method of the aforementioned embodiment of the present application, and the principle of solving the problem by the system is similar to that of the method, the implementation of the system can refer to the implementation of the aforementioned method, and the repeated parts will not be repeated.

[0177] Based on the same inventive concept as the above method embodiment, an electronic device is also provided in the embodiment of the present application. The electronic device can be used for automated testing of BIOS. In the embodiment of the present application, the electronic device can be a server or a terminal device. In one embodiment, the electronic device can be a terminal device. In this embodiment, the structure of the electronic device can be as follows: Fig.12 As shown, it includes a memory 1201 , a communication module 1203 and one or more processors 1202 .

[0178] The memory 1201 is used to store computer programs executed by the processor 1202. The memory 1201 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.

[0179] The memory 1201 may be a volatile memory, such as a random-access memory (RAM); the memory 1201 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or the memory 1201 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1201 may be a combination of the above memories.

[0180] The processor 1202 may include one or more central processing units (CPU) or a digital processing unit, etc. The processor 1202 is used to implement the above-mentioned BIOS automated testing method when calling the computer program stored in the memory 1201, for example, to implement the following Figure 1 The automated testing method of the BIOS shown in FIG. Figure 6 The automated testing method of BIOS is shown.

[0181] The communication module 1203 is used to communicate with terminal devices and other servers.

[0182] The specific connection medium between the memory 1201, the communication module 1203 and the processor 1202 is not limited in the embodiment of the present application. Fig.12 In the embodiment, the memory 1201 and the processor 1202 are connected via a bus 1204. The bus 1204 is connected to the processor 1202 via a bus 1204. Fig.12 The connections between other components are shown in bold lines, and are not intended to be limiting. Bus 1204 can be divided into address bus, data bus, control bus, etc. For ease of representation, Fig.12 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0183] According to one aspect of the present application, a computer program product or computer program is provided, which includes computer instructions, which are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the computer device executes the automated testing method of the BIOS in the above-mentioned embodiment. The program product can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0184] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A BIOS automated testing method, characterized in that: Applicable to test equipment; including: In response to a test instruction from a user, obtain device information of the device to be tested and test item information of the test to be performed; the test item information includes at least one test item; Based on the device information, establish a SOL channel with the device under test; Select the test items one by one, and send a project start instruction corresponding to the currently selected test item to the device under test; Monitoring the channel information of the SOL channel generated when the device under test executes the currently selected test item; If it is determined based on the newly generated channel information that the currently selected test item has no abnormality and that the currently selected test item has not been completed, a project continuation instruction corresponding to the next test step of the currently selected test item is sent to the device under test to complete the currently selected test item.

2. The method according to claim 1, characterized in that After monitoring the channel information of the SOL channel generated in the execution of the currently selected test item by the device under test, and before sending the project continuing instruction corresponding to the currently selected test item to the device under test, the method further includes: If the channel information is indication information of a preset key item, generating simulated key operation information of the key item; Based on the simulated key operation information, the item continuing instruction corresponding to the currently selected test item is obtained.

3. The method according to claim 1, characterized in that The device information includes operating system login verification information, operating system address, BMC login verification information and BMC address; and establishing a SOL channel with the device under test based on the device information includes: Connecting the BMC device of the device under test through the IPMI tool according to the operating system login verification information, the operating system address, the BMC login verification information and the BMC address; Initiate a SOL session with the BMC device to establish a SOL channel with the device under test.

4. The method according to claim 2, characterized in that: The device information includes model information; before establishing a SOL channel with the device under test based on the device information, the method further includes: Based on the machine model information, the test items included in the test item information are parsed so that the test items included in the parsed test item information include differentiation parameters corresponding to the machine model information; the differentiation parameters include the indication information.

5. The method according to claim 1, characterized in that The method further comprises: If it is monitored that the test item in the test item information is completed, the test result of the device under test is output; the test result indicates whether the test of the BIOS meets expectations.

6. A BIOS automated testing method, characterized in that: Applicable to the device under test; including: Responding to a connection request sent by a test device, establishing a SOL channel with the test device; the connection request includes device information of the device under test; In response to the project start instruction sent by the test device, the currently selected test project is started; the project start instruction is for the test device to select the test items one by one and send to the device under test; the project start instruction corresponds to the currently selected test item; In response to a project continuation instruction sent by the test device, continue to execute the next test step of the currently selected test item to complete the currently selected test item; the project continuation instruction is sent by the test device if it is determined based on the newly generated channel information that the currently selected test item has no abnormality and it is determined that the currently selected test item has not been completed; the project continuation instruction corresponds to the next test step of the currently selected test item.

7. A BIOS automated testing device, characterized in that: Used in testing equipment; include: An information acquisition module is used to respond to a user's test instruction and acquire device information of the device to be tested and test item information of the test to be executed; The test item information includes at least one test item; A communication connection module, used to establish a SOL channel with the device under test based on the device information; A project start module, used to select the test items one by one and send a project start instruction corresponding to the currently selected test item to the device under test; A channel monitoring module, used to monitor the channel information of the SOL channel generated when the device under test executes the currently selected test item; A test control module is used to send a project continuation instruction corresponding to the next test step of the currently selected test item to the device under test if it is judged based on the newly generated channel information that there is no abnormality in the currently selected test item and it is judged that the currently selected test item has not been completed, so as to complete the currently selected test item.

8. A BIOS automated testing device, characterized in that: Applicable to the device under test; including: A connection response module, used to respond to a connection request sent by a test device and establish a SOL channel with the test device; the connection request includes device information of the device under test; The start response module is used to respond to the project start instruction sent by the test device to start the currently selected test project; the project start instruction is for the test device to select the test items one by one and send them to the device under test; the project start instruction corresponds to the currently selected test item; A control response module is used to respond to a project continuation instruction sent by the test device to continue executing the next test step of the currently selected test item to complete the currently selected test item; the project continuation instruction is sent by the test device if it is judged based on the newly generated channel information that the currently selected test item has no abnormality and it is judged that the currently selected test item has not been executed completely; the project continuation instruction corresponds to the next test step of the currently selected test item.

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

10. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the computer program is executed by the processor, the method according to any one of claims 1 to 5 or the method according to claim 6 is implemented.

Citation Information

Cited By

  • BIOS (Basic Input / Output System) testing method and device, medium and electronic equipment

    CN121210226A