CN115827358A - Automatic test system, method and device for PFR function and storage medium - Google Patents

Automatic test system, method and device for PFR function and storage medium Download PDF

Info

Publication number
CN115827358A
CN115827358A CN202211193026.3A CN202211193026A CN115827358A CN 115827358 A CN115827358 A CN 115827358A CN 202211193026 A CN202211193026 A CN 202211193026A CN 115827358 A CN115827358 A CN 115827358A
Authority
CN
China
Prior art keywords
test
pfr
tested
machine
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211193026.3A
Other languages
Chinese (zh)
Inventor
崔丽杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211193026.3A priority Critical patent/CN115827358A/en
Publication of CN115827358A publication Critical patent/CN115827358A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides an automatic test system, a method, a device and a storage medium of PFR function, wherein the system comprises: the external port management module is used for data communication with the to-be-tested machine and carrying out temporary storage management on the uplink data and the downlink data; the data decoding module is used for analyzing the instruction and the feedback data with the to-be-tested machine; the interactive interface is used for providing an interactive environment between the automatic test system of the PFR function and a user; the AC management module is used for simulating the abnormal power-off condition in the process of refreshing the BIOS firmware; the test database is used for recording the setting information of the user and storing the test steps and the test passing standards of the test cases; the test abnormity alarm management module is used for alarming the test result abnormity condition information; the PFR automatic management system is used for information transmission and test flow management; and the data analysis system is used for calling the data judgment step and the test passing standard of the test case from the test database and determining the test result.

Description

Automatic test system, method and device for PFR function and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a system, a method and a device for automatically testing a PFR function and a storage medium.
Background
The BIOS (base board manager) is an important component in the control of a server system, is installed on a server in a way of burning firmware, and the operation stability of the BIOS is directly related to the use stability of the server. Therefore, the server generally adopts a PFR (Platform Firmware Resilience) technology to provide an important guarantee for the stable operation of the server, and the PFR can guarantee the stability of the Firmware and even prevent the Firmware from crashing under the condition of Firmware refresh exception. Therefore, it is important to realize the basic function of the PFR, handle the abnormal condition, and test the stability of the PFR function. However, as a new technology, PFR takes a long time for a tester to understand and test, and requires great expertise and labor cost of the tester.
At the present stage, a tester performs manual environment configuration and manual test execution according to the queried PFR technical document, such as manual installation of a test driver, manual installation of a test tool, manual triggering of abnormal conditions, manual analysis of test data, and the like, and the test process is relatively complex, so that for the tester, the configuration of environment and data analysis and the like need strong professional ability, more time is invested, and the test result cannot reach hundreds of accuracy.
Aiming at the problems of high professional PFR test and complex used tools, the invention patent with the patent number CN202110964736.0 discloses a PFR function test method, a device, equipment and a readable storage medium, which can adopt a function integration mode to improve the test efficiency. However, in the prior art, only partial automation in the aspect of environment configuration can be realized, only a certain efficiency can be improved in a partial manner, but a manual test is still required to be performed after the environment is configured in the aspect of test execution, for example, an automatic test cannot be realized in the aspects of PFR exception handling capability, data analysis and the like, an exception in the use process still needs to be simulated by manually triggering an exception condition, a test result still needs to be manually analyzed after the test is completed, and thus, a large test labor input is required, and the test efficiency is not greatly improved.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide an automatic testing system, method, device and storage medium for PFR function, which can realize an automatic testing function for recovery capability of a BIOS firmware under an abnormal condition by a PFR, and meet an automatic testing requirement for recovery capability of a BIOS accessory under an abnormal condition by the PFR.
In order to achieve the purpose, the invention is realized by the following technical scheme: an automated test system for PFR functionality comprising:
the external port management module is used for communicating with the data between the to-be-tested machines up and down and temporarily storing and managing the uplink data and the downlink data of the part;
the data decoding module is used for analyzing downlink instructions and uplink feedback data with the to-be-tested machine;
the interactive interface is used for providing an interactive environment between the automatic test system of the PFR function and a user; the AC management module is used for simulating the abnormal power-off condition in the process of refreshing the BIOS firmware;
the test database is used for recording the setting information and the test alarm information of the user and storing the test steps and the test passing standards of the test cases;
the test abnormity alarm management module is used for alarming the test result abnormity condition information;
the PFR automatic management system is used for information transmission and test flow management among all modules;
and the data analysis system is used for receiving a prompt instruction of the PFR automatic management system after the test of the step to be tested is finished, calling the data judgment step of the test case and the test passing standard from the test database, determining the test result and automatically generating a test report.
Further, the interactive interface is specifically configured to:
collecting options and parameters which a user wants to set, and transmitting related information to a PFR automatic test management system;
and displaying the related information fed back by the end of the machine to be tested and the state of the machine to be tested.
Further, the AC management module comprises a control end and an intelligent PDU;
the AC management module is specifically configured to:
after receiving a power-off or power-on command, the demand is sent to the control end, and the control end remotely and automatically controls the power-on and power-off actions of the power line of the machine to be tested according to the PDU-only working principle.
Further, the setting information of the user includes: setting options, setting parameters, setting methods and machine information;
the test alarm information includes: the basic method of the test alarm information and the reason of the test alarm information in the test process.
Further, the test exception alarm management module is specifically configured to:
when the test report of the data analysis system is test failure, sending alarm information of the test failure to the interactive interface, and after the interactive interface receives the alarm instruction, prompting a user to complete the test in a popup window or unread message mode and ensuring that the test result is abnormal.
Further, the PFR automated management system is specifically configured to:
acquiring user requirements of an interactive interface, issuing a setting instruction for a to-be-tested machine, and reading information of the to-be-tested machine end;
acquiring parameter setting information, firmware version and operation condition of a terminal to be tested;
collecting test result feedback in real time and sending the feedback to an interactive interface to be displayed to a user;
controlling an AC module to perform power-off and power-on operations on the to-be-tested machine through a remote instruction;
and (3) packaging uplink and downlink data and performing logic control on information transmission among the modules.
Correspondingly, the invention also discloses an automatic test method of the PFR function, which comprises the following steps: s1: refreshing BMC firmware, BIOS firmware and CPLD firmware with PFR function to a machine to be tested according to test requirements;
s2: remotely connecting a tester pre-equipped with a PFR automatic management system to a to-be-tested machine;
s3: starting up a machine to be tested on a testing machine through a BMC (baseboard management controller) WEB interface, and ensuring that a network runs normally;
s4: uploading BIOS files of different versions on the to-be-tested machine through an interactive interface, and setting parameters required by testing; s5: starting a test through an interactive interface, controlling a PFR automatic management system to generate and store corresponding instructions for parameters set by a user, and calling a test case step stored in a test database to start a cycle test;
s6: when the PFR is detected to refresh the BIOS firmware of the machine to be tested, the power line of the machine to be tested is powered off according to the preset time interval of a user to simulate the abnormal condition in the actual use process, and a power-on instruction is automatically sent to the machine to be tested for power-on after the preset time length;
s7: judging a test result according to the state of the powered-on to-be-tested machine and the BIOS firmware information, and controlling a cycle test according to the test result;
s8: and when the cycle test is completed, automatically analyzing the recorded test result and generating a test report.
Further, the step S7 includes:
if the power-on state is over, the machine to be tested can be normally started and the version of the current BIOS firmware is consistent with the original version before the test, the PFR is indicated to successfully recover the BIOS firmware in the abnormal environment; at the moment, recording a related test result, forming the related result of the cycle test in a test report, and carrying out the next cycle test according to parameters set by a user so as to verify the stability of the capability of recovering the BIOS firmware under the condition of abnormal PFR;
if the power is on, the machine to be tested can be normally started but the current BIOS firmware version is not consistent with the original version before testing, the recovery of the BIOS fails under the abnormal condition of the PFR; at the moment, automatically recording a cycle abnormity test result into a test report, prompting a user that the cycle test fails in an interactive interface pop-up window, and inquiring whether the user continues to carry out the cycle test;
if the to-be-tested machine cannot be normally started after being electrified, the PFR fails to recover the BIOS firmware capability, and the test of the round fails; at this time, the cycle abnormal test result is automatically recorded in the test report, and the user is prompted to fail the cycle test and quit the test in a pop-up window of the interactive interface.
Correspondingly, the invention discloses an automatic testing device for PFR function, comprising:
the memory is used for storing an automatic test program of the PFR function;
a processor for implementing the steps of the automated testing method for PFR functions as described in any of the above when executing the automated testing program for PFR functions.
Accordingly, the present invention discloses a readable storage medium, on which an automated test program of PFR functions is stored, which when executed by a processor implements the steps of the automated test method of PFR functions as described in any of the above.
Compared with the prior art, the invention has the beneficial effects that: the invention discloses an automatic test system, a method, a device and a storage medium for PFR function, which realizes the test automation of the capability of PFR for recovering BIOS under abnormal conditions, can randomly simulate the abnormal conditions which can appear in the actual use process, and the full-automatic test flow can save a large amount of time investment for manual test environment construction and cycle test, improve the test efficiency and improve the accuracy and rigor of the test.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a system block diagram of an embodiment of the present invention.
FIG. 2 is a flow chart of a method of an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
as shown in fig. 1, the present embodiment provides an automated PFR function testing system, which specifically includes the following functional components:
an external port management module: the module is responsible for data up-and-down communication between an external PFR automatic test system and a machine to be tested, and temporary storage management is carried out on part of uplink and downlink data.
A data decoding module: the module is responsible for analyzing downlink instructions and uplink feedback data between an external PFR automatic test system and a machine to be tested.
An interactive interface: the module provides an interactive environment between the system and a user, can collect options and parameters which the user wants to set, and transmits related information to the PFR automatic test management system; in addition, the related information fed back by the end of the tester and the state of the tester can be displayed.
An AC management module: the module comprises a control end and an intelligent PDU; after receiving a power-off or power-on instruction, the module sends the requirement to the control end, and the control end remotely and automatically controls the power line power-on and power-off actions of the machine to be tested according to the PDU working principle, so that the simulation of abnormal power-off conditions possibly occurring in the process of refreshing the BIOS firmware is realized.
Testing a database: the module can record the setting options, setting parameters, setting methods, information of common machines and the like which are commonly used by a user; can record the test alarm frequently appearing in the test process and can prompt the basic method for judging the reason of the alarm information; the test steps, test pass criteria, etc. of the test case may be stored.
A data analysis system: after the test of the step to be tested is completed, the module receives a prompt instruction of the PFR automatic management system, namely, the module can start to call the data judgment step and the test passing standard of the test case from the test database, and after the comparison between the test result and the test standard is completed, a test report can be automatically generated no matter whether the test is successful or failed.
The test abnormity alarm management module: the module is responsible for alarming the abnormal information of the test result, if the result of the analysis part of the data analysis system is failure, the module sends the alarm information of the test failure to the interactive interface, and after the interactive interface receives the alarm instruction, the user is prompted in a popup window or unread message mode that the test is completed and the test result is abnormal.
PFR automation management system: the module is a control center of the whole technical scheme and takes charge of functions of information transmission, test flow management and the like among the modules; the main responsible work mainly includes: 1. acquiring user requirements of an interactive interface, issuing a setting instruction for a to-be-tested machine, and reading information of the to-be-tested machine end; 2. acquiring parameter setting information, firmware version and operation condition 3 of a to-be-tested terminal, collecting test result feedback in real time and sending the feedback to an interactive interface to be displayed to a user; 4. and controlling the AC module to perform operations 5 such as power-off and power-on the to-be-tested machine, packaging uplink and downlink data and performing logic control on information transmission among the modules through the remote instruction.
The embodiment provides an automatic test system of PFR function, which realizes the test automation of the capability of PFR for recovering BIOS under abnormal conditions, can randomly simulate the abnormal conditions which can occur in the actual use process, and the fully automatic test flow can save a large amount of time investment of manual test environment construction and cycle test, improve the test efficiency, and improve the accuracy and rigidness of the test.
Example two:
correspondingly, as shown in fig. 2, the present embodiment discloses an automated testing method for PFR function, which includes the following steps:
s1: and refreshing the BMC firmware, the BIOS firmware and the CPLD firmware with the PFR function to the machine to be tested according to the test requirement.
S2: and remotely connecting the tester pre-equipped with the PFR automatic management system to the machine to be tested.
In this step, a tester capable of ping BMC IP of the dut needs to be prepared for remotely connecting the dut and operating the PFR automated test management system.
S3: and starting the machine to be tested on the testing machine through a BMC (baseboard management controller) WEB interface, and ensuring that the network runs normally.
S4: and uploading BIOS files with different versions on the to-be-tested machine through the interactive interface, and setting parameters required by testing.
The set parameters include: the original firmware version of the machine, the firmware version to be refreshed, the number of test turns, the abnormal condition simulation triggering mode (timing triggering/random triggering), the test report saving path and the like.
S5: and starting the test through the interactive interface, controlling the PFR automatic management system to generate and store corresponding instructions for the parameters set by the user, and calling the test case steps stored in the test database to start the cycle test.
Specifically, a 'start test' button is clicked on an interactive interface, at the moment, the system can carry out testing according to parameters set by a user, the PFR automatic management system firstly generates and stores corresponding instructions for the parameters set by the user, then calls test case steps stored in a test database, and carries out actions such as environment configuration of the machine to be tested, firmware uploading, instruction sending, feedback information receiving of the machine to be tested, test result analysis, test report generation and the like according to the steps.
S6: when the PFR is detected to refresh the BIOS firmware of the machine to be tested, the power supply line of the machine to be tested is powered off according to the preset time interval of a user to simulate the abnormal condition in the actual use process, and a power-on instruction is automatically sent to the machine to be tested to be powered on after the preset time length.
For example, when the system detects that the PFR is refreshing the BIOS firmware of the machine, the system may periodically or randomly power off the power line of the dut according to the setting of the user to simulate an abnormal situation during actual use, and after a period of time, the system may automatically send a power-on command to power on the dut.
S7: and judging a test result according to the state of the powered-on to-be-tested machine and the BIOS firmware information, and controlling the cycle test according to the test result.
Specifically, this step includes the following three cases:
if the power is on, the machine to be tested can be normally started, and the version of the current BIOS firmware is consistent with the original version before testing, the fact that the PFR successfully recovers the BIOS firmware in the abnormal environment is indicated, at the moment, the system records the relevant test result and forms the relevant result of the cycle test in the test report, and the next cycle test is carried out according to the parameters set by the user so as to verify the stability of the capability of recovering the BIOS firmware under the abnormal condition of the PFR.
If the power is on, the machine to be tested can be normally started but the current BIOS firmware version is not consistent with the original version before testing, the recovery of the BIOS fails under the condition of PFR exception, the system can automatically record the cycle exception test result to the test report, and prompt the user of the cycle exception test failure and ask the user whether to continue the cycle test or not through a pop-up window on the interactive interface.
If the tested machine can not be normally started after being electrified, the PFR can be indicated to fail in recovering the BIOS firmware capability, the test of the round fails, the system can automatically record the cycle abnormal test result to the test report, and a pop-up window of an interactive interface prompts a user that the cycle test fails and the test is exited.
S8: and when the cycle test is completed, automatically analyzing the recorded test result and generating a test report.
After the cycle test is completed, the system automatically analyzes the recorded test result and generates a complete test report, and the user downloads the complete test report on the interactive interface.
The embodiment provides an automatic test method for a PFR function, which realizes the test automation of the capability of the PFR to recover the BIOS under the abnormal condition, can randomly simulate the abnormal condition which can occur in the actual use process, and the fully automatic test flow can save a large amount of time investment for manual test environment construction and cycle test, improve the test efficiency, and improve the accuracy and the rigor of the test.
Example three:
the embodiment discloses an automatic testing device for PFR function, which comprises a processor and a memory; wherein the processor implements the following steps when executing an automated test program of PFR functions stored in the memory:
1. and refreshing the BMC firmware, the BIOS firmware and the CPLD firmware with the PFR function to the machine to be tested according to the test requirement.
2. And remotely connecting the tester pre-equipped with the PFR automatic management system to the machine to be tested.
3. And starting the machine to be tested on the testing machine through a BMC (baseboard management controller) WEB interface, and ensuring that the network runs normally.
4. And uploading BIOS files with different versions on the to-be-tested machine through the interactive interface, and setting parameters required by testing.
5. And starting the test through the interactive interface, controlling the PFR automatic management system to generate and store corresponding instructions for the parameters set by the user, and calling the test case steps stored in the test database to start the cycle test.
6. When the PFR is detected to refresh the BIOS firmware of the machine to be tested, the power supply line of the machine to be tested is powered off according to the preset time interval of a user to simulate the abnormal condition in the actual use process, and a power-on instruction is automatically sent to the machine to be tested to be powered on after the preset time length.
7. And judging a test result according to the state of the powered-on to-be-tested machine and the BIOS firmware information, and controlling the cycle test according to the test result.
8. And when the cycle test is completed, automatically analyzing the recorded test result and generating a test report.
Further, the automatic testing apparatus for PFR function in this embodiment may further include:
the input interface is used for acquiring an automatic test program of the PFR function imported from the outside, storing the acquired automatic test program of the PFR function in the memory, and also used for acquiring various instructions and parameters transmitted by external terminal equipment and transmitting the instructions and parameters to the processor, so that the processor can utilize the instructions and parameters to perform corresponding processing. In this embodiment, the input interface may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, and the like.
And the output interface is used for outputting various data generated by the processor to the terminal equipment connected with the output interface so that other terminal equipment connected with the output interface can acquire various data generated by the processor. In this embodiment, the output interface may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
And the communication unit is used for establishing remote communication connection between the automatic test device with the PFR function and the external server so that the automatic test device with the PFR function can mount the mirror image file into the external server. In this embodiment, the communication unit may specifically include, but is not limited to, a remote communication unit based on a wireless communication technology or a wired communication technology.
And the keyboard is used for acquiring various parameter data or instructions input by a user through real-time key cap knocking.
And the display is used for displaying relevant information in the short circuit positioning process of the power supply line of the running server in real time.
The mouse can be used for assisting a user to input data and simplifying the operation of the user.
Example four:
the present embodiments also disclose a readable storage medium, where the readable storage medium includes Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable hard disk, a CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores an automated test program of PFR functions, which when executed by the processor implements the steps of:
1. and refreshing the BMC firmware, the BIOS firmware and the CPLD firmware with the PFR function to the machine to be tested according to the test requirement.
2. And remotely connecting the tester pre-equipped with the PFR automatic management system to the machine to be tested.
3. And starting the machine to be tested on the testing machine through a BMC (baseboard management controller) WEB interface, and ensuring that the network runs normally.
4. And uploading BIOS files with different versions on the to-be-tested machine through the interactive interface, and setting parameters required by testing.
5. And starting the test through the interactive interface, controlling the PFR automatic management system to generate and store corresponding instructions for the parameters set by the user, and calling the test case steps stored in the test database to start the cycle test.
6. When the PFR is detected to refresh the BIOS firmware of the machine to be tested, the power supply line of the machine to be tested is powered off according to the preset time interval of a user to simulate the abnormal condition in the actual use process, and a power-on instruction is automatically sent to the machine to be tested to be powered on after the preset time length.
7. And judging a test result according to the state of the powered-on to-be-tested machine and the BIOS firmware information, and controlling the cycle test according to the test result.
8. And when the cycle test is completed, automatically analyzing the recorded test result and generating a test report. In summary, the present invention can realize the automatic testing function of the PFR on the recovery capability of the BIOS firmware under the abnormal condition, and meet the automatic testing requirement of the PFR on the recovery capability of the BIOS accessory under the abnormal condition.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The method disclosed by the embodiment corresponds to the system disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed system, system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit.
Similarly, each processing unit in the embodiments of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units are integrated into one functional module.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The method, system, device and readable storage medium for automatically testing the PFR function provided by the invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. An automated test system for PFR functionality, comprising:
the external port management module is used for communicating with the data between the to-be-tested machines up and down and temporarily storing and managing the uplink data and the downlink data of the part;
the data decoding module is used for analyzing downlink instructions and uplink feedback data with the to-be-tested machine;
the interactive interface is used for providing an interactive environment between the automatic test system of the PFR function and a user;
the AC management module is used for simulating the abnormal power-off condition in the process of refreshing the BIOS firmware;
the test database is used for recording the setting information and the test alarm information of the user and storing the test steps and the test passing standard of the test case;
the test abnormity alarm management module is used for alarming the test result abnormity condition information;
the PFR automatic management system is used for information transmission and test flow management among all modules;
and the data analysis system is used for receiving a prompt instruction of the PFR automatic management system after the test of the step to be tested is completed, calling the data judgment step and the test passing standard of the test case from the test database, determining the test result and automatically generating a test report.
2. The automated PFR functionality testing system of claim 1, wherein said interactive interface is specifically configured to:
collecting options and parameters which a user wants to set, and transmitting related information to a PFR automatic test management system;
and displaying the related information fed back by the end of the machine to be tested and the state of the machine to be tested.
3. The automated PFR function testing system of claim 2, wherein said AC management module comprises a control end and an intelligent PDU;
the AC management module is specifically configured to:
after receiving a power-off or power-on command, the demand is sent to the control end, and the control end remotely and automatically controls the power-on and power-off actions of the power line of the machine to be tested according to the PDU-only working principle.
4. The automated PFR functionality testing system of claim 3, wherein said user's setup information comprises: setting options, setting parameters, setting methods and machine information;
the test alarm information includes: the basic method of the test alarm information and the reason of the test alarm information in the test process.
5. The automated testing system of PFR functions of claim 4, wherein said test exception alert management module is specifically configured to:
when the test report of the data analysis system is test failure, sending alarm information of the test failure to the interactive interface, and after the interactive interface receives the alarm instruction, prompting a user to complete the test in a popup window or unread message mode and ensuring that the test result is abnormal.
6. The automated PFR functionality testing system of claim 5, wherein said automated PFR management system is specifically configured to:
acquiring user requirements of an interactive interface, issuing a setting instruction for a to-be-tested machine, and reading information of the to-be-tested machine end;
acquiring parameter setting information, a firmware version and an operation condition of a terminal to be tested;
collecting test result feedback in real time and sending the feedback to an interactive interface to be displayed to a user;
controlling an AC module to perform power-off and power-on operations on the to-be-tested machine through a remote instruction;
and (3) packaging uplink and downlink data and performing logic control on information transmission among the modules.
7. An automatic test method for PFR function is characterized by comprising the following steps:
s1: refreshing the BMC firmware, the BIOS stock and the CPLD firmware with the PFR function to a machine to be tested according to the test requirement;
s2: remotely connecting a tester pre-equipped with a PFR automatic management system to a to-be-tested machine;
s3: starting up a machine to be tested on a testing machine through a BMC (baseboard management controller) WEB interface, and ensuring that a network runs normally;
s4: uploading BIOS files of different versions on the to-be-tested machine through an interactive interface, and setting parameters required by testing;
s5: starting a test through an interactive interface, controlling a PFR automatic management system to generate and store corresponding instructions for parameters set by a user, and calling a test case step stored in a test database to start a cycle test;
s6: when the PFR is detected to refresh the BIOS firmware of the machine to be tested, the power line of the machine to be tested is powered off according to the preset time interval of a user to simulate the abnormal condition in the actual use process, and a power-on command is automatically sent to the machine to be tested to be powered on after the preset time length;
s7: judging a test result according to the state of the powered-on to-be-tested machine and the BIOS firmware information, and controlling a cycle test according to the test result;
s8: and when the cycle test is completed, automatically analyzing the recorded test result and generating a test report.
8. The method for automated testing of PFR function of claim 7, wherein said step S7 comprises:
if the power-on state is finished, the machine to be tested can be normally started and the version of the current BIOS firmware is consistent with the original version before testing, the PFR successfully recovers the BIOS firmware in an abnormal environment; at the moment, recording related test results, forming the related results of the cycle test in a test report, and carrying out the next cycle test according to parameters set by a user so as to verify the stability of the capability of recovering the BIOS firmware under the abnormal condition of the PFR;
if the power is on, the machine to be tested can be normally started but the current BIOS firmware version is not consistent with the original version before testing, the recovery of the BIOS fails under the abnormal condition of the PFR; at the moment, automatically recording a cycle abnormity test result into a test report, prompting a user that the cycle test fails in an interactive interface pop-up window, and inquiring whether the user continues to carry out the cycle test;
if the to-be-tested machine cannot be normally started after being electrified, the PFR fails to recover the BIOS firmware capability, and the test of the round fails; at this time, the cycle abnormal test result is automatically recorded in the test report, and the user is prompted to fail the cycle test and quit the test in a pop-up window of the interactive interface.
9. An automated PFR function testing apparatus, comprising:
the memory is used for storing an automatic test program of the PFR function;
a processor for implementing the steps of the automated testing method for PFR functions as claimed in any of claims 7 to 8 when executing the automated testing program for PFR functions.
10. A readable storage medium, characterized by: the readable storage medium has stored thereon an automated test program of PFR functions, which when executed by a processor, performs the steps of the method of automated testing of PFR functions as claimed in any one of claims 7 to 8.
CN202211193026.3A 2022-09-28 2022-09-28 Automatic test system, method and device for PFR function and storage medium Pending CN115827358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211193026.3A CN115827358A (en) 2022-09-28 2022-09-28 Automatic test system, method and device for PFR function and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211193026.3A CN115827358A (en) 2022-09-28 2022-09-28 Automatic test system, method and device for PFR function and storage medium

