CN111367735A - Test method and system based on server to be tested and Wuban diagram operating system - Google Patents

Test method and system based on server to be tested and Wuban diagram operating system Download PDF

Info

Publication number
CN111367735A
CN111367735A CN202010129383.8A CN202010129383A CN111367735A CN 111367735 A CN111367735 A CN 111367735A CN 202010129383 A CN202010129383 A CN 202010129383A CN 111367735 A CN111367735 A CN 111367735A
Authority
CN
China
Prior art keywords
server
tested
test
operating system
wuban
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
CN202010129383.8A
Other languages
Chinese (zh)
Other versions
CN111367735B (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 CN202010129383.8A priority Critical patent/CN111367735B/en
Publication of CN111367735A publication Critical patent/CN111367735A/en
Application granted granted Critical
Publication of CN111367735B publication Critical patent/CN111367735B/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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention relates to the technical field of server testing, and provides a testing method and a system based on a server to be tested and a Wuban diagram operating system, wherein the method comprises the following steps: after the test environment is built, controlling the MAAS server to acquire hardware configuration information of the server to be tested; controlling and restarting a server to be tested, and deploying a Wuban diagram operating system and a test tool in the server to be tested; automatically generating a plurality of test cases which comprise all the test cases used for testing the stability and compatibility between the server to be tested and the Wuban diagram operating system; the method has the advantages that the starting command of the server to be tested is controlled, a plurality of test cases are executed, and the stability and compatibility test results are generated, so that the compatibility and stability of the server to be tested and the Wuban diagram operating system are quickly and accurately evaluated, the probability of missed test and wrong test is reduced, the work of human intervention is reduced, and the work efficiency is improved.

Description

Test method and system based on server to be tested and Wuban diagram operating system
Technical Field
The invention belongs to the technical field of server testing, and particularly relates to a testing method and system based on a server to be tested and a Wuban diagram operating system.
Background
The compatibility and stability of the server and the operating system are more and more concerned by customers, and become an important factor for purchasing server products, most of the existing methods are to manually install the operating system to the server (match with different hardware), utilize the existing tools to respectively execute the compatibility and stability tests of each component (generally including a central processing unit, a memory, a storage medium, a network card and the like) and the operating system, and finally realize the compatibility and stability tests of the server and the corresponding operating system through multiple tests.
However, at present, the wubang ubuntu operating system is manually installed, the existing tools are used for respectively performing compatibility and stability tests on different hardware, the testing process is complicated, and the tests are easy to omit.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a test method based on a server to be tested and a Wuban graph operating system, and aims to solve the problems that in the prior art, the Uubtu operating system is manually installed, the existing tools are used for respectively performing compatibility and stability tests on different hardware, the test process is complicated, and the tests are easy to omit.
The technical scheme provided by the invention is as follows: a test method based on a server to be tested and a Wuban diagram operating system comprises the following steps:
selecting an MAAS server, and building a test environment for testing the stability and compatibility between the server to be tested and the Wuban image operating system, wherein a Dynamic Host Configuration Protocol (DHCP) and a PXE server are configured on the MAAS server;
after the test environment is built, controlling the MAAS server to acquire hardware configuration information of the server to be tested;
after the hardware configuration information of the machine to be tested is acquired, controlling to restart the server to be tested, and deploying a Wuban image operating system and a test tool in the server to be tested;
automatically generating a plurality of test cases containing all the test cases for testing the stability and compatibility between the server to be tested and the Wuban diagram operating system according to the acquired hardware configuration information of the server to be tested and the deployed test tools;
and controlling the starting command of the server to be tested, executing a plurality of test cases, and generating a stability and compatibility test result.
As an improved scheme, the step of selecting an MAAS server and building a test environment for testing the stability and compatibility between the server to be tested and the Wuban diagram operating system specifically includes the following steps:
selecting and matching a MAAS server;
and after the configuration of the dynamic host configuration protocol DHCP and the PXE server is completed, controlling to deploy software environment information required by compatibility and stability tests in the MAAS server.
As an improved scheme, after the configuration of the dynamic host configuration protocol DHCP and PXE servers is completed, the step of controlling software environment information required for deploying compatibility and stability tests in the MAAS server further includes the following steps:
and establishing a local area network between the server to be tested and the MAAS server.
As an improvement, the method comprises the following steps:
and displaying the test result, wherein the test result comprises test fault items and test process record contents.
Another objective of the present invention is to provide a test system based on a server to be tested and a Wuban diagram operating system, where the system includes:
the system comprises a test environment building module, a Dynamic Host Configuration Protocol (DHCP) server and a peripheral component interconnect (PXE) server, wherein the test environment building module is used for selecting and matching an MAAS server and building a test environment for testing the stability and the compatibility between the server to be tested and a Wuban image operating system, and the MAAS server is provided with the DHCP server and the PXE server;
the hardware configuration information acquisition module is used for controlling the MAAS server to acquire the hardware configuration information of the server to be tested after the test environment is built;
the to-be-tested server restarting module is used for controlling to restart the to-be-tested server after the hardware configuration information of the to-be-tested machine is acquired;
the first deployment module is used for deploying the Wuban image operating system and the test tool on the server to be tested;
the test case generation module is used for automatically generating a plurality of test cases comprising all the test cases for testing the stability and the compatibility between the server to be tested and the Wuban diagram operating system according to the acquired hardware configuration information of the server to be tested and the deployed test tools;
and the test module is used for controlling the starting command of the server to be tested, executing a plurality of test cases and generating a stability and compatibility test result.
As an improved scheme, the test environment building module specifically includes:
the server configuration module is used for selecting and configuring a MAAS server;
and the second deployment module is used for controlling the deployment of software environment information required by compatibility and stability tests in the MAAS server after the configuration of the dynamic host configuration protocol DHCP and the PXE server is completed.
As an improved solution, the test environment building module further includes:
and the local area network establishing module is used for establishing a local area network between the server to be tested and the MAAS server.
As an improvement, the system comprises:
and the test result display module is used for displaying the test result, and the test result comprises test fault items and test process record contents.
In the embodiment of the invention, after the test environment is built, the MAAS server is controlled to acquire the hardware configuration information of the server to be tested; controlling and restarting a server to be tested, and deploying a Wuban diagram operating system and a test tool in the server to be tested; automatically generating a plurality of test cases which comprise all the test cases used for testing the stability and compatibility between the server to be tested and the Wuban diagram operating system; the method has the advantages that the starting command of the server to be tested is controlled, a plurality of test cases are executed, and the stability and compatibility test results are generated, so that the compatibility and stability of the server to be tested and the Wuban diagram operating system are quickly and accurately evaluated, the probability of missed test and wrong test is reduced, the work of human intervention is reduced, and the work efficiency is improved.
Drawings
In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale.
FIG. 1 is a flow chart of an implementation of a testing method based on a server to be tested and an Wuban diagram operating system according to the present invention;
FIG. 2 is a flow chart of an implementation of a testing environment for selecting an MAAS server and setting up a stability and compatibility test between the server to be tested and an Wuban diagram operating system according to the present invention;
FIG. 3 is a block diagram of a test system based on a server to be tested and an Uban diagram operating system according to the present invention;
FIG. 4 is a block diagram of a test environment building block provided by the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are merely for illustrating the technical solutions of the present invention more clearly, and therefore are only examples, and the protection scope of the present invention is not limited thereby.
Fig. 1 is a flowchart of an implementation of the testing method based on the server to be tested and the Wuban diagram operating system provided in the present invention, which specifically includes the following steps:
in step S101, after the test environment is built, controlling the MAAS server to obtain hardware configuration information of the server to be tested;
in this step, a bare computer As a Service (MAAS), i.e., a physical server, performs self-Service and remote installation of an operating system, and changes the data center into a bare computer cloud scheme.
In step S102, after acquiring the hardware configuration information of the to-be-tested machine, controlling to restart the to-be-tested server, and deploying a black-and-white-over-black-and-ban-chart operating system and a test tool in the to-be-tested server;
in this step, the Ubuntu operating system of Wuban is an open-source GNU/Linux operating system mainly based on desktop applications, and the Ubuntu is based on Debian GNU/Linux and supports x86, amd64 (i.e. x64), ARM and ppc architectures.
In step S103, automatically generating a plurality of test cases including all test cases for testing the stability and compatibility between the server to be tested and the Wuban diagram operating system according to the acquired hardware configuration information of the server to be tested and the deployed test tools;
in step S104, the server under test is controlled to start the command, execute a plurality of test cases, and generate a stability and compatibility test result.
In this embodiment, after the test environment is built, the step of controlling the MAAS server to obtain the hardware configuration information of the server to be tested further includes the following steps:
and selecting an MAAS server, and establishing a test environment for testing the stability and compatibility between the server to be tested and the Wuban graph operating system.
As shown in fig. 2, the step of selecting an MAAS server and building a test environment for testing the stability and compatibility between the server to be tested and the Wuban diagram operating system specifically includes the following steps:
in step S201, a MAAS server is selected and a dynamic host configuration protocol DHCP and a PXE server are configured in the MAAS server;
the Dynamic Host Configuration Protocol (DHCP) is a network Protocol of a local area network, works using a UDP Protocol, and mainly has two purposes: for intranet or network service providers to automatically assign IP addresses; the method is used for an intranet administrator as a means for performing central management on all computers for a user;
a preboot execution environment (PXE) server is a latest technology developed by Intel corporation, works in a network mode of a client/server, supports a workstation to download images from a remote server through a network, and thus supports starting an operating system through the network, during the starting process, a terminal requires the server to allocate an IP address, and then downloads a starting software package into a local memory for execution by using a tftp (virtual file transfer protocol) protocol, and the starting software package completes the setting of basic software of the terminal (client), thereby guiding the terminal operating system pre-installed in the server.
In step S202, after the configuration of the dynamic host configuration protocol DHCP and the PXE server is completed, controlling to deploy software environment information required for compatibility and stability tests in the MAAS server;
in step S203, a local area network is established between the server to be tested and the MAAS server, wherein all network ports and BMC ports of the server to be tested and the MAAS server are connected through a switch, so that they can communicate with each other in the same local area network.
Fig. 3 is a block diagram illustrating a structure of a test system based on a server to be tested and an Wuban diagram operating system provided in the present invention, where, for convenience of explanation, only the parts related to the embodiment of the present invention are shown in the figure.
The test system based on the server to be tested and the Wuban diagram operating system comprises:
the hardware configuration information acquisition module 11 is used for controlling the MAAS server to acquire the hardware configuration information of the server to be tested after the test environment is built;
the to-be-tested server restarting module 12 is used for controlling to restart the to-be-tested server after the hardware configuration information of the to-be-tested machine is acquired;
a first deployment module 13, configured to deploy an Wuban diagram operating system and a test tool on the server to be tested;
the test case generation module 14 is configured to automatically generate a plurality of test cases including all test cases for testing stability and compatibility between the server to be tested and the Wuban diagram operating system according to the acquired hardware configuration information of the server to be tested and the deployed test tools;
and the test module 15 is used for controlling the starting command of the server to be tested, executing a plurality of test cases and generating a stability and compatibility test result.
In this embodiment, the test system based on the server to be tested and the Wuban diagram operating system further includes:
the test environment building module 16 is used for selecting and matching an MAAS server and building a test environment for testing the stability and compatibility between the server to be tested and the Wuban image operating system;
as shown in fig. 4, the test environment building module 16 specifically includes:
the server configuration module 17 is used for selecting an MAAS server and configuring a dynamic host configuration protocol DHCP and a PXE server in the MAAS server;
a second deployment module 18, configured to control, after the configuration of the dynamic host configuration protocol DHCP and the PXE server is completed, to deploy, in the MAAS server, software environment information required for compatibility and stability tests;
and the local area network establishing module 19 is configured to establish a local area network between the server to be tested and the MAAS server.
In an embodiment of the invention, the system comprises:
and the test result display module 20 is configured to display the test result, where the test result includes test failure items and test process record contents.
The functions of the modules are described in the above embodiments, and are not described herein again.
In the embodiment of the invention, after the test environment is built, the MAAS server is controlled to acquire the hardware configuration information of the server to be tested; controlling and restarting a server to be tested, and deploying a Wuban diagram operating system and a test tool in the server to be tested; automatically generating a plurality of test cases which comprise all the test cases used for testing the stability and compatibility between the server to be tested and the Wuban diagram operating system; the method has the advantages that the starting command of the server to be tested is controlled, a plurality of test cases are executed, and the stability and compatibility test results are generated, so that the compatibility and stability of the server to be tested and the Wuban diagram operating system are quickly and accurately evaluated, the probability of missed test and wrong test is reduced, the work of human intervention is reduced, and the work efficiency is improved.
The above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (8)

1. A test method based on a server to be tested and a Wuban diagram operating system is characterized by comprising the following steps:
selecting an MAAS server, and building a test environment for testing the stability and compatibility between the server to be tested and the Wuban image operating system, wherein a Dynamic Host Configuration Protocol (DHCP) and a PXE server are configured on the MAAS server;
after the test environment is built, controlling the MAAS server to acquire hardware configuration information of the server to be tested;
after the hardware configuration information of the machine to be tested is acquired, controlling to restart the server to be tested, and deploying a Wuban image operating system and a test tool in the server to be tested;
automatically generating a plurality of test cases containing all the test cases for testing the stability and compatibility between the server to be tested and the Wuban diagram operating system according to the acquired hardware configuration information of the server to be tested and the deployed test tools;
and controlling the starting command of the server to be tested, executing a plurality of test cases, and generating a stability and compatibility test result.
2. The testing method based on the server to be tested and the Wuban diagram operating system according to claim 1, wherein the step of selecting an MAAS server and building a testing environment for testing the stability and compatibility between the server to be tested and the Wuban diagram operating system specifically comprises the following steps:
selecting and matching a MAAS server;
and after the configuration of the dynamic host configuration protocol DHCP and the PXE server is completed, controlling to deploy software environment information required by compatibility and stability tests in the MAAS server.
3. The test method based on the server to be tested and the Wuban diagram operating system according to claim 2, wherein after the configuration of the dynamic host configuration protocol DHCP and PXE server is completed, the step of controlling the software environment information required for the compatibility and stability test deployed in the MAAS server further comprises the following steps:
and establishing a local area network between the server to be tested and the MAAS server.
4. The method for testing based on the server to be tested and the Uban diagram operating system according to claim 1, wherein the method comprises the following steps:
and displaying the test result, wherein the test result comprises test fault items and test process record contents.
5. A test system based on a server to be tested and a Wuban diagram operating system is characterized in that the system comprises:
the system comprises a test environment building module, a Dynamic Host Configuration Protocol (DHCP) server and a peripheral component interconnect (PXE) server, wherein the test environment building module is used for selecting and matching an MAAS server and building a test environment for testing the stability and the compatibility between the server to be tested and a Wuban image operating system, and the MAAS server is provided with the DHCP server and the PXE server;
the hardware configuration information acquisition module is used for controlling the MAAS server to acquire the hardware configuration information of the server to be tested after the test environment is built;
the to-be-tested server restarting module is used for controlling to restart the to-be-tested server after the hardware configuration information of the to-be-tested machine is acquired;
the first deployment module is used for deploying the Wuban image operating system and the test tool on the server to be tested;
the test case generation module is used for automatically generating a plurality of test cases comprising all the test cases for testing the stability and the compatibility between the server to be tested and the Wuban diagram operating system according to the acquired hardware configuration information of the server to be tested and the deployed test tools;
and the test module is used for controlling the starting command of the server to be tested, executing a plurality of test cases and generating a stability and compatibility test result.
6. The test system based on the server to be tested and the Uban diagram operating system according to claim 5, wherein the test environment establishing module specifically comprises:
the server configuration module is used for selecting and configuring a MAAS server;
and the second deployment module is used for controlling the deployment of software environment information required by compatibility and stability tests in the MAAS server after the configuration of the dynamic host configuration protocol DHCP and the PXE server is completed.
7. The test system based on the server to be tested and the Wuban diagram operating system according to claim 6, wherein the test environment building module further comprises:
and the local area network establishing module is used for establishing a local area network between the server to be tested and the MAAS server.
8. The system of claim 5, wherein the system comprises:
and the test result display module is used for displaying the test result, and the test result comprises test fault items and test process record contents.
CN202010129383.8A 2020-02-28 2020-02-28 Test method and system based on server to be tested and Wuban diagram operating system Active CN111367735B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010129383.8A CN111367735B (en) 2020-02-28 2020-02-28 Test method and system based on server to be tested and Wuban diagram operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010129383.8A CN111367735B (en) 2020-02-28 2020-02-28 Test method and system based on server to be tested and Wuban diagram operating system

Publications (2)

Publication Number Publication Date
CN111367735A true CN111367735A (en) 2020-07-03
CN111367735B CN111367735B (en) 2022-07-08

Family

ID=71207057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010129383.8A Active CN111367735B (en) 2020-02-28 2020-02-28 Test method and system based on server to be tested and Wuban diagram operating system

Country Status (1)

Country Link
CN (1) CN111367735B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256505A (en) * 2020-10-16 2021-01-22 浪潮电子信息产业股份有限公司 Server stability testing method and device and related components
WO2022151853A1 (en) * 2021-01-15 2022-07-21 苏州浪潮智能科技有限公司 Method for switching operating system to execute test task, system and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110750396A (en) * 2019-08-30 2020-02-04 苏州浪潮智能科技有限公司 Server operating system compatibility testing method and device and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110750396A (en) * 2019-08-30 2020-02-04 苏州浪潮智能科技有限公司 Server operating system compatibility testing method and device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256505A (en) * 2020-10-16 2021-01-22 浪潮电子信息产业股份有限公司 Server stability testing method and device and related components
WO2022151853A1 (en) * 2021-01-15 2022-07-21 苏州浪潮智能科技有限公司 Method for switching operating system to execute test task, system and medium

Also Published As

Publication number Publication date
CN111367735B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN107229492A (en) Installation method, device, system, storage medium and the equipment of server system
CN110502244A (en) Dispose the method and device of Kubernetes cluster
US10630637B2 (en) Method for ascertaining an IP address and a MAC address of a unit under test mounted in a rack server
CN104461611A (en) Method for refreshing node BIOS (basic input/output system) of RACK (RACK operating system) in batches
CN110879712A (en) Cloud data center physical host installation method and related device
CN101546270A (en) Automatic installation method for Linux operation system, device and system
CN111367735B (en) Test method and system based on server to be tested and Wuban diagram operating system
US11513786B2 (en) Method and system for server firmware update framework
CN110764788B (en) Cloud storage deployment method and device, computer equipment and readable storage medium
CN109474443B (en) Configuration method, device and system of newly added server and communication equipment
CN113886153B (en) Network card pressure testing method and device based on container
CN103516817A (en) Server positioning method and system
CN106897223A (en) A kind of software kit delivery method and device based on continuous integrating
CN104778105A (en) Method for rapidly testing compatibility of server and RHEL (red hat enterprise software language) based on virtual machine
CN108900656A (en) A kind of method and device of batch deployment
US11860776B2 (en) Concurrent memory recycling for collection of servers
CN107766055A (en) A kind of client linux system installation method based on GUI module
US20160203035A1 (en) Analyzing OpenManage Integration for Troubleshooting Log to Determine Root Cause
CN112256289A (en) Automatic deployment method, device and equipment
CN113849228A (en) Operating system batch deployment method, system, terminal and storage medium
CN117596197A (en) Server testing method, device, equipment and machine-readable storage medium
CN111277463B (en) Method, system, terminal and storage medium for testing accuracy of gateway address acquisition by BMC
CN106506276A (en) A kind of information detecting method for server
TW201328246A (en) Method and system for managing cloud server system
CN112468334B (en) Server configuration method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant