CN115509837A - BMC testing method, device and medium - Google Patents

BMC testing method, device and medium Download PDF

Info

Publication number
CN115509837A
CN115509837A CN202211190605.2A CN202211190605A CN115509837A CN 115509837 A CN115509837 A CN 115509837A CN 202211190605 A CN202211190605 A CN 202211190605A CN 115509837 A CN115509837 A CN 115509837A
Authority
CN
China
Prior art keywords
test
bmc
testing
fail
script
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
CN202211190605.2A
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 CN202211190605.2A priority Critical patent/CN115509837A/en
Publication of CN115509837A publication Critical patent/CN115509837A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention discloses a BMC testing method, a BMC testing device and a BMC testing medium, which are suitable for the technical field of BMC testing. Firstly, creating a test script according to configured parameters of a testing machine, test items, test conditions of the test items and a FAIL reason strategy of the test items; then running the created test script; and finally, outputting a test report corresponding to the run test script so as to facilitate the analysis and positioning of a user. The method realizes automatic test through the configured script, and simultaneously realizes automatic check during FAIL test according to the configured test item FAIL reason strategy, thereby assisting the positioning of problem reasons, saving test time, ensuring the pertinence of problem analysis and further improving the efficiency of problem solution. In addition, the invention also provides a device and a medium, which have the same or corresponding technical characteristics and the same effects as the method.

Description

BMC testing method, device and medium
Technical Field
The invention relates to the technical field of BMC testing, in particular to a BMC testing method, a BMC testing device and a BMC testing medium.
Background
A Baseboard Management Controller (BMC) is a specific Management Controller for a server, and is used for monitoring the temperature, voltage, fan, power supply, and the like of the server and performing corresponding adjustment work to ensure that the server is in a healthy state. Through the test of the BMC, the premise for guaranteeing the monitoring capability of the server is to find and repair the problem of the BMC in time.
At present, two tests are mainly performed on the BMC, one test is performed on each functional module of the BMC manually, the other test is performed automatically by depending on a test platform, although the test speed is improved and the labor cost is saved compared with the manual test, the test result generated by the test platform is only FAIL or PASS, and the test result corresponding to the FAIL needs to be analyzed and checked manually from a large number of logs. Especially for the problem of triggering in some specific scenes, if the positioning cannot be analyzed in time, the current specific scene is changed and then is checked or reproduced, so that more time is spent, and the problem solving efficiency is influenced.
Therefore, it is highly desirable to those skilled in the art to find a BMC test method that improves the efficiency of problem solving.
Disclosure of Invention
The invention aims to provide a BMC testing method, a BMC testing device and a BMC testing medium, which can assist in positioning of problem causes, save testing time, ensure pertinence of problem analysis and further improve problem solving efficiency.
In order to solve the above technical problem, the present invention provides a BMC testing method, including:
creating a test script according to the configured parameters, test items, test conditions of the test items and FAIL reason strategies of the test items;
running the created test script;
and outputting a test report corresponding to the run test script so that a user can analyze and position.
Preferably, the configuration process of the test machine parameters specifically includes:
acquiring configuration information of a BMC (baseboard management controller) of a testing machine, wherein the configuration information at least comprises an IP (Internet protocol) address, a user name and password information;
and storing the configuration information into a first configuration file of the BMC.
Preferably, the configuration process of the test item specifically includes:
acquiring test items of each tester BMC and configuration information of the test items;
summarizing the test items corresponding to each tester BMC;
configuring configuration information of corresponding test items for each summarized test item, wherein the configuration information of the test items at least comprises test times, test duration and corresponding requirement names;
and storing the configuration information of the test item into a second configuration file.
Preferably, the configuration process of the test condition of the test item specifically includes:
acquiring a test environment parameter of the BMC, wherein the test environment parameter is a logic parameter of the BMC test and at least comprises a power-on state parameter of the BMC and a network state parameter of the BMC;
and (4) configuring the inspection logic of the test environment parameters based on the IPMI command and storing the inspection logic into the sh script file.
Preferably, the test item FAIL reason policy at least includes a test condition satisfaction policy, an IPMI command policy, and a stability policy of BMC.
Preferably, the configuration process of the test item FAIL cause policy specifically includes:
determining a test sequence, taking a test condition meeting strategy as a first test sequence, taking a logic function checking strategy as a second test sequence, and taking a stability strategy as a third test sequence;
when the test conditions meet the test conditions of the test items in the strategy, determining that the test result of the test method is FAIL;
obtaining each IPMI command under a BMC of the testing machine;
if the IPMI commands cannot be sent within the preset time, determining that the test result of the test method is FAIL;
setting the testing times of the DC REBOOT test;
and if the success times of the DC REBOOT test in the preset time are less than the test times, determining that the test result of the test method is FAIL.
Preferably, the created test script is run, comprising:
reading parameters and test items of a test machine;
calling script information for storing test conditions of the test items and corresponding logic parameters to test so as to obtain test result information;
positioning corresponding script information according to the FAIL reason corresponding to the test result information;
the positioning of the corresponding script information according to the FAIL reason corresponding to the test result information includes:
if the test conditions meet the test conditions of the test machine in the strategy, determining that the test result of the test method is FAIL, and ending the current test;
if the test conditions of the test machine are met, judging whether all the transmitted IPMI commands fail within preset time;
if all the test results do not pass through, determining that the test result of the test method is FAIL, and ending the current test;
if not, judging whether the success frequency of the DC REBOOT test is less than the test frequency within preset time;
if the number of times of testing is less than the number of times of testing, determining that the testing result of the testing method is FAIL, and ending the current test;
and if the test frequency is greater than or equal to the test frequency, determining that the test result of the test method is PASS, and ending the current test.
In order to solve the above technical problem, the present invention further provides a BMC testing apparatus, including:
the creating module is used for creating a test script according to the configured parameters, test items, test conditions of the test items and FAIL reason strategies of the test items;
the running module is used for running the created test script;
and the output module is used for outputting the test report corresponding to the running test script so as to facilitate the analysis and positioning of a user.
In order to solve the above technical problem, the present invention further provides a BMC testing apparatus, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the test method of the BMC when executing the computer program.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the BMC testing method are implemented.
The invention provides a BMC testing method, which comprises the following steps: establishing a test script according to the configured parameters of the test machine, the test items, the test conditions of the test items and the FAIL reason strategy of the test items; running the created test script; and outputting a test report corresponding to the run test script so that a user can analyze and position. The method realizes automatic test through the configured script, and simultaneously realizes automatic check during FAIL test according to the configured test item FAIL reason strategy, thereby assisting the positioning of problem reasons, saving test time, ensuring the pertinence of problem analysis and further improving the efficiency of problem solution.
In addition, the invention also provides a BMC testing device and medium, which have the same beneficial effects as the BMC testing method.
Drawings
In order to more clearly illustrate the embodiments of the present invention, the drawings required for the embodiments will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a BMC testing method according to an embodiment of the present invention;
fig. 2 is a structural diagram of a BMC testing apparatus according to an embodiment of the present invention;
fig. 3 is a structural diagram of another BMC testing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
The core of the invention is to provide a BMC testing method, a BMC testing device and a BMC testing medium, which can assist in positioning of problem causes, save testing time, ensure pertinence of problem analysis and further improve efficiency of problem solution.
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 should be noted that the BMC testing method provided by the present invention is mainly based on a test performed under a shell script file, where a shell refers to software for providing a user interface, and is similar to a command and a subsequent cmd. The system is also a programming language which is used as a command language and used for interactively interpreting and executing commands input by a user or automatically interpreting and executing a preset series of commands; as a programming language, it defines various variables and parameters, and provides many control structures which are only available in high-level languages, including loops and branches, and can also adopt other script files to test the BMC according to the actual conditions of different projects, which is not limited herein.
Fig. 1 is a flowchart of a BMC testing method according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
s11: establishing a test script according to the configured parameters of the test machine, the test items, the test conditions of the test items and the FAIL reason strategy of the test items;
s12: running the created test script;
s13: and outputting a test report corresponding to the run test script so that a user can analyze and position.
It can be understood that the configuration is performed to the script file for the test machine parameters, the test items, the test conditions of the test items, and the cause policy of the test item FAIL, where as an embodiment, the configuration process of the test machine parameters specifically includes:
acquiring configuration information of a BMC (baseboard management controller) of a testing machine, wherein the configuration information at least comprises an IP (Internet protocol) address, a user name and password information;
and storing the configuration information into a first configuration file of the BMC.
Specifically, an Internet Protocol (IP) address is a uniform address format provided by the IP Protocol, and a logical address is allocated to each network and each host on the Internet, so as to mask a difference of physical addresses once. The configuration information is stored in a first configuration file of the BMC, and the configuration file may be a BMC _ conf.ini file, or may be stored in another file, which is not particularly limited.
The test item is mainly how to test the test point, the test point is a real object, and a comprehensive test case = test point + test point test item. The test item can be a functional test, such as addition, deletion, modification and check; if the page exists, whether the page, page turning and loaded data are correct or not is tested; a page style; with input boxes, extra long and special characters are tested. The test items are a general term for a certain aspect or a certain class of test objects with the same background in the same item test process, such as a note book application program, and can be divided into function test items such as save, additional save, open, new addition and the like.
The test items and the test cases corresponding to the test points are test cases corresponding to various requirements, and as an embodiment, the configuration process of the test items specifically includes:
acquiring test items of each tester BMC and configuration information of the test items;
summarizing the test items corresponding to each tester BMC;
configuring configuration information of corresponding test items for each summarized test item, wherein the configuration information of the test items at least comprises test times, test duration and corresponding requirement names;
and storing the configuration information of the test item into a second configuration file.
Correspondingly, the test times and the test duration corresponding to each test item are set according to different requirements, so that the test items required under each requirement may be the same or different, or the test items are the same, but the test times or the test durations are different, which is not limited herein. The configured test items are stored in a second configuration file, which is different from the first configuration file stored in the tester parameters in the above embodiment and may be specifically stored in a Check _ items.
It should be noted that there are many formats of configuration files, such as an INI configuration file and an XML configuration file, and the configuration files of the system registry can be used, where the INI file is an abbreviation of an Initialization file, i.e., an Initialization file, and is a storage format adopted by a Windows system configuration file, and manages various configurations of Windows, and a general user can realize the same configuration by using various graphical management interfaces provided by Windows. However, in some cases, it is convenient to edit ini directly, and only with the familiarity of Windows can edit it directly.
The configuration file in the project is shared by the whole project, and the suffix name of the configuration file of the ini does not need to be the ini, the cfg, the conf or the txt if the configuration file of the ini has a file name used by one project.
The test condition of the test item is the current test environment, that is, before the test item is detected, a preset environment which needs to be checked whether the test condition is met is created to create a normal test environment. As a preferred embodiment, the configuration process of the test condition of the test item specifically includes:
acquiring test environment parameters of the BMC, wherein the test environment parameters are logic parameters of BMC test and at least comprise a power-on state parameter of the BMC and a network state parameter of the BMC;
and (4) configuring the inspection logic of the test environment parameters based on the IPMI command and storing the inspection logic into the sh script file.
Specifically, before the server DC REBOOT stability test is performed, the test environment parameters are logic parameters of the BMC test, and the logic parameters have only two conditions, corresponding to the on-off states, one on and one off; or a normal abnormal state, a normal state, an abnormal state, etc. The power-on state parameters of the BMC and the network state parameters of the BMC need to be checked, and according to actual conditions, the test environment parameters further comprise the current starting state of the server, the normal state of the network and the like, or the whole test environment of the server. The configuration of the test environment parameters is saved through an Intelligent Platform Management Interface (IPMI) command, wherein the saved specific parameters are logic parameters, the saved script file is an sh file, which can be an Item1_ require.sh script file or other script files, and the corresponding IPMI command can be the check logic configuration of the IPM power status command on the test environment parameters according to the actual situation.
The sh file is a script file, and is generally a bash script. The Script file is English Script. Scripts are programs in nature, and are generally programming languages provided by application programs. The applications include browsers (javaScript, VBScript), multimedia authoring tools, macros for applications and batch languages for authoring systems may also be included in scripts and the like. The script file is similar to a batch file in a DOS operating system and can combine different commands and execute them automatically and continuously in a certain order. The script file is a text file that a user may use to create using a text editor.
And (3) a test item FAIL reason strategy, namely enumerating possible reasons causing the test item FAIL in the configuration process, and setting a corresponding analysis strategy for each reason so as to automatically locate the problem reason. As a preferred embodiment, the test item FAIL reason policy includes at least a test condition satisfaction policy, a logical function check policy, and a stability policy.
Reason 1: the test condition is not satisfied;
reason 2: IPMI command is not passed;
reason 3: stability problems.
The configured script file is automatically operated, the parameters and the test items of the test machine are read, the test condition check script, the test item detection logic and the results (the test items FAIL and reasons or the test items PASS) of the test items are called.
And outputting the test report according to the result of the test item, wherein the corresponding form of outputting the test report can output alarm information when the FAIL result of the test item is output, and the output form of the alarm information is not limited, and can be flashing of an LED (light-emitting diode) and the like, or can be a voice prompt form or a tested page frame popup form and the like.
The embodiment of the invention provides a BMC testing method, which comprises the following steps: creating a test script according to the configured parameters, test items, test conditions of the test items and FAIL reason strategies of the test items; running the created test script; and outputting a test report corresponding to the running test script so as to facilitate the analysis and positioning of a user. The method realizes automatic test through the configured script, and simultaneously realizes automatic check during FAIL test according to the configured test item FAIL reason strategy, thereby assisting the positioning of problem reasons, saving test time, ensuring the pertinence of problem analysis and further improving the efficiency of problem solution.
On the basis of the above embodiment, the configuration process of the test item FAIL cause policy specifically includes:
determining a test sequence, taking a test condition meeting strategy as a first test sequence, taking a logic function checking strategy as a second test sequence, and taking a stability strategy as a third test sequence;
when the test conditions meet the test conditions of the test items in the strategy, determining that the test result of the test method is FAIL;
obtaining each IPMI command under a BMC of a testing machine;
if the IPMI commands cannot be sent within the preset time, determining that the test result of the test method is FAIL;
setting the testing times of the DC REBOOT test;
and if the success times of the DC REBOOT test in the preset time are less than the test times, determining that the test result of the test method is FAIL.
It is understood that the FAIL cause and analysis policy is configured in the above embodiment corresponding to the three policies of the test condition satisfaction policy, the logic function check policy, and the stability policy. The configuration process needs to consider the test logic of the tester, so the test sequence of the three strategies is determined, the test condition meeting strategy is taken as a first test sequence, the logic function checking strategy is taken as a second test sequence, and the stability strategy is taken as a third test sequence.
When the test condition meeting strategy is configured, whether the current test environment parameter is normal or not needs to be checked, if the current test environment parameter is normal, the current test condition is determined to be met, and if one test environment parameter is abnormal, the current test condition is determined not to be met, so that the test result of the test method is FAIL.
When a logic function checking strategy is carried out, because a plurality of IPMI commands exist in a test machine BMC during testing, common IPMI commands comprise startup and shutdown, restart, user management, IP network configuration, local area network (SOL) function, SEL log check, FRU (fruinunfo) information check and the like, if each IPMI command is sent within preset time, the number of the commands which are not communicated is smaller than the total number of the IPMI commands, and a test result is PASS. And if the IPMI commands are not available in the sending process, determining that the test result is FAIL. And when the DC REBOOT test is carried out, if the success times are less than the total test times, determining that the test result is FAIL.
As an example, possible causes and analysis strategies of the server DC REBOOT stability test item FAIL:
reason 1: the test condition is not satisfied;
analysis strategy: the test condition is checked, and if it is FAIL, it is the reason.
Reason 2: IPMI command is not passed;
analysis strategy: and (4) trying to send other IPMI commands, and if the IPMI commands are not passed, determining the reason.
Reason 3: stability problems;
analysis strategy: the DC REBOOT test is performed several times, and if the test is successful or fails, the test is used for this reason.
The configuration process of the test item FAIL reason strategy provided by the embodiment of the invention realizes automatic positioning of the reason of the problem, and realizes automatic inspection when testing the FAIL in a shell script mode.
On the basis of the above embodiment, the running of the created test script in step S12 includes:
reading parameters and test items of a test machine;
calling script information for storing test conditions of the test items and corresponding logic parameters to test so as to obtain test result information;
positioning corresponding script information according to the FAIL reason corresponding to the test result information;
the positioning of the corresponding script information according to the FAIL reason corresponding to the test result information includes:
if the test conditions meet the test conditions of the test machine in the strategy, determining that the test result of the test method is FAIL, and ending the current test;
if the test conditions of the test machine are met, judging whether all the sent IPMI commands fail within the preset time;
if all the test results do not pass through, determining that the test result of the test method is FAIL, and ending the current test;
if not, judging whether the success times of the DC REBOOT test are smaller than the test times or not within preset time;
if the number of times of testing is less than the number of times of testing, determining that the testing result of the testing method is FAIL, and ending the current test;
if the test frequency is larger than or equal to the test frequency, determining that the test result of the test method is PASS, and ending the current test.
In particular, scripts for the entire automation test are created by the Shell and can be saved in the check. The automated test script includes a read tester parameter configuration (e.g., BMC _ Conf.ini), a read test Item configuration (e.g., check _ items.ini), a call test condition Check script (e.g., item1_ Require.sh, item2_ Require.sh, \8230;), test Item detection logic, a test Item FAIL reason and analysis policy script (e.g., item1_ FAIL _ check.sh, item2_ FAIL _ check.sh, \\ 8230;), and test report output logic.
The positioning of the corresponding script information according to the FAIL reason corresponding to the test result information specifically includes: and (3) testing according to the test sequence, if the test condition of the test machine is not met, determining that the current test result is FAIL and ending the current test, specifically, because the test environment parameter is abnormal and the test condition is not met, the subsequent test result is FAIL, and ending the current test to save the test time. And if the test condition of the tester is met, performing the next test. And judging whether all the sent IPMI commands are failed within preset time, if so, determining that the test result is FAIL, ending the current test, and if yes, performing the next test. Judging whether the success times of the DCREBOOT test are smaller than the test times or not within preset time; if the number of times of testing is less than the number of times of testing, the testing is sometimes successful and sometimes FAILs, so that the testing result of the testing method is determined to be FAIL, and the current testing is finished. If the test frequency is larger than or equal to the test frequency, determining that the test result is PASS as the last test item, and ending the current test to output a test report, wherein the result is PASS.
The running script information provided by the embodiment of the invention is tested according to the test sequence, so that the test time is saved, the pertinence of workers in the analysis process is ensured, the reason of FAIL is determined according to the test results of different stages of the test, and the reason after the different stages of the test are eliminated is determined, so that the positioning efficiency is improved.
On the basis of the above detailed description of the embodiments corresponding to the BMC test method, the present invention further discloses a BMC test apparatus corresponding to the above method, and fig. 2 is a structural diagram of the BMC test apparatus provided in the embodiments of the present invention. As shown in fig. 2, the test apparatus for BMC includes:
the creating module 11 is configured to create a test script according to the configured test machine parameters, test items, test item test conditions, and test item FAIL cause policies;
an operation module 12 for operating the created test script;
and the output module 13 is configured to output a test report corresponding to the executed test script so that a user can analyze and locate the test report.
Since the embodiment of the apparatus portion corresponds to the above-mentioned embodiment, the embodiment of the apparatus portion is described with reference to the embodiment of the method portion, and is not described again here.
The embodiment of the invention provides a BMC testing device, which comprises: creating a test script according to the configured parameters, test items, test conditions of the test items and FAIL reason strategies of the test items; running the created test script; and outputting a test report corresponding to the run test script so that a user can analyze and position. The device realizes automatic test through the script of configuration, and automatic check when simultaneously according to the test item FAIL reason strategy of configuration in order to realize testing FAIL can assist the location of problem reason, saves test time, ensures the pertinence of problem analysis, further improves the efficiency of problem solution.
Fig. 3 is a structural diagram of another BMC testing apparatus according to an embodiment of the present invention, and as shown in fig. 3, the apparatus includes:
a memory 21 for storing a computer program;
and a processor 22 for implementing the steps of the BMC test method when executing the computer program.
The testing device for BMC provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, or a desktop computer.
The processor 22 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The Processor 22 may be implemented in hardware using at least one of a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), and a Programmable Logic Array (PLA). The processor 22 may also include a main processor and a coprocessor, the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 22 may be integrated with a Graphics Processing Unit (GPU) that is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, processor 22 may also include an Artificial Intelligence (AI) processor for processing computational operations related to machine learning.
Memory 21 may include one or more computer-readable storage media, which may be non-transitory. Memory 21 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 21 is at least used for storing the following computer program 211, wherein after being loaded and executed by the processor 22, the computer program can implement the relevant steps of the BMC testing method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 21 may also include an operating system 212, data 213, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 212 may include Windows, unix, linux, etc., among others. Data 213 may include, but is not limited to, data involved in the BMC's test method, and the like.
In some embodiments, the testing device of the BMC may further include a display 23, an input/output interface 24, a communication interface 25, a power supply 26, and a communication bus 27.
Those skilled in the art will appreciate that the configuration shown in FIG. 3 does not constitute a limitation of the test apparatus of the BMC, and may include more or fewer components than those shown.
The processor 22 calls the instruction stored in the memory 21 to implement the BMC test method provided in any of the above embodiments.
The embodiment of the invention provides a BMC testing device, which comprises: creating a test script according to the configured parameters, test items, test conditions of the test items and FAIL reason strategies of the test items; running the created test script; and outputting a test report corresponding to the run test script so that a user can analyze and position. The device realizes automatic test through the script of configuration, according to the automatic check of the test item FAIL reason strategy when in order to realize testing FAIL of configuration simultaneously, can assist the location of problem reason, saves test time, ensures problem analysis's pertinence, further improves the efficiency that the problem was solved.
Further, the present invention also provides a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by the processor 22, implements the steps of the BMC testing method as described above.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and performs all or part of the steps of the methods according to the embodiments of the present invention, or all or part of the technical solution. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, which is not described herein again, and has the same beneficial effects as the above BMC testing method.
The detailed description of the BMC testing method, the BMC testing apparatus, and the medium provided by the present invention is provided above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, without departing from the principle of the present invention, it is possible to make various improvements and modifications to the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It should also be noted that, in this specification, relational terms such as first and second, and the like are 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.

