CN110554938B - BIOS (basic input output System) testing method, system, terminal and storage medium based on script set - Google Patents
BIOS (basic input output System) testing method, system, terminal and storage medium based on script set Download PDFInfo
- Publication number
- CN110554938B CN110554938B CN201910654948.1A CN201910654948A CN110554938B CN 110554938 B CN110554938 B CN 110554938B CN 201910654948 A CN201910654948 A CN 201910654948A CN 110554938 B CN110554938 B CN 110554938B
- Authority
- CN
- China
- Prior art keywords
- test case
- script
- bios
- test
- modification
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 272
- 238000013515 script Methods 0.000 title claims abstract description 255
- 238000012986 modification Methods 0.000 claims abstract description 81
- 230000004048 modification Effects 0.000 claims abstract description 81
- 238000012216 screening Methods 0.000 claims abstract description 16
- 238000010998 test method Methods 0.000 claims abstract description 4
- 238000000034 method Methods 0.000 claims description 19
- 238000010200 validation analysis Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 claims description 2
- 239000002699 waste material Substances 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 101100016034 Nicotiana tabacum APIC gene Proteins 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000006467 substitution reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2247—Verification or detection of system hardware configuration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Abstract
The invention provides a BIOS test method, a system, a terminal and a storage medium based on a script set, comprising the following steps: screening test case scripts with the same requirements for BIOS option modification from a test case script library, and generating a script set according to the screened test case scripts; sequentially calling the test case scripts in the script set and modifying corresponding BIOS options; restarting the test server, and confirming that the modified BIOS option is effective; and returning the test result of the test case script, and marking the test result with corresponding test case script information. The invention can make a plurality of test scripts into a script set, reduces the time waste of repeated steps among a plurality of cases and greatly improves the test efficiency.
Description
Technical Field
The invention belongs to the technical field of server testing, and particularly relates to a BIOS testing method, system, terminal and storage medium based on script sets.
Background
The design of server BIOS test case, the minimum cell has realized a function point, so in decomposing the demand, it is easy to compare when measuring the test coverage, and the BIOS option is very much, the value to be set is not limited to one or two, if the option that BIOS sets up should take effect, need restart the system after setting up BIOS option, this leads to the test of a function point to need to restart the system many times, and the average time of restarting of the server system is about 5min, if according to the conventional thinking, each case corresponds a script, need consume a lot of time to restart, the automatic realization can't reduce the test time effectively.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a BIOS testing method, system, terminal and storage medium based on script set to solve the above-mentioned technical problems.
In a first aspect, the present invention provides a BIOS testing method based on a script set, including:
screening test case scripts with the same requirements for BIOS option modification from a test case script library, and generating a script set according to the screened test case scripts;
sequentially calling test case scripts in the script set and modifying corresponding BIOS options;
restarting the test server, and confirming that the modified BIOS option is effective;
and returning the test result of the test case script, and marking the test result with corresponding test case script information.
Further, the screening test case scripts with the same requirements for modifying the BIOS options from the test case script library, and generating a script set according to the screened test case scripts includes:
acquiring BIOS option modification information of all test case scripts in a test case script library, wherein the BIOS option modification information comprises BIOS option names and the number of BIOS option modifiable parameter values;
acquiring parameter item information to be acquired by all test case scripts in a test case script library;
dividing the test case scripts with the same BIOS option modification information and the same parameter item information into the same group of test case scripts, and generating a script set according to the same group of test case scripts;
and outputting the test case script group and BIOS option modification information corresponding to the test case script group and parameter item information to be acquired.
Further, the sequentially calling the test case scripts in the script set to modify the corresponding BIOS options includes:
generating the number of the screened test case script and storing the incidence relation between the test case script number and the test case script;
sequentially calling the test case scripts related to the test case script numbers from the test case script number list, and modifying corresponding BIOS option parameters;
the test case script number which finishes the modification of the BIOS option parameters is marked to be modified, and the marked modified test case script number does not repeatedly call and modify the BIOS option parameters;
and confirming that all test case script numbers in the test case script number list are marked with modified, and outputting a BIOS option parameter modification completion signal.
Further, the restarting test server, confirming that the modified BIOS option is valid, includes:
confirming that the modification of the corresponding BIOS options of all the test case scripts is completed, and restarting the test server by using a reboot command;
waiting for preset time, connecting the OSIP, and collecting modified BIOS option parameter values;
and comparing the modified BIOS option parameter value with a pre-stored BIOS option parameter modification standard value, and judging that the BIOS option modification is effective if the comparison result is consistent.
In a second aspect, the present invention provides a BIOS testing system based on script set, including:
the script screening unit is configured for screening test case scripts which have the same requirements on BIOS option modification from the test case script library, and generating a script set according to the screened test case scripts;
the option modification unit is configured to call the test case scripts in the script set in sequence and modify the corresponding BIOS options;
the modification validation unit is configured for restarting the test server and confirming that the modified BIOS option is valid;
and the result returning unit is configured to return the test result of the test case script and mark the test result with corresponding test case script information.
Further, the script screening unit includes:
the option acquisition module is configured to acquire BIOS option modification information of all test case scripts in the test case script library, wherein the BIOS option modification information comprises BIOS option names and BIOS option modifiable parameter value quantities;
the parameter acquisition module is configured for acquiring parameter item information required to be acquired by all test case scripts in the test case script library;
the script grouping module is configured to divide the test case scripts of which the BIOS option modification information is the same as the parameter item information into the same group of test case scripts;
and the information output module is configured to output the test case script group, BIOS option modification information corresponding to the test case script group and parameter item information required to be acquired.
Further, the option modification unit includes:
the number association module is configured for generating the number of the screened test case script and storing the association relation between the test case script number and the test case script;
the test case calling module is configured for calling the test case scripts related to the test case script numbers in sequence from the test case script number list and modifying corresponding BIOS option parameters;
the modification marking module is configured to mark the modified test case script number which completes the modification of the BIOS option parameter, and mark the modified test case script number to avoid repeatedly calling and modifying the BIOS option parameter;
and the progress judging module is configured to confirm that all test case script numbers in the test case script number list are marked with modified numbers and output a BIOS option parameter modification completion signal.
Further, the modification validation unit includes:
the restarting execution module is configured to confirm that the modification of the corresponding BIOS options of all the test case scripts is completed, and restart the test server by using a reboot command;
the updating acquisition module is configured for waiting for preset time, communicating with the OSIP and collecting modified BIOS option parameter values;
and the parameter comparison module is configured to compare the modified BIOS option parameter value with a prestored BIOS option parameter modification standard value, and if the comparison result is confirmed to be consistent, the BIOS option modification is judged to be effective.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
the BIOS testing method, system, terminal and storage medium based on script set provided by the invention have the advantages that the testing function points are not related, but the testing cases with the same testing steps are made into a script set, namely, the automatic testing of a plurality of cases is realized in one script, the same script number is filled in the case script related items, the script content is executed after the script number is read by a platform, the testing result is returned to the corresponding testing case after the script is executed, and the abnormal condition of each step can be returned to the testing result of the corresponding case. The invention can make a plurality of test scripts into a script set, thereby reducing the time waste of repeated steps among a plurality of cases and greatly improving the test efficiency.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following explains key terms appearing in the present invention.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution subject in fig. 1 may be a BIOS test system based on a script set.
As shown in fig. 1, the method 100 includes:
110, screening test case scripts with the same requirements for BIOS option modification from a test case script library, and generating a script set according to the screened test case scripts;
Optionally, as an embodiment of the present invention, the screening test case scripts having the same requirements for modifying the BIOS option from the test case script library, and generating a script set according to the screened test case scripts includes:
acquiring BIOS option modification information of all test case scripts in a test case script library, wherein the BIOS option modification information comprises BIOS option names and the number of BIOS option modifiable parameter values;
acquiring parameter item information to be acquired by all test case scripts in a test case script library;
dividing the test case scripts with the same BIOS option modification information and the same parameter item information into the same group of test case scripts, and generating a script set according to the same group of test case scripts;
and outputting the test case script group and BIOS option modification information corresponding to the test case script group and parameter item information to be acquired.
Optionally, as an embodiment of the present invention, the sequentially invoking the test case scripts in the script set to modify the corresponding BIOS options includes:
generating the number of the screened test case script and storing the incidence relation between the test case script number and the test case script;
sequentially calling the test case scripts related to the test case script numbers from the test case script number list, and modifying corresponding BIOS option parameters;
the test case script number which finishes the modification of the BIOS option parameters is marked to be modified, and the marked modified test case script number does not repeatedly call and modify the BIOS option parameters;
and confirming that all test case script numbers in the test case script number list are marked with modified, and outputting a BIOS option parameter modification completion signal.
Optionally, as an embodiment of the present invention, the restarting test server, which confirms that the modified BIOS option is valid, includes:
confirming that the modification of the corresponding BIOS options of all the test case scripts is completed, and restarting the test server by using a reboot command;
waiting for preset time, connecting the OSIP, and collecting modified BIOS option parameter values;
and comparing the modified BIOS option parameter value with a pre-stored BIOS option parameter modification standard value, and judging that the BIOS option modification is effective if the comparison result is consistent.
In order to facilitate understanding of the present invention, the following further describes the BIOS testing method based on script set according to the principle of the BIOS testing method based on script set of the present invention, in combination with the process of automatically testing BIOS in the embodiment.
Specifically, the BIOS test method based on the script set includes:
s1, screening test case scripts with the same requirements for BIOS option modification from the test case script library, and generating a script set according to the screened test case scripts.
The method comprises the steps of collecting the quantity of parameter values modified by BIOS options of all test case scripts in a test case script library and parameter item information (such as CPU core number information or register address information) needing to be collected by test cases, dividing the test case scripts with the same quantity of parameter values modified by the BIOS options and the same information of the parameter items needing to be collected into the same group, and generating a script set by the test case scripts of the same group.
For example, the use case name: the functions of HT, VMX option, SMX option, Extended APIC option, DCU Streamer prefercher option, DCU IP prefercher option, Hardware prefercher option, Adjacent Cache preferth enable, AES-NI option and Power Performance Tuning option are verified under linux. The number of parameter values of HT, VMX option, SMX option, Extended APIC option, DCU Streamer Prefetcher option, DCU IP Prefetcher option, Hardware Prefetcher option, Adjacent Cache prefetch enable, AES-NI option, and Power Performance Tuning option is 2, so that the test cases corresponding to these options are used as a script set.
And S2, sequentially calling the test case scripts in the script set and modifying the corresponding BIOS options.
And generating the number of each test case in the script set, such as: bios (ami) _ SocketC _ HT _00002, bios (ami) _ SocketC _ VMX _00002, bios (ami) _ SocketC _ SMX _00002, bios (ami) _ SocketC _ EAPIC _00002, bios (ami) _ SocketC _ DSP _00002, bios (ami) _ SocketC _ DIP _00002, bios (ami) _ SocketC _ HardP _00002, bios (ami) _ SocketC _ ACP _00002, bios (ami) _ SocketC _ AESNI _00002, bios (ami) _ SocketC _ ppunting _ 00002.
And generating a test case number list, calling the test cases with the numbers corresponding to the test cases in the list one by one, and modifying the corresponding BIOS options. After a test case is called, copying a SCELNX _64 and rdmsr tool from a client tools to a machine/root directory to be tested, comparing the current effective values of options in a CSV default value file and a TXT file, updating the current effective values to the default values if the current effective values are inconsistent with the default values, and leading the option values and Map String into text bios.txt through an SCE tool; text/lang/b/SCELNX _64/o/s bios; "); and (4) the generated text bios.txt confirms whether the file bios.txt is generated or not, copies the bios.txt file of the to-be-tested machine to a local tools path, compares different and synchronous data of the csv file and the txt file, and imports the to-be-tested machine. Obtaining the current effective values of Hyper-Threading [ ALL ], VMX, Enable SMX, Extended APIC, DCU Streamer Prefetcher, DCU IP Prefetcher, Hardware Prefetcher, Adjacent Cache Prefetch, AES-NI and Power Performance Tuning in bios.txt; ") copying the bios.txt file of the machine to be tested to a local tools path to obtain a current effective value, and modifying the value of an option Hyper-Threading [ ALL ], VMX, Enable SMX, Extended APIC, DCU Streamer Prefetcher, DCU IP Prefetcher, Hardware Prefetcher, Adjacent Cache Prefetch, AES-NI and Power Performance Tuning to be" + "Disable, Enable, Disable, OS Controls EPB; ") executes the modify command, the return value contains: succesfully or not modified; ") completes the modification of the BIOS option parameter values.
And S3, restarting the test server, and confirming that the modified BIOS option is effective.
Restarting the system through a reboot command, waiting for 5 minutes, pinging OSIP, checking whether ping is successful or not, verifying the validity of parameter modification after confirming that the results returned by all test cases are ping successful, wherein the test method comprises the following steps:
and marking the called test case number, and not calling the test case with the mark repeatedly.
And S4, returning the test result of the test case script, and marking the test result with corresponding test case script information.
And in the process of executing the test cases, returning the result of each test step, wherein the test result generated by each test case marks the serial number of the test case, so that the test results can be distinguished and the data analysis is facilitated.
As shown in fig. 2, the system 200 includes:
the script screening unit 210 is configured to screen test case scripts having the same requirements for modifying the BIOS options from the test case script library, and generate a script set according to the screened test case scripts;
an option modification unit 220 configured to sequentially call the test case scripts in the script set and modify the corresponding BIOS options;
a modification validation unit 230 configured to restart the test server and confirm that the modified BIOS option is valid;
the result returning unit 240 is configured to return a test result of the test case script, and mark the test result with corresponding test case script information.
Optionally, as an embodiment of the present invention, the script screening unit includes:
the option acquisition module is configured to acquire BIOS option modification information of all test case scripts in the test case script library, wherein the BIOS option modification information comprises BIOS option names and BIOS option modifiable parameter value quantities;
the parameter acquisition module is configured for acquiring parameter item information required to be acquired by all test case scripts in the test case script library;
the script grouping module is configured to divide the test case scripts of which the BIOS option modification information is the same as the parameter item information into the same group of test case scripts;
and the information output module is configured to output the test case script group, BIOS option modification information corresponding to the test case script group and parameter item information required to be acquired.
Optionally, as an embodiment of the present invention, the option modification unit includes:
the number association module is used for configuring the number for generating the screened test case script and storing the association relation between the test case script number and the test case script;
the test case calling module is configured for calling test case scripts related to the test case script numbers in sequence from the test case script number list and modifying corresponding BIOS option parameters;
the modification marking module is configured for marking the modified test case script number after the BIOS option parameter modification is completed, and marking the modified test case script number to avoid repeatedly calling and modifying the BIOS option parameter;
and the progress judging module is configured to confirm that all test case script numbers in the test case script number list are marked with modified numbers and output a BIOS option parameter modification completion signal.
Optionally, as an embodiment of the present invention, the modification validation unit includes:
the restarting execution module is configured for confirming that the modification of the corresponding BIOS options of all the test case scripts is completed, and restarting the test server by utilizing a reboot command;
the updating acquisition module is configured for waiting for preset time, communicating with the OSIP and collecting modified BIOS option parameter values;
and the parameter comparison module is configured to compare the modified BIOS option parameter value with a prestored BIOS option parameter modification standard value, and if the comparison result is confirmed to be consistent, the BIOS option modification is judged to be effective.
Fig. 3 is a schematic structural diagram of a terminal system 300 according to an embodiment of the present invention, where the terminal system 300 may be used to execute a BIOS testing method based on a script set according to the embodiment of the present invention.
The terminal system 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as a Static Random Access Memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk or an optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the invention makes the test cases with the same test steps into a script set by not associating the test function points, namely, realizes the automatic test of a plurality of cases in one script, fills the same script number in the case script association item, executes the script content after the platform reads the script number, returns the test result to the corresponding test case after the script execution is finished, and can return the test result of the corresponding case when the abnormity of each step is completed. According to the invention, a plurality of test scripts can be made into a script set, so that the time waste of repeated steps among a plurality of use cases is reduced, and the test efficiency is greatly improved.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts among the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the several embodiments provided in the present invention, it should be understood that the disclosed system, system and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (8)
1. A BIOS test method based on script set is characterized by comprising the following steps:
screening test case scripts with the same requirements for BIOS option modification from a test case script library, and generating a script set according to the screened test case scripts;
sequentially calling test case scripts in the script set and modifying corresponding BIOS options;
restarting the test server, and confirming that the modified BIOS option is effective;
returning the test result of the test case script, and marking the test result with corresponding test case script information;
screening test case scripts with the same requirements for BIOS option modification from a test case script library, and generating a script set according to the screened test case scripts, wherein the test case scripts comprise:
acquiring BIOS option modification information of all test case scripts in a test case script library, wherein the BIOS option modification information comprises BIOS option names and the number of BIOS option modifiable parameter values;
acquiring parameter item information to be acquired by all test case scripts in a test case script library;
dividing the test case scripts with the same BIOS option modification information and the same parameter item information into the same group of test case scripts, and generating a script set according to the same group of test case scripts;
and outputting the test case script group and BIOS option modification information corresponding to the test case script group and parameter item information to be acquired.
2. The method of claim 1, wherein said sequentially invoking test case scripts in a script set to modify corresponding BIOS options comprises:
generating the number of the screened test case script and storing the incidence relation between the test case script number and the test case script;
sequentially calling the test case scripts related to the test case script numbers from the test case script number list, and modifying corresponding BIOS option parameters;
the test case script number which finishes the modification of the BIOS option parameters is marked to be modified, and the marked modified test case script number does not repeatedly call and modify the BIOS option parameters;
and confirming that all test case script numbers in the test case script number list are marked with modified, and outputting a BIOS option parameter modification completion signal.
3. The method of claim 1, wherein the restarting the test server, confirming that the modified BIOS option is in effect, comprises:
confirming that the modification of the corresponding BIOS options of all the test case scripts is completed, and restarting the test server by using a reboot command;
waiting for preset time, connecting the OSIP, and collecting modified BIOS option parameter values;
and comparing the modified BIOS option parameter value with a pre-stored BIOS option parameter modification standard value, and judging that the BIOS option modification is effective if the comparison result is consistent.
4. A script collection based BIOS test system, comprising:
the script screening unit is configured for screening test case scripts with the same requirements for BIOS option modification from the test case script library and generating a script set according to the screened test case scripts;
the option modification unit is configured to call the test case scripts in the script set in sequence and modify the corresponding BIOS options;
the modification validation unit is configured for restarting the test server and confirming that the modified BIOS option is valid;
the result returning unit is configured for returning the test result of the test case script and marking the test result with corresponding test case script information;
the script screening unit includes:
the option acquisition module is configured to acquire BIOS option modification information of all test case scripts in the test case script library, wherein the BIOS option modification information comprises BIOS option names and BIOS option modifiable parameter value quantities;
the parameter acquisition module is configured for acquiring parameter item information required to be acquired by all test case scripts in the test case script library;
the script grouping module is configured to divide the test case scripts of which the BIOS option modification information is the same as the parameter item information into the same group of test case scripts;
and the information output module is configured to output the test case script group, BIOS option modification information corresponding to the test case script group and parameter item information required to be acquired.
5. The system of claim 4, wherein the option modification unit comprises:
the number association module is configured for generating the number of the screened test case script and storing the association relation between the test case script number and the test case script;
the test case calling module is configured for calling the test case scripts related to the test case script numbers in sequence from the test case script number list and modifying corresponding BIOS option parameters;
the modification marking module is configured to mark the modified test case script number which completes the modification of the BIOS option parameter, and mark the modified test case script number to avoid repeatedly calling and modifying the BIOS option parameter;
and the progress judging module is configured to confirm that all test case script numbers in the test case script number list are marked with modified numbers and output a BIOS option parameter modification completion signal.
6. The system of claim 4, wherein the modification validation unit comprises:
the restarting execution module is configured to confirm that the modification of the corresponding BIOS options of all the test case scripts is completed, and restart the test server by using a reboot command;
the updating acquisition module is configured for waiting for preset time, communicating with the OSIP and collecting modified BIOS option parameter values;
and the parameter comparison module is configured to compare the modified BIOS option parameter value with a prestored BIOS option parameter modification standard value, and if the comparison result is confirmed to be consistent, the BIOS option modification is judged to be effective.
7. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-3.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910654948.1A CN110554938B (en) | 2019-07-19 | 2019-07-19 | BIOS (basic input output System) testing method, system, terminal and storage medium based on script set |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910654948.1A CN110554938B (en) | 2019-07-19 | 2019-07-19 | BIOS (basic input output System) testing method, system, terminal and storage medium based on script set |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110554938A CN110554938A (en) | 2019-12-10 |
CN110554938B true CN110554938B (en) | 2022-07-08 |
Family
ID=68735635
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910654948.1A Active CN110554938B (en) | 2019-07-19 | 2019-07-19 | BIOS (basic input output System) testing method, system, terminal and storage medium based on script set |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110554938B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111176915A (en) * | 2019-12-19 | 2020-05-19 | 曙光信息系统(辽宁)有限公司 | Serial test method and test tool |
CN113220511A (en) * | 2020-02-06 | 2021-08-06 | 伊姆西Ip控股有限责任公司 | Method, apparatus and computer-readable storage medium for testing BIOS |
CN113220332A (en) * | 2021-06-07 | 2021-08-06 | 宁畅信息产业(北京)有限公司 | BIOS (basic input output System) firmware refreshing test method and device, electronic equipment and storage medium |
CN114218124A (en) * | 2022-02-22 | 2022-03-22 | 深圳市吉方工控有限公司 | Method, device, equipment and storage medium for rapidly deploying BIOS setting environment |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107957957B (en) * | 2017-12-28 | 2020-09-11 | 网易(杭州)网络有限公司 | Test case obtaining method and device |
CN109669863A (en) * | 2018-12-03 | 2019-04-23 | 郑州云海信息技术有限公司 | A kind of BIOS option function test method and system based on AMI BIOS |
-
2019
- 2019-07-19 CN CN201910654948.1A patent/CN110554938B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110554938A (en) | 2019-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110554938B (en) | BIOS (basic input output System) testing method, system, terminal and storage medium based on script set | |
CN110162435B (en) | Method, system, terminal and storage medium for starting and testing PXE of server | |
CN110557299A (en) | network transmission function batch test method, system, terminal and storage medium | |
CN109788052B (en) | Server configuration remote query method, device, terminal and storage medium | |
CN111262753B (en) | Method, system, terminal and storage medium for automatically configuring number of NUMA nodes | |
CN114546738A (en) | Server general test method, system, terminal and storage medium | |
CN111966551A (en) | Method, system, terminal and storage medium for verifying remote command execution result | |
CN109067605B (en) | Storage subsystem fault diagnosis method and device, terminal and storage medium | |
CN113918197A (en) | Firmware upgrading method, system, storage medium and equipment | |
CN111176917B (en) | Method, system, terminal and storage medium for testing stability of CPU SST-BF function | |
CN110543394A (en) | server sensor information consistency testing method, system, terminal and storage medium | |
CN116702668A (en) | Regression testing method and device, electronic equipment and storage medium | |
CN111124772A (en) | Cloud platform storage performance testing method, system, terminal and storage medium | |
CN114416596A (en) | Application testing method and device, computer equipment and storage medium | |
CN111752677B (en) | Cloud resource configuration method, system, terminal and storage medium | |
CN109802866B (en) | Network card SR-IOV function testing method, device, terminal and storage medium | |
CN111858308A (en) | Method, system, terminal and storage medium for acquiring test data of diskless system | |
CN114564213A (en) | Pre-installed software deployment method, system, terminal and storage medium | |
CN113076111A (en) | Customized cluster configuration method, system, terminal and storage medium | |
CN112667498A (en) | Server building method and device, computer equipment and readable storage medium | |
CN113254332A (en) | Multi-scenario testing method, system, terminal and storage medium for storage system | |
CN110865932A (en) | Program internal interface testing method, system, terminal and storage medium | |
CN111309598A (en) | Test case execution environment recovery method, system, terminal and storage medium | |
CN111143193A (en) | Big data service testing method, system, terminal and storage medium based on RobotFramework | |
CN111984512B (en) | Storage system resource competition simulation test method, system, terminal 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |