CN109783289B - Method and system for testing stability of memory information in WEB interface of BMC (baseboard management controller) - Google Patents
Method and system for testing stability of memory information in WEB interface of BMC (baseboard management controller) Download PDFInfo
- Publication number
- CN109783289B CN109783289B CN201910002718.7A CN201910002718A CN109783289B CN 109783289 B CN109783289 B CN 109783289B CN 201910002718 A CN201910002718 A CN 201910002718A CN 109783289 B CN109783289 B CN 109783289B
- Authority
- CN
- China
- Prior art keywords
- memory information
- server
- tested
- bmc
- web interface
- 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.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 96
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000007726 management method Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention provides a method and a system for testing the stability of memory information in a BMC (baseboard management controller) WEB interface, which are both as follows: firstly, carrying out first consistency comparison; restarting a BMC or OS system of the server to be tested when the first consistency comparison passes, and recording as a related item of restarting the server to be tested for the first time; secondly, performing second consistency comparison based on the related items of the server to be tested which is restarted for the first time, restarting a BMC or OS system of the server to be tested after the second consistency comparison is passed, and recording as the related items of the server to be tested which is restarted for the second time; the related items of the server to be tested for the first time are different from the related items of the server to be tested for the second time; then, performing third consistency comparison based on the related items of the server to be tested which is restarted for the second time; and based on the comparison result of the third consistency comparison, judging the stability of the memory information in the BMC WEB interface of the server to be tested. The method and the device are used for improving the efficiency of testing the stability of the memory information in the BMC WEB interface of the server.
Description
Technical Field
The invention relates to the field of server testing, in particular to a method and a system for testing the stability of memory information in a BMC (baseboard management controller) WEB interface, which are used for testing the stability of the memory information in the BMC WEB interface.
Background
The memory is one of important components in the server, the server without the memory cannot operate at all, and the memory is a bridge for the server to communicate with the CPU. The downtime caused by one memory error can permanently lose data, so the check of the memory information is an important link in the test server.
Before a server purchaser purchases a server of a server manufacturer, the server manufacturer typically presents various memory information of the server to the server purchaser via a server BMC web interface. Therefore, before the server manufacturer presents the memory information of the server to the server purchaser through the server BMC web interface, the server manufacturer needs to ensure the stability of the memory information presented by the server BMC web interface.
At present, server manufacturer testers often manually check memory information in a web interface of the server BMC one by one, including the position, capacity, type, maximum frequency, manufacturer, part number, serial number, minimum voltage, RANK, and the like of each memory, which consumes much time and effort, has low checking efficiency, and is prone to errors. Moreover, the use of manual methods makes multiplexing between multiple projects difficult. In addition, no log is used as a record in the whole inspection process, and the subsequent problem of inspection is difficult.
Therefore, the invention provides a method and a system for testing the stability of memory information in a BMC (baseboard management controller) WEB interface, which are used for solving the technical problem.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method and a system for testing the stability of the memory information in the BMC WEB interface of the server, which are used for improving the efficiency of testing the stability of the memory information in the BMC WEB interface of the server.
In order to solve the technical problem, the invention provides a method for testing the stability of memory information in a BMC (baseboard management controller) WEB interface, which is applied to a server to be tested; the method for testing the stability of the memory information in the server BMC WEB interface comprises the following steps:
acquiring memory information in a BMC (baseboard management controller) WEB interface of a server to be tested, and recording the memory information as first interface memory information;
obtaining memory information in DMI information of a server to be tested, and recording the memory information as first server memory information;
performing consistency comparison on the acquired first interface memory information and the acquired first server memory information, and recording as first consistency comparison;
when the first consistency comparison is passed, restarting a BMC or OS system of the server to be tested, and recording as a related item for restarting the server to be tested for the first time;
after the related items of the server to be tested are restarted for the first time: acquiring memory information in the BMC WEB interface of the server to be tested again, and recording the memory information as second interface memory information; obtaining the memory information in the DMI information of the server to be tested again, and recording the memory information as the memory information of the second server; performing consistency comparison on the acquired second interface memory information and the acquired second server memory information again, and recording as second consistency comparison;
after the second consistency comparison is passed, restarting a BMC or OS system of the server to be tested, and recording as a related item for restarting the server to be tested for the second time; the related items of the server to be tested which is restarted for the first time are different from the related items of the server to be tested which is restarted for the second time;
after restarting the related items of the server to be tested for the second time: acquiring memory information in the BMC WEB interface of the server to be tested again, and recording the memory information as third interface memory information; obtaining the memory information in the DMI information of the server to be tested again, and recording the memory information as the memory information of a third server; performing consistency comparison on the acquired third interface memory information and the acquired third server memory information again, and recording as third consistency comparison;
and judging the stability of the memory information in the BMC WEB interface of the server to be tested based on the comparison result of the third consistency comparison.
The method for testing the stability of the memory information in the BMC WEB interface of the server is realized by adopting an automatic test script.
The method for acquiring the memory information in the BMC WEB interface of the server to be tested is as follows:
logging in a BMC (baseboard management controller) WEB interface of a server to be tested;
entering a system information interface of a BMC WEB interface of a server to be tested;
and acquiring the memory information of the server to be tested from the system information interface to obtain the memory information in the BMC WEB interface of the server to be tested.
The OS system of the server to be tested is a linux system;
the method for acquiring the memory information in the DMI information of the server to be tested is as follows: and (3) adopting a self-carried dmidrecode tool of a linux system of the server to be tested.
The method for testing the stability of the memory information in the BMC WEB interface of the server further comprises a log generation step for generating a test log.
In addition, the invention also provides a system for testing the stability of the memory information in the BMC (baseboard management controller) WEB interface, which is applied to a server to be tested, and the system for testing the stability of the memory information in the BMC WEB interface comprises:
the first memory information acquisition unit is used for acquiring memory information in a BMC WEB interface of the server to be tested and recording the memory information as first interface memory information;
the second memory information acquisition unit is used for acquiring memory information in DMI information of the server to be tested and recording the memory information as the memory information of the first server;
the first comparing unit is respectively connected with the first memory information acquiring unit and the second memory information acquiring unit and is used for performing consistency comparison on the first interface memory information acquired by the first memory information acquiring unit and the first server memory information acquired by the second memory information acquiring unit and marking as first consistency comparison;
the first control unit is connected with the first comparison unit and used for controlling the BMC or the OS system of the server to be tested to be restarted after the first consistency comparison of the first comparison unit is passed and recording the first consistency comparison as a related item of the server to be tested to be restarted for the first time;
the third memory information acquisition unit is used for acquiring the memory information in the BMC WEB interface of the server to be tested again after the first control unit restarts the related items of the server to be tested for the first time, and recording the memory information as the second interface memory information;
the fourth memory information acquisition unit is used for acquiring the memory information in the DMI information of the server to be tested again after the first control unit restarts the related items of the server to be tested for the first time, and recording the memory information as the memory information of the second server;
the second comparing unit is respectively connected with the third memory information acquiring unit and the fourth memory information acquiring unit, and is used for performing consistency comparison again on the second interface memory information acquired by the third memory information acquiring unit and the second server memory information acquired by the fourth memory information acquiring unit, and marking as second consistency comparison;
the second control unit is connected with the second comparison unit and used for restarting the BMC or OS system of the server to be tested after the second consistency comparison of the second comparison unit passes and recording the second consistency comparison as a related item for restarting the server to be tested; the related items of the server to be tested for the first time are different from the related items of the server to be tested for the second time;
the fifth memory information acquisition unit is used for acquiring the memory information in the BMC WEB interface of the server to be tested again after the second control unit restarts the related items of the server to be tested for the second time, and recording the memory information as the third interface memory information;
the sixth memory information obtaining unit is used for obtaining the memory information in the DMI information of the server to be tested again after the second control unit restarts the related items of the server to be tested for the second time, and recording the memory information as the memory information of the third server;
a third comparing unit, connected to the fifth memory information obtaining unit and the sixth memory information obtaining unit, respectively, for performing consistency comparison again on the third interface memory information obtained by the fifth memory information obtaining unit and the third server memory information obtained by the sixth memory information obtaining unit, and recording as a third consistency comparison;
and the third control unit is connected with the third comparison unit and used for judging the stability of the memory information in the BMC WEB interface of the server to be tested based on the comparison result of the third consistency comparison of the third comparison unit.
The system for testing the stability of the memory information in the BMC WEB interface of the server is realized by adopting an automatic test script.
The first memory information acquisition unit, the third memory information acquisition unit and the fifth memory information acquisition unit acquire the memory information in the BMC WEB interface of the server to be tested, and the methods for acquiring the memory information in the BMC WEB interface of the server to be tested are as follows:
logging in a BMC (baseboard management controller) WEB interface of a server to be tested;
entering a system information interface of a BMC WEB interface of a server to be tested;
and acquiring the memory information of the server to be tested from the system information interface to obtain the memory information in the BMC WEB interface of the server to be tested.
The OS system of the server to be tested is a linux system;
the second memory information obtaining unit, the fourth memory information obtaining unit and the sixth memory information obtaining unit are all configured to obtain the memory information in the DMI information of the server to be tested: and (3) adopting a self-carried dmidrecode tool of a linux system of the server to be tested.
The system for testing the stability of the memory information in the server BMC WEB interface further comprises a log generation unit, and the log generation unit is used for generating a test log of the system.
Compared with the prior art, the invention has the advantages that:
(1) the method and the system for testing the stability of the memory information in the BMC WEB interface avoid the use of a manual comparison mode, obviously improve the testing efficiency and also improve the testing accuracy to a certain extent.
(2) The method and the system for testing the stability of the memory information in the BMC WEB interface of the server are realized by adopting the automatic test script, and are convenient to copy and reuse, so that the efficiency of testing the stability of the memory information in the BMC WEB interface of the server is improved.
(3) The method and the system for testing the stability of the memory information in the BMC WEB interface of the server take the log of the test as a record, so that the corresponding memory information with problems on the BMC WEB interface of the server to be tested can be conveniently confirmed in the follow-up process.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
Fig. 1 is a schematic method flow diagram of a method of embodiment 1 of the method for testing the stability of the memory information in the BMC WEB interface of the server according to the present invention.
Fig. 2 is a schematic structural block diagram of a specific embodiment 1 of the system for testing the stability of the memory information in the BMC WEB interface of the server according to the present invention.
Fig. 3 is a schematic structural block diagram of a specific embodiment 2 of the system for testing the stability of the memory information in the BMC WEB interface of the server according to the present invention.
Detailed Description
In order to make the technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Note that the contents not described in detail in the present embodiment are contents that can be easily realized by those skilled in the art based on the written description of the present application and the prior art.
Embodiment mode 1:
fig. 1 is a specific embodiment of the method for testing the stability of the memory information in the BMC WEB interface of the server according to the present invention. In this embodiment, the method for testing the stability of the memory information in the BMC WEB interface of the server is applied to the server to be tested, and is used for testing the stability of the memory information in the BMC WEB interface of the server.
In this embodiment, the method for testing the stability of the memory information in the BMC WEB interface of the server includes the following steps s1-s 12.
And step s1, acquiring memory information in the BMC WEB interface of the server to be tested, and recording the memory information as first interface memory information.
And step s2, acquiring memory information in the DMI information of the server to be tested, and recording the memory information as first server memory information.
Step s3, performing consistency comparison between the first interface memory information obtained in step s1 and the first server memory information obtained in step s2, and recording as first consistency comparison.
And step s4, when the first consistency comparison in the step s3 passes, restarting the BMC of the server to be tested, and recording as a related item of the server to be tested which is restarted for the first time. Step s5 is then performed.
In step s4, the BMC that restarts the server to be tested may be replaced by an OS system that restarts the server to be tested.
In addition, the first identity comparison in step s3 is passed, which means that: the first interface memory information obtained in step s1 is the same as or consistent with the first server memory information obtained in step s 2.
It should be noted that, if the first consistency comparison in step s3 fails, that is, the first interface memory information obtained in step s1 is not the same as or consistent with the first server memory information obtained in step s2, the entire test fails (i.e., a test case fail), and the test is ended at this time.
And step s5, acquiring the memory information in the BMC WEB interface of the server to be tested again, and recording the memory information as second interface memory information. Step s6 is then performed.
And step s6, obtaining the memory information in the DMI information of the server to be tested again, and recording the memory information as the memory information of the second server. Step s7 is then performed.
Step s7, performing consistency comparison again on the second interface memory information obtained in step s5 and the second server memory information obtained in step s6, and recording as a second consistency comparison.
Step s8, restarting the OS system of the server to be tested after the second consistency comparison in the step s7 is passed, and recording as a related item for restarting the server to be tested for the second time; step s9 is then performed.
The related items of the first restarting server to be tested are different from the related items of the second restarting server to be tested, and the related items comprise: when the related item of the server to be tested is restarted for the first time is BMC, the related item of the server to be tested is restarted for the second time is an OS system; and when the related item of the server to be tested is restarted for the first time is the OS system, the related item of the server to be tested is restarted for the second time is the BMC. It can be seen that, with respect to the method for testing the stability of the memory information in the BMC WEB interface of the server, when the BMC restarting the server to be tested in the step s4 is replaced with the OS system restarting the server to be tested, the OS system restarting the server to be tested in the step s8 needs to be correspondingly replaced with the BMC restarting the server to be tested.
In addition, the second consistency comparison described in step s7 is passed by: the second interface memory information obtained in step s5 is the same as or consistent with the second server memory information obtained in step s 6.
It should be noted that if the second consistency comparison in s7 fails, that is, the second interface memory information obtained in step s5 is not the same as or consistent with the second server memory information obtained in step s6, the test fails (i.e., test case fail), and the test is ended.
And step s9, acquiring the memory information in the BMC WEB interface of the server to be tested again, and recording the memory information as the memory information of the third interface. Step s10 is then performed.
And step s10, obtaining the memory information in the DMI information of the server to be tested again, and recording the memory information as the memory information of the third server.
And step s11, performing consistency comparison again on the third interface memory information obtained in step s9 and the third server memory information obtained in step s10, and recording as third consistency comparison.
And step s12, based on the comparison result of the third consistency comparison in step s11, determining the stability of the memory information in the BMC WEB interface of the server to be tested.
And when the comparison result of the third consistency comparison is that the third interface memory information acquired in the step s9 is consistent with the third server memory information acquired in the step s10, the third consistency comparison is passed correspondingly, and then the memory information in the BMC WEB interface of the server to be tested is judged to be stable correspondingly (at this moment, the test case pass) and the test is finished, otherwise, the test case fail is judged to be unstable correspondingly and the test is finished.
In this embodiment, each of the methods for acquiring the memory information in the BMC WEB interface of the server to be tested is as follows:
logging in a BMC (baseboard management controller) WEB interface of a server to be tested;
entering a system information interface of a BMC WEB interface of a server to be tested;
and acquiring the memory information of the server to be tested from the system information interface to obtain the memory information in the BMC WEB interface of the server to be tested.
When the memory information in the BMC WEB interface of the server to be tested needs to be acquired, the BMC WEB interface of the server to be tested is remotely logged in, then a system information interface of the BMC WEB interface of the server to be tested is entered, and then the memory information in the BMC WEB interface of the server to be tested is acquired from the system information interface.
In this embodiment, the OS system of the server under test is a linux system.
In this embodiment, each of the methods for acquiring the memory information in the DMI information of the server to be tested is: and (3) adopting a self-carried dmidrecode tool of a linux system of the server to be tested. When the memory information in the DMI information of the server to be tested needs to be obtained, the memory information in the DMI information of the server to be tested is correspondingly obtained through the self-contained dmidcode tool of the linux system of the server to be tested.
In this embodiment, the method for testing the stability of the memory information in the BMC WEB interface of the server is implemented by using an automated test script, which is convenient for multiplexing multiple items, thereby saving test time to a certain extent and further improving test efficiency.
Fig. 2 is a specific embodiment of the system for testing the stability of the memory information in the BMC WEB interface of the server according to the present invention, and the system for testing the stability of the memory information in the BMC WEB interface of the server is applied to a server to be tested.
In this embodiment, the system for testing the stability of the memory information in the BMC WEB interface of the server corresponds to the method for testing the stability of the memory information in the BMC WEB interface of the server in embodiment 1, and includes:
the first memory information acquisition unit is used for acquiring memory information in a BMC WEB interface of the server to be tested and recording the memory information as first interface memory information;
the second memory information acquisition unit is used for acquiring memory information in DMI information of the server to be tested and recording the memory information as the memory information of the first server;
the first comparing unit is respectively connected with the first memory information acquiring unit and the second memory information acquiring unit and is used for performing consistency comparison on the first interface memory information acquired by the first memory information acquiring unit and the first server memory information acquired by the second memory information acquiring unit and marking as first consistency comparison;
the first control unit is connected with the first comparison unit and used for controlling the BMC for restarting the server to be tested after the first consistency comparison of the first comparison unit passes and recording the BMC as a related item of the first server to be restarted;
the third memory information acquisition unit is used for acquiring the memory information in the BMC WEB interface of the server to be tested again after the first control unit restarts the related items of the server to be tested for the first time, and recording the memory information as the second interface memory information;
the fourth memory information acquisition unit is used for acquiring the memory information in the DMI information of the server to be tested again after the first control unit restarts the related items of the server to be tested for the first time, and recording the memory information as the memory information of the second server;
the second comparing unit is respectively connected with the third memory information acquiring unit and the fourth memory information acquiring unit, and is used for performing consistency comparison again on the second interface memory information acquired by the third memory information acquiring unit and the second server memory information acquired by the fourth memory information acquiring unit, and marking as second consistency comparison;
the second control unit is connected with the second comparison unit and used for restarting the OS system of the server to be tested after the second consistency comparison of the second comparison unit passes and recording the OS system as a related item of the server to be tested for the second time;
the fifth memory information acquisition unit is used for acquiring the memory information in the BMC WEB interface of the server to be tested again after the second control unit restarts the related items of the server to be tested for the second time, and recording the memory information as the third interface memory information;
the sixth memory information obtaining unit is used for obtaining the memory information in the DMI information of the server to be tested again after the second control unit restarts the related items of the server to be tested for the second time, and recording the memory information as the memory information of the third server;
a third comparing unit, connected to the fifth memory information obtaining unit and the sixth memory information obtaining unit, respectively, for performing consistency comparison again on the third interface memory information obtained by the fifth memory information obtaining unit and the third server memory information obtained by the sixth memory information obtaining unit, and recording as a third consistency comparison;
and the third control unit is connected with the third comparison unit and used for judging the stability of the memory information in the BMC WEB interface of the server to be tested based on the comparison result of the third consistency comparison of the third comparison unit.
When in use: acquiring memory information in a BMC (baseboard management controller) WEB interface of a server to be tested through a first memory information acquisition unit, and recording the memory information as first interface memory information; acquiring memory information in DMI information of a server to be tested through a second memory information acquisition unit, and recording the memory information as first server memory information; then, the first comparison unit is used for carrying out consistency comparison on the first interface memory information acquired by the first memory information acquisition unit and the first server memory information acquired by the second memory information acquisition unit, and the consistency comparison is recorded as first-time consistency comparison; then, through the first control unit, after the first consistency comparison of the first comparison unit passes, controlling and restarting the BMC of the server to be tested, and recording the BMC as a related item of the server to be tested for the first time; secondly, acquiring memory information in the BMC WEB interface of the server to be tested again through a third memory information acquisition unit, and recording the memory information as second interface memory information; secondly, acquiring memory information in DMI information of the server to be tested again through a fourth memory information acquisition unit, and recording the memory information as memory information of a second server; then, consistency comparison is carried out on the second interface memory information acquired by the third memory information acquisition unit and the second server memory information acquired by the fourth memory information acquisition unit again through a second comparison unit, and the consistency comparison is marked as second consistency comparison; after the second consistency comparison of the second comparison unit passes, the second control unit restarts the OS system of the server to be tested, and records the OS system as a related item of the server to be tested for the second time; secondly, acquiring memory information in a BMC WEB interface of the server to be tested again through a fifth memory information acquisition unit, and recording the memory information as third interface memory information; secondly, acquiring memory information in DMI information of the server to be tested again through a sixth memory information acquisition unit, and recording the memory information as memory information of a third server; then, consistency comparison is performed again on the third interface memory information acquired by the fifth memory information acquisition unit and the third server memory information acquired by the sixth memory information acquisition unit through a third comparison unit, and the third interface memory information and the third server memory information are marked as third consistency comparison; and finally, correspondingly judging the stability of the memory information in the BMC WEB interface of the server to be tested by a third control unit based on a comparison result of the third consistency comparison of the third comparison unit.
The related items of the first restarting server to be tested and the related items of the second restarting server to be tested can be replaced by: and the related item for restarting the server to be tested for the first time is an OS system, and the related item for restarting the server to be tested for the second time is BMC.
In this embodiment, the first memory information obtaining unit, the third memory information obtaining unit, and the fifth memory information obtaining unit are all configured to obtain the memory information in the BMC WEB interface of the server to be tested:
logging in a BMC (baseboard management controller) WEB interface of a server to be tested;
entering a system information interface of a BMC WEB interface of a server to be tested;
and acquiring the memory information of the server to be tested from the system information interface to obtain the memory information in the BMC WEB interface of the server to be tested.
In this embodiment, the OS system of the server under test is a linux system.
In this embodiment, the second memory information obtaining unit, the fourth memory information obtaining unit, and the sixth memory information obtaining unit are all configured to obtain the memory information in the DMI information of the server to be tested: and (3) adopting a self-carried dmidrecode tool of a linux system of the server to be tested.
In embodiment 1, the system for testing the stability of the memory information in the BMC WEB interface of the server is implemented by using an automated test script, which is convenient for copying and multiplexing among multiple projects, thereby saving test time to a certain extent and further improving test efficiency.
In addition, in view of the components of the system for testing the stability of the memory information in the BMC WEB interface of the server according to the present invention, corresponding descriptions have been made in the method for testing the stability of the memory information in the BMC WEB interface of the server according to embodiment 1, and details are not repeated here.
Embodiment mode 2:
compared with the method for testing the stability of the memory information in the BMC WEB interface of the server in embodiment 1, the difference between this embodiment and the method for testing the stability of the memory information in the BMC WEB interface of the server in embodiment 1 is that the method for testing the stability of the memory information in the BMC WEB interface of the server in embodiment further includes a log generation step for generating a test log. Based on the log generation step, a test log of the method for testing the stability of the memory information in the BMC WEB interface of the server is generated, so that log recording is conveniently carried out in the whole test process, and the follow-up confirmation of the corresponding memory information with problems on the BMC WEB interface of the server to be tested is facilitated.
In embodiment 2, the log generation step of the method for testing the stability of the memory information in the BMC WEB interface of the server is also implemented by using an automated test script, which facilitates multiplexing among multiple projects.
The following (1) to (3) are Java-based codes, and are related executable codes for acquiring the memory information in the BMC WEB interface of the server to be tested in the method for testing the stability of the memory information in the BMC WEB interface of the server in embodiment 2 (a person skilled in the art may also use other computer programming languages to implement the corresponding contents according to the prior art):
(1) logging in a BMC (baseboard management controller) WEB interface of the server to be tested:
(2) entering a system information interface of a BMC WEB interface of the server to be tested:
(3) acquiring the memory information of the server to be tested from the system information interface to obtain the memory information in the BMC WEB interface of the server to be tested:
in addition, the following is an implementation manner of comparing the acquired memory information in the BMC WEB interface of the server to be tested with the acquired memory information in the DMI information of the server to be tested (a person skilled in the art can also implement the corresponding content by using other computer programming languages according to the prior art):
in addition, this embodiment 2 further provides another specific embodiment of a system for testing the stability of the memory information in the BMC WEB interface of the server. Compared with the system for testing the stability of the memory information in the BMC WEB interface of the server in embodiment 1, the system for testing the stability of the memory information in the BMC WEB interface of the server in embodiment 2 further includes a log generation unit, as shown in fig. 3. The log generation unit is used for generating a test log of the cost system. When the method is used, the log generating unit generates the test log of the method for testing the stability of the memory information in the BMC WEB interface of the server, so that the log recording is convenient for the whole test process, the subsequent confirmation of the corresponding memory information with problems on the BMC WEB interface of the server to be tested is convenient, and the subsequent problem troubleshooting is convenient.
In embodiment 2, in the system for testing the stability of the memory information in the BMC WEB interface of the server, the log generation unit is also implemented by using an automated test script, so that it is convenient to copy and reuse multiple projects.
The above embodiments are only for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may be modified or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (8)
1. A method for testing the stability of memory information in a BMC (baseboard management controller) WEB interface of a server is applied to the server to be tested, and is characterized by comprising the following steps:
acquiring memory information in a BMC (baseboard management controller) WEB interface of a server to be tested, and recording the memory information as first interface memory information;
obtaining memory information in DMI information of a server to be tested, and recording the memory information as first server memory information;
performing consistency comparison on the acquired first interface memory information and the acquired first server memory information, and recording as first consistency comparison;
when the first consistency comparison is passed, restarting a BMC or OS system of the server to be tested, and recording as a related item for restarting the server to be tested for the first time;
after the related items of the server to be tested are restarted for the first time: acquiring memory information in the BMC WEB interface of the server to be tested again, and recording the memory information as second interface memory information; obtaining the memory information in the DMI information of the server to be tested again, and recording the memory information as the memory information of the second server; performing consistency comparison on the acquired second interface memory information and the acquired second server memory information again, and recording as second consistency comparison;
after the second consistency comparison is passed, restarting a BMC or OS system of the server to be tested, and recording as a related item for restarting the server to be tested for the second time; the related items of the server to be tested which is restarted for the first time are different from the related items of the server to be tested which is restarted for the second time;
after restarting the related items of the server to be tested for the second time: acquiring memory information in the BMC WEB interface of the server to be tested again, and recording the memory information as third interface memory information; obtaining the memory information in the DMI information of the server to be tested again, and recording the memory information as the memory information of a third server; performing consistency comparison on the acquired third interface memory information and the acquired third server memory information again, and recording as third consistency comparison;
based on the comparison result of the third consistency comparison, judging the stability of the memory information in the BMC WEB interface of the server to be tested;
the OS system of the server to be tested is a linux system; the method for acquiring the memory information in the DMI information of the server to be tested is as follows: and acquiring by adopting a self-carried dmidrecode tool of a linux system of the server to be detected.
2. The method of claim 1, wherein the method for testing the stability of the memory information in the BMC WEB interface of the server is implemented using an automated test script.
3. The method for testing the stability of the memory information in the BMC WEB interface of the server according to claim 1 or 2, wherein each of the methods for obtaining the memory information in the BMC WEB interface of the server to be tested is:
logging in a BMC (baseboard management controller) WEB interface of a server to be tested;
entering a system information interface of a BMC WEB interface of a server to be tested;
and acquiring the memory information of the server to be tested from the system information interface to obtain the memory information in the BMC WEB interface of the server to be tested.
4. The method for testing the stability of the memory information in the BMC WEB interface of the server according to claim 1 or 2, further comprising a log generation step for generating a test log.
5. A system for testing the stability of memory information in a BMC (baseboard management controller) WEB interface is applied to a server to be tested, and is characterized by comprising the following steps:
the first memory information acquisition unit is used for acquiring memory information in a BMC WEB interface of the server to be tested and recording the memory information as first interface memory information;
the second memory information acquisition unit is used for acquiring memory information in DMI information of the server to be tested and recording the memory information as the memory information of the first server;
the first comparing unit is respectively connected with the first memory information acquiring unit and the second memory information acquiring unit and is used for performing consistency comparison on the first interface memory information acquired by the first memory information acquiring unit and the first server memory information acquired by the second memory information acquiring unit and marking as first consistency comparison;
the first control unit is connected with the first comparison unit and used for controlling the BMC or the OS system of the server to be tested to be restarted after the first consistency comparison of the first comparison unit is passed and recording the first consistency comparison as a related item of the server to be tested to be restarted for the first time;
the third memory information acquisition unit is used for acquiring the memory information in the BMC WEB interface of the server to be tested again after the first control unit restarts the related items of the server to be tested for the first time, and recording the memory information as the second interface memory information;
the fourth memory information acquisition unit is used for acquiring the memory information in the DMI information of the server to be tested again after the first control unit restarts the related items of the server to be tested for the first time, and recording the memory information as the memory information of the second server;
the second comparing unit is respectively connected with the third memory information acquiring unit and the fourth memory information acquiring unit, and is used for performing consistency comparison again on the second interface memory information acquired by the third memory information acquiring unit and the second server memory information acquired by the fourth memory information acquiring unit, and marking as second consistency comparison;
the second control unit is connected with the second comparison unit and used for restarting the BMC or OS system of the server to be tested after the second consistency comparison of the second comparison unit passes and recording the second consistency comparison as a related item for restarting the server to be tested; the related items of the server to be tested for the first time are different from the related items of the server to be tested for the second time;
the fifth memory information acquisition unit is used for acquiring the memory information in the BMC WEB interface of the server to be tested again after the second control unit restarts the related items of the server to be tested for the second time, and recording the memory information as the third interface memory information;
the sixth memory information obtaining unit is used for obtaining the memory information in the DMI information of the server to be tested again after the second control unit restarts the related items of the server to be tested for the second time, and recording the memory information as the memory information of the third server;
a third comparing unit, connected to the fifth memory information obtaining unit and the sixth memory information obtaining unit, respectively, for performing consistency comparison again on the third interface memory information obtained by the fifth memory information obtaining unit and the third server memory information obtained by the sixth memory information obtaining unit, and recording as a third consistency comparison;
the third control unit is connected with the third comparison unit and used for judging the stability of the memory information in the BMC WEB interface of the server to be tested based on the comparison result of the third consistency comparison of the third comparison unit;
the OS system of the server to be tested is a linux system; the method for acquiring the memory information in the DMI information of the server to be tested is as follows: and acquiring by adopting a self-carried dmidrecode tool of a linux system of the server to be detected.
6. The system of claim 5, wherein the system for testing the stability of memory information in the BMC WEB interface is implemented using an automated test script.
7. The system for testing the stability of the memory information in the BMC WEB interface of the server according to claim 5 or 6, wherein the first memory information obtaining unit, the third memory information obtaining unit, and the fifth memory information obtaining unit are all configured to obtain the memory information in the BMC WEB interface of the server to be tested:
logging in a BMC (baseboard management controller) WEB interface of a server to be tested;
entering a system information interface of a BMC WEB interface of a server to be tested;
and acquiring the memory information of the server to be tested from the system information interface to obtain the memory information in the BMC WEB interface of the server to be tested.
8. The system for testing the stability of the memory information in the BMC WEB interface of the server according to claim 5 or 6, further comprising a log generation unit for generating a test log of the system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910002718.7A CN109783289B (en) | 2019-01-02 | 2019-01-02 | Method and system for testing stability of memory information in WEB interface of BMC (baseboard management controller) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910002718.7A CN109783289B (en) | 2019-01-02 | 2019-01-02 | Method and system for testing stability of memory information in WEB interface of BMC (baseboard management controller) |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109783289A CN109783289A (en) | 2019-05-21 |
CN109783289B true CN109783289B (en) | 2021-09-17 |
Family
ID=66499835
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910002718.7A Active CN109783289B (en) | 2019-01-02 | 2019-01-02 | Method and system for testing stability of memory information in WEB interface of BMC (baseboard management controller) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109783289B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109062745A (en) * | 2018-07-26 | 2018-12-21 | 郑州云海信息技术有限公司 | A kind of test terminal with testing service device hardware temperatures |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101246446A (en) * | 2008-03-12 | 2008-08-20 | 浪潮电子信息产业股份有限公司 | Method for testing PC server performance |
TWI438706B (en) * | 2009-07-22 | 2014-05-21 | Accton Technology Corp | Electronic ticketing system |
CN102193851A (en) * | 2011-05-24 | 2011-09-21 | 浪潮电子信息产业股份有限公司 | Method for testing stability of internal storage under DOS (Disk Operating System) |
CN106021079B (en) * | 2016-05-06 | 2018-10-09 | 华南理工大学 | It is a kind of based on the Web application performance test methods for being frequently visited by the user series model |
-
2019
- 2019-01-02 CN CN201910002718.7A patent/CN109783289B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109062745A (en) * | 2018-07-26 | 2018-12-21 | 郑州云海信息技术有限公司 | A kind of test terminal with testing service device hardware temperatures |
Also Published As
Publication number | Publication date |
---|---|
CN109783289A (en) | 2019-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109902016B (en) | Web test method and test platform | |
CN104375910A (en) | Automatic power-on and power-off test method | |
US9619356B2 (en) | Detection of hardware errors using periodically synchronized redundant transactions and comparing results from cores of a multi-core processor | |
CN103973515A (en) | Network card stability testing method | |
US20120254662A1 (en) | Automated test system and automated test method | |
CN108459850B (en) | Method, device and system for generating test script | |
CN108536597A (en) | A kind of terminal test method, device, terminal device and storage medium | |
CN112269697B (en) | Equipment storage performance testing method, system and related device | |
KR20210004656A (en) | Apparatus and control method for vehicle function test | |
CN110750396A (en) | Server operating system compatibility testing method and device and storage medium | |
CN112256505A (en) | Server stability testing method and device and related components | |
CN106776340A (en) | A kind of general server S ensor automatic test approach | |
CN108572895B (en) | Stability test method for automatically checking software and hardware configuration under Linux | |
CN115061885A (en) | Complete machine aging automatic test method and device, electronic equipment and storage medium | |
CN110990289B (en) | Method and device for automatically submitting bug, electronic equipment and storage medium | |
CN108153635B (en) | System memory edge testing method, system device and computer readable storage medium | |
CN109783289B (en) | Method and system for testing stability of memory information in WEB interface of BMC (baseboard management controller) | |
WO2012104991A1 (en) | Program test method, program test system, and program | |
US20060225041A1 (en) | Method for testing modified user documentation software for regressions | |
CN113238940B (en) | Interface test result comparison method, device, equipment and storage medium | |
US20180225165A1 (en) | Configurable system wide tests | |
CN111211853B (en) | BMC time synchronization checking method and equipment | |
CN112256554B (en) | Method and equipment for testing based on scene test cases | |
CN113656318A (en) | Software version testing method and device and computer equipment | |
CN111597101A (en) | SDK access state detection method, computer device and computer 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |