Method and device for automatically verifying BMC web page hard disk and hard disk backplane information

By building an automated test system, the information of BMC web hard disk and hard disk backplane is automatically verified, which solves the problems of inefficiency and error prone in the existing technology, and achieves fast and accurate information verification.

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

Patent Information

Application Number
CN202211668192.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-23
Publication Date
2025-08-29
Estimated Expiration
2042-12-23

AI Technical Summary

Technical Problem

In the prior art, verification and testing of storing server hard disk and hard disk backplane information is inefficient and error-prone, manual inspection is not accurate enough, and the corresponding relationship between the hard disk and the hard disk backplane cannot be automatically identified.

Method used

Build an automated test system, log in to the BMC web page through API to obtain the hard disk and hard disk backplane information, and compare it with the pre-entered database information, output the comparison results, and realize automated verification.

Benefits of technology

It realizes the rapid and accurate verification of BMC web hard disk and hard disk backplane information, saves manpower, avoids human errors, and improves testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115981938B_ABST
    Figure CN115981938B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for automatically verifying hard drive and hard drive backplane information on a BMC webpage, belonging to the field of automated testing technology. The method comprises the following steps: S1. establishing an automated testing system for hard drive and hard drive backplane information displayed on a BMC webpage, importing pre-designed hard drive and hard drive backplane information into the automated testing system, and creating an automated testing task for a server under test in the automated testing system; S2. executing the automated testing task for the server under test, logging into the BMC webpage of the server under test to obtain hard drive and hard drive backplane information; and S3. The automated testing task compares the hard drive and backplane information obtained from the BMC webpage of the server under test with the hard drive and backplane information in the automated testing system, and outputs the comparison result. The present invention enables rapid verification of hard drive and hard drive backplane information displayed on a BMC webpage, saving manpower for manual operations and addressing the shortcomings of existing BMC webpage hard drive information checking methods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of automated testing technology, and in particular relates to a method and device for automatically verifying BMC web page hard disk and hard disk backplane information. Background Art

[0002] With the advent of the big data and cloud era, and the continuous development of science and technology, the demand for servers, especially storage servers, is increasing across all sectors of society. This is primarily due to the high data storage capacity and high-speed data throughput capabilities of storage servers. In practical applications, to achieve high data throughput, storage servers are typically required to support a larger number of hard drives.

[0003] To support more hard drives, servers need to add support for more hard drives in the front and back of the chassis, and even inside the chassis. The corresponding information between the hard drives and their backplanes is displayed on the server's BMC web interface. Verification of this information typically requires testers to manually log in to the BMC web interface and check the information on the corresponding interface. This requires checking the correctness of the displayed information for each hard drive and backplane, which is inefficient and prone to manual errors.

[0004] An existing method involves engineers logging into the BMC web interface through the BMC IP address and manually checking the hard drive information at the corresponding hard drive location. This requires checking the number and location of the hard drive backplanes where the hard drives are located, and also determining whether the front and rear position information of the hard drive backplanes are correct. This method requires test engineers to log in to the BMC web system to manually check, which consumes test manpower. Furthermore, when there are many hard drives and hard drive backplanes, inattentive manual inspections can easily lead to errors.

[0005] Another existing method enables automated checking of hard drive information on the BMC web interface, but it fails to verify the correspondence between the hard drive and the hard drive backplane. However, when the hard drive backplane is placed in different locations, the existing patent cannot determine the correspondence between the hard drive and the hard drive backplane. This means it cannot identify situations where the hard drive backplane position is incorrectly displayed, such as a rear-mounted backplane being displayed as a front-mounted backplane and not being recognized, which will affect subsequent customer service maintenance.

[0006] This is a shortcoming of the prior art. Therefore, in order to address the above-mentioned defects in the prior art, it is very necessary to provide a method and device for automatically verifying the BMC web page hard disk and hard disk backplane information. Summary of the Invention

[0007] In view of the defects of the above-mentioned existing servers in the prior art, especially storage servers with numerous hard disks and hard disk backplanes, the hard disk and hard disk backplane information displayed on the BMC webpage is complex, and manual inspection is inefficient and prone to errors. The present invention provides a method and device for automatically verifying the hard disk and hard disk backplane information on the BMC webpage to solve the above technical problems.

[0008] In a first aspect, the present invention provides a method for automatically verifying BMC web page hard disk and hard disk backplane information, comprising the following steps:

[0009] S 1. Build an automated test system for hard drive and hard drive backplane information on the BMC webpage, import pre-designed hard drive and hard drive backplane information into the automated test system, and create automated test tasks in the automated test system for the server under test;

[0010] S 2. Execute the automated detection task of the server under test and log in to the BMC webpage of the server under test to obtain the hard disk and hard disk backplane information;

[0011] S 3. The automated detection task compares the hard disk and backplane information obtained from the BMC webpage of the server to be tested with the hard disk and backplane information in the automated test system, and outputs the comparison result.

[0012] Furthermore, the specific steps of step S1 are as follows:

[0013] S 11. Build a web-controlled automated testing system for BMC web page hard drive and hard drive backplane information;

[0014] S 12. Obtain the pre-designed hard disk and hard disk backplane information of each server to be tested and import it into the database of the automated test system;

[0015] S 13. Obtain the server to be tested, and create an automated testing task in the automated testing system for the server to be tested.

[0016] Furthermore, the specific steps of step S11 are as follows:

[0017] S 111. Build a web-controlled automated testing system;

[0018] S 112. Configure project information items, test conclusion items, log output items, existing design information import items, databases, and automated test specifications for the automated test system.

[0019] Furthermore, the specific steps of step S12 are as follows:

[0020] S 121. Obtain pre-designed hard disk information of the server to be tested, and import the hard disk information into the database of the automated testing system;

[0021] S 122. Obtain the pre-designed hard drive backplane information for the server under test and import the hard drive backplane information into the database of the automated testing system; the hard drive backplane information includes applicable machine models, hard drive backplane location, encoding, number of ports, and hard drive type. Hard drives are primarily connected to server nodes via hard drive backplanes. The hard drive backplanes have an I2C interface for identifying the hard drive backplane and hard drive information. However, different server-designed hard drive backplanes support different numbers of hard drives and have different installation locations. Therefore, before testing, the server-designed hard drives and hard drive backplane information must be entered into the database of the automated testing system in advance for comparison and reference during subsequent test data capture. Hard drive information is entered using existing methods, which will not be detailed here. Specifically for storage links, the hard drive backplane information includes applicable machine models, hard drive backplane location, encoding, number of ports, and hard drive type. Once entered into the automated system, it can be used consistently for the project, eliminating the need for multiple maintenance for subsequent similar automated testing tasks. Different hard drive backplane information can be entered for different server storage link topologies.

[0022] Furthermore, the specific steps of step S2 are as follows:

[0023] S 21. Execute the corresponding automated testing task of the server under test in the automated testing system;

[0024] S 22. The automated detection task obtains the IP address, user name, and password of the BMC of the server to be tested;

[0025] S 23. The automated detection task uses the user name and password to log in to the server under test based on the IP address of the BMC of the server under test to obtain the hard disk and hard disk backplane information.

[0026] Furthermore, the specific steps of step S23 are as follows:

[0027] S 231. The automated detection task adds a first API through the Restful architecture and adds a session using the first API;

[0028] S 232. The automated detection task captures the CSRF attack token and cookies value from the response of the session, and logs in to the BMC webpage of the server under test using the IP address, user name and password of the BMC of the server under test;

[0029] S 233. The automated detection task adds a second API through the Restful architecture, and uses the second API to obtain the server model information, each hard disk information, and each hard disk backplane location information to be tested.

[0030] Furthermore, the specific steps of step S3 are as follows:

[0031] S 31. The automated detection task selects the corresponding server to be tested from the database of the automated test system according to the server model information to be tested read from the BMC webpage;

