CN114546738A - Server general test method, system, terminal and storage medium - Google Patents

Server general test method, system, terminal and storage medium Download PDF

Info

Publication number
CN114546738A
CN114546738A CN202210067456.4A CN202210067456A CN114546738A CN 114546738 A CN114546738 A CN 114546738A CN 202210067456 A CN202210067456 A CN 202210067456A CN 114546738 A CN114546738 A CN 114546738A
Authority
CN
China
Prior art keywords
test
component
test cases
cases
configuration information
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.)
Granted
Application number
CN202210067456.4A
Other languages
Chinese (zh)
Other versions
CN114546738B (en
Inventor
李宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210067456.4A priority Critical patent/CN114546738B/en
Publication of CN114546738A publication Critical patent/CN114546738A/en
Application granted granted Critical
Publication of CN114546738B publication Critical patent/CN114546738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration
    • 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)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the technical field of servers, in particular to a universal test method, a universal test system, a universal test terminal and a universal test storage medium for servers, which comprise the following steps: pre-constructing a test case library storing various test cases, and marking the types, the applicable configurations and the incidence relation with other test cases of the test cases; acquiring the component type and the component configuration information of a server to be tested; screening matched test cases for various types of components from a test case library according to the set test types and component configuration information, and copying the screened test cases to a specified path; selecting a target test component according to the test requirement, and screening out the test cases of the target test component from all the test cases under the specified path as test cases to be executed; and generating an execution sequence of the test cases to be executed according to the incidence relation of the test cases to be executed, sequentially executing the test cases to be executed according to the execution sequence, and outputting the test result to the test log. The invention improves the testing efficiency.

Description