Publications (1)

Publication Number Publication Date
CN115827358A true CN115827358A (en) 2023-03-21

Family

ID=85524135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211193026.3A Pending CN115827358A (en) 2022-09-28 2022-09-28 Automatic test system, method and device for PFR function and storage medium

Country Status (1)

Country Link
CN (1) CN115827358A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116610511A (en) * 2023-07-18 2023-08-18 合肥康芯威存储技术有限公司 Storage test equipment and test method thereof
CN117234909A (en) * 2023-09-08 2023-12-15 浪潮智慧科技有限公司 Water conservancy application software test system based on computer system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116610511A (en) * 2023-07-18 2023-08-18 合肥康芯威存储技术有限公司 Storage test equipment and test method thereof
CN116610511B (en) * 2023-07-18 2024-04-05 合肥康芯威存储技术有限公司 Storage test equipment and test method thereof
CN117234909A (en) * 2023-09-08 2023-12-15 浪潮智慧科技有限公司 Water conservancy application software test system based on computer system
CN117234909B (en) * 2023-09-08 2024-06-11 浪潮智慧科技有限公司 Water conservancy application software test system based on computer system

Similar Documents

Publication Publication Date Title
CN115827358A (en) Automatic test system, method and device for PFR function and storage medium
CN109840207B (en) AutoSAR-based network management automation test system and test method
CN101478449B (en) Protocol automatic test method and system thereof
CN112115038A (en) Application testing method and device and storage medium
CN110768863A (en) Scheme for simulation test of AIOT equipment
CN109597475A (en) A kind of server power supply information processing method, apparatus and system
CN113259409A (en) T-box simulation test system applied to scene test of Internet of vehicles
CN112015609A (en) Hot plug test method, device and equipment
CN113590401B (en) CPE equipment multifunctional test method, CPE equipment multifunctional test device, computer equipment and storage medium
CN111078484A (en) Power-off test method, device, equipment and storage medium for system upgrading
CN112269697B (en) Equipment storage performance testing method, system and related device
CN113626306A (en) Jenkins-based BMC automatic testing method and device
CN108910642A (en) Elevator debugging information processing method, system, readable storage medium storing program for executing and commissioning device
CN218183372U (en) Automatic testing arrangement of passenger cabin product
CN116306429A (en) Method, device, computer storage medium and terminal for realizing state data capture
CN108965053B (en) Method, device and system for testing software pressure of upper computer
CN113687993B (en) Up-down electric test system of airborne equipment
CN113687992B (en) Method for electrifying and electrifying test of airborne equipment
CN114879647A (en) ECU fault code test system, electronic controller and car
CN114531383A (en) Abnormity detection method, device and equipment for railway vehicle-mounted switch and storage medium
CN110687495B (en) Device, system and method for testing reliability of power failure active reporting function
CN111679943A (en) Server test system
CN112904105A (en) Method, device and system for testing initialization function of transformer substation relay protection device
CN106257305B (en) One kind obtaining source list automated detection method based on GNSS receiver hardware module
CN114281615B (en) Automatic testing system and method for consistency of stored data

Legal Events

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