[0032] S 32. The automated detection task selects a pre-designed hard disk backplane position from the database of the automated test system according to the hard disk backplane position;

[0033] S 33. The automated testing task selects pre-designed hard drive backplane parameters from the automated testing system's database based on the code, number of ports, and hard drive type;

[0034] S 34. The automated testing task compares the server model information, hard drive information, and hard drive backplane location information read from the BMC webpage with the pre-designed hard drive information, hard drive backplane location, and hard drive backplane parameters selected from the automated testing system's database.

[0035] S 35. The automated test task outputs the test conclusion and test log. The location of the hard drive backplane, such as whether it is front-mounted or rear-mounted, and which backplane is front-mounted or rear-mounted.

[0036] Furthermore, the specific steps of step S35 are as follows:

[0037] S 351. The automated test task determines whether the hard disk information, hard disk backplane position, and hard disk backplane parameters read from the BMC webpage are consistent with those filtered from the database;

[0038] If yes, go to step S352;

[0039] If not, go to step S353;

[0040] S 352. The automated test task outputs a test pass on the automated test system interface and outputs project information consistent with the test, and ends;

[0041] S 353. The automated test task outputs the test failure in the automated test system interface and outputs the test inconsistent project information.

[0042] In a second aspect, the present invention provides a device for automatically verifying BMC web page hard disk and hard disk backplane information, comprising:

[0043] The automated test system building module is used to build an automated test system for hard drive and hard drive backplane information on the BMC webpage, import pre-designed hard drive and hard drive backplane information into the automated test system, and create automated testing tasks for the server under test in the automated test system;

[0044] The BMC webpage information acquisition module is used to perform automated detection tasks on the server under test and log in to the BMC webpage of the server under test to obtain hard disk and hard disk backplane information;

[0045] The BMC webpage information verification module is used for automated detection tasks to compare the hard disk and backplane information obtained from the BMC webpage of the server under test with the hard disk and backplane information in the automated test system and output the comparison results.

[0046] Furthermore, the automated test system building module includes:

[0047] System building unit, used to build a web-controlled automated testing system for BMC web page hard disk and hard disk backplane information;

[0048] The preset information import unit is used to obtain the pre-designed hard disk and hard disk backplane information of each server to be tested and import it into the database of the automated test system;

[0049] A detection task creation unit is used to obtain a server to be tested and create an automated detection task in the automated testing system for the server to be tested;

[0050] The BMC web page information acquisition module includes:

[0051] A detection task execution unit, configured to execute the corresponding automated detection task of the server to be tested in the automated testing system;

[0052] BMC login information acquisition unit, used for automated detection tasks to obtain the IP address, user name and password of the BMC of the server under test;

[0053] The BMC web page hard disk and backplane information acquisition unit is used to automate the detection task. Based on the IP address of the BMC of the server under test, the user name and password are used to log in to the server under test to obtain the hard disk and hard disk backplane information;

[0054] The BMC web page information verification module includes:

[0055] The server screening unit is used to screen out the corresponding server to be tested from the database of the automated test system according to the server model information to be tested read from the BMC webpage during the automated test task;

[0056] The hard disk backplane screening unit is used for automated testing tasks to screen out pre-designed hard disk backplane positions from the database of the automated test system based on the hard disk backplane positions;

[0057] The hard disk backplane parameter screening unit is used for automated testing tasks to filter pre-designed hard disk backplane parameters from the automated test system's database based on the code, number of ports, and hard disk type;

[0058] The test comparison unit is used to automatically compare the server model information, hard drive information, and hard drive backplane location information read from the BMC webpage with the pre-designed hard drive information, hard drive backplane location, and hard drive backplane parameters selected from the database of the automated test system.

[0059] The test result output unit is used to output test conclusions and test logs for automated test tasks.

[0060] The beneficial effects of the present invention are:

[0061] The method and device for automatically verifying hard disk and hard disk backplane information on a BMC webpage provided by the present invention realize rapid and accurate verification of hard disk and hard disk backplane information displayed on a BMC webpage, save manpower for manual operation, and make up for the shortcomings of existing BMC webpage hard disk information checking.

[0062] In addition, the present invention has a reliable design principle, a simple structure and a very broad application prospect.

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

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

[0065] Figure 1 This is a flow chart of Example 1 of the method for automatically verifying BMC web page hard disk and hard disk backplane information of the present invention.

[0066] Figure 2 This is a flow chart of embodiment 2 of the method for automatically verifying BMC web page hard disk and hard disk backplane information of the present invention.

[0067] Figure 3 This is a schematic diagram of the device for automatically verifying the BMC web page hard disk and hard disk backplane information of the present invention.

[0068] In the figure, 1-Automated test system construction module; 1.1-System construction unit; 1.2-Preset information import unit; 1.3-Detection task creation unit; 2-BMC web page information acquisition module; 2.1-Detection task execution unit; 2.2-BMC login information acquisition unit; 2.3-BMC web page hard disk and backplane information acquisition unit; 3-BMC web page information verification module; 3.1-Server screening unit; 3.2-Hard disk backplane screening unit; 3.3-Hard disk backplane parameter screening unit; 3.4-Test comparison unit; 3.5-Test result output unit. DETAILED DESCRIPTION

[0069] In order to enable those skilled in the art to better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0070] To support more hard drives, existing servers need to add support for more hard drives in the front and back of the chassis, and even inside the chassis. For example, existing 4U servers have chassis with upper 2U and lower 2U designs, supporting a total of five hard drive backplanes, which can support 40 HDDs. The upper 2U front upper backplane supports 12 hard drives, the lower 2U front lower backplane supports 12 hard drives, the upper 2U rear upper backplane supports 4 hard drives, the upper 2U rear upper backplane supports 4 hard drives, and the lower 2U rear lower backplane supports 12 hard drives. To check the information of so many hard drives and backplanes on the corresponding interface of the BMC web interface, it is necessary to check the correctness of the displayed information of each hard drive and hard drive backplane one by one. This test efficiency is obviously low and it is also prone to human comparison omissions. To address this problem, the following embodiment is provided.

[0071] Example 1:

[0072] like Figure 1 As shown, the present invention provides a method for automatically verifying the BMC web page hard disk and hard disk backplane information, including the following steps:

[0073] S 1. Build an automated test system for hard drive and hard drive backplane information on the BMC webpage, import pre-designed hard drive and hard drive backplane information into the automated test system, and create automated test tasks in the automated test system for the server under test;

[0074] S 2. Execute the automated detection task of the server under test and log in to the BMC webpage of the server under test to obtain the hard disk and hard disk backplane information;

[0075] S 3. The automated detection task compares the hard disk and backplane information obtained from the BMC webpage of the server to be tested with the hard disk and backplane information in the automated test system, and outputs the comparison result.

[0076] Example 2:

[0077] like Figure 2 As shown, the present invention provides a method for automatically verifying the BMC web page hard disk and hard disk backplane information, including the following steps:

[0078] S1. Build an automated test system for hard drive and hard drive backplane information on the BMC webpage, import the pre-designed hard drive and hard drive backplane information into the automated test system, and create an automated test task for the server under test in the automated test system. The specific steps of step S1 are as follows:

[0079] S 11. Build a web-controlled automated testing system for BMC web page hard drive and hard drive backplane information;

[0080] S 12. Obtain the pre-designed hard disk and hard disk backplane information of each server to be tested and import it into the database of the automated test system;

[0081] S 13. Obtain the server to be tested, and create an automated testing task in the automated testing system for the server to be tested;

[0082] S2. Execute the automated detection task of the server under test, log in to the BMC webpage of the server under test to obtain the hard disk and hard disk backplane information; the specific steps of step S2 are as follows:

[0083] S 21. Execute the corresponding automated testing task of the server under test in the automated testing system;

[0084] S 22. The automated detection task obtains the IP address, user name, and password of the BMC of the server to be tested;

[0085] S 23. The automated detection task uses the user name and password to log in to the server under test based on the BMC IP address of the server under test to obtain the hard disk and hard disk backplane information;

[0086] S3. The automated detection task compares the hard disk and backplane information obtained from the BMC webpage of the server under test with the hard disk and backplane information in the automated test system, and outputs the comparison result; the specific steps of step S3 are as follows:

[0087] S 31. The automated detection task selects the corresponding server to be tested from the database of the automated test system according to the server model information to be tested read from the BMC webpage;

[0088] S 32. The automated detection task selects a pre-designed hard disk backplane position from the database of the automated test system according to the hard disk backplane position;

[0089] S 33. The automated testing task selects pre-designed hard drive backplane parameters from the automated testing system's database based on the code, number of ports, and hard drive type;

[0090] S 34. The automated testing task compares the server model information, hard drive information, and hard drive backplane location information read from the BMC webpage with the pre-designed hard drive information, hard drive backplane location, and hard drive backplane parameters selected from the automated testing system's database.

[0091] S 35. The automated test task outputs the test conclusion and test date.

[0092] Example 3:

[0093] like Figure 2 As shown, the present invention provides a method for automatically verifying the BMC web page hard disk and hard disk backplane information, including the following steps:

[0094] S1. Build an automated test system for hard drive and hard drive backplane information on the BMC webpage, import the pre-designed hard drive and hard drive backplane information into the automated test system, and create an automated test task for the server under test in the automated test system. The specific steps of step S1 are as follows:

[0095] S11. Build a web-controlled automated testing system for BMC web page hard drive and hard drive backplane information; the specific steps of step S11 are as follows:

[0096] S 111. Build a web-controlled automated testing system;

[0097] S 112. Configure project information items, test conclusion items, log output items, existing design information import items, databases, and automated test specifications for the automated test system;

[0098] S12. Obtain the pre-designed hard disk and hard disk backplane information of each server to be tested, and import it into the database of the automated test system; the specific steps of step S12 are as follows:

[0099] S 121. Obtain pre-designed hard disk information of the server to be tested, and import the hard disk information into the database of the automated testing system;

[0100] S 122. Obtain the pre-designed hard disk backplane information of the server to be tested, and import the hard disk backplane information into the database of the automated testing system; the hard disk backplane information includes applicable model, hard disk backplane location, code, number of ports, and hard disk type;

[0101] S 13. Obtain the server to be tested, and create an automated testing task in the automated testing system for the server to be tested;

[0102] S2. Execute the automated detection task of the server under test, log in to the BMC webpage of the server under test to obtain the hard disk and hard disk backplane information; the specific steps of step S2 are as follows:

[0103] S 21. Execute the corresponding automated testing task of the server under test in the automated testing system;

[0104] S 22. The automated detection task obtains the IP address, user name, and password of the BMC of the server to be tested;

[0105] S23. Automated detection task: Log in to the server under test using the user name and password to obtain the hard disk and hard disk backplane information based on the BMC IP address of the server under test. The specific steps of step S23 are as follows:

[0106] S 231. The automated detection task adds a first API through the Restful architecture and adds a session using the first API;

[0107] S 232. The automated detection task captures the CSRF attack token and cookies value from the response of the session, and logs in to the BMC webpage of the server under test using the IP address, user name and password of the BMC of the server under test;

[0108] S 233. The automated detection task adds a second API through the Restful architecture, and uses the second API to obtain the server model information, each hard disk information, and each hard disk backplane location information to be tested;

[0109] S3. The automated detection task compares the hard disk and backplane information obtained from the BMC webpage of the server under test with the hard disk and backplane information in the automated test system, and outputs the comparison result; the specific steps of step S3 are as follows:

[0110] S 31. The automated detection task selects the corresponding server to be tested from the database of the automated test system according to the server model information to be tested read from the BMC webpage;

[0111] S 32. The automated detection task selects a pre-designed hard disk backplane position from the database of the automated test system according to the hard disk backplane position;

[0112] S 33. The automated testing task selects pre-designed hard drive backplane parameters from the automated testing system's database based on the code, number of ports, and hard drive type;

[0113] S 34. The automated testing task compares the server model information, hard drive information, and hard drive backplane location information read from the BMC webpage with the pre-designed hard drive information, hard drive backplane location, and hard drive backplane parameters selected from the automated testing system's database.

[0114] S35. The automated test task outputs the test conclusion and test date; the specific steps of step S35 are as follows:

[0115] S 351. The automated test task determines whether the hard disk information, hard disk backplane position, and hard disk backplane parameters read from the BMC webpage are consistent with those filtered from the database;

[0116] If yes, go to step S352;

[0117] If not, go to step S353;

[0118] S 352. The automated test task outputs a test pass on the automated test system interface and outputs project information consistent with the test, and ends;

[0119] S 353. The automated test task outputs the test failure in the automated test system interface and outputs the test inconsistent project information.

[0120] Example 4:

[0121] like Figure 3 As shown, the present invention provides a device for automatically verifying BMC web page hard disk and hard disk backplane information, including:

[0122] Automated test system building module 1 is used to build an automated test system for hard disk and hard disk backplane information on the BMC webpage, import pre-designed hard disk and hard disk backplane information into the automated test system, and create automated detection tasks for the server under test in the automated test system;

[0123] BMC web page information acquisition module 2 is used to perform the automated detection task of the server under test and log in to the BMC web page of the server under test to obtain the hard disk and hard disk backplane information;

[0124] The BMC webpage information verification module 3 is used for the automated detection task to compare the hard disk and backplane information obtained from the BMC webpage of the server to be tested with the hard disk and backplane information in the automated test system, and output the comparison result.

[0125] Example 5:

[0126] like Figure 3 As shown, the present invention provides a device for automatically verifying BMC web page hard disk and hard disk backplane information, including:

[0127] Automated test system construction module 1 is used to build an automated test system for hard drive and hard drive backplane information on the BMC webpage, import pre-designed hard drive and hard drive backplane information into the automated test system, and create automated testing tasks for the server under test in the automated test system. Automated test system construction module 1 includes:

[0128] System construction unit 1.1 is used to build a web-controlled automated test system for BMC web page hard disk and hard disk backplane information;

[0129] The preset information importing unit 1.2 is used to obtain the pre-designed hard disk and hard disk backplane information of each server to be tested and import it into the database of the automated test system;

[0130] The detection task creation unit 1.3 is used to obtain a server to be tested and create an automated detection task in the automated testing system for the server to be tested;

[0131] BMC web page information acquisition module 2 is used to perform automated detection tasks on the server under test, log in to the BMC web page of the server under test to obtain hard disk and hard disk backplane information; BMC web page information acquisition module 2 includes:

[0132] Detection task execution unit 2.1, used to execute the corresponding automated detection task of the server under test in the automated testing system;

[0133] BMC login information acquisition unit 2.2, used for automatically obtaining the IP address, user name and password of the BMC of the server under test;

[0134] BMC web page hard disk and backplane information acquisition unit 2.3, used for automated detection tasks, logs in to the server under test using the user name and password according to the BMC IP address of the server under test to obtain hard disk and hard disk backplane information;

[0135] The BMC webpage information verification module 3 is used for automated testing tasks to compare the hard disk and backplane information obtained from the BMC webpage of the server under test with the hard disk and backplane information in the automated test system and output the comparison results. The BMC webpage information verification module 3 includes:

[0136] Server screening unit 3.1, for automatically detecting the server model information read from the BMC webpage to screen out the corresponding server from the database of the automated test system;

[0137] The hard disk backplane screening unit 3.2 is used for the automated detection task to screen out pre-designed hard disk backplane positions from the database of the automated test system according to the hard disk backplane positions;

[0138] The hard disk backplane parameter screening unit 3.3 is used for the automated testing task to screen pre-designed hard disk backplane parameters from the database of the automated testing system according to the coding, number of ports and hard disk type;

[0139] The test comparison unit 3.4 is used for the automated testing task to compare the server model information, hard drive information, and hard drive backplane location information read from the BMC webpage with the pre-designed hard drive information, hard drive backplane location, and hard drive backplane parameters selected from the database of the automated testing system;

[0140] The test result output unit 3.5 is used to output the test conclusion and test log of the automated test task.

[0141] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and such modifications or substitutions shall be within the scope of the present invention. Any person skilled in the art who is familiar with the present invention may easily conceive of changes or substitutions within the technical scope disclosed in the present invention, and such changes or substitutions shall be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

Claims

1. A method for automatically verifying the hard disk and hard disk backplane information on a BMC webpage, characterized in that: The steps include: S1. Build an automated test system for hard drive and hard drive backplane information on the BMC webpage, import pre-designed hard drive and hard drive backplane information into the automated test system, and create automated testing tasks for the server under test in the automated test system; S2. Execute the automated detection task of the server under test and log in to the BMC page of the server under test to obtain the hard disk and hard disk backplane information; the specific steps of step S2 are as follows: S21 executes the corresponding automated testing task in the automated testing system for the server under test; S22. The automated detection task obtains the IP address, user name, and password of the BMC of the server under test; S23 automated detection task based on the IP address of the BMC of the server under test, use the user name and password to log in to the server under test to obtain hard disk and hard disk backplane information; step S23 specific steps are as follows: S231. Automated detection tasks add a first API through the Restful architecture and add a session using the first API; S232 automated detection task captures the CSRF attack token and cookies value from the session response, and logs in to the BMC server under test web page through the BMC IP address, username and password of the server under test; S233 automated detection tasks through the Restful architecture to add a second API, and use the second API to obtain the server model information, each hard drive information and each hard drive backplane location information; S3 automated detection task comparison of the hard disk and backplane information obtained from the BMC web page of the server under test and the hard disk and backplane information in the automated test system, and outputs the comparison results; the specific steps of step S3 are as follows: S31 automated detection task based on the server model information read from the BMC page to be tested from the database of the automated test system to filter out the corresponding server to be tested; S32 automated detection task based on the hard drive backplane position from the automated test system database to filter out the pre-designed hard drive backplane position; S33 automated testing tasks based on the encoding, number of ports and hard drive types from the automated test system database to filter out pre-designed hard drive backplane parameters; S34 automated detection task will be read from the BMC page to test server model information, each hard drive information and each hard drive backplane location information and pre-designed hard drive information filtered from the database of the automated test system, hard drive backplane location and hard drive backplane parameters are compared; S35. The automated test task outputs the test conclusion and test log.

2. The method for automatically verifying BMC web page hard disk and hard disk backplane information according to claim 1, characterized in that: The specific steps of step S1 are as follows: S11. Build a web-controlled automated test system for BMC web page hard drive and hard drive backplane information; S12 obtains the pre-designed hard disk and hard disk backplane information of each server under test and imports it into the database of the automated testing system; S13. Obtain the server to be tested, and create an automated testing task in the automated testing system for the server to be tested.

3. The method for automatically verifying BMC web page hard disk and hard disk backplane information according to claim 2, characterized in that: The specific steps of step S11 are as follows: S111. Build a web-controlled automated testing system; S112. Configure project information items, test conclusion items, log output items, existing design information import items, databases, and automated test specifications for the automated test system.

4. The method for automatically verifying BMC webpage hard disk and hard disk backplane information according to claim 2, characterized in that: The specific steps of step S12 are as follows: S121 obtains pre-designed hard disk information of the server to be tested, and imports the hard disk information into the database of the automated testing system; S122. Obtain the hard disk backplane information pre-designed for the server to be tested, and import the hard disk backplane information into the database of the automated testing system; the hard disk backplane information includes applicable model, hard disk backplane location, code, number of ports, and hard disk type.

5. The method for automatically verifying the BMC webpage hard disk and hard disk backplane information according to claim 4, characterized in that: The specific steps of step S35 are as follows: S351 automated test task to determine whether the hard disk information, hard disk backplane position and hard disk backplane parameters read from the BMC page and filtered from the database are consistent; If yes, go to step S352; If not, proceed to step S353; S352. The automated test task outputs the test passed in the automated test system interface, and outputs the test consistent project information, and ends; S353. The automated test task outputs the test failure in the automated test system interface and outputs the test inconsistent project information.

6. A device for automatically verifying the hard disk and hard disk backplane information on the BMC webpage, characterized in that: include: An automated testing system building module (1) is used to build an automated testing system for BMC web page hard disk and hard disk backplane information, import pre-designed hard disk and hard disk backplane information into the automated testing system, and create automated testing tasks for the server to be tested in the automated testing system; A BMC web page information acquisition module (2) is used to execute the automated detection task of the server to be tested, log in to the BMC web page of the server to be tested to obtain the hard disk and hard disk backplane information; The BMC web page information acquisition module (2) includes: A detection task execution unit (2.1) is used to execute the corresponding automated detection task of the server to be tested in the automated testing system; A BMC login information acquisition unit (2.2), used for automating the detection task to obtain the IP address, user name and password of the BMC of the server to be tested; The BMC web page hard disk and backplane information acquisition unit (2.3) is used to automate the detection task. Based on the IP address of the BMC of the server under test, the user name and password are used to log in to the server under test to obtain the hard disk and hard disk backplane information. The specific process is as follows: The automated detection task adds the first API through the Restful architecture and uses the first API to add a session; The automated detection task captures the CSRF attack token and cookie value from the session response and logs in to the BMC webpage of the server under test using the BMC IP address, username, and password of the server under test. The automated detection task adds a second API through the Restful architecture, and uses the second API to obtain the model information of the server to be tested, the information of each hard disk, and the position information of each hard disk backplane; the BMC web page information verification module (3) is used for the automated detection task to compare the hard disk and backplane information obtained from the BMC web page of the server to be tested with the hard disk and backplane information in the automated test system, and output the comparison result; the BMC web page information verification module (3) includes: A server screening unit (3.1) is used for automatically screening out the server to be tested from the database of the automated test system according to the server model information to be tested read from the BMC webpage in the automated test task; A hard disk backplane screening unit (3.2) is used for screening pre-designed hard disk backplane positions from a database of an automated test system according to the hard disk backplane positions in an automated testing task; A hard disk backplane parameter screening unit (3.3) is used for the automated testing task to screen pre-designed hard disk backplane parameters from the database of the automated testing system according to the coding, number of ports and hard disk type; The test comparison unit (3.4) is used for the automated testing task to compare the server model information, each hard disk information, and each hard disk backplane location information read from the BMC webpage with the pre-designed hard disk information, hard disk backplane location, and hard disk backplane parameters selected from the database of the automated testing system; The test result output unit (3.5) is used to output test conclusions and test logs for automated test tasks.

7. The device for automatically verifying BMC web page hard disk and hard disk backplane information according to claim 6, characterized in that: The automated test system building module (1) includes: System construction unit (1.1), used to build a web-controlled automated test system for BMC web page hard disk and hard disk backplane information; A preset information importing unit (1.2) is used to obtain the pre-designed hard disk and hard disk backplane information of each server to be tested and import it into the database of the automated test system; The detection task creation unit (1.3) is used to obtain the server to be tested and create an automated detection task in the automated testing system for the server to be tested.

Citation Information

Patent Citations

  • Server hard disk backboard information automation testing method and device

    CN108733524A

  • A method and apparatus for determining a target hard disk backplane

    CN109240869A