Server general test method, system, terminal and storage medium
Technical Field
The invention relates to the technical field of servers, in particular to a universal test method, a universal test system, a universal test terminal and a universal test storage medium for servers.
Background
In an information society, the server is applied to informatization solutions of various industries, provides computing power for various software, programs and solutions, and is an infrastructure for informatization construction. The general server generally refers to a server suitable for various OSs and software, and is typically characterized by an X86 or X64 structure, and a Linux system or a virtualization system is generally installed, and is applicable to various industries.
The application of the universal server determines that a plurality of servers in various industries have test work, and whether the service performance, specification, reliability and stability meet the requirements or not is checked. Currently, similar tests are many, but many cannot cover all major components of the server, such as: CPU, memory, hard disk, network, GPU, etc.; in addition, the test tool emphasis of each component is different, parameters used in the test are different according to the specification, the test execution has a certain threshold, and an engineer with a certain technical level is required to execute the test; furthermore, due to the complexity of the tests, most of the tests are designed, used, executed and collected manually, which requires a lot of labor and cost.
The universal server has strong regularity although different specifications and configurations are different, and can summarize the methods used for testing different components to form a test method set.
Some automatic testing tools exist in the market at present, and some automatic testing tools are used for testing partial characteristics of the server, such as only relating to performance automatic testing; some are specific to special servers, but are not applicable to general servers, such as online game server test; some focus is on testing connections by BMC and IPMItool; some stress testing of server clusters. No method focuses on the server test and relates to the main component test, and the invention can adjust and pay attention to the omnibearing performance, stability, reliability and pressure test of the server and the components thereof and complete the whole process in an automatic mode.
Disclosure of Invention
The invention provides a server universal test method, a system, a terminal and a storage medium, aiming at the problems that the conventional server test method cannot configure a set of test cases for a universal server and cannot test the server in order on the whole, so that the server test efficiency is low.
In a first aspect, the present invention provides a server universal testing method, including:
pre-constructing a test case library storing various test cases, and marking the types, the applicable configurations and the incidence relation with other test cases of the test cases;
acquiring the component type and the component configuration information of a server to be tested;
screening matched test cases for various types of components from a test case library according to the set test types and component configuration information, and copying the screened test cases to a specified path;
selecting a target test component according to the test requirement, and screening out the test cases of the target test component from all the test cases under the specified path as test cases to be executed;
and generating an execution sequence of the test cases to be executed according to the incidence relation of the test cases to be executed, sequentially executing the test cases to be executed according to the execution sequence, and outputting a test result to a test log.
Further, a test case library storing a plurality of test cases is pre-constructed, and the category, the applicable configuration and the association relation with other test cases of the test cases are marked, including:
setting the categories to comprise a pressure test category, a performance test category and a stability test category, wherein the applicable configuration comprises an applicable component category and component configuration information;
analyzing input parameters and output parameters of the test cases, screening out repeated parameters, binding a first test case with the repeated parameters as the output parameters and a second test case with the repeated parameters as the input parameters into associated test cases, and marking that the execution sequence of the first test case is prior to the second test case;
marking the execution priority of the test case according to the received setting instruction;
and generating a test case association topology according to the execution priority and the associated test case execution sequence obtained by analysis.
Further, acquiring the component type and the component configuration information of the server to be tested includes:
acquiring a component type and component configuration information by using a self-detection program of a server operating system to be detected, wherein the component type comprises a processor, temporary storage, permanent storage and network hardware;
outputting the component type and the component configuration information to a display list for display and output;
and continuously executing the test after receiving the user confirmation instruction, and otherwise, re-acquiring the component type and the component configuration information.
Further, acquiring a component type and component configuration information from a test program by using the server operating system to be tested, where the component type includes a processor, a temporary storage, a permanent storage, and network hardware, and the method includes:
the self-detection program creates a plurality of processes to respectively acquire the configuration information of each component;
the process detects whether the component exists, and detects the component type, the component number and the component name of the component;
and the process carries out specification detection on each component and outputs a detection result.
In a second aspect, the present invention provides a server universal test system, including:
the test case preparation unit is used for constructing a test case library in which a plurality of test cases are stored in advance, and marking the types, the applicable configuration and the incidence relation with other test cases of the test cases;
the configuration acquisition unit is used for acquiring the component type and the component configuration information of the server to be tested;
the case screening unit is used for screening matched test cases for various types of components from the test case library according to the set test types and the component configuration information and copying the screened test cases to a specified path;
the requirement setting unit is used for selecting a target test component according to the test requirement and screening the test cases of the target test component from all the test cases under the specified path as test cases to be executed;
the case execution unit is used for generating an execution sequence of the test cases to be executed according to the incidence relation of the test cases to be executed, sequentially executing the test cases to be executed according to the execution sequence and outputting a test result to the test log.
Further, the use case preparation unit includes:
the parameter setting module is used for setting the categories to comprise a pressure test category, a performance test category and a stability test category, and the applicable configuration comprises applicable component categories and component configuration information;
the system comprises an association binding module, a test case analysis module and a test execution module, wherein the association binding module is used for analyzing input parameters and output parameters of the test cases, screening out repeated parameters, binding a first test case with the repeated parameters as the output parameters and a second test case with the repeated parameters as the input parameters into an association test case, and marking that the execution sequence of the first test case is prior to the second test case;
the priority setting module is used for marking the execution priority of the test case according to the received setting instruction;
and the topology generation module is used for generating the test case correlation topology according to the execution priority and the correlation test case execution sequence obtained by analysis.
Further, the configuration acquisition unit includes:
the system comprises a configuration acquisition module, a configuration processing module and a configuration processing module, wherein the configuration acquisition module is used for acquiring a component type and component configuration information by using a self-detection program of a server operating system to be detected, and the component type comprises a processor, temporary storage, permanent storage and network hardware;
the configuration display module is used for outputting the component type and the component configuration information to a display list for display and output;
and the user confirmation module is used for continuing to execute the test after receiving the user confirmation instruction, and otherwise, acquiring the component type and the component configuration information again.
Further, the configuration acquisition module includes:
the process creation submodule is used for creating a plurality of processes from the detection program to respectively acquire the configuration information of each component;
the existence detection submodule is used for detecting whether the process detection component exists or not and detecting the component type, the component number and the component name of the component;
and the specification detection submodule is used for carrying out specification detection on each component by the process and outputting a detection result.
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 server universal testing method, the system, the terminal and the storage medium provided by the invention have the beneficial effects that the performance test, the pressure test, the stability and the reliability test of the server and each part are realized without the help of external languages or environment, the flexible collocation of multiple objects, multiple contents and different contents of different objects is flexibly finished, the diversified and multifunctional testing requirements are met, and the effect that one tool finishes all testing requirements is realized; the testing process is completely automatically executed, and the system has an individualized configuration interface and a result output interface, is suitable for users with different technical levels, greatly improves the testing efficiency, and enhances the testing accuracy and credibility.
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 another schematic flow diagram of a method of one embodiment of the invention.
Fig. 3 is a schematic flow diagram of a server self-test of a method of one embodiment of the invention.
FIG. 4 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 5 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.
Figure BDA0003480678030000061
Figure BDA0003480678030000071
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 server universal test system.
As shown in fig. 1, the method includes:
step 110, pre-constructing a test case library storing a plurality of test cases, and marking the types, the applicable configuration and the incidence relation with other test cases of the test cases;
step 120, acquiring the component type and the component configuration information of the server to be tested;
step 130, screening matched test cases for various types of components from a test case library according to the set test types and component configuration information, and copying the screened test cases to a specified path;
140, selecting a target test component according to the test requirement, and screening out the test cases of the target test component from all the test cases under the specified path as test cases to be executed;
and 150, generating an execution sequence of the test cases to be executed according to the incidence relation of the test cases to be executed, sequentially executing the test cases to be executed according to the execution sequence, and outputting a test result to a test log.
In order to facilitate understanding of the present invention, the general server testing method provided by the present invention is further described below with reference to the principle of the general server testing method of the present invention and the process of performing general server testing in the embodiments.
Specifically, referring to fig. 2, the server general testing method includes:
s1, pre-constructing a test case library storing a plurality of test cases, and marking the types, the applicable configurations and the association relation with other test cases of the test cases.
Setting the categories to comprise a pressure test category, a performance test category and a stability test category, wherein the applicable configuration comprises an applicable component category and component configuration information; analyzing input parameters and output parameters of the test cases, screening out repeated parameters, binding a first test case with the repeated parameters as the output parameters and a second test case with the repeated parameters as the input parameters into associated test cases, and marking that the execution sequence of the first test case is prior to the second test case; marking the execution priority of the test case according to the received setting instruction; and generating a test case association topology according to the execution priority and the analyzed associated test case execution sequence.
For example, if the user instructs to set the stress test prior to the performance test and the performance test prior to the stability test, the test cases of the stress test, the performance test and the stability test are classified. If the stress test level has a plurality of test cases at the same priority level, analyzing the input parameters and the output parameters of the test cases and screening out repeated parameters, for example, two parameters a are included in all the parameters, where the parameter a is the output parameter of the test case 1 and the parameter a is the input parameter of the test case 2, and the test case 1 is executed before the test case 2.
And S2, acquiring the component type and the component configuration information of the server to be tested.
Acquiring a component type and component configuration information by using a self-detection program of a server operating system to be detected, wherein the component type comprises a processor, temporary storage, permanent storage and network hardware; outputting the component type and the component configuration information to a display list for display and output; and continuing to execute the test after receiving the user confirmation instruction, and otherwise, re-acquiring the component type and the component configuration information.
As shown in fig. 3, a Unit specifically refers to a test object, and corresponds to a processor test, a temporary storage test, a permanent storage test, and a network test, respectively. In the whole machine test, the test of 4 units corresponds to 4 processes, and the four processes run in parallel; in the Unit test, only the selected Unit is executed, and the other units are not executed.
The self-checking program starts four processes simultaneously, the four processes run in parallel, and each process can be divided into a processor self-checking process, a temporary storage self-checking process, a permanent storage self-checking process and a network self-checking process according to different detection objects. Each process needs to execute a plurality of tasks, and the tasks have dependency and need to be executed in sequence. The existence self-check mainly detects whether the components in the corresponding Unit exist, and detects the type, the quantity and the name of the components; the specification self-inspection carries out specification detection on each component according to the output of the preorder task; and (5) combing and formatting the specification data in the process. And integrating output results of the four processes, writing the integrated results into a text file after sequential integration, and recording a self-checking result.
And displaying the result file on a graphical interface based on the self-checking of the equipment for a user to confirm, helping the user whether the configuration of each unit of double check meets the expectation or not, and providing data reference for testing decision.
The test of each Unit corresponds to one process, each process respectively executes four different tasks of self-check starting, configuration interaction, test execution, conclusion analysis and conclusion induction and the like, and the four tasks have a front-back dependency relationship and need to be executed in series. Automatically starting an output scheduling and starting a test program according to the preorder task; the task before the test execution exists in a display interface, and is mainly used for a user to specify corresponding test parameters, such as a test object, test duration and the like; scheduling a background program and a system tool to execute a test and generating a test result; and finally, the test object, the test duration and the test data are lifted from the test result, the test information of the Unit is summarized and stored into a text file, and the file is stored.
And S3, screening matched test cases for each type of components from the test case library according to the set test types and the component configuration information, and copying the screened test cases to a specified path.
Taking the CPU as an example, if the test type selected by the user is a stress test, screening all stress test cases applicable to the CPU configuration from the test case library according to the CPU configuration information.
Therefore, the required test cases of all the devices to be tested are screened out, and the screened test cases are stored to the designated path. Here pre-caching facilitates subsequent fast fetching.
And S4, selecting the target test component according to the test requirement, and screening the test cases of the target test component from all the test cases under the specified path as the test cases to be executed.
According to different test ranges, the test method mainly comprises a complete machine test and a Unit test, wherein the complete machine test defaults to execute the test on all components of the equipment, and finally, a complete machine test report is generated; the Unit test only focuses on a specific Unit, and tests and reports are performed on the Unit. The personalized selection module is presented in a visual form, and the test content is used as a selectable item for a user to select and make a decision. And generating a test task according to the selected test target, and calibrating the test case to be executed under the specified path by the test task.
S5, generating an execution sequence of the test cases to be executed according to the incidence relation of the test cases to be executed, sequentially executing the test cases to be executed according to the execution sequence, and outputting the test result to the test log.
The incidence relation among the test cases to be executed is combed, the test cases to be executed are firstly classified, the test cases belonging to the same component are divided into a large group, and different test categories in the large group are divided into different small groups. Then, the execution sequence of the large group is determined, and the execution sequence of the large group can be designated by a user or can be executed synchronously. The execution sequence of different groups in the large group is determined by the preset priority, the execution sequence of the test cases in the groups is determined by the incidence relation among the test cases, and if the test cases in the groups have no incidence relation, the test sequences are randomly generated.
And executing the test cases to be executed according to the sequence, collecting the test results, and summarizing and classifying the test results.
As shown in fig. 4, the system 400 includes:
the case preparation unit 410 is configured to pre-construct a test case library storing a plurality of test cases, and mark categories, applicable configurations, and association relationships with other test cases of the test cases;
a configuration obtaining unit 420, configured to obtain a component type and component configuration information of the server to be tested;
a case screening unit 430, configured to screen out a matched test case for each type of component from the test case library according to the set test type and component configuration information, and copy the screened test case to a specified path;
the requirement setting unit 440 is configured to select a target test component according to a test requirement, and screen a test case of the target test component from all test cases under a specified path as a test case to be executed;
the case executing unit 450 is configured to generate an execution sequence of the test cases to be executed according to the association relationship between the test cases to be executed, sequentially execute the test cases to be executed according to the execution sequence, and output the test result to the test log.
Optionally, as an embodiment of the present invention, the use case preparing unit includes:
the parameter setting module is used for setting the categories to comprise a pressure test category, a performance test category and a stability test category, and the applicable configuration comprises applicable component categories and component configuration information;
the system comprises an association binding module, a test case analysis module and a test execution module, wherein the association binding module is used for analyzing input parameters and output parameters of the test cases, screening out repeated parameters, binding a first test case with the repeated parameters as the output parameters and a second test case with the repeated parameters as the input parameters into an association test case, and marking that the execution sequence of the first test case is prior to the second test case;
the priority setting module is used for marking the execution priority of the test case according to the received setting instruction;
and the topology generation module is used for generating the test case correlation topology according to the execution priority and the correlation test case execution sequence obtained by analysis.
Optionally, as an embodiment of the present invention, the configuration obtaining unit includes:
the system comprises a configuration acquisition module, a configuration processing module and a configuration processing module, wherein the configuration acquisition module is used for acquiring a component type and component configuration information by using a self-detection program of a server operating system to be detected, and the component type comprises a processor, temporary storage, permanent storage and network hardware;
the configuration display module is used for outputting the component type and the component configuration information to a display list for display and output;
and the user confirmation module is used for continuing to execute the test after receiving the user confirmation instruction, and otherwise, acquiring the component type and the component configuration information again.
Optionally, as an embodiment of the present invention, the configuration acquiring module includes:
the process creation submodule is used for creating a plurality of processes from the detection program to respectively acquire configuration information of each component;
the existence detection submodule is used for detecting whether the process detection component exists or not and detecting the component type, the component number and the component name of the component;
and the specification detection submodule is used for carrying out specification detection on each component by the process and outputting a detection result.
Fig. 5 is a schematic structural diagram of a terminal 500 according to an embodiment of the present invention, where the terminal 500 may be used to execute the server universal testing method according to the embodiment of the present invention.
Among them, the terminal 500 may include: a processor 510, a memory 520, and a communication unit 530. 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 520 may be used for storing instructions executed by the processor 510, and the memory 520 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 520, when executed by processor 510, enable terminal 500 to perform some or all of the steps in the method embodiments described below.
The processor 510 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 520 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, processor 510 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 530 for establishing 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 realizes the performance test, the pressure test, the stability and the reliability test of the server and each part without the help of external languages or environment, flexibly completes the flexible collocation of multiple objects, multiple contents and different contents of different objects, meets the diversified and multifunctional test requirements and realizes the effect of completing all test requirements by one tool; the testing process is performed fully automatically, and a personalized configuration interface and a result output interface are provided, so that the method is suitable for users with different technical levels, the testing efficiency is greatly improved, and the testing accuracy and credibility are enhanced.
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 in 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 embodiments provided in the present invention, it should be understood that the disclosed system and method can 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 logical functional division, and other divisions may be realized in practice, for example, a plurality of 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 (10)

