CN116089307A - BIOS testing method, device, equipment and medium - Google Patents

BIOS testing method, device, equipment and medium Download PDF

Info

Publication number
CN116089307A
CN116089307A CN202310166367.XA CN202310166367A CN116089307A CN 116089307 A CN116089307 A CN 116089307A CN 202310166367 A CN202310166367 A CN 202310166367A CN 116089307 A CN116089307 A CN 116089307A
Authority
CN
China
Prior art keywords
bios
test
tested
test instruction
bios configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310166367.XA
Other languages
Chinese (zh)
Inventor
郝思敏
秦晓宁
陈颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nettrix Information Industry Beijing Co Ltd
Original Assignee
Nettrix Information Industry Beijing 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 Nettrix Information Industry Beijing Co Ltd filed Critical Nettrix Information Industry Beijing Co Ltd
Priority to CN202310166367.XA priority Critical patent/CN116089307A/en
Publication of CN116089307A publication Critical patent/CN116089307A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a BIOS testing method, device, equipment and medium. The method comprises the following steps: determining a virtual machine matched with at least one tested server; sending test instructions corresponding to the BIOS configuration options to a baseboard management controller of each tested server through a virtual machine matched with each tested server, controlling each tested server to execute the test instructions, and feeding back screenshots matched with return values of the test instructions; and performing character recognition on the screen shots through the virtual machines matched with the tested servers to obtain test instruction return values, and comparing the test instruction return values with expected test instruction return values to obtain BIOS test results of the tested servers. According to the embodiment of the invention, the plurality of servers can be automatically controlled to perform BIOS test through one electronic device, so that BIOS test efficiency is greatly improved, and labor cost and time cost of BIOS test are reduced.

Description

BIOS testing method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for testing a BIOS.
Background
The basic input/output system (Base Input Output System, BIOS) of the server stores the most important programs of the basic input/output, the self-checking program after starting up and the system self-starting program. In the testing process of the server, the BIOS of a plurality of servers often needs to be tested.
In the related art, the conventional BIOS test scheme is: for each server to be tested, a tester connects a plurality of hardware devices with the server, configures each hardware device, and tests the BIOS of the server through testing tools running in different hardware devices. Under the condition of testing the BIOS of a plurality of servers, the BIOS testing scheme in the related technology needs the testers to repeatedly perform manual operation, and is time-consuming, labor-consuming, complex in operation and low in testing efficiency.
Disclosure of Invention
The invention provides a BIOS testing method, device, equipment and medium, which are used for solving the problems that a testing personnel needs to repeatedly perform manual operation, and the method is time-consuming, labor-consuming, complex in operation and low in testing efficiency in the BIOS testing scheme in the related technology.
According to an aspect of the present invention, there is provided a BIOS test method, including:
determining a virtual machine matched with at least one tested server;
Transmitting test instructions corresponding to the BIOS configuration options to a baseboard management controller of each tested server through a virtual machine matched with each tested server, controlling each tested server to execute the test instructions corresponding to each BIOS configuration option, displaying test instruction return values corresponding to each BIOS configuration option in a screen, and feeding back screenshots matched with the test instruction return values corresponding to each BIOS configuration option;
and performing character recognition on the screen shots fed back by the tested servers through the virtual machines matched with the tested servers to obtain test instruction return values corresponding to the BIOS configuration options, and comparing the test instruction return values with expected test instruction return values corresponding to the BIOS configuration options to obtain BIOS test results of the tested servers.
According to the technical scheme, the servers can be controlled to execute the test instructions corresponding to the BIOS configuration options through the virtual machines matched with the servers, the screen shots matched with the test instruction return values corresponding to the BIOS configuration options are fed back, and the BIOS test results of the servers are determined based on the screen shots fed back by the servers, so that BIOS test is performed by automatically controlling a plurality of servers through one electronic device, BIOS test efficiency is greatly improved, and labor cost and time cost of BIOS test are reduced.
Optionally, the determining the virtual machine matched with the at least one tested server includes:
and respectively distributing a virtual machine for each tested server from all virtual machines running on the electronic equipment.
According to the technical scheme, one virtual machine can be allocated to each tested server, so that BIOS tests can be conveniently conducted on a plurality of tested servers in parallel through each virtual machine running on the electronic equipment, the servers are automatically controlled to conduct the BIOS tests through one electronic equipment, BIOS test efficiency is greatly improved, and labor cost and time cost of the BIOS tests are reduced.
Optionally, the sending, by the virtual machine matched with each tested server, the test instruction corresponding to each BIOS configuration option to the baseboard management controller of each tested server, controlling each tested server to execute the test instruction corresponding to each BIOS configuration option, displaying a test instruction return value corresponding to each BIOS configuration option in a screen, and feeding back a screenshot matched with the test instruction return value corresponding to each BIOS configuration option, including:
the following operations are executed through the virtual machine matched with each tested server:
Transmitting test instructions corresponding to each BIOS configuration option to a baseboard management controller of a tested server;
controlling the baseboard management controller to send test instructions corresponding to each BIOS configuration option to the tested server so that the tested server executes the test instructions corresponding to each BIOS configuration option, displaying test instruction return values corresponding to each BIOS configuration option in a screen, and feeding back screen shots matched with the test instruction return values corresponding to each BIOS configuration option;
and obtaining a screenshot fed back by the tested server, which is sent by the baseboard management controller.
According to the technical scheme, the virtual machines matched with the tested servers are connected with the baseboard management controllers of the tested servers, the tested servers are controlled to execute the test instructions corresponding to the BIOS configuration options, the test instruction return values corresponding to the BIOS configuration options are displayed in the screen, the screen shots matched with the test instruction return values corresponding to the BIOS configuration options are fed back, the screen shots fed back by the tested servers are conveniently obtained, the test instruction return values corresponding to the BIOS configuration options generated by the tested servers are obtained, the BIOS test results of the tested servers are determined, and the BIOS test of the servers is automatically controlled through one electronic device.
Optionally, the character recognition is performed on the screenshots fed back by the tested servers through the virtual machines matched with the tested servers to obtain test instruction return values corresponding to the BIOS configuration options, including:
the following operations are executed through the virtual machine matched with each tested server:
identifying identification information of each BIOS configuration option in the screen shot fed back by the tested server and a test instruction return value corresponding to each BIOS configuration option by using an optical character identification technology.
According to the technical scheme, the screen shots fed back by the tested servers can be subjected to character recognition through the virtual machines matched with the tested servers, so that the test instruction return values corresponding to the BIOS configuration options generated by the tested servers are obtained, and the comparison of the test instruction return values corresponding to the BIOS configuration options generated by the tested servers and expected test instruction return values corresponding to the BIOS configuration options is facilitated, so that the BIOS test results of the tested servers are obtained.
Optionally, the comparing the return value of the test instruction with the return value of the expected test instruction corresponding to each BIOS configuration option to obtain a BIOS test result of each tested server includes:
The following operations are executed through the virtual machine matched with each tested server:
detecting whether the test instruction return value is consistent with an expected test instruction return value corresponding to each BIOS configuration option;
if the test instruction return value is consistent with the expected test instruction return value corresponding to each BIOS configuration option, determining that the BIOS test result of the tested server is qualified;
and if the test instruction return value is inconsistent with the expected test instruction return value corresponding to each BIOS configuration option, determining that the BIOS test result of the tested server is unqualified.
According to the technical scheme, the test instruction return values corresponding to the BIOS configuration options generated by the tested servers can be compared with the expected test instruction return values corresponding to the BIOS configuration options through the virtual machines matched with the tested servers, so that the BIOS test results of the tested servers are obtained.
Optionally, before sending the test instruction corresponding to each BIOS configuration option to the baseboard management controller of each tested server, the method further includes:
and acquiring test instructions corresponding to each BIOS configuration option from the test file.
According to the technical scheme, the test instructions corresponding to the BIOS configuration options can be managed uniformly based on the test files, so that the test of the BIOS of the servers is facilitated based on the test instructions corresponding to the BIOS configuration options.
Optionally, after character recognition is performed on the screenshots fed back by each tested server through the virtual machine matched with each tested server to obtain test instruction return values corresponding to each BIOS configuration option, comparing the test instruction return values with expected test instruction return values corresponding to each BIOS configuration option to obtain BIOS test results of each tested server, the method further includes:
generating a test result report corresponding to the BIOS test result of each tested server;
and providing the test result report to a target user.
According to the technical scheme provided by the embodiment of the invention, the BIOS test results of each tested server can be intuitively provided for the target user through the test result report.
According to another aspect of the present invention, there is provided a BIOS testing device, comprising:
the virtual machine determining module is used for determining a virtual machine matched with at least one tested server;
the instruction sending module is used for sending the test instruction corresponding to each BIOS configuration option to the baseboard management controller of each tested server through the virtual machine matched with each tested server, controlling each tested server to execute the test instruction corresponding to each BIOS configuration option, displaying the test instruction return value corresponding to each BIOS configuration option in a screen, and feeding back the screenshot matched with the test instruction return value corresponding to each BIOS configuration option;
The result determining module is used for carrying out character recognition on the screen shots fed back by the tested servers through the virtual machines matched with the tested servers to obtain test instruction return values corresponding to the BIOS configuration options, and comparing the test instruction return values with expected test instruction return values corresponding to the BIOS configuration options to obtain BIOS test results of the tested servers.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor;
and a memory communicatively coupled to the at least one processor;
the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the BIOS test method according to any embodiment of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a BIOS test method according to any one of the embodiments of the present invention.
According to the technical scheme, the virtual machine matched with at least one tested server is determined; then, through the virtual machine matched with each tested server, the test instruction corresponding to each BIOS configuration option is sent to the baseboard management controller of each tested server, each tested server is controlled to execute the test instruction corresponding to each BIOS configuration option, the test instruction return value corresponding to each BIOS configuration option is displayed in the screen, and the screenshot matched with the test instruction return value corresponding to each BIOS configuration option is fed back; finally, character recognition is carried out on screen shots fed back by all tested servers through virtual machines matched with all tested servers to obtain test instruction return values corresponding to all BIOS configuration options, the test instruction return values are compared with expected test instruction return values corresponding to all BIOS configuration options to obtain BIOS test results of all tested servers, the problems that a tester needs to repeatedly conduct manual operation, time and labor are consumed, operation is complex and test efficiency is low in related technologies are solved, the virtual machines matched with all servers are adopted, all servers are controlled to execute test instructions corresponding to all BIOS configuration options, screen shots matched with the test instruction return values corresponding to all BIOS configuration options are fed back, and based on the screen shots fed back by all servers, the BIOS test results of all servers are determined, so that BIOS test is conducted through one electronic device, BIOS test efficiency is greatly improved, and labor cost and time cost of BIOS test are reduced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a BIOS testing method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a BIOS testing method according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a BIOS testing method according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a BIOS testing device according to a fourth embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an electronic device implementing a BIOS test method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "object," "first," "second," and the like in the description and the claims of the present invention and the above drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a BIOS testing method according to an embodiment of the present invention. The present embodiment may be applicable to the case of testing the BIOS of a plurality of servers, and the method may be performed by a BIOS testing device, which may be implemented in the form of hardware and/or software, and which may be configured in an electronic apparatus. The electronic device may be a terminal device used by the target user. The target user may be a tester. As shown in fig. 1, the method includes:
Step 101, determining a virtual machine matched with at least one tested server.
Alternatively, the server under test is the server that needs BIOS testing. The BIOS of the server under test contains a plurality of BIOS configuration options. The BIOS of the tested server is mainly tested for each BIOS configuration option in the tested server to determine whether each BIOS configuration option of the tested server is normal.
Optionally, a plurality of virtual machines are running on the electronic device. The number of virtual machines running on the electronic equipment is greater than or equal to the number of the tested servers.
Optionally, the determining the virtual machine matched with the at least one tested server includes: and respectively distributing a virtual machine for each tested server from all virtual machines running on the electronic equipment.
Therefore, a virtual machine is distributed for each tested server, BIOS tests are conducted on a plurality of tested servers in parallel through each virtual machine running on the electronic equipment, BIOS tests are conducted on a plurality of servers through one electronic equipment, BIOS test efficiency is greatly improved, and labor cost and time cost of the BIOS tests are reduced.
Optionally, the virtual machine matched with each tested server establishes a communication connection with a baseboard management controller (Baseboard Management Controller, BMC) of each tested server, and information interaction can be performed based on the established communication connection, and the baseboard management controller of each tested server controls each tested server to execute specified operation.
Step 102, sending a test instruction corresponding to each BIOS configuration option to a baseboard management controller of each tested server through a virtual machine matched with each tested server, controlling each tested server to execute the test instruction corresponding to each BIOS configuration option, displaying a test instruction return value corresponding to each BIOS configuration option in a screen, and feeding back a screenshot matched with the test instruction return value corresponding to each BIOS configuration option.
Optionally, the test instruction corresponding to each BIOS configuration option is an instruction that needs to be executed by the tested server when testing for each BIOS configuration option in the tested server.
Optionally, before sending the test instruction corresponding to each BIOS configuration option to the baseboard management controller of each tested server, the method further includes: and acquiring test instructions corresponding to each BIOS configuration option from the test file.
Therefore, the test instructions corresponding to the BIOS configuration options can be managed uniformly based on the test files, so that the BIOS of a plurality of servers can be tested simultaneously based on the test instructions corresponding to the BIOS configuration options.
Optionally, the test file is a file for storing test instructions corresponding to each BIOS configuration option. And uploading the test file to the electronic equipment by the target user. And the electronic equipment acquires test instructions corresponding to each BIOS configuration option from the test file.
Optionally, the sending, by the virtual machine matched with each tested server, the test instruction corresponding to each BIOS configuration option to the baseboard management controller of each tested server, controlling each tested server to execute the test instruction corresponding to each BIOS configuration option, displaying a test instruction return value corresponding to each BIOS configuration option in a screen, and feeding back a screenshot matched with the test instruction return value corresponding to each BIOS configuration option, including: the following operations are executed through the virtual machine matched with each tested server: transmitting test instructions corresponding to each BIOS configuration option to a baseboard management controller of a tested server; controlling the baseboard management controller to send test instructions corresponding to each BIOS configuration option to the tested server so that the tested server executes the test instructions corresponding to each BIOS configuration option, displaying test instruction return values corresponding to each BIOS configuration option in a screen, and feeding back screen shots matched with the test instruction return values corresponding to each BIOS configuration option; and obtaining a screenshot fed back by the tested server, which is sent by the baseboard management controller.
Therefore, the virtual machines matched with the tested servers are connected with the baseboard management controller of the tested servers to control the tested servers to execute the test instructions corresponding to the BIOS configuration options, the test instruction return values corresponding to the BIOS configuration options are displayed in the screen, the screen shots matched with the test instruction return values corresponding to the BIOS configuration options are fed back, the test instruction return values corresponding to the BIOS configuration options generated by the tested servers are conveniently obtained according to the screen shots fed back by the tested servers, the BIOS test results of the tested servers are determined, and the BIOS test is automatically controlled by the electronic equipment.
Optionally, for each tested server, a test instruction corresponding to each BIOS configuration option is sent to the baseboard management controller of the tested server through a virtual machine matched with the tested server. And then the virtual machine matched with the tested server controls the baseboard management controller of the tested server and sends the test instruction corresponding to each BIOS configuration option to the tested server. After receiving the test instructions corresponding to the BIOS configuration options, the tested server sequentially executes the test instructions corresponding to the BIOS configuration options.
Optionally, for each BIOS configuration option: the tested server executes the test instruction corresponding to the BIOS configuration option and generates a test instruction return value corresponding to the BIOS configuration option; the tested server displays the identification information of the BIOS configuration options and the test instruction return values corresponding to the BIOS configuration options in the screen, and captures the screen to obtain a screen capture matched with the test instruction return values corresponding to the BIOS configuration options; the screen shot matched with the test instruction return value corresponding to the BIOS configuration option comprises identification information of the BIOS configuration option and the test instruction return value corresponding to the BIOS configuration option; the tested server feeds back the screen shot matched with the test instruction return value corresponding to the BIOS configuration option to the baseboard management controller of the tested server, so that the baseboard management controller of the tested server sends the screen shot matched with the test instruction return value corresponding to the BIOS configuration option to the virtual machine matched with the tested server. And then the tested server continues to execute the test instruction corresponding to the next BIOS configuration option until the test instruction corresponding to all the BIOS configuration options is executed.
Optionally, the test instruction return value corresponding to the BIOS configuration option is a return value generated by the server under test after executing the test instruction corresponding to the BIOS configuration option.
Alternatively, the identification information of the BIOS configuration option may be a name of the BIOS configuration option.
Optionally, the screenshot matched with the test instruction return value corresponding to each BIOS configuration option includes identification information of the BIOS configuration option and the test instruction return value corresponding to the BIOS configuration option.
And 103, performing character recognition on the screen shots fed back by the tested servers through the virtual machines matched with the tested servers to obtain test instruction return values corresponding to the BIOS configuration options, and comparing the test instruction return values with expected test instruction return values corresponding to the BIOS configuration options to obtain BIOS test results of the tested servers.
Optionally, the character recognition is performed on the screenshots fed back by the tested servers through the virtual machines matched with the tested servers to obtain test instruction return values corresponding to the BIOS configuration options, including: the following operations are executed through the virtual machine matched with each tested server: identifying identification information of each BIOS configuration option in the screen shot fed back by the tested server and a test instruction return value corresponding to each BIOS configuration option by using an optical character identification technology.
Therefore, character recognition is carried out on the screen shots fed back by the tested servers through the virtual machines matched with the tested servers, so that test instruction return values corresponding to the BIOS configuration options generated by the tested servers are obtained, and comparison of the test instruction return values corresponding to the BIOS configuration options generated by the tested servers and expected test instruction return values corresponding to the BIOS configuration options is facilitated, so that BIOS test results of the tested servers are obtained.
Optionally, for each tested server, character recognition is performed on the screen shots which are fed back by the tested server and matched with the test instruction return values corresponding to each BIOS configuration option through the virtual machine matched with the tested server, so as to obtain the test instruction return values corresponding to each BIOS configuration option, which are generated by the tested server after the test instructions corresponding to each BIOS configuration option are executed.
Optionally, for the screenshot matching the test instruction return value corresponding to each BIOS configuration option, identifying the identification information of the BIOS configuration option and the test instruction return value corresponding to the BIOS configuration option in the screenshot using an optical character recognition technique. Thus, a test instruction return value corresponding to each BIOS configuration option generated by the tested server is obtained.
Optionally, the comparing the return value of the test instruction with the return value of the expected test instruction corresponding to each BIOS configuration option to obtain a BIOS test result of each tested server includes: the following operations are executed through the virtual machine matched with each tested server: detecting whether the test instruction return value is consistent with an expected test instruction return value corresponding to each BIOS configuration option; if the test instruction return value is consistent with the expected test instruction return value corresponding to each BIOS configuration option, determining that the BIOS test result of the tested server is qualified; and if the test instruction return value is inconsistent with the expected test instruction return value corresponding to each BIOS configuration option, determining that the BIOS test result of the tested server is unqualified.
Therefore, the virtual machine matched with each tested server is used for comparing the return value of the test instruction corresponding to each BIOS configuration option generated by each tested server with the expected return value of the test instruction corresponding to each BIOS configuration option, and the BIOS test result of each tested server is obtained.
Optionally, for each BIOS configuration option, the expected return value of the test instruction corresponding to the BIOS configuration option is a return value that the server under test will generate after executing the test instruction corresponding to the BIOS configuration option if the BIOS configuration option of the server under test is normal.
Optionally, for a test instruction return value corresponding to each BIOS configuration option generated by the tested server after executing the test instruction corresponding to each BIOS configuration option, detecting whether the test instruction return value corresponding to the BIOS configuration option generated by the tested server is consistent with an expected test instruction return value corresponding to the BIOS configuration option.
Optionally, if the test instruction return value corresponding to each BIOS configuration option generated by the tested server is consistent with the expected test instruction return value corresponding to each BIOS configuration option, which indicates that each BIOS configuration option of the tested server is normal, determining that the BIOS test result of the tested server is qualified.
Optionally, if the test instruction return value corresponding to the target BIOS configuration option generated by the tested server is inconsistent with the expected test instruction return value corresponding to the target BIOS configuration option, which indicates that the target BIOS configuration option of the tested server is abnormal, determining that the BIOS test result of the tested server is unqualified. The target BIOS configuration options are one or more BIOS configuration options.
Optionally, after character recognition is performed on the screenshots fed back by each tested server through the virtual machine matched with each tested server to obtain a test instruction return value corresponding to each BIOS configuration option, comparing the test instruction return value with an expected test instruction return value to obtain a BIOS test result of each tested server, the method further includes: generating a test result report corresponding to the BIOS test result of each tested server; and providing the test result report to a target user.
Therefore, BIOS test results of all the tested servers are intuitively provided for the target user through the test result report.
Alternatively, the test result report corresponding to the BIOS test result of each of the tested servers may be a table for showing the BIOS test result of each of the tested servers. Providing the test result report to a target user, comprising: and displaying the test result report through a screen of the electronic equipment.
According to the technical scheme, the virtual machine matched with at least one tested server is determined; then, through the virtual machine matched with each tested server, the test instruction corresponding to each BIOS configuration option is sent to the baseboard management controller of each tested server, each tested server is controlled to execute the test instruction corresponding to each BIOS configuration option, the test instruction return value corresponding to each BIOS configuration option is displayed in the screen, and the screenshot matched with the test instruction return value corresponding to each BIOS configuration option is fed back; finally, character recognition is carried out on screen shots fed back by all tested servers through virtual machines matched with all tested servers to obtain test instruction return values corresponding to all BIOS configuration options, the test instruction return values are compared with expected test instruction return values corresponding to all BIOS configuration options to obtain BIOS test results of all tested servers, the problems that a tester needs to repeatedly conduct manual operation, time and labor are consumed, operation is complex and test efficiency is low in related technologies are solved, the virtual machines matched with all servers are adopted, all servers are controlled to execute test instructions corresponding to all BIOS configuration options, screen shots matched with the test instruction return values corresponding to all BIOS configuration options are fed back, and based on the screen shots fed back by all servers, the BIOS test results of all servers are determined, so that BIOS test is conducted through one electronic device, BIOS test efficiency is greatly improved, and labor cost and time cost of BIOS test are reduced.
Example two
Fig. 2 is a flowchart of a BIOS testing method according to a second embodiment of the present invention. Embodiments of the invention may be combined with various alternatives to one or more of the embodiments described above. As shown in fig. 2, the method includes:
step 201, distributing a virtual machine to each tested server from all virtual machines running on the electronic device.
Step 202, obtaining test instructions corresponding to each BIOS configuration option from the test file.
Step 203, sending, by the virtual machine matched with each tested server, a test instruction corresponding to each BIOS configuration option to a baseboard management controller of each tested server, controlling each tested server to execute the test instruction corresponding to each BIOS configuration option, displaying a test instruction return value corresponding to each BIOS configuration option in a screen, and feeding back a screenshot matched with the test instruction return value corresponding to each BIOS configuration option.
And 204, performing character recognition on the screen shots fed back by the tested servers through the virtual machines matched with the tested servers to obtain test instruction return values corresponding to the BIOS configuration options, and comparing the test instruction return values with expected test instruction return values corresponding to the BIOS configuration options to obtain BIOS test results of the tested servers.
Step 205, generating a test result report corresponding to the BIOS test result of each tested server.
And 206, providing the test result report to a target user.
According to the technical scheme, one virtual machine can be allocated to each tested server, BIOS tests are conducted on the plurality of tested servers in parallel through each virtual machine running on the electronic equipment, the plurality of servers are automatically controlled to conduct the BIOS tests through one electronic equipment, BIOS test efficiency is greatly improved, labor cost and time cost of the BIOS tests are reduced, and BIOS test results of the tested servers can be intuitively provided for target users through test result reports.
Example III
Fig. 3 is a flowchart of a BIOS testing method according to a third embodiment of the present invention, including the following steps:
step 301, distributing a virtual machine to each tested server from all virtual machines running on the electronic device.
Step 302, obtaining test instructions corresponding to each BIOS configuration option from the test file.
Step 303, sending the test instruction corresponding to each BIOS configuration option to the baseboard management controller of each tested server through the virtual machine matched with each tested server.
Step 304, controlling the baseboard management controller of each tested server through the virtual machine matched with each tested server, and sending the test instruction corresponding to each BIOS configuration option to each tested server, so that each tested server executes the test instruction corresponding to each BIOS configuration option, displaying the test instruction return value corresponding to each BIOS configuration option in the screen, and feeding back the screenshot matched with the test instruction return value corresponding to each BIOS configuration option.
And 305, obtaining screenshots fed back by the tested servers sent by the baseboard management controllers through virtual machines matched with the tested servers.
And 306, performing character recognition on the screen shots fed back by the tested servers through the virtual machines matched with the tested servers to obtain test instruction return values corresponding to the BIOS configuration options, and comparing the test instruction return values with expected test instruction return values corresponding to the BIOS configuration options to obtain BIOS test results of the tested servers.
Step 307, generating a test result report corresponding to the BIOS test result of each tested server.
Step 308, providing the test result report to the target user.
According to the technical scheme, the servers can be controlled to execute the test instructions corresponding to the BIOS configuration options through the virtual machines matched with the servers, the screen shots matched with the test instruction return values corresponding to the BIOS configuration options are fed back, and the BIOS test results of the servers are determined based on the screen shots fed back by the servers, so that BIOS test is performed by automatically controlling a plurality of servers through one electronic device, BIOS test efficiency is greatly improved, and labor cost and time cost of BIOS test are reduced.
Example IV
Fig. 4 is a schematic structural diagram of a BIOS testing device according to a fourth embodiment of the present invention. The apparatus may be configured in an electronic device. As shown in fig. 4, the apparatus includes: a virtual machine determining module 401, an instruction sending module 402, and a result determining module 403.
The virtual machine determining module 401 is configured to determine a virtual machine that matches with at least one server under test; the instruction sending module 402 is configured to send, by using a virtual machine that is matched with each of the tested servers, a test instruction corresponding to each of the BIOS configuration options to a baseboard management controller of each of the tested servers, control each of the tested servers to execute the test instruction corresponding to each of the BIOS configuration options, display a test instruction return value corresponding to each of the BIOS configuration options in a screen, and feed back a screenshot that is matched with the test instruction return value corresponding to each of the BIOS configuration options; the result determining module 403 is configured to perform character recognition on the screenshots fed back by each tested server through the virtual machines matched with each tested server, obtain test instruction return values corresponding to each BIOS configuration option, and compare the test instruction return values with expected test instruction return values corresponding to each BIOS configuration option, so as to obtain a BIOS test result of each tested server.
According to the technical scheme, the virtual machine matched with at least one tested server is determined; then, through the virtual machine matched with each tested server, the test instruction corresponding to each BIOS configuration option is sent to the baseboard management controller of each tested server, each tested server is controlled to execute the test instruction corresponding to each BIOS configuration option, the test instruction return value corresponding to each BIOS configuration option is displayed in the screen, and the screenshot matched with the test instruction return value corresponding to each BIOS configuration option is fed back; finally, character recognition is carried out on screen shots fed back by all tested servers through virtual machines matched with all tested servers to obtain test instruction return values corresponding to all BIOS configuration options, the test instruction return values are compared with expected test instruction return values corresponding to all BIOS configuration options to obtain BIOS test results of all tested servers, the problems that a tester needs to repeatedly conduct manual operation, time and labor are consumed, operation is complex and test efficiency is low in related technologies are solved, the virtual machines matched with all servers are adopted, all servers are controlled to execute test instructions corresponding to all BIOS configuration options, screen shots matched with the test instruction return values corresponding to all BIOS configuration options are fed back, and based on the screen shots fed back by all servers, the BIOS test results of all servers are determined, so that BIOS test is conducted through one electronic device, BIOS test efficiency is greatly improved, and labor cost and time cost of BIOS test are reduced.
In an optional implementation manner of the embodiment of the present invention, optionally, the virtual machine determining module 401 is specifically configured to: and respectively distributing a virtual machine for each tested server from all virtual machines running on the electronic equipment.
In an optional implementation manner of the embodiment of the present invention, optionally, the instruction sending module 402 is specifically configured to: the following operations are executed through the virtual machine matched with each tested server: transmitting test instructions corresponding to each BIOS configuration option to a baseboard management controller of a tested server; controlling the baseboard management controller to send test instructions corresponding to each BIOS configuration option to the tested server so that the tested server executes the test instructions corresponding to each BIOS configuration option, displaying test instruction return values corresponding to each BIOS configuration option in a screen, and feeding back screen shots matched with the test instruction return values corresponding to each BIOS configuration option; and obtaining a screenshot fed back by the tested server, which is sent by the baseboard management controller.
In an optional implementation manner of the embodiment of the present invention, optionally, when executing the operation of performing character recognition on the screen shots fed back by each tested server through the virtual machine matched with each tested server to obtain the test instruction return values corresponding to each BIOS configuration option, the result determining module 403 is specifically configured to: the following operations are executed through the virtual machine matched with each tested server: identifying identification information of each BIOS configuration option in the screen shot fed back by the tested server and a test instruction return value corresponding to each BIOS configuration option by using an optical character identification technology.
In an optional implementation manner of the embodiment of the present invention, optionally, when performing the operation of comparing the test instruction return value with the expected test instruction return value corresponding to each BIOS configuration option to obtain the BIOS test result of each tested server, the result determining module 403 is specifically configured to: the following operations are executed through the virtual machine matched with each tested server: detecting whether the test instruction return value is consistent with an expected test instruction return value corresponding to each BIOS configuration option; if the test instruction return value is consistent with the expected test instruction return value corresponding to each BIOS configuration option, determining that the BIOS test result of the tested server is qualified; and if the test instruction return value is inconsistent with the expected test instruction return value corresponding to each BIOS configuration option, determining that the BIOS test result of the tested server is unqualified.
In an optional implementation of the embodiment of the present invention, optionally, the instruction sending module 402 is further configured to: and acquiring test instructions corresponding to each BIOS configuration option from the test file.
In an optional implementation manner of the embodiment of the present invention, optionally, the BIOS test device further includes: the report generation module is used for generating a test result report corresponding to the BIOS test result of each tested server; and the report providing module is used for providing the test result report to the target user.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The BIOS testing device can execute the BIOS testing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the BIOS testing method.
Example five
FIG. 5 illustrates a schematic diagram of an electronic device 10 that may be used to implement the BIOS testing method of embodiments of the present invention. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program built into the Random Access Memory (RAM) 13 from the storage unit 18. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the BIOS test method.
In some embodiments, the BIOS testing method may be implemented as a computer program tangibly embodied on a computer readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When a computer program is built into RAM 13 and executed by processor 11, one or more of the steps of the BIOS test method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the BIOS test method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
The computer program for implementing the BIOS test method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for testing a BIOS, comprising:
determining a virtual machine matched with at least one tested server;
transmitting test instructions corresponding to the BIOS configuration options to a baseboard management controller of each tested server through a virtual machine matched with each tested server, controlling each tested server to execute the test instructions corresponding to each BIOS configuration option, displaying test instruction return values corresponding to each BIOS configuration option in a screen, and feeding back screenshots matched with the test instruction return values corresponding to each BIOS configuration option;
And performing character recognition on the screen shots fed back by the tested servers through the virtual machines matched with the tested servers to obtain test instruction return values corresponding to the BIOS configuration options, and comparing the test instruction return values with expected test instruction return values corresponding to the BIOS configuration options to obtain BIOS test results of the tested servers.
2. The method of claim 1, wherein the determining a virtual machine that matches at least one server under test comprises:
and respectively distributing a virtual machine for each tested server from all virtual machines running on the electronic equipment.
3. The method according to claim 1, wherein the sending, by the virtual machine matched with each of the tested servers, the test instruction corresponding to each of the BIOS configuration options to the baseboard management controller of each of the tested servers, controlling each of the tested servers to execute the test instruction corresponding to each of the BIOS configuration options, displaying the test instruction return value corresponding to each of the BIOS configuration options in the screen, and feeding back the screenshot matched with the test instruction return value corresponding to each of the BIOS configuration options, includes:
The following operations are executed through the virtual machine matched with each tested server:
transmitting test instructions corresponding to each BIOS configuration option to a baseboard management controller of a tested server;
controlling the baseboard management controller to send test instructions corresponding to each BIOS configuration option to the tested server so that the tested server executes the test instructions corresponding to each BIOS configuration option, displaying test instruction return values corresponding to each BIOS configuration option in a screen, and feeding back screen shots matched with the test instruction return values corresponding to each BIOS configuration option;
and obtaining a screenshot fed back by the tested server, which is sent by the baseboard management controller.
4. The method of claim 1, wherein the performing character recognition on the screenshots fed back by each tested server through the virtual machine matched with each tested server to obtain the test instruction return values corresponding to each BIOS configuration option comprises:
the following operations are executed through the virtual machine matched with each tested server:
identifying identification information of each BIOS configuration option in the screen shot fed back by the tested server and a test instruction return value corresponding to each BIOS configuration option by using an optical character identification technology.
5. The method of claim 1, wherein comparing the test instruction return value with expected test instruction return values corresponding to BIOS configuration options to obtain BIOS test results for each server under test comprises:
the following operations are executed through the virtual machine matched with each tested server:
detecting whether the test instruction return value is consistent with an expected test instruction return value corresponding to each BIOS configuration option;
if the test instruction return value is consistent with the expected test instruction return value corresponding to each BIOS configuration option, determining that the BIOS test result of the tested server is qualified;
and if the test instruction return value is inconsistent with the expected test instruction return value corresponding to each BIOS configuration option, determining that the BIOS test result of the tested server is unqualified.
6. The method of claim 1, further comprising, prior to sending the test instructions corresponding to each BIOS configuration option to the baseboard management controller of each server under test:
and acquiring test instructions corresponding to each BIOS configuration option from the test file.
7. The method according to claim 1, wherein after character recognition is performed on the screenshots fed back by each tested server through the virtual machine matched with each tested server to obtain test instruction return values corresponding to each BIOS configuration option, comparing the test instruction return values with expected test instruction return values corresponding to each BIOS configuration option to obtain BIOS test results of each tested server, further comprising:
Generating a test result report corresponding to the BIOS test result of each tested server;
and providing the test result report to a target user.
8. A BIOS test device, comprising:
the virtual machine determining module is used for determining a virtual machine matched with at least one tested server;
the instruction sending module is used for sending the test instruction corresponding to each BIOS configuration option to the baseboard management controller of each tested server through the virtual machine matched with each tested server, controlling each tested server to execute the test instruction corresponding to each BIOS configuration option, displaying the test instruction return value corresponding to each BIOS configuration option in a screen, and feeding back the screenshot matched with the test instruction return value corresponding to each BIOS configuration option;
the result determining module is used for carrying out character recognition on the screen shots fed back by the tested servers through the virtual machines matched with the tested servers to obtain test instruction return values corresponding to the BIOS configuration options, and comparing the test instruction return values with expected test instruction return values corresponding to the BIOS configuration options to obtain BIOS test results of the tested servers.
9. An electronic device, the electronic device comprising:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the BIOS test method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the BIOS test method of any one of claims 1-7 when executed.
CN202310166367.XA 2023-02-22 2023-02-22 BIOS testing method, device, equipment and medium Pending CN116089307A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310166367.XA CN116089307A (en) 2023-02-22 2023-02-22 BIOS testing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310166367.XA CN116089307A (en) 2023-02-22 2023-02-22 BIOS testing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN116089307A true CN116089307A (en) 2023-05-09

Family

ID=86208374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310166367.XA Pending CN116089307A (en) 2023-02-22 2023-02-22 BIOS testing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116089307A (en)

Similar Documents

Publication Publication Date Title
CN116932304A (en) Register test method and device, electronic equipment and storage medium
CN116089307A (en) BIOS testing method, device, equipment and medium
CN115481594B (en) Scoreboard implementation method, scoreboard, electronic equipment and storage medium
CN116126719A (en) Interface testing method and device, electronic equipment and storage medium
CN115017047A (en) Test method, system, equipment and medium based on B/S architecture
CN115437961A (en) Data processing method and device, electronic equipment and storage medium
CN117539699A (en) BMC test method, device, equipment and medium
CN114238149A (en) Batch testing method of accounting system, electronic device and storage medium
CN115794525A (en) BMC (baseboard management controller) pressure testing method, device, equipment and storage medium
CN113836016B (en) Writing interface storage quality testing method, system, electronic equipment and storage medium
CN116594827A (en) Automatic test method and device for hardware equipment, workbench, equipment and medium
CN116149709A (en) Firmware upgrading method, device, equipment and medium
CN117742730A (en) Project deployment method and device, electronic equipment and storage medium
CN116303098A (en) Application testing method and device, electronic equipment and storage medium
CN117493203A (en) Method, device, equipment and storage medium for testing server software
CN117609087A (en) Code processing method, device, equipment and medium
CN116192686A (en) BMC stability test method, device, equipment and medium
CN116521536A (en) Code coverage rate determining method and device, electronic equipment and storage medium
CN116303071A (en) Interface testing method and device, electronic equipment and storage medium
CN117931155A (en) Code generation method, device, equipment and medium
CN115543712A (en) Automatic detection method and device for equipment configuration information, electronic equipment and medium
CN117221158A (en) Micro-service application monitoring method, device, equipment and medium
CN117687853A (en) Firmware detection method, device, equipment and medium
CN117033218A (en) Method, device, equipment and medium for generating motor product test report
CN116450400A (en) Application program abnormality analysis method and device, electronic equipment and 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