A method, device, equipment, medium and product for PFR abnormal power-off cycle test

CN115658405BActive Publication Date: 2026-09-11INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211330135.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-27
Publication Date
2026-09-11
Estimated Expiration
2042-10-27

AI Technical Summary

Technical Problem

[0004]本申请实施例在于提供一种PFR异常断电循环测试方法、装置、设备、介质及产品,旨在解决PFR异常断电循环测试过程无法自动化实现的问题

Benefits of technology

[0069]This application provides a method, apparatus, device, medium, and product for PFR abnormal power outage cycle testing, comprising: receiving test setting information to generate a test setting document and a configuration script; sending the test setting document to a server under test; receiving correct configuration feedback information from the server under test; sending the configuration script to the server under test; receiving configuration detection results from the server under test; if the configuration detection results are verified as qualified; controlling an external power supply to power off the server under test according to the test setting information; and receiving and analyzing test information returned by the server under test; repeatedly controlling the external power supply to power on and off the server under test according to the test setting information; receiving multiple test information returned by the server under test; analyzing each returned test information; and outputting test results. This method has the following advantages:

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115658405B_ABST
    Figure CN115658405B_ABST
Patent Text Reader

Abstract

The embodiment of the application relates to the computer technical field, discloses a kind of PFR abnormal power-off cycle test method, device, equipment, medium and product, comprising: according to test setting information, configuration is carried out to the server to be measured;In the case where the configuration detection is qualified, according to the test setting information, control external power supply is powered off to the server to be measured, and the test information returned by the server to be measured is received and analyzed;According to test setting information, repeatedly control external power supply is powered on and off to the server to be measured, receive the multiple test information returned by the server to be measured, analyze the test information returned each time, and output test result.The test setting information of the application is automatically transmitted to the server to be measured, and the automatic construction of test environment can be completed.And each round of power-off test is automatically carried out and analyzed, the time loss of cycle test is reduced, the accuracy of test procedure is improved, and the test situation is more accurately and carefully reflected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more specifically, to a method, apparatus, device, medium, and product for PFR abnormal power outage cycle testing. Background Technology

[0002] The PFR (Platform Firmware Resilience) function of a server is a crucial guarantee for stable server operation, protecting the server firmware in the event of firmware anomalies. The timely and effective functioning of PFR is a key factor in ensuring server operational security. During server power outages and restarts, the PFR system automatically verifies the server firmware environment and repairs any firmware corruption that may have been caused by the abnormal power outage. Therefore, server testing phases need to test the functionality, stability, and handling of anomalies of PFR. This testing can be conducted using a series of abnormal power outages.

[0003] However, currently, when conducting abnormal power outage loop tests, testers need to manually configure the test environment according to the PFR technical documentation, manually install the corresponding test software, drivers, and other software, configure the operating system environment, and then manually perform tests according to the designed test cases, manually set the corresponding parameters, check the server parameter settings after restarting, and analyze the data results. This process cannot automatically loop through PFR option settings, untimed power outages, and CPLD data verification processes, nor can it perform stability testing of the PFR function. Therefore, how to automate the PFR abnormal power outage loop test has become an urgent problem to be solved. Summary of the Invention

[0004] This application provides a method, apparatus, equipment, medium, and product for PFR abnormal power outage cycle testing, aiming to solve the problem that the PFR abnormal power outage cycle testing process cannot be automated.

[0005] The first aspect of this application provides a PFR (Power Failure Cycle) abnormal power-off cycle test method, applied to a test management system, including:

[0006] Receive test setting information to generate a test setting document and a configuration script, send the test setting document to the server under test, receive correct configuration feedback information sent by the server under test, and send the configuration script to the server under test;

[0007] The system receives the configuration test result sent by the server under test. If the configuration test result is qualified, it controls the external power supply to cut off the power to the server under test according to the test setting information, and receives the test information returned by the server under test for analysis.

[0008] Based on the test settings, the external power supply is repeatedly switched on and off to power the server under test. Multiple test messages are received from the server under test, and each returned test message is analyzed to output the test results.

[0009] Optionally, the test setup document is sent to the server under test, including:

[0010] The test setup document is classified and transcoded according to the control format required by the server under test to obtain a transcoded test setup document;

[0011] The transcoding test settings document is sent to the external serial port management module of the test management system. The external serial port management module is used to manage the information transmission between the server under test and the test management system.

[0012] Optionally, the external power supply is controlled to power off the server under test according to the test settings information, and test information returned by the server under test is received, including:

[0013] Obtain the power-off control information from the test settings information, and control the external power supply to perform the first power-off on the server under test according to the first power-off control information in the power-off control information;

[0014] The system receives the first test information returned by the server under test, organizes the first test information to obtain the organized first test information, and stores the organized first test information.

[0015] Optionally, the system receives multiple test messages returned by the server under test, analyzes each returned test message, and outputs test results, including:

[0016] Receive the test information returned by the server under test each time, organize the test information each time to obtain the organized test information each time, and store the organized test information each time;

[0017] Generate a data analysis information set, which includes the test setting information, the test information after each processing, the test comparison standard, and the comparison steps;

[0018] According to the test comparison standard and the comparison steps, the data analysis is performed on the test information after each sorting, and analysis data corresponding to each test information is generated, and the operation corresponding to the analysis data is executed.

[0019] The analysis data corresponding to all test information is integrated and the data stability is analyzed to output the test results.

[0020] Optionally, generate analysis data corresponding to each test, and perform operations corresponding to the analysis data, including the following:

[0021] If the analysis data corresponding to the test information shows that there are discrepancies in the test data, an alarm for test anomalies will be triggered.

[0022] If the analysis data corresponding to the test information shows that test data cannot be obtained, increase the number of tests;

[0023] If the analysis data corresponding to the test information shows no difference from the test data, the analysis data corresponding to the test information is packaged.

[0024] Optionally, if the analysis data corresponding to the test information shows discrepancies in the test data, a test anomaly alarm may be triggered, including:

[0025] Generate the corresponding alarm interaction command according to the alarm setting information in the test setting information;

[0026] The alarm interaction command is sent to the interactive interface, and the alarm interaction command is used by the interactive interface to prompt the user of test abnormality according to the alarm prompt method in the test settings information.

[0027] The second aspect of this application provides a PFR (Power Failure Cycle) test method, applied to a server under test, including:

[0028] Receive the test setup document sent by the test management system, configure the environment according to the environment configuration information in the test setup document, and generate correct configuration feedback information to send to the test management system;

[0029] Receive the configuration script sent by the test management system, run the configuration script, generate configuration detection results and send them to the test management system;

[0030] Collect parameter information during the power outage process as test information, and send the test information to the test management system.

[0031] Optionally, receiving a configuration script sent by the test management system, running the configuration script, generating configuration detection results, and sending them to the test management system includes:

[0032] Receive the configuration script sent by the external serial port management module;

[0033] Run the configuration script to configure and set the PFR function module in the server under test and verify the CPLD parameters of the server under test, and generate the configuration test results;

[0034] The configuration detection results are sent to the test management system.

[0035] A third aspect of this application provides a PFR (Power Failure Cycle) test apparatus, applied to a test management system, comprising:

[0036] The configuration module is used to receive test setting information, generate test setting documents and configuration scripts, send the test setting documents to the server under test, receive correct configuration feedback information sent by the server under test, and send the configuration scripts to the server under test.

[0037] The testing module is used to receive the configuration detection result sent by the server under test, and if the configuration detection result is qualified, control the external power supply to cut off the power to the server under test according to the test setting information, and receive the test information returned by the server under test for analysis.

[0038] The repeat module is used to repeatedly control the external power supply to turn the server under test on and off according to the test settings information, receive multiple test information returned by the server under test, analyze each returned test information, and output the test results.

[0039] The configuration module includes:

[0040] The transcoding submodule is used to classify and transcode the test setup document according to the control format required by the server under test, so as to obtain the transcoded test setup document;

[0041] The transmission submodule is used to send the transcoded test settings document to the external serial port management module of the test management system. The external serial port management module is used to manage the information transmission between the server under test and the test management system.

[0042] The test module includes:

[0043] The power-off control submodule is used to acquire the power-off control information in the test setting information and control the external power supply to perform the first power-off on the server under test according to the first power-off control information in the power-off control information.

[0044] The sorting submodule is used to receive the first test information returned by the server under test, sort the first test information to obtain sorted first test information, and store the sorted first test information.

[0045] The repeating module includes:

[0046] The repeat test submodule is used to receive the test information returned by the server under test each time, organize the test information each time to obtain the organized test information each time, and store the organized test information each time.

[0047] The data analysis set submodule is used to generate a data analysis information set, which includes the test setting information, the test information after each processing, the test comparison standard, and the comparison steps.

[0048] The data analysis submodule is used to perform data analysis on the compiled test information according to the test comparison standard and the comparison steps, generate analysis data corresponding to each test information, and perform operations corresponding to the analysis data.

[0049] The results output submodule is used to integrate the analysis data corresponding to all test information, analyze the data stability, and output the test results.

[0050] The data analysis submodule further includes:

[0051] The anomaly alarm subunit is used to issue an alarm for test anomalies when the analysis data corresponding to the test information shows that there are differences in the test data.

[0052] Add a sub-unit to increase the number of tests when the analysis data corresponding to the test information cannot be obtained;

[0053] The integration subunit is used to package the analysis data corresponding to the test information when the analysis data corresponding to the test information shows no difference from the test data.

[0054] The abnormal alarm subunit further includes:

[0055] The alarm interaction subunit is used to generate corresponding alarm interaction commands according to the alarm setting information in the test setting information;

[0056] An alarm notification subunit is used to send the alarm interaction command to the interactive interface, wherein the alarm interaction command is used by the interactive interface to notify the user of test abnormalities according to the alarm notification method in the test settings information.

[0057] A fourth aspect of this application provides a PFR (Power Failure Cycle) test apparatus, applied to a server under test, comprising:

[0058] The environment configuration module is used to receive the test setup document sent by the test management system, configure the environment according to the environment configuration information in the test setup document, and generate correct configuration feedback information to send to the test management system.

[0059] The script configuration module is used to receive the configuration script sent by the test management system, run the configuration script, generate configuration detection results, and send them to the test management system.

[0060] The testing module is used to collect parameter information during the power outage process as test information and send the test information to the test management system.

[0061] The script configuration module includes:

[0062] The receiving submodule is used to receive the configuration script sent by the external serial port management module;

[0063] The running submodule is used to run the configuration script, configure and set the PFR function module in the server under test, verify the CPLD parameters of the server under test, and generate the configuration test results;

[0064] The sending submodule is used to send the configuration detection results to the test management system.

[0065] A fifth aspect of this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps in the PFR abnormal power-off cycle test method according to any of the first aspects, or the processor executes the computer program to implement the steps in the PFR abnormal power-off cycle test method according to any of the second aspects.

[0066] A sixth aspect of this application provides a computer-readable storage medium having a computer program / instructions stored thereon. When executed by a processor, the computer program / instructions implement the steps in any of the PFR abnormal power-off cycle test methods described in the first aspect, or when executed by a processor, the computer program / instructions implement the steps in any of the PFR abnormal power-off cycle test methods described in the second aspect.

[0067] A seventh aspect of this application provides a computer program product, including a computer program / instruction that, when executed by a processor, implements the steps in any of the PFR abnormal power-off cycle test methods described in the first aspect, or, when executed by a processor, implements the steps in any of the PFR abnormal power-off cycle test methods described in the second aspect.

[0068] Beneficial effects:

[0069] This application provides a method, apparatus, device, medium, and product for PFR abnormal power outage cycle testing, comprising: receiving test setting information to generate a test setting document and a configuration script; sending the test setting document to a server under test; receiving correct configuration feedback information from the server under test; sending the configuration script to the server under test; receiving configuration detection results from the server under test; if the configuration detection results are verified as qualified; controlling an external power supply to power off the server under test according to the test setting information; and receiving and analyzing test information returned by the server under test; repeatedly controlling the external power supply to power on and off the server under test according to the test setting information; receiving multiple test information returned by the server under test; analyzing each returned test information; and outputting test results. This method has the following advantages:

[0070] (1) This application processes the test settings information entered by the testers by setting up a test management system and automatically transmits it to the server under test, enabling the server under test to complete the automated construction of the test environment.

[0071] (2) This application sets up a test management system based on test settings information to automatically control the power outage test mode of the external power supply, which can enable each round of testing to be carried out automatically in a preset abnormal power outage environment, reducing the time loss of cyclic testing and improving the accuracy of the test process.

[0072] (3) By setting up a test management system, this application can automatically and centrally analyze and integrate the test information of each round according to the preset comparison standards, automatically generate test results, reduce the workload of testers, and more accurately and meticulously reflect the test situation, thereby improving the reference value of PFR performance testing. Attached Figure Description

[0073] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0074] Figure 1 This is a flowchart of a PFR abnormal power failure cycle test method for a test management system proposed in an embodiment of this application;

[0075] Figure 2 This is a schematic diagram of a PFR abnormal power failure cycle test method proposed in an embodiment of this application;

[0076] Figure 3This is a flowchart of a PFR abnormal power failure cycle test method for a server under test proposed in an embodiment of this application;

[0077] Figure 4 This is a schematic diagram of a PFR abnormal power failure cycle test device for a test management system proposed in an embodiment of this application;

[0078] Figure 5 This is a schematic diagram of a PFR abnormal power failure cycle test device for a server under test proposed in an embodiment of this application;

[0079] Figure 6 This is a schematic diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0080] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0081] In related technologies, when conducting abnormal power outage loop tests, testers can confirm the required testing environment, tools, testing methods, and test data requirements by consulting PFR technical documentation. They then configure the testing environment according to the documentation, manually install the corresponding testing software and drivers, configure the operating system environment, and manually perform tests according to the designed test cases, manually setting corresponding parameters, checking the server parameter settings after restarting, and analyzing the data results. This method requires manual configuration of the test settings and testing environment for each round, and manual analysis after obtaining test information for each module of the server under test. Because it cannot automatically loop through PFR option settings, untimed power outages, and CPLD data verification processes, nor can it perform stability testing of the PFR function, this testing method is not suitable for the actual situation of PFR abnormal power outage loop testing.

[0082] In view of this, this application proposes a PFR (Problem-Related Fault-Related Cycle) test method, which is applied to a test management system. Figure 1 A flowchart of the PFR abnormal power failure cycle test method for a test management system proposed in this application is shown, as illustrated in the embodiment of this application. Figure 1 As shown, this process is applied to the test management system and includes the following steps:

[0083] S101. Receive test setting information, generate test setting document and configuration script, send the test setting document to the server under test, receive correct configuration feedback information sent by the server under test, and send the configuration script to the server under test.

[0084] S102. Receive the configuration detection result sent by the server under test. If the configuration detection result is qualified, control the external power supply to cut off the power to the server under test according to the test setting information, and receive the test information returned by the server under test for analysis.

[0085] S103. According to the test setting information, repeatedly control the external power supply to turn the power on and off to the server under test, receive multiple test information returned by the server under test, analyze each returned test information, and output the test results.

[0086] In specific implementation, the test management system in this application embodiment carries out the functions of information transmission, test status management and data analysis. The test management system includes the following modules: test management module, AC management module, data decoding module, external serial port management module, test database, data analysis module and test anomaly alarm management module.

[0087] The test management module is responsible for information flow and test status management among the various modules in the test management system. Its main functions include: interacting with internal modules of the server under test (such as BIOS, BMC, and internal storage) to exchange control information; monitoring firmware operation; collecting feedback and test information in real time; checking firmware version information; executing firmware flashing procedures; and configuring the firmware, software, and system test environment of the server under test according to test settings; importing test settings information input by testers from the interactive interface into the test database; setting specific function options for the PFR module of the server under test via remote control commands; packaging uploaded and downloaded files; and controlling the logic of information transfer between systems; and interacting with the AC management module to implement the power-off mode of the server under test.

[0088] The test database is used to classify, store, and manage test settings, system information, and server information under test using feature values; it is also used to store test information for each test and the corresponding analysis data; and it is used to store test comparison standards and comparison steps for different models of servers under test and different types of PFR modules.

[0089] The data decoding module is used to provide temporary storage space for data during the uplink process and to transcode the test setting information according to the communication format requirements of each module of the server under test; it is also used to organize and temporarily store test information during the downlink process.

[0090] The external serial port management module is used to manage and control the external data communication between the test management system and the server under test. It adjusts the priority of information transmission for different modules in the server under test during the communication process between the test management system and the server under test, adjusts the data uplink and downlink order, and provides temporary storage space.

[0091] Before implementing step S101, the test management system needs to be connected to the server under test. This connection can be achieved by connecting the test management system to the server under test externally, such as via serial port or network; or by directly importing the test management system into the shell environment of the server under test via an external hard drive. The specific connection method between the server under test and the test management system depends on the actual test environment and conditions, and this application does not impose any restrictions on it.

[0092] It should be noted that if the server under test does not originally have a PFR module, when using the server under test for testing, the test-specific BMC and BIOS firmware on the server under test should be flashed according to the actual testing requirements. The firmware can be generated by adding PFR testing function to the original firmware of the server according to the actual project situation. Then, the test management system and the server under test are connected.

[0093] After successfully connecting the test management system and the server under test, run the test management system on the test computer equipped with it, and power on the server under test. If an external connection is used, verify the stability of the network or serial port data at this point. Once the external connection is stable, the tester interacts with the test management system through the interface displayed on the test computer. Specifically, the tester uploads the firmware file used for testing and enters the test settings information through the interface.

[0094] The test setup information includes: the settings options to be tested, power-off control information, log verification mode, and log storage path. Specifically, the settings options to be tested control the corresponding modules in the server under test to perform the corresponding test configurations in the facility options, such as environment configuration and test count settings; the power-off control information controls the external power supply to perform power-offs in preset modes, such as timed power-off settings (power-off cycle, power-off duration, etc.) and untimed power-off settings; the log verification mode determines the mode in which the server under test verifies the working status of the PFR module during the test; and the log storage path determines the storage path for the generated analysis data and test results. In addition, testers can also set alarm settings in the test setup information. These alarm settings determine how the test anomaly alarm management module sends alarm interaction commands to the interactive interface, and how it prompts testers on the interactive interface.

[0095] This completes the connection between the test management system and the server under test, as well as the input of test settings information. Step S101 will then be executed. Figure 2 A schematic diagram of the PFR abnormal power failure cycle test method provided in the embodiments of this application is shown, such as... Figure 2 As shown, proceed as follows:

[0096] In specific implementation step S101, the test management module in the test management system first interacts with the interface to receive the test setting information input by the testers. It then integrates the content related to the server under test from the test setting information to generate a test setting document. Based on the test setting document, it generates a configuration script for configuring the test environment of the server under test. Simultaneously, the test setting information is stored in the test database of the test management system for subsequent data analysis. Furthermore, the alarm setting information from the test setting information must be sent to the test anomaly alarm management module in the test management system.

[0097] Meanwhile, the test management module in the test management system first sends the test configuration document to the data decoding module in the test management system. Since the test configuration information includes information for various firmware versions of the server under test (DUT), and different firmware versions require different communication formats (e.g., BMC, BIOS, etc. have specific communication format requirements), during the process of transmitting the test configuration information from the test management system to the DUT (data uplink process), the data decoding module in the test management system first needs to classify and transcode the test configuration document according to the control formats required by the different firmware versions of the DUT, resulting in a transcoded test configuration document.

[0098] Subsequently, the data decoding module sends the transcoded test setup document to the external serial port management module of the test management system. The external serial port management module is used to manage the information transmission between the server under test and the test management system. The external serial port management module adjusts the information transmission priority of different firmware modules in the server under test, generates the uplink and downlink order of information transmission, and transmits the information in the transcoded test setup document to the corresponding modules in the server under test in the order of uplink and downlink.

[0099] The external serial port management module in the test management system receives correct configuration feedback information generated by each firmware module in the server under test after configuring the test environment according to the information in the received transcoded test settings document. Following the uplink and downlink transmission order of the information generated by the external serial port management module, the correct configuration feedback information is passed to the data decoding module in the test management system. The data decoding module provides temporary storage space for the information transmitted from the server under test to the test management module. Subsequently, the data decoding module transmits the correct configuration feedback information to the test management module in the test management system.

[0100] After receiving the correct configuration feedback information, the test management module in the test management system responds by sending the configuration script to the server under test via serial port commands through the data decoding module and the external serial port management module. This configuration script is used to perform configuration setting operations in the shell environment of the server under test according to the requirements corresponding to the test setting information, and generate configuration test results.

[0101] This completes the test configuration of the server under test based on the test settings information entered by the tester. The current configuration of each firmware module of the server under test is now ready for subsequent abnormal power-off tests. Next, step S102 is executed to power off the server under test to obtain test information.

[0102] In specific execution step S102, after receiving the configuration test result returned by the server under test, the test management module of the test management system first verifies the configuration test result. Once the verification confirms that the server under test has indeed been configured according to the test settings information, the configuration test result of the server under test is confirmed to be qualified. Subsequently, the power-off control information in the test settings information is extracted and sent to the AC management module of the test management system. The AC management module is used to control the power-off status of the external power supply of the server under test. According to the power-off mode, power-off cycle, and power-off time information in the received power-off control information, the AC management module controls the external power supply of the server under test to perform the corresponding power-off operation.

[0103] Specifically, the first power-off test is performed to obtain the power-off control information from the test settings. The external power supply is then controlled to power off the server under test according to the first power-off control information. At this time, the PFR module function in the server under test is enabled or disabled according to the settings in the test settings (the enabling or disabling of the PFR module function takes effect after the power-off). The server under test collects the parameter information during the server restart process and returns it as the first test information to the external serial port management module of the test management system. The external port management module then sends the first test information to the data decoding module of the test management system.

[0104] Then, the data decoding module of the test management system receives the first test information returned by the server under test, temporarily stores and organizes the first test information, and sends the organized first test information back to the test management module; the test management module of the test management system receives the organized first test information sent by the data decoding module, sends the organized first test information to the test database, and generates the first data analysis information set and stores it in the test database.

[0105] The data analysis module of the test management system obtains the first data analysis information set from the test database. This first data analysis information set includes the processed first test information, test setup information, test comparison standards, and comparison steps. It should be noted that the test comparison standards are pre-stored in the test database for different models of servers under test and different types of PFR modules. The test database can be configured using existing technologies, such as remote configuration via network or deployment using a dedicated function disk. For details, please refer to existing technologies related to test databases; this application does not impose any limitations on these methods.

[0106] After obtaining the first set of data analysis information, the data analysis module of the test management system determines the test comparison standard and comparison steps applicable to the current server under test according to the model of the server under test and the type of the PFR module of the server under test. Based on the test comparison standard, the system performs data analysis on the sorted first test information according to the comparison steps to generate the first analysis data corresponding to the first test information.

[0107] In practice, the data analysis includes the following three scenarios, and different operations are required for each scenario:

[0108] If the analysis data corresponding to the test information shows that there are differences between the test data and the comparison standard, the data analysis module will record the relevant differences between the analysis data and the comparison standard, generate a test anomaly alarm command and send it to the test anomaly alarm management module of the test management system.

[0109] The test anomaly alarm module responds to the test anomaly alarm command by sending an alarm interaction command to the interactive interface according to the alarm settings configured in the test settings information. The alarm settings information in the test settings information indicates the method of sending the alarm interaction command to the interactive interface, including stopping / not stopping after a single test round failure, single-round test anomaly alarm, and alarm after test information summary. The alarm settings information in the test settings information also sets the method of prompting testers on the interactive interface, such as pop-up warnings or other methods set by the testers to notify them of test anomalies. The method of prompting testers in the alarm settings information can be selected according to the actual situation, and this application does not impose any restrictions.

[0110] If the analysis data corresponding to the test information shows that no test data can be obtained, it indicates that the server under test has not returned test information normally. At this time, the data analysis module will generate an add test command and send it to the test management module of the test management system. The test management module responds to the add test command and increases the number of tests.

[0111] If the analysis data corresponding to the test information shows no discrepancy with the test data, it indicates that the analysis data corresponding to this test information is correct. In this case, the analysis data corresponding to the test information is packaged and stored in the test database.

[0112] Based on the first analysis data corresponding to the first test information, the corresponding operations described above were performed, thus completing the first PFR abnormal power failure test. It should be noted that if the first analysis data verification is correct, it indicates that the server under test is working normally in this PFR test, and the server under test should start normally. At this time, the test management module of the test management system will again transmit the configuration script to the shell environment of the server under test through the data decoding module and the external serial port management module. The configuration script in the shell environment will again perform the configuration setting operations according to the requirements of the test setting information, and generate the configuration test result again, returning it to the test management module of the test management system. The test management module will again verify the configuration test result. After the configuration test result is verified, indicating that the server under test has indeed been configured according to the test setting information (that is, restoring the configuration after the first test to the initial configuration), step S103 is executed to repeat subsequent tests.

[0113] When executing step S103, as in step S102 above for the first power-off test, after the configuration script reconfigures the server under test according to the test settings information and verifies the configuration test result as qualified, the AC management module is controlled again to control the power-off mode of the server under test for each subsequent power-off according to the power-off test information. The test information returned by the server under test each time is received through the external serial port management module and the data decoding module, and the test information is sorted and the sorted test information is transmitted to the test management module. Then, the sorted test information is sent to the test database for storage and a data analysis information set is generated. The data analysis information set includes the test settings information, the sorted test information, the test comparison standard, and the comparison steps.

[0114] After obtaining each set of data analysis information, the data analysis module obtains the data analysis information set for that round in each test, performs data analysis on the organized test information for that round according to the test comparison standard and the comparison steps, and generates analysis data corresponding to each test information. Based on the situation corresponding to the obtained analysis data, it performs the operation corresponding to the analysis data for this time. For details, please refer to the description in step S102 above, which will not be repeated here.

[0115] Each set of test information and the corresponding analysis data are stored in the test database. After completing the number of tests set in the test settings, the data analysis module extracts and integrates the analysis data corresponding to all rounds of test information stored in the test database, analyzes the stability of all analysis data as a whole, and outputs the final test results.

[0116] Based on the same inventive concept, this application discloses a PFR (Power Failure Cycle) test method. Figure 3 The flowchart of the PFR abnormal power-off cycle test method for the server under test provided in this application embodiment is shown, as follows: Figure 3 As shown, it includes the following steps:

[0117] S201. Receive the test setup document sent by the test management system, configure the environment according to the environment configuration information in the test setup document, and generate correct configuration feedback information to send to the test management system.

[0118] S202. Receive the configuration script sent by the test management system, run the configuration script, generate configuration detection results, and send them to the test management system.

[0119] S203. Collect parameter information during the power outage process as test information, and send the test information to the test management system.

[0120] Before implementing step S201, it is necessary to connect the test management system to the server under test. For details on the connection method, please refer to the test management system section of this application's embodiments, which will not be repeated here. After completing the connection between the test management system and the server under test, proceed to step S201.

[0121] In specific implementation step S201, the server under test receives a transcoded test configuration document sent by the external serial port management module of the test management system. The information in the test configuration sub-documents for different modules (such as BMC, BIOS, PFR, etc.) in the transcoded test configuration document is sent to the corresponding modules. The test environment is configured in the shell environment according to the configuration information in the test configuration document. After the test environment is configured, a correct configuration feedback message is generated and sent to the external serial port management module of the test management system.

[0122] This completes the configuration of the test environment for the server under test. Step S202 is then executed. The configuration script sent by the external serial port management module of the test management system is received and run in the shell environment. First, the configuration script configures the PFR function module in the server under test, such as enabling, disabling, and setting options for restoring the firmware mode of the server under test (e.g., updating to the same version or updating according to a set version). Then, the configuration script verifies the CPLD parameters of the server under test by reading the parameters in the CPLD register to obtain the PFR working mode information. Finally, the configuration detection result is generated. This configuration detection result reflects whether the server under test has configured its environment and firmware to conform to the test settings. The configuration detection result is then sent to the external serial port management module of the test management system.

[0123] In specific implementation step S203, the external power supply of the server under test follows the power-off mode, power-off cycle, and power-off time information in the power-off control information received by the AC management module to perform the corresponding power-off operation.

[0124] Specifically, the first power outage test is performed. The external power supply of the server under test is powered off for the first time according to the first power outage control information in the power outage control information by the AC management module. At this time, the PFR module function in the server under test is turned on or off according to the settings in the test settings information (the turning on or off of the PFR module function takes effect after the power outage). The server under test enters the server OS according to the test settings information. The server under test will automatically check the server status of this power outage test, collect the parameter information during the server restart process of the first power outage test, and store the parameter information as the first test information.

[0125] The server under test then returns the first test information to the external serial port management module of the test management system.

[0126] After the first power-off test is completed, if the data analysis module of the test management system verifies the data without errors, it indicates that the PFR module of the server under test is working normally in this test. The server under test should start normally. The server under test will then receive the configuration script sent by the external serial port management module of the test management system again. In the shell environment of the server under test, the configuration script will execute the configuration setting operation again according to the requirements of the test setting information, check the CPLD register again for relevant information on the working status of the PFR module, and generate the configuration test result.

[0127] The server under test sends the configuration test results to the external serial port management module of the test management system. If the configuration test results are verified to be correct by the test management system, the above process will be repeated for subsequent tests. The subsequent test process is the same as the first power-off test process described above, and will not be repeated here.

[0128] This application provides a PFR (Power Failure Reset) abnormal power outage cycle test method, comprising: receiving test setting information to generate a test setting document and a configuration script; sending the test setting document to the server under test; receiving correct configuration feedback information sent by the server under test; sending the configuration script to the server under test; receiving the configuration detection result sent by the server under test; if the configuration detection result is qualified, controlling an external power supply to power off the server under test according to the test setting information; and receiving and analyzing the test information returned by the server under test; repeatedly controlling the external power supply to power on and off the server under test according to the test setting information; receiving multiple test information returned by the server under test; analyzing each returned test information; and outputting the test result. This method has the following advantages:

[0129] (1) This application processes the test settings information entered by the testers by setting up a test management system and automatically transmits it to the server under test, enabling the server under test to complete the automated construction of the test environment.

[0130] (2) This application sets up a test management system based on test settings information to automatically control the power outage test mode of the external power supply, which can enable each round of testing to be carried out automatically in a preset abnormal power outage environment, reducing the time loss of cyclic testing and improving the accuracy of the test process.

[0131] (3) By setting up a test management system, this application can automatically and centrally analyze and integrate the test information of each round according to the preset comparison standards, automatically generate test results, reduce the workload of testers, and more accurately and meticulously reflect the test situation, thereby improving the reference value of PFR performance testing.

[0132] Based on the same inventive concept, this application discloses a PFR abnormal power failure cycle test device. Figure 4 This application discloses a schematic diagram of a PFR (Power Failure Cycle) test device for a test management system, as illustrated in an embodiment of this application. Figure 4 As shown, this device is used in a test management system and includes:

[0133] The configuration module is used to receive test setting information, generate test setting documents and configuration scripts, send the test setting documents to the server under test, receive correct configuration feedback information sent by the server under test, and send the configuration scripts to the server under test.

[0134] The testing module is used to receive the configuration detection result sent by the server under test, and if the configuration detection result is qualified, control the external power supply to cut off the power to the server under test according to the test setting information, and receive the test information returned by the server under test for analysis.

[0135] The repeat module is used to repeatedly control the external power supply to turn the server under test on and off according to the test settings information, receive multiple test information returned by the server under test, analyze each returned test information, and output the test results.

[0136] The configuration module includes:

[0137] The transcoding submodule is used to classify and transcode the test setup document according to the control format required by the server under test, so as to obtain the transcoded test setup document;

[0138] The transmission submodule is used to send the transcoded test settings document to the external serial port management module of the test management system. The external serial port management module is used to manage the information transmission between the server under test and the test management system.

[0139] The test module includes:

[0140] The power-off control submodule is used to acquire the power-off control information in the test setting information and control the external power supply to perform the first power-off on the server under test according to the first power-off control information in the power-off control information.

[0141] The sorting submodule is used to receive the first test information returned by the server under test, sort the first test information to obtain sorted first test information, and store the sorted first test information.

[0142] The repeating module includes:

[0143] The repeat test submodule is used to receive the test information returned by the server under test each time, organize the test information each time to obtain the organized test information each time, and store the organized test information each time.

[0144] The data analysis set submodule is used to generate a data analysis information set, which includes the test setting information, the test information after each processing, the test comparison standard, and the comparison steps.

[0145] The data analysis submodule is used to perform data analysis on the compiled test information according to the test comparison standard and the comparison steps, generate analysis data corresponding to each test information, and perform operations corresponding to the analysis data.

[0146] The results output submodule is used to integrate the analysis data corresponding to all test information, analyze the data stability, and output the test results.

[0147] The data analysis submodule further includes:

[0148] The anomaly alarm subunit is used to issue an alarm for test anomalies when the analysis data corresponding to the test information shows that there are differences in the test data.

[0149] Add a sub-unit to increase the number of tests when the analysis data corresponding to the test information cannot be obtained;

[0150] The integration subunit is used to package the analysis data corresponding to the test information when the analysis data corresponding to the test information shows no difference from the test data.

[0151] The abnormal alarm subunit further includes:

[0152] The alarm interaction subunit is used to generate corresponding alarm interaction commands according to the alarm setting information in the test setting information;

[0153] An alarm notification subunit is used to send the alarm interaction command to the interactive interface, wherein the alarm interaction command is used by the interactive interface to notify the user of test abnormalities according to the alarm notification method in the test settings information.

[0154] Based on the same inventive concept, this application discloses a PFR abnormal power failure cycle test device. Figure 5 This illustration shows a schematic diagram of a PFR (Power Failure Cycle) test apparatus for a server under test, as disclosed in an embodiment of this application. Figure 5 As shown, this device is applied to the server under test and includes:

[0155] The environment configuration module is used to receive the test setup document sent by the test management system, configure the environment according to the environment configuration information in the test setup document, and generate correct configuration feedback information to send to the test management system.

[0156] The script configuration module is used to receive the configuration script sent by the test management system, run the configuration script, generate configuration detection results, and send them to the test management system.

[0157] The testing module is used to collect parameter information during the power outage process as test information and send the test information to the test management system.

[0158] The script configuration module includes:

[0159] The receiving submodule is used to receive the configuration script sent by the external serial port management module;

[0160] The running submodule is used to run the configuration script, configure and set the PFR function module in the server under test, verify the CPLD parameters of the server under test, and generate the configuration test results;

[0161] The sending submodule is used to send the configuration detection results to the test management system.

[0162] Based on the same inventive concept, embodiments of this application disclose an electronic device. Figure 6 A schematic diagram of an electronic device disclosed in an embodiment of this application is shown, such as... Figure 6 As shown, the electronic device 100 includes a memory 110 and a processor 120. The memory 110 and the processor 120 are connected via a bus for communication. The memory 110 stores a computer program that can run on the processor 120. The processor executes the computer program to implement the steps in the PFR abnormal power failure cycle test method for a test management system provided in the embodiments of this application, or the processor executes the computer program to implement the steps in the PFR abnormal power failure cycle test method for a server under test provided in the embodiments of this application.

[0163] A sixth aspect of this application provides a computer-readable storage medium storing a computer program / instructions thereon. When executed by a processor, the computer program / instructions implement the steps in the PFR abnormal power-off cycle test method for a test management system provided in this application embodiment, or, when executed by a processor, the computer program / instructions implement the steps in the PFR abnormal power-off cycle test method for a server under test provided in this application embodiment.

[0164] A seventh aspect of this application provides a computer program product, including a computer program / instruction. When executed by a processor, the computer program / instruction implements the steps in the PFR abnormal power-off cycle test method for a test management system provided in this application embodiment, or, when executed by a processor, the computer program / instruction implements the steps in the PFR abnormal power-off cycle test method for a server under test provided in this application embodiment.

[0165] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0166] Embodiments of the present invention are described with reference to flowchart illustrations and / or block diagrams of methods, apparatuses, electronic devices, and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0167] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0168] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0169] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

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

[0171] The present invention provides a detailed description of a PFR abnormal power outage cycle test method, apparatus, equipment, medium, and product. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for PFR abnormal power-off cycle testing, characterized in that, Applied to test management systems, including: Receive test setting information to generate a test setting document and a configuration script, send the test setting document to the server under test, receive correct configuration feedback information sent by the server under test, and send the configuration script to the server under test; The system receives the configuration test result sent by the server under test. If the configuration test result is qualified, it controls the external power supply to cut off the power to the server under test according to the test setting information, and receives the test information returned by the server under test for analysis. According to the test settings information, the external power supply is repeatedly controlled to turn the power on and off to the server under test, the test information returned by the server under test is received multiple times, the test information returned each time is analyzed, and the test results are output. The test settings information includes: the settings options to be tested, power failure control information, log verification mode, and log storage path; the configuration script is used to configure the test environment of the server under test. Specifically, it receives multiple test messages returned by the server under test, analyzes each returned test message, and outputs test results, including: Receive the test information returned by the server under test each time, organize the test information each time to obtain the organized test information each time, and store the organized test information each time; Generate a data analysis information set, which includes the test setting information, the test information after each processing, the test comparison standard, and the comparison steps; According to the test comparison standard and the comparison steps, the data analysis is performed on the test information after each sorting, and analysis data corresponding to each test information is generated, and the operation corresponding to the analysis data is executed. The analysis data corresponding to all test information is integrated and the data stability is analyzed to output the test results.

2. The PFR abnormal power-off cycle test method according to claim 1, characterized in that, Send the test setup document to the server under test, including: The test setup document is classified and transcoded according to the control format required by the server under test to obtain a transcoded test setup document; The transcoding test settings document is sent to the external serial port management module of the test management system. The external serial port management module is used to manage the information transmission between the server under test and the test management system.

3. The PFR abnormal power outage cycle test method according to claim 1, characterized in that, According to the test settings information, the external power supply is controlled to cut off the power to the server under test, and the test information returned by the server under test is received, including: Obtain the power-off control information from the test settings information, and control the external power supply to perform the first power-off on the server under test according to the first power-off control information in the power-off control information; The system receives the first test information returned by the server under test, organizes the first test information to obtain the organized first test information, and stores the organized first test information.

4. The PFR abnormal power-off cycle test method according to claim 1, characterized in that, Generate analysis data corresponding to each test, and perform operations corresponding to the analysis data, including the following: If the analysis data corresponding to the test information shows that there are discrepancies in the test data, an alarm for test anomalies will be triggered. If the analysis data corresponding to the test information shows that test data cannot be obtained, increase the number of tests; If the analysis data corresponding to the test information shows no difference from the test data, the analysis data corresponding to the test information is packaged.

5. The PFR abnormal power-off cycle test method according to claim 4, characterized in that, If the analysis data corresponding to the test information shows discrepancies in the test data, an alarm for test anomalies will be triggered, including: Generate the corresponding alarm interaction command according to the alarm setting information in the test setting information; The alarm interaction command is sent to the interactive interface, and the alarm interaction command is used by the interactive interface to prompt the user of test abnormality according to the alarm prompt method in the test settings information.

6. A method for PFR abnormal power-off cycle testing, characterized in that, When applied to a server under test, and the test management system repeatedly controls the external power supply to turn the server under test on and off, the server under test repeatedly performs the following steps: Receive the test setup document sent by the test management system, configure the environment according to the environment configuration information in the test setup document, and generate correct configuration feedback information to send to the test management system; Receive the configuration script sent by the test management system, run the configuration script, generate configuration detection results and send them to the test management system; Collect parameter information during the power outage process as test information, and send the test information to the test management system; The test settings document is generated from test settings information, which includes: settings options to be tested, power failure control information, log verification mode, and log save path. The test management system is configured to: receive test information returned by the server under test each time, organize the test information each time to obtain organized test information, and store the organized test information each time; generate a data analysis information set, which includes the test setting information, the organized test information each time, test comparison standards, and comparison steps; perform data analysis on the organized test information each time according to the test comparison standards and the comparison steps, and generate analysis data corresponding to each test information, and perform operations corresponding to the analysis data; integrate the analysis data corresponding to all test information and analyze the data stability, and output the test results.

7. The PFR abnormal power-off cycle test method according to claim 6, characterized in that, Receive a configuration script sent by the test management system, run the configuration script, generate configuration detection results, and send them to the test management system, including: Receive configuration scripts sent by the external serial port management module of the test management system; Run the configuration script to configure and set the PFR function module in the server under test and verify the CPLD parameters of the server under test, and generate the configuration test results; The configuration detection results are sent to the test management system.

8. A PFR abnormal power failure cycle test device, characterized in that, Applied to test management systems, including: The configuration module is used to receive test setting information, generate test setting documents and configuration scripts, send the test setting documents to the server under test, receive correct configuration feedback information sent by the server under test, and send the configuration scripts to the server under test. The testing module is used to receive the configuration detection result sent by the server under test, and if the configuration detection result is qualified, control the external power supply to cut off the power to the server under test according to the test setting information, and receive the test information returned by the server under test for analysis. The repeat module is used to repeatedly control the external power supply to turn the power on and off to the server under test according to the test settings information, receive multiple test information returned by the server under test, analyze the test information returned each time, and output the test results. The test settings information includes: the settings options to be tested, power failure control information, log verification mode, and log storage path; The repeating module includes: The repeat test submodule is used to receive the test information returned by the server under test each time, organize the test information each time to obtain the organized test information each time, and store the organized test information each time. The data analysis set submodule is used to generate a data analysis information set, which includes the test setting information, the test information after each processing, the test comparison standard, and the comparison steps. The data analysis submodule is used to perform data analysis on the compiled test information according to the test comparison standard and the comparison steps, generate analysis data corresponding to each test information, and perform operations corresponding to the analysis data. The results output submodule is used to integrate the analysis data corresponding to all test information, analyze the data stability, and output the test results.

9. A PFR abnormal power failure cycle test device, characterized in that, Applied to the server under test, in a test management system that repeatedly controls the external power supply to perform power-on / off cycle tests on the server under test, the server under test performs the power-on / off cycle test process through the following module: The environment configuration module is used to receive the test setup document sent by the test management system, configure the environment according to the environment configuration information in the test setup document, and generate correct configuration feedback information to send to the test management system. The script configuration module is used to receive the configuration script sent by the test management system, run the configuration script, generate configuration detection results, and send them to the test management system. The testing module is used to collect parameter information during the power outage process as test information and send the test information to the test management system. The test settings document is generated from test settings information, which includes: settings options to be tested, power failure control information, log verification mode, and log save path. The test management system is configured to: receive test information returned by the server under test each time, organize the test information each time to obtain organized test information, and store the organized test information each time; generate a data analysis information set, which includes the test setting information, the organized test information each time, test comparison standards, and comparison steps; perform data analysis on the organized test information each time according to the test comparison standards and comparison steps, and generate analysis data corresponding to each test information, and execute operations corresponding to the analysis data; integrate the analysis data corresponding to all test information and analyze the data stability, and output the test results.

10. An electronic device, characterized in that, The method includes a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps in the PFR abnormal power failure cycle test method according to any one of claims 1-5, or the processor executes the computer program to implement the steps in the PFR abnormal power failure cycle test method according to any one of claims 6-7.

11. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instruction is executed by the processor, it implements the steps of the PFR abnormal power failure cycle test method according to any one of claims 1-5, or when the computer program / instruction is executed by the processor, it implements the steps of the PFR abnormal power failure cycle test method according to any one of claims 6-7.

12. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the steps of the PFR abnormal power failure cycle test method according to any one of claims 1-5, or when the computer program / instruction is executed by the processor, it implements the steps of the PFR abnormal power failure cycle test method according to any one of claims 6-7.

Citation Information

Patent Citations

  • Device and method for abnormal power failure circulating testing of server system

    CN104778108A