1. A universal test method for a server is characterized by comprising the following steps:
pre-constructing a test case library storing various test cases, and marking the types, the applicable configurations and the incidence relation with other test cases of the test cases;
acquiring the component type and the component configuration information of a server to be tested;
screening matched test cases for various types of components from a test case library according to the set test types and component configuration information, and copying the screened test cases to a specified path;
selecting a target test component according to the test requirement, and screening out the test cases of the target test component from all the test cases under the specified path as test cases to be executed;
and generating an execution sequence of the test cases to be executed according to the incidence relation of the test cases to be executed, sequentially executing the test cases to be executed according to the execution sequence, and outputting a test result to a test log.
2. The method of claim 1, wherein a test case library storing a plurality of test cases is constructed in advance, and the category, the applicable configuration and the association relationship with other test cases of the test cases are marked, including:
setting the categories to comprise a pressure test category, a performance test category and a stability test category, wherein the applicable configuration comprises an applicable component category and component configuration information;
analyzing input parameters and output parameters of the test cases, screening out repeated parameters, binding a first test case with the repeated parameters as the output parameters and a second test case with the repeated parameters as the input parameters into associated test cases, and marking that the execution sequence of the first test case is prior to the second test case;
marking the execution priority of the test case according to the received setting instruction;
and generating a test case association topology according to the execution priority and the analyzed associated test case execution sequence.
3. The method of claim 1, wherein obtaining component type and component configuration information for the server under test comprises:
acquiring a component type and component configuration information by using a self-detection program of a server operating system to be detected, wherein the component type comprises a processor, temporary storage, permanent storage and network hardware;
outputting the component type and the component configuration information to a display list for display and output;
and continuing to execute the test after receiving the user confirmation instruction, and otherwise, re-acquiring the component type and the component configuration information.
4. The method of claim 3, wherein obtaining component type and component configuration information from a test program using a server operating system under test, the component type comprising a processor, temporary storage, permanent storage, and network hardware, comprises:
the self-detection program creates a plurality of processes to respectively acquire the configuration information of each component;
the process detects whether the component exists, and detects the component type, the component number and the component name of the component;
and the process carries out specification detection on each component and outputs a detection result.
5. A server generic test system, comprising:
the test case preparation unit is used for constructing a test case library in which a plurality of test cases are stored in advance, and marking the types, the applicable configuration and the incidence relation with other test cases of the test cases;
the configuration acquisition unit is used for acquiring the component type and the component configuration information of the server to be tested;
the case screening unit is used for screening matched test cases for various types of components from the test case library according to the set test types and the component configuration information and copying the screened test cases to a specified path;
the requirement setting unit is used for selecting a target test component according to the test requirement and screening the test cases of the target test component from all the test cases under the specified path as test cases to be executed;
the case execution unit is used for generating an execution sequence of the test cases to be executed according to the incidence relation of the test cases to be executed, sequentially executing the test cases to be executed according to the execution sequence and outputting a test result to the test log.
6. The system of claim 5, wherein the use case preparation unit comprises:
the parameter setting module is used for setting the categories to comprise a pressure test category, a performance test category and a stability test category, and the applicable configuration comprises applicable component categories and component configuration information;
the system comprises an association binding module, a test case analysis module and a test execution module, wherein the association binding module is used for analyzing input parameters and output parameters of the test cases, screening out repeated parameters, binding a first test case with the repeated parameters as the output parameters and a second test case with the repeated parameters as the input parameters into an association test case, and marking that the execution sequence of the first test case is prior to the second test case;
the priority setting module is used for marking the execution priority of the test case according to the received setting instruction;
and the topology generation module is used for generating the test case correlation topology according to the execution priority and the correlation test case execution sequence obtained by analysis.
7. The system of claim 5, wherein the configuration acquisition unit comprises:
the system comprises a configuration acquisition module, a configuration processing module and a configuration processing module, wherein the configuration acquisition module is used for acquiring a component type and component configuration information by using a self-detection program of a server operating system to be detected, and the component type comprises a processor, temporary storage, permanent storage and network hardware;
the configuration display module is used for outputting the component type and the component configuration information to a display list for display and output;
and the user confirmation module is used for continuing to execute the test after receiving the user confirmation instruction, and otherwise, acquiring the component type and the component configuration information again.
8. The system of claim 7, wherein the configuration acquisition module comprises:
the process creation submodule is used for creating a plurality of processes from the detection program to respectively acquire the configuration information of each component;
the existence detection submodule is used for detecting whether the process detection component exists or not and detecting the component type, the component number and the component name of the component;
and the specification detection submodule is used for carrying out specification detection on each component by the process and outputting a detection result.
9. 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-4.
10. 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-4.
CN202210067456.4A 2022-01-20 2022-01-20 Universal test method, system, terminal and storage medium for server Active CN114546738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210067456.4A CN114546738B (en) 2022-01-20 2022-01-20 Universal test method, system, terminal and storage medium for server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210067456.4A CN114546738B (en) 2022-01-20 2022-01-20 Universal test method, system, terminal and storage medium for server

