CN111625404B - Method, system storage medium and electronic equipment for testing NVMe hard disk based on Jenkins - Google Patents
Method, system storage medium and electronic equipment for testing NVMe hard disk based on Jenkins Download PDFInfo
- Publication number
- CN111625404B CN111625404B CN202010317246.7A CN202010317246A CN111625404B CN 111625404 B CN111625404 B CN 111625404B CN 202010317246 A CN202010317246 A CN 202010317246A CN 111625404 B CN111625404 B CN 111625404B
- Authority
- CN
- China
- Prior art keywords
- test
- jenkins
- testing
- tested
- task
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
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)
- Testing Of Individual Semiconductor Devices (AREA)
Abstract
The invention discloses a method, a system storage medium and electronic equipment for testing an NVMe hard disk based on Jenkins, and relates to the technical field of software testing, wherein the method comprises the steps that a Jenkins end obtains a test case to be executed and an equipment identification number of tested equipment for executing the test case to generate a test task, and the test task comprises the test case and test parameters of the tested equipment of the test case; the Jenkins end sends the test task to a controller corresponding to the tested equipment; the control machine analyzes the test task, controls the tested equipment to execute the test task through the test machine connected with the control machine, and receives the returned execution result of the test task; and after the test is finished, the control machine generates test log files from all the test information and sends the test log files to the Jenkins terminal. In the invention, the Jenkins end only performs information interaction with the controller and is not connected with the testing machine, so that the overlong testing time caused by excessive client access of the Jenkins end is avoided.
Description
Technical Field
The invention relates to the technical field of software testing, in particular to a method, a system storage medium and electronic equipment for testing an NVMe hard disk based on Jenkins.
Background
Jenkins is an open source software project, and is a continuous integration tool developed based on Java for monitoring continuous repeated work. NVMe is NVM (Non-Volatile Memory) Express, an SSD (Solid State Drive, solid State disk) interface protocol based on PCIe (PCI Express) data transfer. Many NVMe SSD-related tests are developed based on Jenkins framework, such as firmware new function submission, regular release of firmware version, regression test of product, performance test, etc. The basic test structure is shown in fig. 1, wherein Database is a Database for storing test data and test results. The Test Machine is a testing Machine and is provided with an operating system, and is mainly used for testing the DUT, issuing commands, executing Test cases and the like. DUT (Device UnderTest) is the device under test, referred to herein as an SSD supporting NVMe protocol.
As shown in FIG. 1, the Jenkins end directly controls each Test Machine to achieve the purposes of executing Test cases, monitoring and recycling Test results. NVMe SSD is directly connected to the system through a PCIe bus, and in the early stage of product development, due to factors such as product instability, the DUT cannot respond to commands sent by a host under certain test cases, so that a system is blue or dead. Once the situation occurs, jenkins cannot access and control the Test Machine, all programs running on the Test Machine cannot normally execute and return results along with the crash, and at the moment, human intervention is needed for recovering the Test Machine; therefore, in the Test structure, a Ctrl Machine is introduced, which is mainly used for controlling the Test Machine under certain conditions, and the control includes, but is not limited to, performing operations such as startup and shutdown and restarting on the Test Machine through a device such as a relay, and the Test structure after the Ctrl Machine is newly added is shown in fig. 2.
As shown in fig. 2, the number of Test machines is 4, and the corresponding Ctrl machines is also 4. In such a structure, once the Jenkins end monitors that the Test Machine has blue screen or crashes, the Jenkins end can restart the Test Machine by controlling the Ctrl Machine, and after the Test Machine is restored to the OS, the Jenkins end continues to perform subsequent tests according to the Case requirement.
However, for the operation of Jenkins end, the states of each Test stage of Test Machine need to be continuously queried, and for abnormal situations, ctrl Machine needs to be accessed again for further control, so that different machines are accessed, and the required Test time is too long.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a method, a system storage medium and electronic equipment for testing an NVMe hard disk based on Jenkins.
In order to achieve the above purpose, the invention adopts the following technical scheme:
the method for testing the NVMe hard disk based on the Jenkins comprises the following steps:
the Jenkins end obtains a test case to be executed and an equipment identification number of equipment to be tested for executing the test case, and generates a test task, wherein the test task comprises the test case and test parameters of the equipment to be tested of the test case;
the Jenkins end sends the test task to a controller corresponding to the tested equipment;
the control machine analyzes the test task, controls the tested equipment to execute the test task through the test machine connected with the control machine, and receives the returned execution result of the test task;
and after the test is finished, the control machine generates test log files from all the test information and sends the test log files to the Jenkins terminal.
Based on the technical scheme, the Jenkins end obtains the test case to be executed and the equipment identification number of the tested equipment to be executed, and the generating test tasks specifically comprises:
when the Jenkins end acquires a tested device, a corresponding test task is generated;
when the Jenkins end acquires a plurality of tested devices, test tasks corresponding to the tested devices are respectively generated.
On the basis of the technical scheme, the control machine analyzes the test task, controls the tested equipment to execute the test task through the test machine connected with the control machine, receives the returned execution result of the test task, and after the test is finished, the control machine further comprises the following steps of:
the controller detects the test result;
and when the test result shows that the test case is abnormal, the controller controls the testing machine to process.
On the basis of the technical scheme, after the test is finished, the control machine generates test log files by all the test information and sends the test log files to the Jenkins terminal, and then the control machine further comprises:
the Jenkins end receives the test log file and stores the test log file in a database;
and the Jenkins end detects and analyzes the test log file and displays an analysis result.
The invention also provides a technical scheme, and a system for testing the NVMe hard disk based on the Jenkins comprises a Jenkins server, a plurality of controllers, a plurality of testers and tested equipment; the Jenkins server is connected with the plurality of control machines, and the testing machines are respectively connected with the control machines and the tested equipment in a one-to-one correspondence manner;
the Jenkins server acquires a test case to be executed and a device identification number of a device to be tested for executing the test case, and generates a test task, wherein the test task comprises the test case and test parameters of the device to be tested of the test case;
the Jenkins server sends the test task to a controller corresponding to a tester connected with the tested equipment;
the control machine analyzes the test task, controls the tested equipment to execute the test task through the test machine connected with the control machine, and receives the returned execution result of the test task;
and the control machine generates test log files from all the test information and sends the test log files to the Jenkins server after the test is finished.
On the basis of the technical scheme, the method further comprises the following steps:
the Jenkins server generates a corresponding test task when acquiring one tested device;
and when the Jenkins server acquires a plurality of tested devices, respectively generating test tasks corresponding to the tested devices.
On the basis of the technical scheme, the method further comprises the following steps:
the control machine detects the test result;
and the controller is used for controlling the testing machine to process when the testing result shows that the testing case is abnormal.
On the basis of the technical scheme, the method further comprises the following steps:
the Jenkins server receives the test log file and stores the test log file in a database;
and the Jenkins server detects and analyzes the test log file and displays an analysis result.
The present invention also provides a storage medium having stored thereon a computer program which, when executed by a processor, performs any of the methods described above.
The invention also provides an electronic device comprising a memory and a processor, the memory storing a computer program running on the processor, the processor implementing any of the methods described above when executing the computer program
Compared with the prior art, the invention has the advantages that:
(1) The Jenkins end only performs information interaction with the controller and is not connected with the testing machine, so that the problem that the testing time is too long due to too many clients accessed by the Jenkins end is avoided.
(2) The Jenkins end is only used for simple task issuing and result monitoring, and real test operation and execution control are issued to the Ctrl Machine, so that the complexity of realizing the Jenkins end code is reduced, and the Jenkins end code is easy to maintain and debug.
(3) The automatic test hierarchy is divided clearly, and portability and debugging performance of test and control codes are improved.
(4) The execution parallelism of the triggering test case is improved, and the waiting time and the completion time of the triggering test are reduced.
(5) The use of the cross-regional network is relieved, the frequency and load of the use network are reduced, and the situation that the follow-up test cases cannot be executed due to the problem of the cross-regional network is avoided.
Drawings
FIG. 1 is a schematic diagram of a basic architecture;
FIG. 2 is a schematic diagram of a current general architecture;
FIG. 3 is a flow chart of a method for testing NVMe hard disk based on Jenkins in an embodiment of the present invention;
FIG. 4 is a schematic diagram of an improved architecture of the present invention;
FIG. 5 is a flow chart of a method for testing NVMe hard disk based on Jenkins in an embodiment of the present invention;
FIG. 6 is a flow chart of a method for testing NVMe hard disk based on Jenkins in an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a system for testing NVMe hard disk based on Jenkins according to an embodiment of the present invention.
Description of the drawings:
100 system for testing NVMe hard disk based on Jenkins
110Jenkins server 120 control machine
130 tester 140 device under test
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
As shown in fig. 3, an embodiment of the present invention provides a method for testing an NVMe hard disk based on Jenkins, including:
s100, acquiring a test case to be executed and an equipment identification number of equipment to be tested for executing the test case by a Jenkins end, and generating a test task, wherein the test task comprises the test case and test parameters of the equipment to be tested for executing the test case;
s200, the Jenkins end sends the test task to a controller uniquely corresponding to the tested equipment;
s300, the controller analyzes the test task, controls the tested equipment to execute the test task through the test machine connected with the controller, and receives the returned execution result of the test task;
and S400, after the execution result shows that the test is finished, the control machine generates test log files from all the test information and sends the test log files to the Jenkins terminal.
Specifically, in this embodiment, as shown in fig. 4, a Jenkins end (Jenkins Server) is connected to a plurality of controllers, each controller is connected to a corresponding testing machine, and the testing machines are connected to the tested device for testing.
The user inputs the test case to be executed and the equipment identification number of the tested equipment to be executed in the webpage control end or other input devices, and the Jenkins end generates corresponding test tasks after acquiring the information input by the user, wherein the test tasks comprise the test case and the test parameters of the tested equipment to be executed in the test case, the equipment parameters of different tested equipment are different, and the corresponding test parameters are different.
Because each tested device is uniquely corresponding to the testing machine, the testing machine is also uniquely corresponding to the control machine, and therefore the control machine which is uniquely corresponding to the tested device is determined according to the device identification number of the tested device, and the Jenkins end sends the testing task to the control machine which is corresponding to the tested device.
The controller receives and analyzes the test task, and controls the tested equipment to execute the test task through the test machine connected with the controller. And then the control machine receives the execution result of the test task executed by the tested equipment returned by the test machine, and after the execution result displays the test, the control machine generates all test information to generate a test log file and sends the test log file to the Jenkins end, wherein the test information is all data which is received and sent by the control machine and related to the test in the process of the test, such as the control of the test machine to test the tested equipment, the received execution result, the decision of analysis on the execution result and the like.
According to the invention, the Jenkins end only performs information interaction with the control machine and is not connected with the testing machine, so that the number of machines for inquiring and operating the Jenkins end is reduced, the network pressure is relieved, and the overlong testing time caused by excessive client access of the Jenkins end is avoided.
Preferably, in another embodiment of the present invention, the S100Jenkins end obtains a test case to be executed and an equipment identification number of a device under test to which the test case is to be executed, and the generating a test task specifically includes:
s110, when the Jenkins end acquires a tested device, a corresponding test task is generated;
s120, when the Jenkins end acquires a plurality of tested devices, test tasks corresponding to the tested devices are respectively generated.
Specifically, in this embodiment, a user inputs a test case to be executed and an equipment identification number of a device to be tested for executing the test case in a web page control terminal or other input devices, and since the Jenkins terminal is connected to a plurality of controllers, not all the devices to be tested corresponding to the controllers need to be tested.
Generating a corresponding test task after the Jenkins end acquires information input by a user, and generating a test task corresponding to tested equipment when the Jenkins end acquires only one tested equipment; when the Jenkins end acquires a plurality of tested devices, test tasks corresponding to the tested devices are respectively generated. When the Jenkins obtains the test cases that need to be executed by the multiple tested devices, the test cases that need to be executed by the multiple tested devices may be the same or different. However, since the test tasks include the test cases and the test parameters of the tested devices executing the test cases, the device parameters of different tested devices are different, and the corresponding test parameters are different accordingly, even if a plurality of tested devices execute the same test cases, the same test tasks corresponding to all the tested devices are generated, and the same test tasks do not exist.
In the invention, the Jenkins end is connected with a plurality of controllers, so that the concurrency efficiency of the test is improved, once the Jenkins end issues the test task to the corresponding controllers, the test of all tested equipment is carried out simultaneously, the time of the Jenkins end for polling initialization, preparation and the like is not wasted, and as the speed of the Jenkins end issuing task is very fast (millisecond level), once the Jenkins end issues the test to the controllers, the necessary control and operation can be carried out on the testers immediately, the parallelism rate almost reaches 100%, and the benefit is very obvious under the condition of configuring a large number of testers. In the specific design and implementation process, related information such as the configuration of an operating system of the control machine is required to be considered, and the environment and the like of the control machine are uniformly configured as much as possible, so that the batch automation is conveniently realized.
As shown in fig. 5, in another embodiment of the present invention, there is provided a method for testing an NVMe hard disk based on Jenkins, including:
s100, acquiring a test case to be executed and an equipment identification number of equipment to be tested for executing the test case by a Jenkins end, and generating a test task, wherein the test task comprises the test case and test parameters of the equipment to be tested for executing the test case;
s200, the Jenkins end sends the test task to a controller uniquely corresponding to the tested equipment;
s300, the controller analyzes the test task, controls the tested equipment to execute the test task through the test machine connected with the controller, and receives the returned execution result of the test task;
s350, the controller detects the test result;
s360, when the test result shows that the test case is abnormal, the controller controls the tester to process;
and S400, after the execution result shows that the test is finished, the control machine generates test log files from all the test information and sends the test log files to the Jenkins terminal.
Specifically, in this embodiment, after obtaining a test case to be executed and an equipment identification number of a device to be tested that needs to execute the test case, which are input by a user, a Jenkins terminal generates a corresponding test task, where the test task includes the test case and test parameters of the device to be tested that executes the test case. And the Jenkins end sends the test task to the control machine uniquely corresponding to the tested equipment.
The controller receives and analyzes the test task, and controls the tested equipment to execute the test task through the test machine connected with the controller. And then the controller receives the execution result of the tested device executing the test task returned by the tester.
The control machine detects the received test result, and when the test result shows that the test case is abnormal, the control machine controls the test machine to process. The controller is provided with interfaces such as hardware relays, serial port control and the like for processing all the anomalies, and can detect the anomalies of the test cases at the first time and recover the corresponding anomalies, so that the efficiency is higher. After the execution result shows that the test is finished, the control machine generates all the test information into a test log file and sends the test log file to the Jenkins terminal.
The invention has the functions of test execution, result detection, exception handling and the like of the Jenkins terminal, and is completely used for main interaction between a controller and a tester without excessive control participation of the Jenkins terminal. The control Machine plays a larger role, the detection and the exception handling of the Test case result are carried out in the first time, the participation of the control Machine is more efficient and timely than the participation of the Jenkins end, and the exception handling and the recovery are not needed until the Jenkins end polls the Test Machine state.
As shown in fig. 6, in another embodiment of the present invention, there is provided a method for testing an NVMe hard disk based on Jenkins, including:
s100, acquiring a test case to be executed and an equipment identification number of equipment to be tested for executing the test case by a Jenkins end, and generating a test task, wherein the test task comprises the test case and test parameters of the equipment to be tested for executing the test case;
s200, the Jenkins end sends the test task to a controller uniquely corresponding to the tested equipment;
s300, the controller analyzes the test task, controls the tested equipment to execute the test task through the test machine connected with the controller, and receives the returned execution result of the test task;
s400, after the execution result shows that the test is finished, the control machine generates test log files from all the test information and sends the test log files to the Jenkins end;
s500, the Jenkins end receives the test log file and stores the test log file in a database;
and S600, the Jenkins end performs detection analysis on the test log file and displays an analysis result.
Specifically, in this embodiment, after obtaining a test case to be executed and an equipment identification number of a device to be tested that needs to execute the test case, which are input by a user, a Jenkins terminal generates a corresponding test task, where the test task includes the test case and test parameters of the device to be tested that executes the test case. And the Jenkins end sends the test task to the control machine uniquely corresponding to the tested equipment.
The controller receives and analyzes the test task, and controls the tested equipment to execute the test task through the test machine connected with the controller. And then the controller receives the execution result of the tested device executing the test task returned by the tester. After the execution result shows that the test is finished, the control machine generates all the test information into a test log file and sends the test log file to the Jenkins terminal.
And the Jenkins end receives the test log file and stores the test log file in a database. And then the Jenkins end detects and analyzes the test log file, and displays an analysis result on the webpage control end, so that the user can conveniently call and view the test log file.
Under the condition that the basic framework is unchanged, the invention lowers the execution and result detection of the test cases and the exception handling function into the controller, the Jenkins end is only used for issuing tasks to the corresponding controller, and detecting and collecting the handling condition of the controller, namely the test log files, and summarizing, without other operations, reduces the polling waiting time, reduces the realization and exception handling difficulty of the Jenkins end codes, and provides a general framework easy to transplant.
As shown in fig. 7, in a further embodiment of the present invention, there is provided a system 100 for testing NVMe hard disks based on Jenkins, comprising: a Jenkins server 110, a plurality of control machines 120, a plurality of test machines 130, and a device under test 140; the Jenkins server 110 is connected with the plurality of control machines 120, and the testing machine 130 is respectively connected with the control machines 120 and the tested equipment 140 in a one-to-one correspondence manner;
the Jenkins server 110 obtains a test case to be executed and a device identification number of a device under test 140 to be executed, and generates a test task, where the test task includes the test case and test parameters of the device under test 140 of the test case;
the Jenkins server 110 sends the test task to the controller 120 corresponding to the tester 130 connected to the tested device 140;
the controller 120 analyzes the test task, controls the device under test 140 to execute the test task through the tester 130 connected with the controller, and receives the returned execution result of the test task;
the controller 120 generates a test log file from all the test information and sends the test log file to the Jenkins server 110 after the test is finished.
Further comprises: the Jenkins server 110 generates a corresponding test task when acquiring one device under test 140;
the Jenkins server 110 generates test tasks corresponding to the tested devices 140 when obtaining the tested devices 140.
Further comprises:
the controller 120 detects the test result;
the controller 120 controls the tester 130 to process when the test result shows that the test case is abnormal.
Further comprises:
the Jenkins server 110 receives the test log file and stores the test log file in a database;
the Jenkins server 110 performs detection analysis on the test log file, and displays the analysis result.
In particular, the specific implementation manner of each module in this embodiment has been described in detail in the above corresponding method embodiment, and thus will not be described in detail.
In further embodiments of the present invention, examples of testing are performed by the architectures of fig. 2 and 4, respectively.
Taking 10 testers as an example, table 1 is the time required for testing with the current generic architecture of fig. 2, and table 2 is the time required for testing with the improved architecture of fig. 4.
Table 1 current universal architecture 10 tester test time
Table 2 improved architecture 10 tester test time
An embodiment of the invention provides a computer-readable storage medium on which a computer program is stored which, when executed by a processor, carries out all or part of the method steps of the first embodiment.
The present invention may be implemented by implementing all or part of the above-described embodiment methods, or by implementing relevant hardware by a computer program, where the computer program may be stored in a computer readable storage medium, and the computer program may implement the steps of the above-described method embodiments when executed by a processor. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
An embodiment of the invention also provides an electronic device comprising a memory and a processor, the memory having stored thereon a computer program that when executed by the processor implements all or part of the method steps of the first embodiment.
The processor may be a central processing unit (Central Processing Unit, CPU), other general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like that is a control center of the computer device, connecting various parts of the overall computer device using various interfaces and lines.
The memory may be used to store the computer program and/or modules, and the processor may implement various functions of the computer device by running or executing the computer program and/or modules stored in the memory, and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
The invention is not limited to the embodiments described above, but a number of modifications and adaptations can be made by a person skilled in the art without departing from the principle of the invention, which modifications and adaptations are also considered to be within the scope of the invention. What is not described in detail in this specification is prior art known to those skilled in the art.
Claims (10)
1. The method for testing the NVMe hard disk based on the Jenkins is characterized by comprising the following steps of:
the method comprises the steps that a Jenkins end obtains a test case to be executed and an equipment identification number of tested equipment to be executed of the test case, and a test task is generated, wherein the test task comprises the test case and test parameters of the tested equipment to be executed of the test case;
the Jenkins end sends the test task to a controller uniquely corresponding to the tested equipment;
the control machine analyzes the test task, controls the tested equipment to execute the test task through the test machine connected with the control machine, and receives the returned execution result of the test task;
after the execution result shows that the test is finished, the control machine generates all the test information into a test log file and sends the test log file to the Jenkins terminal;
the Jenkins end is connected with a plurality of control machines, each control machine is respectively connected with a corresponding testing machine, and the testing machines are respectively connected with tested equipment for testing; each tested device is uniquely corresponding to the testing machine, and the testing machine is uniquely corresponding to the control machine.
2. The method for testing the NVMe hard disk based on the Jenkins according to claim 1, wherein the Jenkins obtaining the test case to be executed and the device identification number of the device to be tested to execute the test case, and generating the test task specifically includes:
when the Jenkins end acquires a tested device, a corresponding test task is generated;
when the Jenkins end acquires a plurality of tested devices, test tasks corresponding to the tested devices are respectively generated.
3. The method of claim 1, wherein after the controller parses the test task, controls the tested device to execute the test task by the tester connected to the controller, and receives the returned execution result of the test task, when the test is finished, before the controller sends all test information to the Jenkins terminal, the method further comprises:
the controller detects the test result;
and when the test result shows that the test case is abnormal, the controller controls the testing machine to process.
4. The method for testing an NVMe hard disk based on Jenkins according to claim 1, wherein after the testing is finished, the controller generates test log files from all the test information and sends the test log files to the Jenkins terminal, further comprising:
the Jenkins end receives the test log file and stores the test log file in a database;
and the Jenkins end detects and analyzes the test log file and displays an analysis result.
5. The system for testing the NVMe hard disk based on the Jenkins is characterized by comprising a Jenkins server, a plurality of control machines, a plurality of testing machines and tested equipment; the Jenkins server is connected with the plurality of control machines, and the testing machines are respectively connected with the control machines and the tested equipment in a one-to-one correspondence manner;
the Jenkins server acquires a test case to be executed and a device identification number of a device to be tested for executing the test case, and generates a test task, wherein the test task comprises the test case and test parameters of the device to be tested of the test case;
the Jenkins server sends the test task to a controller corresponding to a tester connected with the tested equipment;
the control machine analyzes the test task, controls the tested equipment to execute the test task through the test machine connected with the control machine, and receives the returned execution result of the test task;
and the control machine generates test log files from all the test information and sends the test log files to the Jenkins server after the test is finished.
6. The Jenkins test-based NVMe hard disk system of claim 5, further comprising:
the Jenkins server generates a corresponding test task when acquiring one tested device;
and when the Jenkins server acquires a plurality of tested devices, respectively generating test tasks corresponding to the tested devices.
7. The Jenkins test-based NVMe hard disk system of claim 5, further comprising:
the control machine detects the test result;
and the controller is used for controlling the testing machine to process when the testing result shows that the testing case is abnormal.
8. The Jenkins test-based NVMe hard disk system of claim 5, further comprising:
the Jenkins server receives the test log file and stores the test log file in a database;
and the Jenkins server detects and analyzes the test log file and displays an analysis result.
9. A storage medium having stored thereon a computer program which, when executed by a processor, implements the method of testing an NVMe hard disk based on Jenkins according to any one of claims 1-4.
10. An electronic device comprising a storage medium, a processor and a computer program stored in the storage medium and executable on the processor, wherein the processor, when executing the computer program, implements the method of testing an NVMe hard disk based on Jenkins according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010317246.7A CN111625404B (en) | 2020-04-21 | 2020-04-21 | Method, system storage medium and electronic equipment for testing NVMe hard disk based on Jenkins |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010317246.7A CN111625404B (en) | 2020-04-21 | 2020-04-21 | Method, system storage medium and electronic equipment for testing NVMe hard disk based on Jenkins |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111625404A CN111625404A (en) | 2020-09-04 |
CN111625404B true CN111625404B (en) | 2023-06-30 |
Family
ID=72260066
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010317246.7A Active CN111625404B (en) | 2020-04-21 | 2020-04-21 | Method, system storage medium and electronic equipment for testing NVMe hard disk based on Jenkins |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111625404B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113254326A (en) * | 2021-04-06 | 2021-08-13 | 至誉科技(武汉)有限公司 | Method and system for releasing firmware codes of solid state disk by utilizing Jenkins |
CN113138886A (en) * | 2021-04-23 | 2021-07-20 | 摩拜(北京)信息技术有限公司 | Method and device for testing embedded equipment and testing equipment |
CN114461150B (en) * | 2022-02-09 | 2024-08-16 | 马来西亚明试国际有限公司 | A method, system and storage medium for automatic test equipment data aggregation |
CN115202944B (en) * | 2022-06-22 | 2024-11-19 | 中国电信股份有限公司 | Hard disk performance test method, device, equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101252471A (en) * | 2008-03-20 | 2008-08-27 | 中兴通讯股份有限公司 | Distributed automatization test system and method |
US8368915B1 (en) * | 2006-06-23 | 2013-02-05 | Open Invention Network, Llc | System and method for printer driver management in an enterprise network |
CN104008055A (en) * | 2014-05-30 | 2014-08-27 | 广州华多网络科技有限公司 | Software testing method, device and system |
CN109446006A (en) * | 2018-10-24 | 2019-03-08 | 郑州云海信息技术有限公司 | Distributed Raid characteristic test method, device, equipment and storage medium |
CN110456777A (en) * | 2019-08-20 | 2019-11-15 | 广州小鹏汽车科技有限公司 | Test method and system for vehicle controller |
CN110718264A (en) * | 2019-09-23 | 2020-01-21 | 深圳忆联信息系统有限公司 | Method and device for testing information of solid state disk, computer equipment and storage medium |
CN110928774A (en) * | 2019-11-07 | 2020-03-27 | 杭州顺网科技股份有限公司 | Automatic test system based on node formula |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10783065B2 (en) * | 2018-03-23 | 2020-09-22 | Sungard Availability Services, Lp | Unified test automation system |
-
2020
- 2020-04-21 CN CN202010317246.7A patent/CN111625404B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8368915B1 (en) * | 2006-06-23 | 2013-02-05 | Open Invention Network, Llc | System and method for printer driver management in an enterprise network |
CN101252471A (en) * | 2008-03-20 | 2008-08-27 | 中兴通讯股份有限公司 | Distributed automatization test system and method |
CN104008055A (en) * | 2014-05-30 | 2014-08-27 | 广州华多网络科技有限公司 | Software testing method, device and system |
CN109446006A (en) * | 2018-10-24 | 2019-03-08 | 郑州云海信息技术有限公司 | Distributed Raid characteristic test method, device, equipment and storage medium |
CN110456777A (en) * | 2019-08-20 | 2019-11-15 | 广州小鹏汽车科技有限公司 | Test method and system for vehicle controller |
CN110718264A (en) * | 2019-09-23 | 2020-01-21 | 深圳忆联信息系统有限公司 | Method and device for testing information of solid state disk, computer equipment and storage medium |
CN110928774A (en) * | 2019-11-07 | 2020-03-27 | 杭州顺网科技股份有限公司 | Automatic test system based on node formula |
Non-Patent Citations (2)
Title |
---|
徐旼之.基于云的接口自动化测试平台的设计与实现.中国优秀硕士学位论文全文数据库(电子期刊).2017,第1-20页. * |
测试工程师.Jenkins分布式测试.https://blog.csdn.net/weixin_40881502/article/details/86508859.2019,第1-4页. * |
Also Published As
Publication number | Publication date |
---|---|
CN111625404A (en) | 2020-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111625404B (en) | Method, system storage medium and electronic equipment for testing NVMe hard disk based on Jenkins | |
EP3591485B1 (en) | Method and device for monitoring for equipment failure | |
CN109298962B (en) | Timing task monitoring method, computer readable storage medium and terminal device | |
CN111143188B (en) | A method and equipment for automated testing of applications | |
CN111338862B (en) | GPU mode switching stability test method, system, terminal and storage medium | |
CN105512000B (en) | Operating system abnormal information collection method and device and computer | |
CN114817213A (en) | Server database tuning test method, device, terminal and storage medium | |
CN118567892A (en) | Fault maintenance method and device for graphic processor | |
CN112632174A (en) | Data inspection method, device and system | |
CN117493255A (en) | Board management method, device and system | |
CN104239174A (en) | BMC (baseboard management controller) remote debugging system and method | |
CN109032874A (en) | A kind of memory pressure test method, device, terminal and storage medium | |
CN116414634A (en) | Device debugging method, system, device, debugging device and readable storage medium | |
CN113742113B (en) | Health management method, equipment and storage medium for embedded system | |
CN111324482A (en) | Computer application program running data fault processing system | |
CN117251361A (en) | Method, device, equipment and storage medium for testing system stability | |
CN116719671A (en) | Debugging method of kernel unloading service and related equipment thereof | |
CN111736843A (en) | Pre-parse method, system, terminal and storage medium for kernel crash dump file | |
CN114253609B (en) | A method and system for installing OS system through network PXE based on Feiteng platform | |
US20250103542A1 (en) | Data processing method and apparatus | |
CN117573504A (en) | Test management method and system, scheduling device and storage medium | |
CN118916297B (en) | A method and device for testing adapter of application program | |
CN119046378B (en) | Synchronization method, device, equipment and medium based on shared cluster database | |
CN116052614B (en) | A large-screen power supply control method, device and equipment based on cloud platform | |
US20250298725A1 (en) | Information processing method, information processing apparatus and information processing device |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 430000 west of 2-3 / F, No.2 factory building, Guannan Industrial Park, No.1 Gaoxin 2nd Road, Wuhan Donghu New Technology Development Zone, Wuhan City, Hubei Province Patentee after: Zhiyu Technology Co.,Ltd. Address before: 438600 Room 201, Juxian building, block B, changju Science Park, Gaoxin 6th Road, Donghu New Technology Development Zone, Wuhan, Hubei Province Patentee before: EXASCEND TECHNOLOGY (WUHAN) CO.,LTD. |