Claims (10)

1. A BMC testing method is characterized by comprising the following steps:
establishing a test script according to the configured parameters of the test machine, the test items, the test conditions of the test items and the FAIL reason strategy of the test items;
running the created test script;
and outputting a test report corresponding to the run test script so as to facilitate the analysis and positioning of a user.
2. The method for testing the BMC of claim 1, wherein the configuration process of the tester parameters specifically includes:
acquiring configuration information of a BMC (baseboard management controller) of a testing machine, wherein the configuration information at least comprises an IP (Internet protocol) address, a user name and password information;
and storing the configuration information into a first configuration file of the BMC.
3. The method for testing the BMC of claim 1, wherein the configuration process of the test item specifically includes:
acquiring a test item of each tester BMC and configuration information of the test item;
summarizing the test items corresponding to each tester BMC;
configuring configuration information of the corresponding test items for each summarized test item, wherein the configuration information of the test items at least comprises test times, test duration and corresponding requirement names;
and storing the configuration information of the test items into a second configuration file.
4. The method for testing the BMC of claim 1, wherein the configuration process of the test item test condition specifically includes:
acquiring test environment parameters of the BMC, wherein the test environment parameters are logic parameters of the BMC test and at least comprise a power-on state parameter of the BMC and a network state parameter of the BMC;
and configuring the inspection logic of the test environment parameters based on the IPMI command and storing the inspection logic into the sh script file.
5. The method of claim 1, wherein the test item FAIL reason policy at least comprises a test condition satisfaction policy, a logical function check policy, and a stability policy.
6. The method for testing the BMC of claim 5, wherein the configuration process of the test item FAIL cause policy specifically includes:
determining a test sequence, taking the test condition meeting strategy as a first test sequence, taking the logic function checking strategy as a second test sequence, and taking the stability strategy as a third test sequence;
when the test conditions meet the test conditions of the test items in the strategy, determining that the test result of the test method is FAIL;
obtaining each IPMI command under the BMC of the testing machine;
if the IPMI commands cannot be sent within the preset time, determining that the test result of the test method is FAIL;
setting the testing times of the DC REBOOT test;
and if the success times of the DC REBOOT test in the preset time are less than the test times, determining that the test result of the test method is FAIL.
7. The method of claim 6, wherein the running the created test script comprises:
reading the parameters of the testing machine and the test items;
calling script information for storing the test conditions of the test items and corresponding logic parameters to test so as to obtain test result information;
positioning corresponding script information according to the FAIL reason corresponding to the test result information;
wherein the positioning the corresponding script information according to the FAIL reason corresponding to the test result information includes:
if the test conditions meet the test conditions of the test machine in the strategy, determining that the test result of the test method is FAIL, and ending the current test;
if the test conditions of the tester are met, judging whether all the sent IPMI commands fail within the preset time;
if all the test results do not pass through, determining that the test result of the test method is FAIL, and ending the current test;
if not, judging whether the success frequency of the DC REBOOT test is less than the test frequency within the preset time;
if the number of times of the test is less than the number of times of the test, determining that the test result of the test method is FAIL, and ending the current test;
if the test frequency is greater than or equal to the test frequency, determining that the test result of the test method is PASS, and ending the current test.
8. A BMC testing apparatus, comprising:
the creating module is used for creating a test script according to the configured parameters, test items, test conditions of the test items and FAIL reason strategies of the test items;
the running module is used for running the created test script;
and the output module is used for outputting the test report corresponding to the run test script so as to facilitate the analysis and positioning of a user.
9. A BMC testing apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the BMC testing method according to any of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method for testing a BMC according to any one of claims 1 to 7.
CN202211190605.2A 2022-09-28 2022-09-28 BMC testing method, device and medium Pending CN115509837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211190605.2A CN115509837A (en) 2022-09-28 2022-09-28 BMC testing method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211190605.2A CN115509837A (en) 2022-09-28 2022-09-28 BMC testing method, device and medium

Publications (1)

Publication Number Publication Date
CN115509837A true CN115509837A (en) 2022-12-23

Family

ID=84505409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211190605.2A Pending CN115509837A (en) 2022-09-28 2022-09-28 BMC testing method, device and medium

Country Status (1)

Country Link
CN (1) CN115509837A (en)

Similar Documents

Publication Publication Date Title
US8572437B2 (en) Multi-platform test automation enhancement
CN107451040B (en) Method and device for positioning fault reason and computer readable storage medium
CN109388622B (en) Log information processing method, device and equipment and readable storage medium
US20240264914A1 (en) Method and device for recovering self-test exception of server component, system and medium
CN116166525A (en) Method and device for generating test script
CN104484176B (en) A kind of Android system window object acquisition methods and device
CN113986635B (en) BIOS testing method, system, storage medium and device
CN113315675B (en) White box switch U-Boot automatic testing method, system and storage medium
CN114442930A (en) Method and device for controlling group disk array, electronic equipment and readable storage medium
CN115509837A (en) BMC testing method, device and medium
CN114138209B (en) OSD (on screen display) deploying method and device and computer readable storage medium
CN112560041B (en) Method, apparatus and computer storage medium for automated quality verification detection
CN115757014A (en) Power consumption testing method and device
CN115454336A (en) Hard disk working environment configuration method, device and medium
CN115454673A (en) Data collection method, device and medium for baseboard management controller
CN112463508B (en) Server dormancy state testing method, system, terminal and storage medium
CN112241141B (en) Hardware configuration method, system, device and medium of PLC control system
CN107506271A (en) A kind of method of testing and device
CN111143193B (en) Big data service testing method, system, terminal and storage medium based on RobotFramework
CN114153503A (en) BIOS control method, device and medium
CN110736920A (en) card testing method and system based on engineering management test script
CN113419775B (en) Firmware configuration method, system, equipment and medium
CN114004578A (en) Method, device and medium for processing client ID information of server mainboard
CN115129517A (en) BIOS option fault recovery method, device, equipment and storage medium
CN116991445A (en) Firmware upgrading method, device, equipment and readable storage medium

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