CN114860611B - BIOS upgrading test method, device and medium - Google Patents

BIOS upgrading test method, device and medium Download PDF

Info

Publication number
CN114860611B
CN114860611B CN202210608943.7A CN202210608943A CN114860611B CN 114860611 B CN114860611 B CN 114860611B CN 202210608943 A CN202210608943 A CN 202210608943A CN 114860611 B CN114860611 B CN 114860611B
Authority
CN
China
Prior art keywords
test
bios
upgrading
upgrade
duration
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
Application number
CN202210608943.7A
Other languages
Chinese (zh)
Other versions
CN114860611A (en
Inventor
赵凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210608943.7A priority Critical patent/CN114860611B/en
Publication of CN114860611A publication Critical patent/CN114860611A/en
Application granted granted Critical
Publication of CN114860611B publication Critical patent/CN114860611B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to the technical field of computers, and discloses a BIOS upgrading test method, device and medium, wherein an upgrading test instruction is obtained from a client, and when BIOS upgrading test is carried out according to the upgrading test instruction, an upgrading test flow is monitored, so that the BIOS upgrading result is judged, and test items in the upgrading process are tested according to preset test conditions. Compared with the prior art, the method and the device only judge the version of the BIOS after upgrading so as to confirm whether the upgrading is successful, so that the upgrading test of the BIOS is incomplete.

Description

BIOS upgrading test method, device and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a medium for testing BIOS upgrade.
Background
The basic input output system (Basic Input Output System, BIOS), which is an important parameter in the computer field, can provide the lowest layer and the most direct hardware setting and control for the computer, and plays a very important role in the computer system.
During product development, it is necessary to test the stability of the BIOS upgrade, especially before the release of the BIOS version. In the prior art, whether the BIOS is successfully upgraded is judged by judging whether the upgraded BIOS version is consistent with the target version. The method only determines whether the BIOS version is updated successfully or not by judging the BIOS version, and cannot fully reflect the stability of BIOS updating.
Therefore, how to more fully test the stability of BIOS upgrades is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a BIOS upgrade test method, device and medium, which are used for providing more comprehensive test when testing BIOS upgrade stability.
In order to solve the above technical problems, the present application provides a method for testing BIOS upgrade, which includes:
acquiring an upgrade test instruction sent by a client;
performing BIOS upgrade test according to the upgrade test instruction;
Monitoring a BIOS upgrading test flow, and judging whether each test item in the upgrading test flow accords with preset test conditions; the test items at least comprise a current equipment IP test, a current equipment type test, a BIOS upgrading type test, an upgrading duration test, a restarting duration test, an upgrading frequency test and a BIOS version test;
If all the test items meet the test conditions, confirming that the BIOS upgrading test is passed;
If any test item is detected to be not in accordance with the test condition, the BIOS upgrading test is confirmed to be failed and the BIOS upgrading test is withdrawn.
Preferably, the test conditions include a first test condition, and the first test condition is: the IP test of the current equipment, the type test of the current equipment and the type test of the BIOS are the same as the corresponding preset conditions;
Correspondingly, if the current equipment IP test, the current equipment type test and the BIOS upgrading type test are the same as the respective corresponding preset conditions, confirming that the current equipment IP test, the current equipment type test and the BIOS upgrading type test accord with the first test conditions;
If the current equipment IP test, the current equipment type test and the BIOS upgrading type test are not identical to the corresponding preset conditions, confirming that the current equipment IP test, the current equipment type test and the BIOS upgrading type test do not accord with the first test conditions, entering the step of confirming that the BIOS upgrading test does not pass and exiting the BIOS upgrading test.
Preferably, the test conditions further include a second test condition, the second test condition being: the upgrading time length accords with a first preset time length;
Correspondingly, if the upgrading duration accords with the first preset duration, confirming that the upgrading duration test accords with the second test condition, and carrying out the restarting duration test;
If the upgrading duration does not accord with the first preset duration, confirming that the upgrading duration test does not accord with the second test condition, entering the step of confirming that the BIOS upgrading test does not pass and exiting the BIOS upgrading test.
Preferably, the test conditions further include a third test condition, and the third test condition is: the restarting time length accords with a second preset time length;
Correspondingly, if the restarting duration accords with the second preset duration, confirming that the restarting duration test accords with the third test condition, and carrying out the upgrading frequency test;
If the restart duration does not meet the second preset duration, confirming that the restart duration test does not meet the third test condition, entering the step of confirming that the BIOS upgrading test does not pass and exiting the BIOS upgrading test.
Preferably, the test conditions further include a fourth test condition, and the fourth test condition is: the upgrade times reach a threshold value;
Correspondingly, if the upgrade times reach the threshold value, confirming that the upgrade times test meets the fourth test condition.
Preferably, the test conditions further include a fifth test condition, the fifth test condition being: the current BIOS version conforms to the target BIOS version;
Correspondingly, if the current BIOS version accords with the target BIOS version, confirming that the BIOS version test accords with the fifth test condition;
If the current BIOS version does not accord with the target BIOS version, confirming that the BIOS version test does not accord with the fifth test condition, entering the step of confirming that the BIOS upgrading test does not pass and exiting the BIOS upgrading test.
Preferably, the method further comprises:
and sending information for representing the BIOS upgrading test result to a client for display.
In order to solve the technical problem, the application also provides a BIOS upgrade testing device, which comprises:
The acquisition module is used for acquiring an upgrade test instruction sent by the client;
the test module is used for carrying out BIOS upgrading test according to the upgrading test instruction;
The processing module is used for monitoring the BIOS upgrading test flow and judging whether each test item in the upgrading test flow accords with preset test conditions; the test items at least comprise a current equipment IP test, a current equipment type test, a BIOS upgrading type test, an upgrading duration test, a restarting duration test, an upgrading frequency test and a BIOS version test;
If all the test items meet the test conditions, confirming that the BIOS upgrading test is passed;
If any test item is detected to be not in accordance with the test condition, the BIOS upgrading test is confirmed to be failed and the BIOS upgrading test is withdrawn.
Preferably, the system further comprises a sending module for sending information for representing the BIOS upgrade test result to the client for display.
In order to solve the technical problem, the application also provides another BIOS upgrade testing device, which comprises a memory for storing a computer program;
and the processor is used for realizing the steps of the BIOS upgrading test method when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer readable storage medium, where a computer program is stored, and the steps of the BIOS upgrade test method are implemented when the computer program is executed by a processor.
According to the BIOS upgrading test method provided by the application, the upgrading test instruction is obtained from the client, and when the BIOS upgrading test is carried out according to the upgrading test instruction, the upgrading test flow is monitored, so that the BIOS upgrading result is judged, and the test items in the upgrading process are tested according to the preset test conditions. Compared with the prior art, the method and the device only judge the version of the BIOS after upgrading so as to confirm whether the upgrading is successful, so that the upgrading test of the BIOS is incomplete.
In addition, the BIOS upgrading testing device and the medium provided by the application correspond to the BIOS upgrading testing method, and have the same effects.
Drawings
For a clearer description of embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a flowchart of a BIOS upgrade testing method according to an embodiment of the present application;
FIG. 2 is a diagram illustrating an execution sequence of test items according to an embodiment of the present application;
FIG. 3 is a block diagram of a BIOS upgrade testing device according to an embodiment of the present application;
fig. 4 is a block diagram of another BIOS upgrade test device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present application.
The basic input output system (Basic Input Output System, BIOS), which is an important parameter in the computer field, can provide the lowest layer and the most direct hardware setting and control for the computer, and plays a very important role in the computer system.
During product development, it is necessary to test the stability of the BIOS upgrade, especially before the release of the BIOS version. In the prior art, whether the BIOS is successfully upgraded is judged by judging whether the upgraded BIOS version is consistent with the target version. The method only determines whether the BIOS version is updated successfully or not by judging the BIOS version, and cannot fully reflect the stability of BIOS updating.
The application provides a BIOS upgrade test method, a device and a medium, which are used for providing more comprehensive test when testing BIOS upgrade stability.
In order to better understand the aspects of the present application, the present application will be described in further detail with reference to the accompanying drawings and detailed description.
Fig. 1 is a flowchart of a method for testing BIOS upgrade according to an embodiment of the present application, as shown in fig. 1, where the method includes:
s10: and acquiring an upgrade test instruction sent by the client.
The execution subject in the embodiment of the application can be a BIOS upgrade testing device on a server, which receives upgrade testing instructions from a client (such as a man-machine interaction device). The server is used as test equipment for BIOS upgrading test, the client is used for realizing control of test by technicians, for example, the starting time of test, the types of test items, the test flow and the like can be controlled, and meanwhile, the server can also be used as display equipment for displaying the test results of all the test items in the test process in real time and displaying the test results to the technicians in time.
In step S10, the server receives an upgrade test instruction from the client to start an upgrade test. It can be appreciated that the technician should have configured the flow of the upgrade test, such as setting the current device IP, the current device type, the BIOS upgrade type, the upgrade duration, the restart duration, the upgrade number, the BIOS version, and the like, before the client chooses to start the test.
S11: and performing BIOS upgrade test according to the upgrade test instruction.
In the embodiment of the application, the BIOS upgrade test comprises an upgrade and a test, wherein the upgrade is to upgrade BIOS firmware, and the test is to test the environment before BIOS upgrade, the process in upgrade, the BIOS version after upgrade and the like.
S12: monitoring a BIOS upgrading test flow, and judging whether each test item in the upgrading test flow accords with preset test conditions; the test items at least comprise a current equipment IP test, a current equipment type test, a BIOS upgrading type test, an upgrading duration test, a restarting duration test, an upgrading frequency test and a BIOS version test; if all the test items meet the test conditions, the step S13 is performed, and if any test item is detected to be not met, the step S14 is performed.
S13: and confirming that the BIOS upgrade test passes.
S14: and confirming that the BIOS upgrading test does not pass and exiting the BIOS upgrading test.
In implementations, upgrade testing of the BIOS typically requires a significant amount of time and requires repeated testing. Therefore, in order to timely remove faults, items which are not passed by the test are repaired, in the embodiment, the upgrade test flow is monitored, and when any test item is detected to be not in accordance with the test condition, the BIOS upgrade test is timely exited, so that time waste is avoided. And only when all tests pass, the BIOS upgrade test can be confirmed to pass.
In addition, in research and development tests, the BIOS upgrading test needs to be repeatedly tested in a large number, and the server is blocked, so that if a technician cannot timely acquire a test result, information is lost, and the test flow is seriously affected. Therefore, in this embodiment, the server may timely send the test results of each test item in the test flow to the client for display or storage. And the relevant information of the test is sent to the client in real time, so that the embodiment of the test progress is realized. When the client displays the test result, the information that a certain test item passes can be displayed on the client when the test item passes, or the information that the BIOS upgrade test passes can be displayed on the client after all the tests pass. When a certain test item fails, the relevant information such as the actual test value of the item and the standard value of the test can be sent to the client, so that a technician can know the failed test item and analyze the reason of the failed test in detail.
According to the BIOS upgrading test method provided by the embodiment of the application, the upgrading test instruction is obtained from the client, and when the BIOS upgrading test is carried out according to the upgrading test instruction, the upgrading test flow is monitored, so that the BIOS upgrading result is judged, and the test items in the upgrading process are tested according to the preset test conditions. Compared with the prior art, the method and the device only judge the version of the BIOS after upgrading so as to confirm whether the upgrading is successful, so that the upgrading test of the BIOS is incomplete.
After receiving the upgrade test instruction sent by the client for representing the start of the test, the server can perform upgrade test on the BIOS. It should be noted that before upgrading the BIOS, it is necessary to determine whether the upgrading environment meets the requirements, including the current device IP, the current device type, and the BIOS upgrading type, and it is to be understood that if the upgrading environment does not meet the requirements, the BIOS is not required to be upgraded, and the upgrading environment is tested first, so as to avoid time waste of BIOS upgrading.
Thus, on the basis of the above-described embodiment, in the present embodiment, the test conditions include the first test conditions that are: the IP test of the current equipment, the type test of the current equipment and the type test of the BIOS are the same as the corresponding preset conditions;
correspondingly, if the IP test of the current equipment, the type test of the current equipment and the type test of the BIOS are the same as the corresponding preset conditions, confirming that the IP test of the current equipment, the type test of the current equipment and the type test of the BIOS accord with the first test conditions;
if the current equipment IP test, the current equipment type test and the BIOS upgrading type test are not identical to the corresponding preset conditions, confirming that the current equipment IP test, the current equipment type test and the BIOS upgrading type test do not accord with the first test conditions, and entering the step of confirming that the BIOS upgrading test does not pass and exiting the BIOS upgrading test.
In this embodiment, the current device IP refers to the address of the server, the current device type refers to the model type of the server, and the BIOS upgrade type refers to the BIOS upgrade policy (e.g., to keep the original user data for upgrade or to directly cover the new BIOS without keeping the original user data). In the implementation, the server receives the upgrade test instruction, and then the current equipment IP test, the current equipment type test and the BIOS upgrade type test can be performed. It will be appreciated that the three tests in this embodiment are tests of the upgrade environment, and the three tests are not ordered sequentially. When the IP test of the current equipment, the type test of the current equipment and the type test of the BIOS upgrade are all passed, the three test items are confirmed to pass, and the BIOS upgrade can be performed. If any one of the tests is not met, the test item can be sent to the client for display, and the BIOS upgrading test is confirmed not to pass and is withdrawn.
According to the BIOS upgrading test method provided by the embodiment of the application, the IP of the current equipment, the type of the current equipment and the type of BIOS upgrading are tested at first, the method is used for testing an upgrading environment, when all three tests are passed, the three tests are confirmed to pass, and when any one test is not passed, the method is withdrawn in time, so that the waste of a large amount of time in BIOS upgrading is avoided.
In a specific implementation, the duration of the BIOS upgrade also reflects the stability of the BIOS upgrade. In this embodiment, the test conditions further include a second test condition, where the second test condition is: the upgrading time length accords with a first preset time length;
Correspondingly, if the upgrading duration accords with the first preset duration, confirming that the upgrading duration test accords with the second test condition, and carrying out the restarting duration test;
If the upgrade duration does not accord with the first preset duration, confirming that the upgrade duration test does not accord with the second test condition, and entering a step of confirming that the BIOS upgrade test does not pass and exiting the BIOS upgrade test.
In a specific implementation, after verifying the upgrading environment of the BIOS, the BIOS may be upgraded, and when the upgrade is started, the server monitors the upgrading duration of the BIOS until the server completes the upgrade. And after the BIOS upgrade is confirmed to be successful, judging whether the upgrade duration meets the first preset duration or not, and confirming whether the test is passed or not. It can be understood that in this embodiment, the monitoring of the upgrade duration is performed immediately when the BIOS starts to upgrade, and the final determination of the upgrade duration is performed under the condition that the BIOS upgrade is confirmed to be successful, and the determination of the upgrade duration is not required when the BIOS upgrade fails.
In a specific implementation, after the BIOS is successfully upgraded, a restart is often required to make the upgraded BIOS effective, and the restart duration of the BIOS also shows the stability of the upgrade. Therefore, in this embodiment, after the upgrade duration test passes, the BIOS is restarted and enters the restart duration test.
According to the embodiment of the application, the BIOS upgrading stability is tested more comprehensively by judging the BIOS upgrading time.
On the basis of the above embodiment, in this embodiment, the test conditions further include a third test condition, where the third test condition is: the restarting time length accords with a second preset time length;
correspondingly, if the restarting duration accords with the second preset duration, confirming that the restarting duration test accords with a third test condition, and carrying out upgrading times test;
If the restarting time length does not accord with the second preset time length, confirming that the restarting time length test does not accord with the third test condition, and entering a step of confirming that the BIOS upgrading test does not pass and exiting the BIOS upgrading test.
In the above embodiments, the method for judging the stability of the BIOS upgrade through the upgrade duration test is described, and in specific implementation, the method further needs to be restarted to enable the upgraded firmware to be effective. According to the embodiment of the application, the restarting time length of the BIOS is judged through the restarting time length test, so that the time of firmware reloading is analyzed, and the BIOS upgrading stability is tested more comprehensively.
It will be appreciated that during the development process, the BIOS upgrade requires a large number of repeated tests, and when the number of tests does not reach the preset number, the tests need to be re-performed again.
Thus, in this embodiment, the test conditions further include a fourth test condition, where the fourth test condition is: the upgrade times reach a threshold value;
correspondingly, if the upgrade times reach the threshold value, confirming that the upgrade times are tested to meet the fourth test condition.
In this embodiment, after the server is restarted, it needs to determine whether the number of upgrades reaches a threshold, and if so, it indicates that the number of upgrades passes. It will be appreciated that in a specific implementation, the upgrade test is typically the last test item, and when the test count reaches a threshold, this test is ended. When the threshold is not reached, the first test needs to be returned to perform the next test.
The embodiment determines whether to continue the test by judging whether the upgrade number reaches the threshold value. Through repeated test, the accuracy of test is guaranteed, and accidental is avoided.
On the basis of the above embodiment, in this embodiment, the test conditions further include a fifth test condition, where the fifth test condition is: the current BIOS version conforms to the target BIOS version;
correspondingly, if the current BIOS version accords with the target BIOS version, confirming that the BIOS version test accords with a fifth test condition;
If the current BIOS version does not accord with the target BIOS version, confirming that the BIOS version test does not accord with the fifth test condition, entering the step of confirming that the BIOS upgrading test does not pass and exiting the BIOS upgrading test.
It can be appreciated that by determining whether the current BIOS version of the server meets the target BIOS version, it can be determined whether the BIOS upgrade is successful. The upgrade duration test may be described in the above embodiments when the BIOS version test passes. The embodiment of the application determines whether the BIOS upgrade is successful by judging the BIOS version test.
The above embodiments describe the BIOS upgrade test method provided by the present application in detail, and fig. 2 is an execution sequence diagram of a test item provided by the embodiment of the present application, as shown in fig. 2, where the sequence diagram includes:
s20: and judging whether the current equipment IP test, the current equipment type test and the BIOS upgrading type test are the same as the corresponding preset conditions, and if so, entering step S21.
S21: and upgrading the BIOS and monitoring the upgrading time.
S22: whether the BIOS version accords with the target BIOS version is judged, and if so, the step S23 is carried out.
S23: and (4) confirming the success of BIOS upgrading, judging whether the upgrading duration accords with the first preset duration, and if so, entering step S24.
S24: and controlling BIOS to restart, monitoring the restart time, judging whether the restart time accords with the second preset time, and if so, entering step S25.
S25: and judging whether the upgrading times reach the threshold value, if not, returning to the step S20.
It will be understood that when any one of the test item tests fails, the process proceeds to step S14, where it is confirmed that the BIOS upgrade test fails and the BIOS upgrade test is exited. When step S25 determines that the upgrade count reaches the threshold, step S13 is entered to confirm that the BIOS upgrade test is passed.
In the above embodiments, the present application further provides a corresponding embodiment of the BIOS upgrade test device. It should be noted that the present application describes an embodiment of the device portion from two angles, one based on the angle of the functional module and the other based on the angle of the hardware.
Fig. 3 is a block diagram of a BIOS upgrade test device according to an embodiment of the present application, as shown in fig. 3, where the device includes:
The acquiring module 10 is used for acquiring an upgrade test instruction sent by the client;
the test module 11 is used for performing BIOS upgrade test according to the upgrade test instruction;
The processing module 12 is used for monitoring the BIOS upgrade test flow and judging whether each test item in the upgrade test flow accords with preset test conditions; the test items at least comprise a current equipment IP test, a current equipment type test, a BIOS upgrading type test, an upgrading duration test, a restarting duration test, an upgrading frequency test and a BIOS version test;
if all the test items meet the test conditions, confirming that the BIOS upgrading test is passed;
If any test item is detected to be not in accordance with the test condition, the BIOS upgrading test is confirmed to be failed and the BIOS upgrading test is withdrawn.
In a specific implementation, the BIOS upgrade test apparatus may further include a sending module, configured to send information for characterizing a BIOS upgrade test result to a client display.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
According to the BIOS upgrading test device provided by the embodiment of the application, the upgrading test instruction is obtained from the client, and when the BIOS upgrading test is carried out according to the upgrading test instruction, the upgrading test flow is monitored, so that the BIOS upgrading result is judged, and the test items in the upgrading process are tested according to the preset test conditions. Compared with the prior art, the method and the device only judge the version of the BIOS after upgrading so as to confirm whether the upgrading is successful, so that the upgrading test of the BIOS is incomplete.
FIG. 4 is a block diagram of another BIOS upgrade testing device according to an embodiment of the present application, as shown in FIG. 4, the device includes: a memory 20 for storing a computer program;
A processor 21 for implementing the steps of the BIOS upgrade test method according to the above embodiment when executing a computer program.
The BIOS upgrade test device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The Processor 21 may be implemented in at least one hardware form of a digital signal Processor (DIGITAL SIGNAL Processor, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 21 may also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also referred to as a central processor (Central Processing Unit, CPU); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with an image processor (Graphics Processing Unit, GPU) for rendering and rendering of content to be displayed by the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (ARTIFICIAL INTELLIGENCE, AI) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, where the computer program, after being loaded and executed by the processor 21, can implement the relevant steps of the BIOS upgrade test method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. Operating system 202 may include Windows, unix, linux, among other things. The data 203 may include, but is not limited to, a first preset time period, a second preset time period, and the like.
In some embodiments, the BIOS upgrade test device may further comprise a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the configuration shown in FIG. 4 is not limiting of the BIOS upgrade test apparatus and may include more or fewer components than shown.
The BIOS upgrading testing device provided by the embodiment of the application comprises a memory and a processor, wherein the processor can realize the following method when executing a program stored in the memory: acquiring an upgrade test instruction sent by a client; performing BIOS upgrade test according to the upgrade test instruction; monitoring a BIOS upgrading test flow, and judging whether each test item in the upgrading test flow accords with preset test conditions; the test items at least comprise a current equipment IP test, a current equipment type test, a BIOS upgrading type test, an upgrading duration test, a restarting duration test, an upgrading frequency test and a BIOS version test; if all the test items meet the test conditions, confirming that the BIOS upgrading test is passed; if any test item is detected to be not in accordance with the test condition, the BIOS upgrading test is confirmed to be failed and the BIOS upgrading test is withdrawn.
According to the BIOS upgrading test device provided by the embodiment of the application, the upgrading test instruction is obtained from the client, and when the BIOS upgrading test is carried out according to the upgrading test instruction, the upgrading test flow is monitored, so that the BIOS upgrading result is judged, and the test items in the upgrading process are tested according to the preset test conditions. Compared with the prior art, the method and the device only judge the version of the BIOS after upgrading so as to confirm whether the upgrading is successful, so that the upgrading test of the BIOS is incomplete.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps as described in the method embodiments above.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium for performing all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The computer readable storage medium provided by the embodiment of the application acquires the upgrade test instruction from the client, monitors the upgrade test flow when the BIOS upgrade test is performed according to the upgrade test instruction, judges the upgrade result of the BIOS, and tests the test item in the upgrade process according to the preset test condition. Compared with the prior art, the method and the device only judge the version of the BIOS after upgrading so as to confirm whether the upgrading is successful, so that the upgrading test of the BIOS is incomplete.
The BIOS upgrading test method, the BIOS upgrading test device and the BIOS upgrading test medium provided by the application are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A BIOS upgrade test method, comprising:
acquiring an upgrade test instruction sent by a client;
performing BIOS upgrade test according to the upgrade test instruction;
monitoring a BIOS upgrading test flow, and judging whether each test item in the upgrading test flow accords with preset test conditions; the test items at least comprise a current equipment IP test, a current equipment type test, a BIOS upgrading type test, an upgrading duration test, a restarting duration test, an upgrading frequency test and a BIOS version test; the type of the current device is the type of the server, and the type of BIOS upgrading is a BIOS upgrading strategy; the BIOS upgrading strategy is to upgrade the original user data or directly cover the new BIOS without retaining the original user data;
If all the test items meet the test conditions, confirming that the BIOS upgrading test is passed;
If any test item is detected to be not in accordance with the test condition, the BIOS upgrading test is confirmed to be failed and the BIOS upgrading test is withdrawn.
2. The BIOS upgrade test method of claim 1, wherein the test conditions comprise a first test condition, the first test condition being: the IP test of the current equipment, the type test of the current equipment and the type test of the BIOS are the same as the corresponding preset conditions;
Correspondingly, if the current equipment IP test, the current equipment type test and the BIOS upgrading type test are the same as the respective corresponding preset conditions, confirming that the current equipment IP test, the current equipment type test and the BIOS upgrading type test accord with the first test conditions;
If the current equipment IP test, the current equipment type test and the BIOS upgrading type test are not identical to the corresponding preset conditions, confirming that the current equipment IP test, the current equipment type test and the BIOS upgrading type test do not accord with the first test conditions, entering the step of confirming that the BIOS upgrading test does not pass and exiting the BIOS upgrading test.
3. The BIOS upgrade test method of claim 2, wherein the test conditions further comprise a second test condition, the second test condition being: the upgrading time length accords with a first preset time length;
Correspondingly, if the upgrading duration accords with the first preset duration, confirming that the upgrading duration test accords with the second test condition, and carrying out the restarting duration test;
If the upgrading duration does not accord with the first preset duration, confirming that the upgrading duration test does not accord with the second test condition, entering the step of confirming that the BIOS upgrading test does not pass and exiting the BIOS upgrading test.
4. The BIOS upgrade test method of claim 3, wherein the test conditions further comprise a third test condition, the third test condition being: the restarting time length accords with a second preset time length;
Correspondingly, if the restarting duration accords with the second preset duration, confirming that the restarting duration test accords with the third test condition, and carrying out the upgrading frequency test;
If the restart duration does not meet the second preset duration, confirming that the restart duration test does not meet the third test condition, entering the step of confirming that the BIOS upgrading test does not pass and exiting the BIOS upgrading test.
5. The BIOS upgrade test method of claim 4, wherein the test conditions further comprise a fourth test condition, the fourth test condition being: the upgrade times reach a threshold value;
Correspondingly, if the upgrade times reach the threshold value, confirming that the upgrade times test meets the fourth test condition.
6. The BIOS upgrade test method of claim 5, wherein the test conditions further comprise a fifth test condition, the fifth test condition being: the current BIOS version conforms to the target BIOS version;
Correspondingly, if the current BIOS version accords with the target BIOS version, confirming that the BIOS version test accords with the fifth test condition;
If the current BIOS version does not accord with the target BIOS version, confirming that the BIOS version test does not accord with the fifth test condition, entering the step of confirming that the BIOS upgrading test does not pass and exiting the BIOS upgrading test.
7. The BIOS upgrade test method of claim 1, further comprising:
and sending information for representing the BIOS upgrading test result to a client for display.
8. A BIOS upgrade test device, comprising:
The acquisition module is used for acquiring an upgrade test instruction sent by the client;
the test module is used for carrying out BIOS upgrading test according to the upgrading test instruction;
the processing module is used for monitoring the BIOS upgrading test flow and judging whether each test item in the upgrading test flow accords with preset test conditions; the test items at least comprise a current equipment IP test, a current equipment type test, a BIOS upgrading type test, an upgrading duration test, a restarting duration test, an upgrading frequency test and a BIOS version test; the type of the current device is the type of the server, and the type of BIOS upgrading is a BIOS upgrading strategy; the BIOS upgrading strategy is to upgrade the original user data or directly cover the new BIOS without retaining the original user data;
If all the test items meet the test conditions, confirming that the BIOS upgrading test is passed;
If any test item is detected to be not in accordance with the test condition, the BIOS upgrading test is confirmed to be failed and the BIOS upgrading test is withdrawn.
9. The BIOS upgrade testing device is characterized by comprising a memory for storing a computer program;
a processor for implementing the steps of the BIOS upgrade test method according to any one of claims 1 to 7 when executing said computer program.
10. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, the computer program implementing the steps of the BIOS upgrade test method according to any one of claims 1 to 7 when executed by a processor.
CN202210608943.7A 2022-05-31 2022-05-31 BIOS upgrading test method, device and medium Active CN114860611B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210608943.7A CN114860611B (en) 2022-05-31 2022-05-31 BIOS upgrading test method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210608943.7A CN114860611B (en) 2022-05-31 2022-05-31 BIOS upgrading test method, device and medium

Publications (2)

Publication Number Publication Date
CN114860611A CN114860611A (en) 2022-08-05
CN114860611B true CN114860611B (en) 2024-07-02

Family

ID=82641632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210608943.7A Active CN114860611B (en) 2022-05-31 2022-05-31 BIOS upgrading test method, device and medium

Country Status (1)

Country Link
CN (1) CN114860611B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107894956A (en) * 2017-12-21 2018-04-10 郑州云海信息技术有限公司 A kind of long-range BIOS promotion and demotion refresh automated testing method
CN109918287A (en) * 2019-01-16 2019-06-21 平安普惠企业管理有限公司 APP upgrading test method, apparatus, computer equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180004502A1 (en) * 2016-06-30 2018-01-04 Dell Products L.P. Basic input/output system (bios) update control
CN113220332A (en) * 2021-06-07 2021-08-06 宁畅信息产业(北京)有限公司 BIOS (basic input output System) firmware refreshing test method and device, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107894956A (en) * 2017-12-21 2018-04-10 郑州云海信息技术有限公司 A kind of long-range BIOS promotion and demotion refresh automated testing method
CN109918287A (en) * 2019-01-16 2019-06-21 平安普惠企业管理有限公司 APP upgrading test method, apparatus, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114860611A (en) 2022-08-05

Similar Documents

Publication Publication Date Title
US9940225B2 (en) Automated error checking system for a software application and method therefor
CN106598835B (en) Application testing method, device and system
US9021443B1 (en) Test automation API for host devices
US20070074168A1 (en) Automated step type determination
US9378122B2 (en) Adopting an existing automation script to a new framework
CN112882734B (en) Upgrading method and device, computer equipment and medium
CN111475175A (en) Method, device and medium for installing and guiding operation system based on ARM server
CN113495843B (en) Method and apparatus for testing play-up performance of video player
EP3321808B1 (en) Verification system and verification method
CN105893233B (en) Method and system for automatically testing firmware
CN114860611B (en) BIOS upgrading test method, device and medium
CN109684205B (en) System testing method, device, electronic equipment and storage medium
CN112256560A (en) Application program testing method and device and electronic equipment
CN109343886B (en) Method, device and equipment for upgrading BIOS
CN115580550A (en) Network card stability testing method, device, equipment and storage medium
CN115221092A (en) Method, device and equipment for determining distributable bus of PCI-E card and storage medium
CN114153503A (en) BIOS control method, device and medium
JP2008123559A (en) Plc simulator device, program for simulation, and recording medium with the program recorded thereon
CN115237441A (en) Upgrade test method, device and medium based on cloud platform
CN113722212A (en) CPLD upgrade test method, device, equipment and medium
CN113703804A (en) System upgrading method, system, device and storage medium
CN109359093B (en) Rule file updating method and system
CN111858234A (en) Task execution method, device, equipment and medium
CN111124730A (en) Error positioning method and device for server and computer storage medium
KR20190072253A (en) Code test automatic proceeding method through virtualixation and appratus for the same

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