Publications (2)

Publication Number Publication Date
CN114546738A true CN114546738A (en) 2022-05-27
CN114546738B CN114546738B (en) 2023-11-07

Family

ID=81670922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210067456.4A Active CN114546738B (en) 2022-01-20 2022-01-20 Universal test method, system, terminal and storage medium for server

Country Status (1)

Country Link
CN (1) CN114546738B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115033439A (en) * 2022-06-27 2022-09-09 苏州浪潮智能科技有限公司 Server testing method and device
CN115061863A (en) * 2022-06-17 2022-09-16 苏州浪潮智能科技有限公司 Component configuration testing method, device, equipment and medium
CN115221041A (en) * 2022-06-09 2022-10-21 广州汽车集团股份有限公司 Multi-device testing method and device, electronic device and storage medium
CN115269358A (en) * 2022-09-30 2022-11-01 中国信息通信研究院 Performance test method, device, equipment and medium for block chain service node host
CN117215858A (en) * 2023-11-07 2023-12-12 四川华鲲振宇智能科技有限责任公司 Method for automatically testing complete server
CN117573533A (en) * 2023-11-20 2024-02-20 北京国科天迅科技股份有限公司 Test case design method and device, electronic equipment and storage medium
CN115033439B (en) * 2022-06-27 2024-07-05 苏州浪潮智能科技有限公司 Server testing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016188170A1 (en) * 2015-10-22 2016-12-01 中兴通讯股份有限公司 Test method and device, apparatus and computer storage medium
CN112052169A (en) * 2020-09-01 2020-12-08 深圳创维-Rgb电子有限公司 Test management method, system, device and computer readable storage medium
KR102201845B1 (en) * 2019-07-25 2021-01-12 엘아이지넥스원 주식회사 Automation unit test method of multi-task based software and system for the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016188170A1 (en) * 2015-10-22 2016-12-01 中兴通讯股份有限公司 Test method and device, apparatus and computer storage medium
KR102201845B1 (en) * 2019-07-25 2021-01-12 엘아이지넥스원 주식회사 Automation unit test method of multi-task based software and system for the same
CN112052169A (en) * 2020-09-01 2020-12-08 深圳创维-Rgb电子有限公司 Test management method, system, device and computer readable storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115221041A (en) * 2022-06-09 2022-10-21 广州汽车集团股份有限公司 Multi-device testing method and device, electronic device and storage medium
CN115061863A (en) * 2022-06-17 2022-09-16 苏州浪潮智能科技有限公司 Component configuration testing method, device, equipment and medium
CN115033439A (en) * 2022-06-27 2022-09-09 苏州浪潮智能科技有限公司 Server testing method and device
CN115033439B (en) * 2022-06-27 2024-07-05 苏州浪潮智能科技有限公司 Server testing method and device
CN115269358A (en) * 2022-09-30 2022-11-01 中国信息通信研究院 Performance test method, device, equipment and medium for block chain service node host
CN117215858A (en) * 2023-11-07 2023-12-12 四川华鲲振宇智能科技有限责任公司 Method for automatically testing complete server
CN117215858B (en) * 2023-11-07 2024-03-08 四川华鲲振宇智能科技有限责任公司 Method for automatically testing complete server
CN117573533A (en) * 2023-11-20 2024-02-20 北京国科天迅科技股份有限公司 Test case design method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114546738B (en) 2023-11-07

Similar Documents

Publication Publication Date Title
CN109302522B (en) Test method, test device, computer system, and computer medium
CN114546738A (en) Server general test method, system, terminal and storage medium
CN107402880B (en) Test method and electronic equipment
CN111124919A (en) User interface testing method, device, equipment and storage medium
CN110557299A (en) network transmission function batch test method, system, terminal and storage medium
CN111258913A (en) Automatic algorithm testing method and device, computer system and readable storage medium
CN111966597B (en) Test data generation method and device
CN111475411A (en) Server problem detection method, system, terminal and storage medium
CN113434396A (en) Interface test method, device, equipment, storage medium and program product
CN113792341A (en) Privacy compliance automation detection method, device, equipment and medium for application program
CN116166525A (en) Method and device for generating test script
CN111708712A (en) User behavior test case generation method, flow playback method and electronic equipment
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
CN112395182A (en) Automatic testing method, device, equipment and computer readable storage medium
CN110750446A (en) System testing method and related device
CN114371974A (en) Buried point data checking method and electronic equipment
CN117493188A (en) Interface testing method and device, electronic equipment and storage medium
CN111159028A (en) Webpage testing method and device
CN111124772A (en) Cloud platform storage performance testing method, system, terminal and storage medium
CN114676066A (en) Security testing method and device for target application, electronic equipment and storage medium
CN113986753A (en) Interface test method, device, equipment and storage medium
CN109688025B (en) Test monitoring method, device, terminal and storage medium based on digital KVM
CN114371866A (en) Version reconfiguration test method, device and equipment of service system
CN111475398A (en) Server NIC diagnosis 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