A PFR function automated testing system, method, device and storage medium

By designing an automated test system with PFR function, the problems of complex PFR testing process and large manpower investment are solved, and the automated recovery capability test of BIOS firmware in abnormal situations is realized, which improves the testing efficiency and accuracy.

CN115827358BActive Publication Date: 2025-08-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211193026.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-28
Publication Date
2025-08-29
Estimated Expiration
2042-09-28

AI Technical Summary

Technical Problem

The testing process of PFR function in the prior art is complicated, requiring a lot of manpower investment, and automated testing in abnormal situations cannot be achieved, and the testing efficiency and accuracy have not been significantly improved.

Method used

An automated testing system with PFR functions was designed, including an external port management module, a data decoding module, an interactive interface, an AC management module, a test database, a test exception alarm management module and a PFR automation management system, which realized the automated recovery capability test of BIOS firmware in abnormal situations.

Benefits of technology

It realizes automated testing of PFR function, can randomly simulate abnormal situations, save time for manual testing environment construction and cycle testing, and improves testing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115827358B_ABST
    Figure CN115827358B_ABST
Patent Text Reader

Abstract

The present invention proposes an automated testing system, method, device, and storage medium for a power flow rate (PFR) function. The system includes: an external port management module for data communication with a device under test and temporary storage management of some upstream and downstream data; a data decoding module for parsing instructions and feedback data between the device under test; an interactive interface for providing an interactive environment between the automated testing system for the PFR function and a user; an AC management module for simulating abnormal power outages during a BIOS firmware refresh; a test database for recording user settings and storing test steps and test pass criteria for test cases; a test abnormality alarm management module for alarming abnormal test result information; a PFR automated management system for information transmission and test process management; and a data analysis system for retrieving data judgment steps and test pass criteria for test cases from the test database to determine test results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and more particularly to an automated testing system, method, device and storage medium for a PFR function. Background Art

[0002] BIOS (Baseboard Management System) is a crucial component in server system control. It is installed on the server in the form of burnable firmware, and its operational stability is directly related to the stability of server use. To this end, servers generally use PFR (Platform Firmware Resilience) technology to provide an important guarantee for the stable operation of the server. PFR can ensure the stability of the firmware and even prevent firmware crashes in the event of firmware refresh anomalies. Therefore, it is particularly important to implement the basic functions of PFR, handle abnormal situations, and test the stability of PFR functions. However, as PFR is a new technology, it takes a long time for testers to understand and test it, and it requires extremely strong professionalism from testers, resulting in high labor costs.

[0003] At present, testers manually configure the environment and execute manual tests based on the PFR technical documents they retrieve. These tasks include manually installing test drivers, manually installing test tools, manually triggering abnormal conditions, and manually analyzing test data. The testing process is relatively complex, requiring testers to have strong professional skills in configuring the environment and performing data analysis, which requires a lot of time and results that are not 100% accurate.

[0004] In response to the problems of high professionalism and complex tools used in PFR testing, the invention patent with patent number CN202110964736.0 discloses a PFR functional testing method, device, equipment and readable storage medium, which can adopt functional integration to improve testing efficiency. However, the existing technical solutions can only achieve partial automation in environmental configuration and can only improve efficiency to a certain extent in some aspects. However, in terms of test execution, manual testing is still required after the environment is configured. For example, automated testing cannot be achieved in terms of PFR exception handling capabilities and data analysis. Manual triggering of abnormal situations is still required to simulate abnormalities during use. After the test is completed, manual analysis of test results is still required, etc., which requires a large investment of testing manpower and the test efficiency has not been greatly improved. Summary of the Invention

[0005] In response to the above problems, the purpose of the present invention is to provide an automated testing system, method, device and storage medium for PFR functions, which can realize the automated testing function of PFR's ability to recover BIOS firmware under abnormal circumstances, and meet PFR's automated testing requirements for the ability to recover BIOS accessories under abnormal circumstances.

[0006] To achieve the above object, the present invention is implemented through the following technical solutions: an automated testing system for PFR function, comprising:

[0007] The external port management module is used for uplink and downlink data communication with the device under test, and temporarily stores and manages some uplink and downlink data;

[0008] Data decoding module, used for parsing downlink instructions and uplink feedback data between the device under test;

[0009] An interactive interface for providing an interactive environment between the automated test system for the PFR function and the user; an AC management module for simulating abnormal power outages during the BIOS firmware refresh process;

[0010] The test database is used to record user settings, test alarm information, and store test steps and test pass criteria for test cases;

[0011] Test abnormality alarm management module, used for alarming abnormal test result information;

[0012] PFR automated management system, used for information transmission between each module and test process management;

[0013] The data analysis system is used to receive prompt instructions from the PFR automation management system after the test steps are completed, and retrieve the data judgment steps and test pass criteria of the test case from the test database, determine the test results, and automatically generate a test report.

[0014] Furthermore, the interactive interface is specifically used to:

[0015] Collect the options and parameters that the user wants to set, and transmit the relevant information to the PFR automated test management system;

[0016] Displays the relevant information feedback from the device under test and the status of the device under test.

[0017] Furthermore, the AC management module includes a control terminal and an intelligent PDU;

[0018] The AC management module is specifically used for:

[0019] After receiving the power-off or power-on command, the request is sent to the control end, and the control end remotely and automatically controls the power on and off of the power line of the machine under test according to the working principle of the intelligent PDU.

[0020] Furthermore, the user's setting information includes: setting options, setting parameters, setting methods and machine information;

[0021] The test alarm information includes: the test alarm information that occurs during the test process and the basic method of the cause of the test alarm information.

[0022] Furthermore, the test abnormality alarm management module is specifically used to:

[0023] When the test report of the data analysis system indicates a test failure, an alarm message of the test failure is sent to the interactive interface. When the interactive interface receives the alarm instruction, it will prompt the user in the form of a pop-up window or an unread message that the test is completed and the test result is abnormal.

[0024] Furthermore, the PFR automated management system is specifically used to:

[0025] Obtain user requirements for the interactive interface and issue setting instructions to the device under test, and read the information of the device under test;

[0026] Obtain the parameter setting information, firmware version and operation status of the device under test;

[0027] Collect test result feedback in real time and send it to the interactive interface to display to the user;

[0028] Control the AC module to power on and off the device under test through remote commands;

[0029] Packaging of uplink and downlink data, and logical control of information transmission between modules.

[0030] Accordingly, the present invention also discloses an automated testing method for a PFR function, comprising the following steps: S1: refreshing the BMC firmware, BIOS firmware, and CPLD firmware with the PFR function to the machine to be tested according to the test requirements;

[0031] S2: Remotely connect the test machine pre-installed with the PFR automated management system to the machine under test;

[0032] S3: On the test machine, power on the machine under test through the BMC WEB interface and ensure that the network is running normally.

[0033] S4: Upload a BIOS file of a different version than that on the machine under test through the interactive interface and set the required test parameters; S5: Start the test through the interactive interface, control the PFR automated management system to generate corresponding instructions based on the user-set parameters and store them, and call the test case steps stored in the test database to start the cyclic test;

[0034] S6: When it is detected that the PFR is refreshing the BIOS firmware of the machine under test, the power cord of the machine under test is powered off according to the user's preset time interval to simulate an abnormal situation during actual use, and a power-on command is automatically sent to the machine under test after the preset time period to power on;

[0035] S7: Determine the test result based on the state of the machine to be tested after power-on and the BIOS firmware information, and control the cyclic test based on the test result;

[0036] S8: When the cycle test is completed, the recorded test results are automatically analyzed and a test report is generated.

[0037] Further, the step S7 includes:

[0038] If the device under test boots up normally after power-on and the current BIOS firmware version is consistent with the original version before the test, PFR has successfully recovered the BIOS firmware under abnormal conditions. At this point, the relevant test results are recorded and reported in the test report. The next test cycle is then repeated according to the user-set parameters to verify the stability of PFR's ability to recover the BIOS firmware under abnormal conditions.

[0039] If the machine under test boots up normally after power-on but the current BIOS firmware version is inconsistent with the original version before the test, it means that the BIOS recovery failed due to the PFR abnormality. In this case, the abnormal cycle test result is automatically recorded in the test report, and a pop-up window is displayed on the interactive interface to inform the user that the cycle test failed and ask the user whether to continue the cycle test.

[0040] If the machine under test cannot start normally after power-on, it means that the PFR's ability to restore the BIOS firmware has failed and this round of testing has failed. At this time, the abnormal test result of this cycle is automatically recorded in the test report, and a pop-up window is displayed on the interactive interface to prompt the user that this cycle test has failed and to exit the test.

[0041] Accordingly, the present invention discloses an automated testing device for PFR function, comprising:

[0042] A memory for storing an automated test program for a PFR function;

