CN117724921A - Server testing method, system, device, equipment and storage medium - Google Patents

Server testing method, system, device, equipment and storage medium Download PDF

Info

Publication number
CN117724921A
CN117724921A CN202311605382.6A CN202311605382A CN117724921A CN 117724921 A CN117724921 A CN 117724921A CN 202311605382 A CN202311605382 A CN 202311605382A CN 117724921 A CN117724921 A CN 117724921A
Authority
CN
China
Prior art keywords
tested
server
script
test
network card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311605382.6A
Other languages
Chinese (zh)
Inventor
柴小明
冯其涛
范梦瑶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain 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 Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202311605382.6A priority Critical patent/CN117724921A/en
Publication of CN117724921A publication Critical patent/CN117724921A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a server testing method, a system, a device, equipment and a storage medium, wherein the method comprises the following steps: responding to triggering operation of the cloud server, controlling the intelligent network card to run an automatic control script, wherein the intelligent network card is deployed at a slot supporting S5 power supply in the server to be tested; after executing a plurality of test cases through an automatic control script, sending a target operation command to a server to be tested; controlling a server to be tested to run a script to be tested through a target running command; acquiring test running results and logs of an automatic control script and a script to be tested; according to the embodiment of the invention, the running stability of the test platform is improved by executing the related script of the automatic test in the intelligent network card, and the normal and stable running of the test task is ensured.

Description

Server testing method, system, device, equipment and storage medium
Technical Field
The present invention relates to the field of server technologies, and in particular, to a method, a system, an apparatus, a device, and a storage medium for testing a server.
Background
With the rise of high and new technologies such as AI (Artificial Intelligence ) and cloud computing, the demand of the market for servers is greatly increased, and enterprises are increasingly paying attention to the research, development, test and production of the servers. The current server test is taken as an indispensable ring in the server research and development process, plays a vital role in ensuring the quality of the server, and is the most rapidly developed and most practical automatic test. The automatic test technology can cover various hardware components such as a processor, a memory, a storage device, a network interface and the like, and can comprehensively test the hardware of the server through automatic test to determine the functions and the performances of the hardware, so that the efficiency and the accuracy of the test are improved, and the development of the automatic test technology is particularly important to the development of server manufacturers.
In the existing automatic test technology in terms of server hardware, as part of test items relate to out-of-band execution or a remote server is required to wake up and interact with a machine to be tested, and in addition, in a development stage, the stability of the server is not very good, downtime and other problems easily occur, the machine to be tested is mostly remotely controlled and monitored by running automatic scripts on a cloud server or a remote control machine, and execution and test log collection of automatic test are realized by continuous data interaction.
However, the above solution still has a certain disadvantage, because the cloud server or the remote control machine is connected with a large number of machines to be tested, if network fluctuation or faults of the cloud server or the remote control machine are encountered, a large number of automation tasks are easily affected, so that the test efficiency is reduced, the delay of the test plan is caused, and a large risk is brought to the test work.
Disclosure of Invention
The embodiment of the invention aims to provide a server testing method, a system, a device, equipment and a storage medium, which solve the problems that a cloud server or a remote control machine is connected with a large number of machines to be tested, if network fluctuation or a fault of the cloud server or the remote control machine is encountered, a large number of automatic tasks are easily affected, thereby reducing testing efficiency, delaying a testing plan and bringing greater risks to testing work, and the specific technical scheme is as follows:
in a first aspect of the present invention, there is provided a server testing method, wherein the method includes:
responding to triggering operation of a cloud server, controlling an intelligent network card to run an automatic control script, wherein the intelligent network card is deployed at a slot supporting S5 power supply in a server to be tested;
After executing a plurality of test cases through the automatic control script, sending a target operation command to the server to be tested;
controlling the server to be tested to run a script to be tested through the target running command;
acquiring test running results and logs of the automatic control script and the script to be tested;
and sending the test operation result and the log to the cloud server for archiving and platform display.
Optionally, before the responding to the triggering operation of the cloud server and controlling the intelligent network card to run the automation control script, the method further includes:
under the condition that the hardware of the server to be tested is determined to be ready, carrying out system filling on the server to be tested through an intelligent network card;
acquiring an automatic control script from a cloud server, and analyzing the script and the script to be tested as a result;
deploying the automation control script, the result analysis script and the script to be tested to the intelligent network card;
and deploying the script to be tested to the server to be tested through the intelligent network card.
Optionally, after the system filling is performed on the server to be tested through the intelligent network card, the method further includes:
Acquiring configuration information of the server to be tested;
screening an automatic control script for testing, a result analysis script and a script to be tested according to the configuration information, wherein the automatic control script is used for executing test cases to be tested, the script to be tested is used for executing a case testing tool, and the result analysis script is used for analyzing an execution result.
Optionally, after the obtaining the test running results and logs of the automation control script and the script to be tested, the method further includes:
analyzing the test operation result and the log through a result analysis script;
if the analysis result meets the preset standard, the test operation result and the log are sent to the cloud server for archiving and platform display;
and if the analysis result is determined to be not in accordance with the preset standard, executing the automatic control script again through the result analysis script.
Optionally, before the responding to the triggering operation of the cloud server and controlling the intelligent network card to run the automation control script, the method further includes:
obtaining information of uninstalled slots in a server to be tested;
when the first slot supporting S5 power supply exists in the uninstalled slot information, deploying the intelligent network card in the first slot supporting S5 power supply;
Acquiring a first data interaction state of the intelligent network card at a first slot supporting S5 power supply and the server to be tested;
under the condition that the first data interaction state is detected to be abnormal, determining a second slot supporting S5 power supply according to the uninstalled slot information;
disposing the intelligent network card at the second slot supporting S5 power supply;
acquiring a second data interaction state of the intelligent network card at a second slot supporting S5 power supply and the server to be tested;
and under the condition that the second data interaction state is detected to be normal, establishing connection between the intelligent network card and the cloud server through a target network port, wherein the intelligent network card and the cloud server perform data transmission through the target network port.
Optionally, after the obtaining the test running results and logs of the automation control script and the script to be tested, the method further includes:
acquiring target field information from the test operation result and the log;
under the condition that the test fails through the target field information, sending an exception handling prompt to a display interface of a cloud server;
and under the condition that the test is successful through the target field information, sending the test running result and the log to the cloud server for archiving and platform display.
In a second aspect of the present invention, there is also provided a server testing system, wherein the system includes: the intelligent network card is deployed in a slot supporting S5 power supply in the server to be tested, and is connected with the cloud server through a target network port;
the server to be tested is used for running the script to be tested by receiving a target running command of the intelligent network card, and sending a test running result and a log of the script to be tested to the intelligent network card;
the cloud server is used for triggering the intelligent network card to run an automatic control script and receiving test running results and logs of the automatic control script and the script to be tested, which are sent by the intelligent network card;
the intelligent network card is used for responding to the triggering operation of the cloud server and running an automatic control script, and is deployed in a slot supporting S5 power supply in the server to be tested; after executing a plurality of test cases through the automatic control script, sending a target operation command to the server to be tested; controlling the server to be tested to run a script to be tested through the target running command; acquiring test running results and logs of the automatic control script and the script to be tested; and sending the test operation result and the log to the cloud server for archiving and platform display.
In a third aspect of the present invention, there is also provided a server testing apparatus, including:
the first control module is used for responding to the triggering operation of the cloud server and controlling the intelligent network card to run an automatic control script, and the intelligent network card is deployed at a slot supporting S5 power supply in the server to be tested;
the first sending module is used for sending a target operation command to the server to be tested after executing a plurality of test cases through the automatic control script;
the second control module is used for controlling the server to be tested to run the script to be tested through the target running command;
the first acquisition module is used for acquiring test running results and logs of the automatic control script and the script to be tested;
and the second sending module is used for sending the test running result and the log to the cloud server for archiving and platform display.
In a fourth aspect of the present invention, there is also provided a communication device comprising: a transceiver, a memory, a processor, and a program stored on the memory and executable on the processor;
the processor is configured to read the program in the memory to implement the server testing method described in any one of the above.
In a fifth aspect of the present invention, there is also provided a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform any of the above-described server testing methods.
According to the server testing method provided by the embodiment of the invention, the intelligent network card is controlled to run the automatic control script in response to the triggering operation of the cloud server, the intelligent network card is deployed in the slot supporting S5 power supply in the server to be tested, and the intelligent network card end can normally run when the server to be tested is shut down by setting the S5 power supply function of the intelligent network card, so that the server to be tested is continuously monitored or awakened; after executing a plurality of test cases through an automatic control script, sending a target operation command to a server to be tested; controlling a server to be tested to run a script to be tested through a target running command; acquiring test running results and logs of an automatic control script and a script to be tested; the method comprises the steps of sending test operation results and logs to a cloud server for archiving and platform display, deploying an automation control script on an intelligent network card, deploying the script to be tested on the server to be tested, and accordingly enabling the automation test script to be transferred to local execution and achieving out-of-band command purposes, further avoiding network fluctuation or faults of the cloud server or a remote control machine, leading to a large number of affected automation tasks, further leading to reduction of test efficiency, leading to delay of a test plan and bringing greater risks to test work, and further enabling pressure of the cloud server to be greatly reduced, improving operation stability of the test platform and guaranteeing normal and stable performance of the test tasks due to the fact that most script execution, process recording and result collection are transferred to the intelligent network card end. Meanwhile, the intelligent network card is also used as a storage redundancy in a short time to ensure the safety of test data, and the embodiment of the invention improves the running stability of the test platform by executing the related script of the automatic test in the intelligent network card and ensures that the test task can be normally and stably carried out.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a schematic diagram of a conventional server testing system according to an embodiment of the present invention;
fig. 2 is a network topology diagram of a server test system according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps of a server testing method according to an embodiment of the present invention;
FIG. 4 is a second flowchart illustrating steps of a server testing method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server testing device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a communication device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the following detailed description of the embodiments of the present invention will be given with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present invention, numerous technical details have been set forth in order to provide a better understanding of the present application. However, the technical solutions claimed in the present application can be implemented without these technical details and with various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not be construed as limiting the specific implementation of the present invention, and the embodiments can be mutually combined and referred to without contradiction.
At present, automatic testing of server hardware aspect is carried out, because part of test items relate to out-of-band execution or require remote servers to wake up interaction for servers to be tested, so that remote control and monitoring are carried out on the servers to be tested mostly through running automatic scripts on cloud servers or remote control machines, wherein a plurality of servers to be tested are connected when the cloud servers or the remote control machines carry out automatic testing, therefore, if the cloud servers or the remote control machines fail, or a connected network fluctuates, the automatic testing of all connected servers to be tested is interrupted or influenced, thereby causing the reduction of test efficiency, causing the delay of test plans and bringing greater risks to test work, based on the invention, the embodiment provides a server test system, as shown in figure 1, comprising the servers to be tested, the cloud servers and intelligent network cards, wherein the intelligent network cards are deployed in the slots supporting S5 power supply in the servers to be tested, and the intelligent network cards are connected with the cloud servers through target network interfaces; the server to be tested is used for running the script to be tested by receiving the target running command of the intelligent network card, and sending the test running result and the log of the script to be tested to the intelligent network card; the cloud server is used for triggering the intelligent network card to run the automatic control script and receiving the test running result and log of the automatic control script and the script to be tested, which are sent by the intelligent network card; the intelligent network card is used for responding to the triggering operation of the cloud server, running an automatic control script, and being deployed in a slot supporting S5 power supply in the server to be tested; after executing a plurality of test cases through an automatic control script, sending a target operation command to a server to be tested; controlling a server to be tested to run a script to be tested through a target running command; acquiring test running results and logs of an automatic control script and a script to be tested; and sending the test running result and the log to a cloud server for archiving and platform display.
It should be noted that, the whole automation platform is deployed on a cloud server, i.e. a tester executes an automation test through the operation of the cloud server and displays the obtained result, the cloud server further includes a case test tool, a result analysis script, a server driver and a FW file, then related files of the automation test are deployed on an intelligent network card, including the automation control script, the case test tool and the script to be tested, then the intelligent network card performs system filling on the server to be tested, and disposes a case script tool related to hard disk compatibility on the server to be tested, then the intelligent network card performs out-of-band and wake-up command execution on the server to be tested, and monitors the test process.
In addition, when the intelligent network card performs data interaction with the server to be tested and the cloud server, two chips including an FPGA and an SOC which participate in server testing in the intelligent network card, as shown in FIG. 2, the FPGA chip performs data interaction and network communication with the server to be tested and the cloud server (a data interaction channel is established between the FPGA chip and the cloud server through a communication and management network port and a data interaction channel is established between the FPGA chip and the cloud server through a host physical interface), the SOC chip is a central processor and a data storage part of the intelligent network card, and scripts and data of automatic testing are stored at the SOC end of the intelligent network card.
The server testing method, system, device, equipment and storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings by specific embodiments and application scenarios thereof, and referring to fig. 3, one of the step flowcharts of the server testing method provided in the embodiments of the present invention is shown, where the method may include:
and step 101, responding to the triggering operation of the cloud server, and controlling the intelligent network card to run an automatic control script.
In the embodiment of the invention, the triggering operation of the cloud server is performed on the display platform of the cloud server by a worker, the worker triggers the automatic test through operations such as selection, dragging and the like, and then the cloud server sends the signal to the intelligent network card to control the intelligent network card to run an automatic control script, wherein in order to enable the server to be tested to be provided with a micro server with an operating system and a storage network function, the automatic control script and the automatic execution script are transferred to the server to be tested as far as possible, the intelligent network card is provided with an independent computing unit and can complete the operation of specific infrastructure functions, and meanwhile, the intelligent network card is also provided with a storage function, so that the intelligent network card is deployed in a slot position supporting S5 power supply in the server to be tested, S5 power supply means that the server is in a power-off state and still supplies power to the intelligent network card, and the intelligent network card is enabled to run normally.
In order to correctly deploy the intelligent network card in the slot supporting the S5 power supply in the server to be tested, firstly, acquiring the situation of each slot in the server to be tested, selecting the slot which is in an idle state and supports the S5 power supply to install the intelligent network card, but detecting the slot to judge whether the slot can be normally used, if not, replacing the slot to another idle state and supporting the S5 power supply, and simultaneously, sending a fault prompt to prompt a worker to timely detect the slot, and if so, deploying the intelligent network card in the slot which is in the idle state and supports the S5 power supply, wherein the specific operation steps comprise:
obtaining information of uninstalled slots in a server to be tested;
when the first slot supporting S5 power supply exists in the uninstalled slot information, deploying the intelligent network card in the first slot supporting S5 power supply;
acquiring a first data interaction state of an intelligent network card in a first slot supporting S5 power supply and a server to be tested;
under the condition that the first data interaction state is abnormal, determining a second slot supporting S5 power supply according to the uninstalled slot information;
disposing the intelligent network card at a second slot for supporting S5 power supply;
Acquiring a second data interaction state of the intelligent network card at a second slot position supporting S5 power supply and a server to be tested;
and under the condition that the second data interaction state is detected to be normal, establishing connection between the intelligent network card and the cloud server through the target network port, wherein the intelligent network card and the cloud server perform data transmission through the target network port.
The first slot and the second slot both belong to slots on the PCIE slot, and the first slot and the second slot are slots not installed in the server to be tested and do not belong to the same slot. By arranging the intelligent network card at the slot of the server to be tested, which supports S5 power supply, communication with the outside and communication with a server substrate management controller (used for out-of-band testing) can be still maintained in the shutdown state of the server, one control of the server in various scenes is realized, and the stable performance of automatic testing is ensured.
It should be noted that, after the intelligent network card is deployed in the slot supporting S5 power supply in the server to be tested, hardware preparation is further required for the server to be tested, that is, hardware installation is performed for the server to be tested, where the hardware includes: the configuration of the central processing unit, the memory, the hard disk and the like, which are needed by different servers, is different, whether hardware preparation of the server to be tested is completed or not can be determined by comparing a pre-designed bill of materials, and a system for operating the server to be tested is also needed to be configured after the hardware preparation of the server to be tested is determined to be completed, so that the server to be tested is subjected to system filling through the intelligent network card, relevant scripts for automatic test are obtained from the cloud server after the server to be tested is subjected to basic configuration, the relevant scripts comprise automatic control scripts, the result analysis scripts and the scripts to be tested are sent to the intelligent network card, and then the scripts to be tested are deployed to the server to be tested through the intelligent network card, and the specific configuration process comprises the following steps:
Under the condition that the hardware preparation of the server to be tested is determined to be finished, the server to be tested is subjected to system filling through the intelligent network card;
acquiring an automatic control script from a cloud server, and analyzing the script and the script to be tested as a result;
deploying the automatic control script, the result analysis script and the script to be tested to the intelligent network card;
and deploying the script to be tested to the server to be tested through the intelligent network card.
Besides, after the hardware of the server to be tested is ready, the cloud server can select proper scripts from the cloud server to package through the actual configuration situation of the server to be tested, and different scripts to be packaged are different in different configurations, so that the test of the server to be tested is realized, occupation of memories in the intelligent network card and the server to be tested caused by unnecessary scripts to be packaged can be avoided, and based on the judgment, different test case tools can be set to package, and the method specifically comprises the following steps:
acquiring configuration information of a server to be tested;
screening an automatic control script for testing, a result analysis script and a script to be tested according to the configuration information, wherein the automatic control script is used for executing test cases to be tested, the script to be tested is used for executing a case testing tool, and the result analysis script is used for analyzing the execution result.
The result analysis script analyzes the test operation result and the log, for example, analyzes the performance of the test, if the test operation result and the log are not considered to be in accordance with a preset standard after analysis, the test is performed again, if the test operation result and the log are in accordance with the preset standard, the test operation result and the log are sent to the cloud server for archiving and platform display, and the method specifically comprises the following steps:
analyzing the test operation result and the log through a result analysis script;
if the analysis result meets the preset standard, the test operation result and the log are sent to a cloud server for archiving and platform display;
and if the analysis result is determined to be not in accordance with the preset standard, executing the automatic control script again through the result analysis script.
And step 102, after executing a plurality of test cases through the automatic control script, sending a target operation command to the server to be tested.
In the embodiment of the invention, a plurality of test cases are sequentially executed through the automatic control script, and each test case is executed, a target operation command is transmitted to the server to be tested. The test case refers to the description of a test task for a specific product, and the test scheme, method, technology and strategy are embodied. The content of the method comprises a test target, a test environment, input data, a test step, an expected result, a test script and the like, and finally a document is formed. In a simple manner, the test case is a set of test input, execution conditions and expected results compiled for a specific target, and is used for verifying whether a specific requirement is met, so that the test case is executed to detect the hardware performance in the server to be tested, and whether the hardware performance can reach the standard is judged.
And step 103, controlling the server to be tested to run the script to be tested through the target running command.
After receiving the target operation command, the server to be tested controls the server to be tested to operate the script to be tested, and monitors the script operation process and records the test process.
And 104, acquiring test running results and logs of the automation control script and the script to be tested.
After the test is finished, the test results are collected and stored, and because scripts are deployed in the intelligent network card and the server to be tested and are executed in the server test, test running results and logs of the automatic control scripts and the scripts to be tested are obtained, and because the logs are generated in the running process and the test conditions are recorded in the logs, the logs are also obtained in the obtaining process. It should be noted that, the automatic control script is to control execution of the test case, the process of monitoring can be used to understand the test condition of each hardware in the server to be tested, the script to be tested is used to execute the case test tool, and the process of monitoring can be used to clear the call condition of the case test tool.
And 105, transmitting the test running result and the log to a cloud server for archiving and platform display.
After all test cases are tested, the server to be tested firstly sends the test operation result and the log obtained by the server to be tested to the intelligent network card, then the intelligent network card sends the test operation result and the log of the server to be tested and the test operation result and the log received from the server to be tested to the cloud server together, and the cloud server files and displays the test result on a platform, so that the cloud server participates only when the cloud server starts and ends in the whole test process, and the influence of the cloud server on automatic test is reduced.
According to the server testing method provided by the embodiment of the invention, the intelligent network card is controlled to run the automatic control script in response to the triggering operation of the cloud server, the intelligent network card is deployed in the slot supporting S5 power supply in the server to be tested, and the intelligent network card end can normally run when the server to be tested is shut down by setting the S5 power supply function of the intelligent network card, so that the server to be tested is continuously monitored or awakened; after executing a plurality of test cases through an automatic control script, sending a target operation command to a server to be tested; controlling a server to be tested to run a script to be tested through a target running command; acquiring test running results and logs of an automatic control script and a script to be tested; the method comprises the steps of sending test operation results and logs to a cloud server for archiving and platform display, deploying an automation control script on an intelligent network card, deploying the script to be tested on the server to be tested, and accordingly enabling the automation test script to be transferred to local execution and achieving out-of-band command purposes, further avoiding network fluctuation or faults of the cloud server or a remote control machine, leading to a large number of affected automation tasks, further leading to reduction of test efficiency, leading to delay of a test plan and bringing greater risks to test work, and further enabling pressure of the cloud server to be greatly reduced, improving operation stability of the test platform and guaranteeing normal and stable performance of the test tasks due to the fact that most script execution, process recording and result collection are transferred to the intelligent network card end. Meanwhile, the intelligent network card is also used as a storage redundancy in a short time to ensure the safety of test data, and the embodiment of the invention improves the running stability of the test platform by executing the related script of the automatic test in the intelligent network card and ensures that the test task can be normally and stably carried out.
Referring to fig. 4, a second step flowchart of a server testing method according to an embodiment of the present invention is shown, where the method may include:
and step 201, responding to the triggering operation of the cloud server, and controlling the intelligent network card to run an automatic control script.
Step 202, after executing a plurality of test cases through an automation control script, sending a target operation command to a server to be tested.
And 203, controlling the server to be tested to run the script to be tested through the target running command.
And 204, acquiring test running results and logs of the automation control script and the script to be tested.
The above steps 201-204 refer to the content of the previous steps 101-104, and the present invention is not repeated here.
Step 205, obtaining the target field information from the test running result and the log.
In the embodiment of the invention, abnormal conditions may exist in the testing process, such as suspension or ending when the testing is not completed, and the intelligent network card is required to upload the abnormal conditions to the cloud server at the moment, because the testing operation result and the log are also uploaded to the cloud server after the testing is successful, and in order to determine whether the testing operation result and the log are wrong or normal at the moment, the target field information is required to be acquired from the testing operation result and the log for analysis.
And 206, sending an exception handling prompt to a display interface of the cloud server under the condition that the test fails according to the target field information.
The target field information for determining the test failure in the embodiment of the invention may be "Error", "Wrong", "Fail", etc., and by this field information, an exception handling prompt is sent to the display interface of the cloud server to notify the test personnel to handle, where the exception handling prompt may be a text, for example, a "test exception", or may be a text with a color symbol plus an Error prompt.
And step 207, transmitting test running results and logs to a cloud server for archiving and platform display under the condition that the test is determined to be successful through the target field information.
In the embodiment of the invention, the target field information for determining the success of the test can be 'Pass', 'success', and the success of the test is determined through the field information, and at the moment, the intelligent network card sends the test operation result and the log to the cloud server for archiving and platform display.
By analyzing the test operation result and the log, a tester can find the problem as soon as possible, and larger loss is avoided.
Referring to fig. 5, a schematic structural diagram of a server testing device according to an embodiment of the present invention is shown, where, as shown in fig. 5, the device may include:
the first control module 301 is configured to control the intelligent network card to run an automation control script in response to a triggering operation of the cloud server, where the intelligent network card is deployed in a slot supporting S5 power supply in the server to be tested.
The first sending module 302 is configured to send a target operation command to a server to be tested after executing a plurality of test cases through an automation control script.
And the second control module 303 is used for controlling the server to be tested to run the script to be tested through the target running command.
The first obtaining module 304 is configured to obtain test running results and logs of the automation control script and the script to be tested.
And the second sending module 305 is used for sending the test running result and the log to the cloud server for archiving and platform displaying.
Optionally, the server testing device further includes:
and the system filling module is used for carrying out system filling on the server to be tested through the intelligent network card under the condition that the hardware of the server to be tested is determined to be ready.
The second acquisition module is used for acquiring an automatic control script, a result analysis script and a script to be tested from the cloud server.
The first deployment module is used for deploying the automatic control script, the result analysis script and the script to be tested to the intelligent network card.
The second deployment module is used for deploying the script to be tested to the server to be tested through the intelligent network card.
And the third acquisition module is used for acquiring the configuration information of the server to be tested.
The screening module is used for screening an automatic control script for testing, a result analysis script and a script to be tested according to the configuration information, wherein the automatic control script is used for executing test cases to be tested, the script to be tested is used for executing a test tool of the test cases, and the result analysis script is used for analyzing the execution result.
And the analysis module is used for analyzing the test running result and the log through the result analysis script.
And the third sending module is used for sending the test running result and the log to the cloud server for archiving and platform display if the analysis result meets the preset standard.
And the execution module is used for executing the automatic control script again through the result analysis script if the analysis result is determined not to meet the preset standard.
And the fourth acquisition module is used for acquiring the information of the uninstalled slot position in the server to be tested.
And the third deployment module is used for deploying the intelligent network card in the first slot supporting the S5 power supply when the first slot supporting the S5 power supply exists in the uninstalled slot information.
And the fifth acquisition module is used for acquiring a first data interaction state of the intelligent network card at the first slot position supporting S5 power supply and the server to be tested.
And the first determining module is used for determining a second slot supporting S5 power supply according to the uninstalled slot information under the condition that the first data interaction state is detected to be abnormal.
And the fourth deployment module is used for deploying the intelligent network card at the second slot position supporting S5 power supply.
And the sixth acquisition module is used for acquiring a second data interaction state of the intelligent network card in the second slot position supporting S5 power supply and the server to be tested.
And the connection establishment module is used for establishing connection between the intelligent network card and the cloud server through the target network port under the condition that the second data interaction state is detected to be normal, wherein the intelligent network card and the cloud server perform data transmission through the target network port.
And a seventh acquisition module, configured to acquire target field information from the test running result and the log.
And the fourth sending module is used for sending an exception handling prompt to a display interface of the cloud server under the condition that the test fails according to the target field information.
And the fifth sending module is used for sending the test running result and the log to the cloud server for archiving and platform display under the condition that the test is determined to be successful through the target field information.
According to the server testing method provided by the embodiment of the invention, the intelligent network card is controlled to run the automatic control script in response to the triggering operation of the cloud server, the intelligent network card is deployed in the slot supporting S5 power supply in the server to be tested, and the intelligent network card end can normally run when the server to be tested is shut down by setting the S5 power supply function of the intelligent network card, so that the server to be tested is continuously monitored or awakened; after executing a plurality of test cases through an automatic control script, sending a target operation command to a server to be tested; controlling a server to be tested to run a script to be tested through a target running command; acquiring test running results and logs of an automatic control script and a script to be tested; the method comprises the steps of sending test operation results and logs to a cloud server for archiving and platform display, deploying an automation control script on an intelligent network card, deploying the script to be tested on the server to be tested, and accordingly enabling the automation test script to be transferred to local execution and achieving out-of-band command purposes, further avoiding network fluctuation or faults of the cloud server or a remote control machine, leading to a large number of affected automation tasks, further leading to reduction of test efficiency, leading to delay of a test plan and bringing greater risks to test work, and further enabling pressure of the cloud server to be greatly reduced, improving operation stability of the test platform and guaranteeing normal and stable performance of the test tasks due to the fact that most script execution, process recording and result collection are transferred to the intelligent network card end. Meanwhile, the intelligent network card is also used as a storage redundancy in a short time to ensure the safety of test data, and the embodiment of the invention improves the running stability of the test platform by executing the related script of the automatic test in the intelligent network card and ensures that the test task can be normally and stably carried out.
The embodiment of the present invention further provides a communication device, as shown in fig. 6, including a processor 401, a communication interface 402, a memory 403, and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 perform communication with each other through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401, when executing the program stored in the memory 403, implements the following steps:
responding to triggering operation of a cloud server, controlling an intelligent network card to run an automatic control script, wherein the intelligent network card is deployed at a slot supporting S5 power supply in a server to be tested;
after executing a plurality of test cases through the automatic control script, sending a target operation command to the server to be tested;
controlling the server to be tested to run a script to be tested through the target running command;
acquiring test running results and logs of the automatic control script and the script to be tested;
and sending the test operation result and the log to the cloud server for archiving and platform display.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The present invention also provides a readable storage medium which, when executed by a processor of an electronic device, enables the electronic device to perform the access control method of the foregoing embodiment.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. The required structure for the construction of such devices is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functions of some or all of the components in a sorting device according to the present invention may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). The present invention may also be implemented as an apparatus or device program for performing part or all of the methods described herein. Such a program embodying the present invention may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus, the apparatus and the units described above may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.
It should be noted that, in the embodiment of the present application, the various data-related processes are all performed under the condition of conforming to the corresponding data protection rule policy of the country of the location and obtaining the authorization given by the owner of the corresponding device.

Claims (10)

1. A method for testing a server, the method comprising:
responding to triggering operation of a cloud server, controlling an intelligent network card to run an automatic control script, wherein the intelligent network card is deployed at a slot supporting S5 power supply in a server to be tested;
after executing a plurality of test cases through the automatic control script, sending a target operation command to the server to be tested;
Controlling the server to be tested to run a script to be tested through the target running command;
acquiring test running results and logs of the automatic control script and the script to be tested;
and sending the test operation result and the log to the cloud server for archiving and platform display.
2. The method of claim 1, wherein before controlling the intelligent network card to run the automation control script in response to the triggering operation of the cloud server, further comprises:
under the condition that the hardware of the server to be tested is determined to be ready, carrying out system filling on the server to be tested through an intelligent network card;
acquiring an automatic control script from a cloud server, and analyzing the script and the script to be tested as a result;
deploying the automation control script, the result analysis script and the script to be tested to the intelligent network card;
and deploying the script to be tested to the server to be tested through the intelligent network card.
3. The method according to claim 2, wherein after the system filling of the server to be tested by the intelligent network card, further comprises:
acquiring configuration information of the server to be tested;
Screening an automatic control script for testing, a result analysis script and a script to be tested according to the configuration information, wherein the automatic control script is used for executing test cases to be tested, the script to be tested is used for executing a case testing tool, and the result analysis script is used for analyzing an execution result.
4. The method of claim 3, further comprising, after the obtaining the test running results and logs of the automation control script and the script to be tested:
analyzing the test operation result and the log through a result analysis script;
if the analysis result meets the preset standard, the test operation result and the log are sent to the cloud server for archiving and platform display;
and if the analysis result is determined to be not in accordance with the preset standard, executing the automatic control script again through the result analysis script.
5. The method of claim 1, wherein before controlling the intelligent network card to run the automation control script in response to the triggering operation of the cloud server, further comprises:
obtaining information of uninstalled slots in a server to be tested;
when the first slot supporting S5 power supply exists in the uninstalled slot information, deploying the intelligent network card in the first slot supporting S5 power supply;
Acquiring a first data interaction state of the intelligent network card at a first slot supporting S5 power supply and the server to be tested;
under the condition that the first data interaction state is detected to be abnormal, determining a second slot supporting S5 power supply according to the uninstalled slot information;
disposing the intelligent network card at the second slot supporting S5 power supply;
acquiring a second data interaction state of the intelligent network card at a second slot supporting S5 power supply and the server to be tested;
and under the condition that the second data interaction state is detected to be normal, establishing connection between the intelligent network card and the cloud server through a target network port, wherein the intelligent network card and the cloud server perform data transmission through the target network port.
6. The method of claim 1, wherein after the obtaining the test running results and logs of the automation control script and the script to be tested, further comprising:
acquiring target field information from the test operation result and the log;
under the condition that the test fails through the target field information, sending an exception handling prompt to a display interface of a cloud server;
And under the condition that the test is successful through the target field information, sending the test running result and the log to the cloud server for archiving and platform display.
7. A server testing system, the system comprising: the intelligent network card is deployed in a slot supporting S5 power supply in the server to be tested, and is connected with the cloud server through a target network port;
the server to be tested is used for running the script to be tested by receiving a target running command of the intelligent network card, and sending a test running result and a log of the script to be tested to the intelligent network card;
the cloud server is used for triggering the intelligent network card to run an automatic control script and receiving test running results and logs of the automatic control script and the script to be tested, which are sent by the intelligent network card; the intelligent network card is used for responding to the triggering operation of the cloud server and running an automatic control script, and is deployed in a slot supporting S5 power supply in the server to be tested; after executing a plurality of test cases through the automatic control script, sending a target operation command to the server to be tested; controlling the server to be tested to run a script to be tested through the target running command; acquiring test running results and logs of the automatic control script and the script to be tested; and sending the test operation result and the log to the cloud server for archiving and platform display.
8. A server testing apparatus, comprising:
the first control module is used for responding to the triggering operation of the cloud server and controlling the intelligent network card to run an automatic control script, and the intelligent network card is deployed at a slot supporting S5 power supply in the server to be tested;
the first sending module is used for sending a target operation command to the server to be tested after executing a plurality of test cases through the automatic control script;
the second control module is used for controlling the server to be tested to run the script to be tested through the target running command;
the first acquisition module is used for acquiring test running results and logs of the automatic control script and the script to be tested;
and the second sending module is used for sending the test running result and the log to the cloud server for archiving and platform display.
9. A communication device, comprising: a transceiver, a memory, a processor, and a program stored on the memory and executable on the processor;
the processor being configured to read a program in a memory to implement the steps of the server testing method according to any one of claims 1-6.
10. A readable storage medium storing a program, wherein the program, when executed by a processor, implements the steps of the server testing method according to any one of claims 1-6.
CN202311605382.6A 2023-11-28 2023-11-28 Server testing method, system, device, equipment and storage medium Pending CN117724921A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311605382.6A CN117724921A (en) 2023-11-28 2023-11-28 Server testing method, system, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311605382.6A CN117724921A (en) 2023-11-28 2023-11-28 Server testing method, system, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117724921A true CN117724921A (en) 2024-03-19

Family

ID=90207842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311605382.6A Pending CN117724921A (en) 2023-11-28 2023-11-28 Server testing method, system, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117724921A (en)

Similar Documents

Publication Publication Date Title
US10929260B2 (en) Traffic capture and debugging tools for identifying root causes of device failure during automated testing
US9569325B2 (en) Method and system for automated test and result comparison
CN110691009B (en) Network equipment inspection method and device
EP3591485B1 (en) Method and device for monitoring for equipment failure
CN103793326A (en) Assembly test method and device
CN112100085B (en) Android application program stability testing method, device and equipment
CN113468009B (en) Pressure testing method and device, electronic equipment and storage medium
CN110739025B (en) Power failure test method, device and system for storage equipment
CN114117973A (en) Logic synthesis method, device and storage medium
CN115525557A (en) Method and system for recovering CPLD (complex programmable logic device) capability under PFR (pulse frequency response) abnormal condition, electronic equipment and storage medium
CN112445678A (en) Method for storing server system log
CN111078484A (en) Power-off test method, device, equipment and storage medium for system upgrading
CN117724921A (en) Server testing method, system, device, equipment and storage medium
CN111722853A (en) Method and equipment for deploying installation script
CN107612786B (en) Method and system for testing router
CN116049011A (en) Deployment method and device of test environment, electronic equipment and storage medium
CN115422091A (en) Firmware debugging method and device, electronic equipment and storage medium
CN115757099A (en) Automatic test method and device for platform firmware protection recovery function
CN102681910B (en) Recognition method, computer and recognition system
CN111367728A (en) Memory space monitoring and cleaning test method and system
CN107766251A (en) Load image detection method, system, equipment and readable storage medium storing program for executing
CN114138578B (en) Server testing method and device
CN113904954B (en) System for testing wireless communication module
CN109491845B (en) Test method and system for storage product controller
CN116662085A (en) Disk fault simulation test method, test device and electronic equipment

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