[0043] A processor is configured to implement the steps of the automated testing method for the PFR function as described in any one of the above items when executing the automated testing program for the PFR function.

[0044] Accordingly, the present invention discloses a readable storage medium, on which an automated testing program for a PFR function is stored. When the automated testing program for a PFR function is executed by a processor, the steps of the automated testing method for a PFR function as described in any one of the above items are implemented.

[0045] Compared with the existing technology, the beneficial effects of the present invention are: the present invention discloses an automated testing system, method, device and storage medium for PFR function, which realizes the automated testing of PFR's ability to restore BIOS under abnormal circumstances, can randomly simulate abnormal situations that may occur during actual use, and the fully automatic testing process can save a lot of time investment in manual test environment construction and cyclic testing, improve test efficiency, and improve test accuracy and rigor.

[0046] It can be seen that compared with the prior art, the present invention has outstanding substantial features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0048] Figure 1 It is a system structure diagram of a specific implementation method of the present invention.

[0049] Figure 2 It is a method flow chart of a specific embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to enable those skilled in the art to better understand the present invention, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0051] Example 1:

[0052] like Figure 1 As shown, this embodiment provides an automated testing system for PFR functions, which specifically includes the following functional components:

[0053] External port management module: This module is responsible for the uplink and downlink data communication between the external PFR automated test system and the device under test, and temporarily stores and manages some of the uplink and downlink data.

[0054] Data decoding module: This module is responsible for parsing downlink instructions and uplink feedback data between the external PFR automated test system and the device under test.

[0055] Interactive interface: This module provides an interactive environment between the system and the user. It can collect the options and parameters that the user wants to set and transmit the relevant information to the PFR automated test management system. It can also display relevant information feedback from the test machine and the status of the test machine.

[0056] AC management module: This module includes a control terminal and an intelligent PDU. After receiving a power-off or power-on command, the module sends the request to the control terminal. The control terminal remotely and automatically controls the power supply line of the machine under test based on the working principle of the PDU, simulating abnormal power outages that may occur during the BIOS firmware update process.

[0057] Test database: This module can record the user's commonly used setting options, setting parameters, setting methods, and information about commonly used machines, etc.; it can record the test alarms that often appear during the test process and can prompt the basic method to determine the cause of the alarm information; it can store the test steps of the test case, test pass criteria, etc.

[0058] Data analysis system: After the test steps are completed, this module will receive prompt instructions from the PFR automated management system and start to retrieve the data judgment steps and test pass criteria of the test case from the test database. After the test results are compared with the test criteria, a test report can be automatically generated regardless of whether the test succeeds or fails.

[0059] Test abnormality alarm management module: This module is responsible for the alarm of abnormal test result information. If the result of the data analysis system analysis is failure, the module will send an alarm message of test failure to the interactive interface. When the interactive interface receives the alarm instruction, it will prompt the user in the form of a pop-up window or unread message that the test is completed and the test result is abnormal.

[0060] PFR automated management system: This module is the control center of the entire technical solution. It is responsible for information transmission between each module and test process management. Its main responsibilities include: 1. Obtaining user requirements for the interactive interface and issuing setting instructions to the machine under test, and reading information from the machine under test; 2. Obtaining parameter setting information, firmware version and operating status of the machine under test; 3. Collecting test result feedback in real time and sending it to the interactive interface to display to the user; 4. Controlling the AC module through remote commands to perform operations such as powering on and off the machine under test; 5. Packaging of upstream and downstream data, and logical control of information transmission between modules.

[0061] This embodiment provides an automated testing system for the PFR function, which realizes the automated testing of the PFR BIOS recovery capability under abnormal conditions, and can randomly simulate abnormal conditions that may occur during actual use. The fully automated testing process can save a lot of time investment in manual test environment setup and cyclic testing, thereby improving test efficiency, accuracy, and rigor of the test.

[0062] Example 2:

[0063] Correspondingly, such as Figure 2 As shown, this embodiment discloses an automated testing method for PFR function, comprising the following steps:

[0064] S1: Based on the test requirements, refresh the BMC firmware, BIOS firmware, and CPLD firmware with the PFR function to the machine under test.

[0065] S2: Remotely connect the test machine pre-installed with the PFR automated management system to the machine under test.

[0066] In this step, you need to prepare a test machine that can ping the BMC IP address of the machine under test to remotely connect to the machine under test and run the PFR automated test management system.

[0067] S3: On the test machine, power on the machine under test through the BMC WEB interface and ensure that the network is running normally.

[0068] S4: Upload a BIOS file of a different version than that on the machine to be tested through the interactive interface and set the parameters required for the test.

[0069] The parameters to be set include: the original firmware version of the machine, the firmware version to be updated, the number of test cycles, the abnormal situation simulation triggering method (timed trigger / random trigger) and the test report saving path, etc.

[0070] S5: Start the test through the interactive interface, control the PFR automatic management system to generate corresponding instructions from the parameters set by the user and store them, and call the test case steps stored in the test database to start the cyclic test.

[0071] Specifically, click the "Start Test" button on the interactive interface, and the system will perform tests according to the parameters set by the user. The PFR automated management system will first generate corresponding instructions for the parameters set by the user and store them, and then call the test case steps stored in the test database, and follow the steps to configure the environment of the machine under test, upload firmware, send instructions, receive feedback information from the machine under test, analyze test results, generate test reports, and other actions.

[0072] S6: When it is detected that PFR is refreshing the BIOS firmware of the machine under test, the power cord of the machine under test is powered off according to the user's preset time interval to simulate abnormal conditions during actual use, and a power-on command is automatically sent to the machine under test after the preset time period.

[0073] For example, when the system detects that PFR is refreshing the machine's BIOS firmware, the system will cut off the power cord of the machine under test at a timed or random interval according to the user's settings to simulate abnormal conditions during actual use. After a period of time, the system will automatically send a power-on command to the machine under test to power on.

[0074] S7: Determine the test result based on the state of the machine to be tested after power-on and the BIOS firmware information, and control the cyclic test based on the test result.

[0075] Specifically, this step includes the following three situations:

[0076] If the machine under test boots up normally after power-on and the current BIOS firmware version is consistent with the original version before the test, it means that PFR has successfully recovered the BIOS firmware under abnormal conditions. At this time, the system will record the relevant test results and form the relevant results of this cycle test in the test report. The system will then perform the next cycle test according to the parameters set by the user to verify the stability of PFR's ability to recover the BIOS firmware under abnormal conditions.

[0077] If the machine under test can boot normally after power-on but the current BIOS firmware version is inconsistent with the original version before the test, it means that the BIOS recovery failed under the PFR abnormality. The system will automatically record the abnormal cycle test result in the test report and pop up a window on the interactive interface to prompt the user that the cycle test failed and ask the user whether to continue the cycle test.

[0078] If the machine under test cannot boot normally after power-on, it means that the PFR recovery BIOS firmware ability has failed and this round of testing has failed. The system will automatically record the abnormal test result of this cycle in the test report and pop up a window on the interactive interface to prompt the user that this cycle test has failed and exit the test.

[0079] S8: When the cycle test is completed, the recorded test results are automatically analyzed and a test report is generated.

[0080] When the cycle test is completed, the system will automatically analyze the recorded test results and generate a complete test report. The user can download the complete test report in the interactive interface.

[0081] This embodiment provides an automated testing method for the PFR function, which realizes the automation of the test of the PFR BIOS recovery capability under abnormal conditions, and can randomly simulate abnormal conditions that may occur during actual use. The fully automatic testing process can save a lot of time investment in manual test environment setup and cyclic testing, thereby improving test efficiency, accuracy, and rigor of the test.

[0082] Example 3:

[0083] This embodiment discloses an automated testing device for a PFR function, including a processor and a memory. When the processor executes an automated testing program for the PFR function stored in the memory, the following steps are implemented:

[0084] 1. According to the test requirements, refresh the BMC firmware, BIOS firmware, and CPLD firmware with PFR function to the machine under test.

[0085] 2. Remotely connect the test machine pre-installed with the PFR automated management system to the machine under test.

[0086] 3. On the test machine, power on the machine under test through the BMC WEB interface and ensure that the network is running normally.

[0087] 4. Upload a BIOS file of a different version than that on the machine to be tested through the interactive interface and set the parameters required for the test.

[0088] 5. Start the test through the interactive interface, control the PFR automation management system to generate corresponding instructions for the parameters set by the user and store them, and call the test case steps stored in the test database to start the cyclic test.

[0089] 6. When it is detected that PFR is refreshing the BIOS firmware of the machine under test, the power cord of the machine under test will be powered off according to the user's preset time interval to simulate abnormal conditions during actual use, and a power-on command will be automatically sent to the machine under test after the preset time.

[0090] 7. Determine the test result based on the state of the machine under test and the BIOS firmware information after power-on, and control the cyclic test based on the test result.

[0091] 8. When the cycle test is completed, the recorded test results are automatically analyzed and a test report is generated.

[0092] Furthermore, the automated testing device for the PFR function in this embodiment may further include:

[0093] The input interface is used to obtain an externally imported automated test program for the PFR function and store the obtained automated test program for the PFR function in the memory. It can also be used to obtain various instructions and parameters transmitted by an external terminal device and transmit them to the processor so that the processor can use these various instructions and parameters to perform corresponding processing. In this embodiment, the input interface can specifically include but is not limited to a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk read interface, etc.

[0094] The output interface is used to output various data generated by the processor to the terminal device connected to it, so that other terminal devices connected to the output interface can obtain various data generated by the processor. In this embodiment, the output interface can specifically include but is not limited to a USB interface, a serial interface, etc.

[0095] A communication unit is configured to establish a remote communication connection between the automated test device for the PFR function and an external server, so that the automated test device for the PFR function can mount the image file to the external server. In this embodiment, the communication unit may specifically include, but is not limited to, a remote communication unit based on wireless communication technology or wired communication technology.

[0096] The keyboard is used to obtain various parameter data or instructions input by the user by tapping the keycaps in real time.

[0097] The display is used to display relevant information of the server power supply line short circuit locating process in real time.

[0098] The mouse can be used to assist users in inputting data and simplify user operations.

[0099] Example 4:

[0100] This embodiment further discloses a readable storage medium, which includes random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores an automated test program for the PFR function, which, when executed by a processor, implements the following steps:

[0101] 1. According to the test requirements, refresh the BMC firmware, BIOS firmware, and CPLD firmware with PFR function to the machine under test.

[0102] 2. Remotely connect the test machine pre-installed with the PFR automated management system to the machine under test.

[0103] 3. On the test machine, power on the machine under test through the BMC WEB interface and ensure that the network is running normally.

[0104] 4. Upload a BIOS file of a different version than that on the machine to be tested through the interactive interface and set the parameters required for the test.

[0105] 5. Start the test through the interactive interface, control the PFR automation management system to generate corresponding instructions for the parameters set by the user and store them, and call the test case steps stored in the test database to start the cyclic test.

[0106] 6. When it is detected that PFR is refreshing the BIOS firmware of the machine under test, the power cord of the machine under test will be powered off according to the user's preset time interval to simulate abnormal conditions during actual use, and a power-on command will be automatically sent to the machine under test after the preset time.

[0107] 7. Determine the test result based on the state of the machine under test and the BIOS firmware information after power-on, and control the cyclic test based on the test result.

[0108] 8. When the cyclic test is completed, the recorded test results are automatically analyzed and a test report is generated. In summary, the present invention can realize the automated testing function of the PFR for the recovery capability of the BIOS firmware under abnormal circumstances, and meet the PFR's automated testing requirements for the recovery capability of the BIOS accessories under abnormal circumstances.

[0109] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. References to the same or similar parts between the various embodiments are sufficient. The methods disclosed in the embodiments are described briefly because they correspond to the systems disclosed in the embodiments. For relevant details, refer to the method description.

[0110] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0111] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.

[0112] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0113] In addition, the functional modules in the various embodiments of the present invention may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit.

[0114] Similarly, each processing unit in each embodiment of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units may be integrated into one functional module.

[0115] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0116] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.

[0117] The above is a detailed introduction to the automated testing method, system, device and readable storage medium for the PFR function provided by the present invention. Specific examples are used herein 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. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. An automated testing system for PFR function, characterized in that: include: The external port management module is used for uplink and downlink data communication with the device under test, and temporarily stores and manages some uplink and downlink data; Data decoding module, used for parsing downlink instructions and uplink feedback data between the device under test; An interactive interface, used to provide an interactive environment between the automated test system for the PFR function and the user; AC management module, used to simulate abnormal power outages during the BIOS firmware refresh process; The test database is used to record user settings, test alarm information, and store test steps and test pass criteria for test cases; Test abnormality alarm management module, used for alarming abnormal test result information; PFR automated management system, used for information transmission between each module and test process management; The data analysis system is used to receive prompt instructions from the PFR automation management system after the test steps are completed, retrieve the data judgment steps and test pass criteria of the test case from the test database, determine the test results, and automatically generate a test report; The PFR automated management system is specifically used for: Obtain user requirements for the interactive interface and issue setting instructions to the device under test, and read the information of the device under test; Obtain the parameter setting information, firmware version and operation status of the device under test; Collect test result feedback in real time and send it to the interactive interface to display to the user; Control the AC module to power on and off the device under test through remote commands; Packaging of uplink and downlink data, and logical control of information transmission between modules.

2. The automated testing system for PFR function according to claim 1, characterized in that: The interactive interface is specifically used for: Collect the options and parameters that the user wants to set, and transmit the relevant information to the PFR automated test management system; Displays the relevant information feedback from the device under test and the status of the device under test.

3. The automated testing system for PFR function according to claim 2, characterized in that: The AC management module includes a control terminal and an intelligent PDU; The AC management module is specifically used for: After receiving the power-off or power-on command, the corresponding demand is sent to the control end, and the control end remotely and automatically controls the power on and off actions of the power line of the machine under test according to the working principle of the intelligent PDU.

4. The automated testing system for PFR function according to claim 3, characterized in that: The user's setting information includes: setting options, setting parameters, setting methods and machine information; The test alarm information includes: the test alarm information that occurs during the test process and the basic method of the cause of the test alarm information.

5. The automated testing system for PFR function according to claim 4, characterized in that: The test abnormality alarm management module is specifically used to: When the test report of the data analysis system indicates a test failure, an alarm message of the test failure is sent to the interactive interface. When the interactive interface receives the alarm instruction, it will prompt the user in the form of a pop-up window or an unread message that the test is completed and the test result is abnormal.

6. A method for automated testing of PFR function, characterized in that: The method uses the automated testing system for the PFR function as claimed in claim 1; The method comprises the following steps: S1: Based on the test requirements, refresh the BMC firmware, BIOS firmware, and CPLD firmware with PFR function to the machine under test; S2: Remotely connect the test machine pre-installed with the PFR automated management system to the machine under test; S3: On the test machine, power on the machine under test through the BMC WEB interface and ensure that the network is running normally. S4: Upload a BIOS file of a different version than that on the device under test through the interactive interface and set the parameters required for the test; S5: Start the test through the interactive interface, control the PFR automatic management system to generate corresponding instructions from the parameters set by the user and store them, and call the test case steps stored in the test database to start the cyclic test; S6: When it is detected that the PFR is refreshing the BIOS firmware of the machine under test, the power cord of the machine under test is powered off according to the user's preset time interval to simulate an abnormal situation during actual use, and a power-on command is automatically sent to the machine under test after the preset time period to power on; S7: Determine the test result based on the state of the machine to be tested after power-on and the BIOS firmware information, and control the cyclic test based on the test result; S8: When the cycle test is completed, the recorded test results are automatically analyzed and a test report is generated.

7. The automated testing method for PFR function according to claim 6, characterized in that: The step S7 comprises: If the device under test boots up normally after power-on and the current BIOS firmware version is consistent with the original version before the test, PFR has successfully recovered the BIOS firmware under abnormal conditions. At this point, the relevant test results are recorded and reported in the test report. The next test cycle is then repeated according to the user-set parameters to verify the stability of PFR's ability to recover the BIOS firmware under abnormal conditions. If the machine under test boots up normally after power-on but the current BIOS firmware version is inconsistent with the original version before the test, it means that the BIOS recovery failed due to the PFR abnormality. In this case, the abnormal cycle test result is automatically recorded in the test report, and a pop-up window is displayed on the interactive interface to inform the user that the cycle test failed and ask the user whether to continue the cycle test. If the machine under test cannot start normally after power-on, it means that the PFR's ability to restore the BIOS firmware has failed and this round of testing has failed. At this time, the abnormal test result of this cycle is automatically recorded in the test report, and a pop-up window is displayed on the interactive interface to prompt the user that this cycle test has failed and to exit the test.

8. An automated testing device for PFR function, characterized in that: include: A memory for storing an automated test program for a PFR function; A processor is configured to implement the steps of the automated testing method for the PFR function according to any one of claims 6 to 7 when executing the automated testing program for the PFR function.

9. A readable storage medium, characterized in that: The readable storage medium stores an automated testing program for the PFR function. When the automated testing program for the PFR function is executed by the processor, the steps of the automated testing method for the PFR function according to any one of claims 6 to 7 are implemented.

Citation Information

Patent Citations

  • A PFR functional testing method, apparatus, device, and readable storage medium

    CN113722170B

  • Locking method, device and equipment for platform firmware protection recovery, and medium

    CN113127883A

  • Mainboard and server

    CN113448401A