CN108874600B - Server end-to-end automatic test task execution management system and method - Google Patents

Server end-to-end automatic test task execution management system and method Download PDF

Info

Publication number
CN108874600B
CN108874600B CN201810581702.1A CN201810581702A CN108874600B CN 108874600 B CN108874600 B CN 108874600B CN 201810581702 A CN201810581702 A CN 201810581702A CN 108874600 B CN108874600 B CN 108874600B
Authority
CN
China
Prior art keywords
task
execution
machine
module
management module
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
Application number
CN201810581702.1A
Other languages
Chinese (zh)
Other versions
CN108874600A (en
Inventor
周庆飞
胥志泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810581702.1A priority Critical patent/CN108874600B/en
Publication of CN108874600A publication Critical patent/CN108874600A/en
Application granted granted Critical
Publication of CN108874600B publication Critical patent/CN108874600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2284Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]

Abstract

The invention belongs to the technical field of computer servers, and discloses a server end-to-end automatic test task execution management system and a method, wherein the system comprises a task management module, a constraint condition library module, a machine management module and an execution machine module, wherein the task management module is used for creating a test task, assigning a task and issuing the task; the constraint condition library module is used for screening machines required by script execution; the machine management module is used for managing all the machines to be tested; the executive machine module is used for receiving the test tasks, executing the tasks and transmitting the execution results back to the task management module. The method comprises the following steps: creating an automated testing task; executing an automatic test task to generate a task list; analyzing the task list and executing the task list to obtain an execution result; and updating the task result and the state of the machine. The system and the method can ensure the efficient execution and the ordered management of the automatic test tasks, improve the efficiency of the automatic test of the server and ensure the smooth execution of the project test.

Description

Server end-to-end automatic test task execution management system and method
Technical Field
The invention belongs to the technical field of computer servers, and particularly relates to a system and a method for executing and managing an end-to-end automatic test task of a server.
Background
The automatic testing of the server can effectively improve the testing efficiency, and simultaneously saves the time cost and the labor cost, and the proportion of the automatic testing determines the period from research and development to delivery of a project or product, so that the efficiency of executing the automatic testing task of the server is improved, and the automatic testing process of the server is standardized. The server end-to-end automatic test task execution refers to the end-to-end from the test task creation to the task execution result obtaining of a tester.
Most of the existing server automated test task execution management is semi-automated testing, generally, a tester is required to backfill a result after execution to a corresponding test case, and the tester is also required to search for an idle machine in a laboratory when an execution machine is selected, so that the efficiency is low and the operation is complicated.
Disclosure of Invention
The present invention aims to solve the above problems, and provides a system and a method for managing the execution of an end-to-end automatic test task of a server, which can realize the efficient execution and the ordered management of the automatic test task.
In order to achieve the purpose, the technical scheme of the invention is as follows:
a server end-to-end automated test task execution management system, comprising:
a task management module: the system is used for creating a test task, dispatching a task and issuing the task;
constraint condition library module: a machine required for screening script execution;
a machine management module: for managing all machines to be tested;
an execution machine module: and the task management module is used for receiving the test task, executing the task and transmitting an execution result back to the task management module after the execution is finished.
Preferably, the task management module comprises a task creating unit, a task generating unit, a task distributing unit and a test result counting unit;
the task creating unit is used for creating a test task and setting a use case, test time, a machine type and machine configuration to be used by the task;
the task generation unit is used for acquiring script constraint conditions from the constraint condition library module according to the use case numbers, screening machines meeting the script constraint conditions from the machine management module according to the acquired script constraint conditions, and generating a task list;
the task allocation unit is used for sending a request to the executive machine module and sending a task list to the executive machine module;
and the test result counting unit is used for receiving the execution result and the file returned by the execution machine module and updating the result of the task and the state of the machine.
Preferably, the constraint condition library module: the method is used for screening machines required by script execution according to use case constraint conditions in cooperation with a task management module.
Preferably, the machine management module is further configured to screen an idle machine by the task management module, and return machine information to the task management module.
Preferably, the execution machine module includes:
an execution monitoring unit: the system comprises a task management module, a script execution module, a task list analysis module, a script execution module and a script execution module, wherein the task management module is used for receiving a test task assigned by the task management module, analyzing the task list, calling the script to execute an automatic test and monitoring the script execution state;
a test result collection unit: obtaining an execution result after all the scripts are executed, and collecting logs and log files;
a communication unit: and the log file is used for uploading the execution result, the collected log and the log file to the task management module.
Preferably, the execution machine module: the task management module is used for receiving the test tasks assigned by the task management module, analyzing the task list, calling the script to perform the execution of the automatic test, monitoring the execution state of the script, and transmitting the execution result back to the task management module after the execution is finished.
The invention also provides a server end-to-end automatic test task execution management method, which comprises the following steps:
s1: creating an automated testing task;
s2: executing an automatic test task to generate a task list;
s3: analyzing the task list and executing the task list to obtain an execution result;
s4: the results of the tasks and the state of the machine are updated.
Preferably, in step S1, the method for creating an automated test task includes: and starting the server to enter a task management module, creating a test task, and setting a use case, test time, a machine type and machine configuration used by the task.
Preferably, in step S2, the method for executing the automated test task and generating the task list includes:
s21: executing an automatic test task, and automatically acquiring script constraint conditions from a constraint condition library module by a task management module according to case numbers set by the task;
s22: and the task management module screens blank machines meeting the script constraint conditions from the machine management module according to the obtained script constraint conditions to generate a task list, and adds the script to a script execution queue of the machine.
Preferably, in step S3, the method for parsing the task sheet and executing the task sheet to obtain the execution result includes:
s31: the executive machine module obtains the request sent by the task management module and analyzes the task list;
s32: the executive machine module executes the task list, obtains an execution result after the execution is finished, and collects a log and a log file;
s33: and the execution machine module uploads the execution result and the log file to the task management module.
Preferably, in step S4, before updating the task result and the machine state, the task management module polls the execution module and determines the task execution status, and if all the scripts are executed, receives the execution result and the uploaded log file returned by the execution module, and finally, the task management module updates the task result and the machine state according to the received execution result and log file.
The invention has the beneficial effects that:
the invention uses a set of software system to realize the execution of the end-to-end automatic test task of the server, construct the end-to-end execution flow from the task establishment, the task allocation, the task issuing, the task execution to the task backfill result and the task execution log and log collection, omits the complex process of manually distributing the task to the test execution machine, automatically calls the script corresponding to the test case according to the set case after the test task is established and the test task parameters are set, automatically selects the proper execution machine in the machine management module to execute the task, returns the execution result to the task management module after the task execution is finished, updates the task result and the machine state according to the received execution result by the task management module, ensures the high-efficiency execution and the ordered management of the automatic test task, and can improve the efficiency of the automatic test of the server, and the smooth proceeding of the project test is ensured.
Drawings
Fig. 1 is a schematic structural diagram of a server end-to-end automated test task execution management system provided in embodiment 1 of the present application.
Fig. 2 is a flowchart illustrating a method for managing execution of an end-to-end automatic test task of a server according to embodiment 2 of the present application.
Detailed Description
The invention will be better understood from the following examples. However, it is easily understood by those skilled in the art that the following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
Example 1
Fig. 1 is a schematic structural diagram of a server end-to-end automated test task execution management system according to this embodiment.
As can be seen from fig. 1, the server end-to-end automated test task execution management system in this embodiment includes: the system comprises a task management module, a constraint condition library module, a machine management module and an execution machine module, wherein the task management module is used for creating a test task, assigning a task and issuing the task; the constraint condition library module is used for screening machines required by script execution; the machine management module is used for managing all machines to be tested; an execution machine module: and the system is used for receiving the test task issued by the task management module, executing the task and transmitting an execution result back to the task management module after the execution is finished.
As can be seen from fig. 1, the task management module includes a task creating unit, a task generating unit, a task allocating unit, and a test result counting unit.
The task creating unit is used for creating a test task and setting a use case, test time, a machine type and machine configuration to be used by the task; the task generation unit is used for acquiring script constraint conditions from the constraint condition library module according to the use case numbers, screening machines meeting the script constraint conditions from the machine management module according to the acquired script constraint conditions, and generating a task list; the task allocation unit is used for sending an HTTP request to the execution machine module and sending the task list to the execution machine module; and the statistical test result unit is used for receiving the execution result and the log file returned by the execution machine module and updating the result of the task and the state of the machine.
The generated task sheet includes information such as machine information, use case information, script parameters, a task number, project information to which the task belongs, and expected execution time. And the constraint condition library module is used for screening machines required by script execution according to the use case constraint conditions in cooperation with the task management module.
The machine management module is also used for the task management module to screen idle machines and return machine information to the task management module.
As shown in fig. 1, the execution machine module includes an execution monitoring unit, a test result gathering unit, and a communication unit.
The execution monitoring unit is used for receiving the test tasks dispatched by the task management module, analyzing the task list, calling the script to execute the automatic test and monitoring the script execution state; the test result collection unit is used for obtaining an execution result after all scripts are executed, and collecting logs and log files; the communication unit is used for uploading the execution result, the collected log and the log file to the task management module.
The executive machine module is used for receiving the test tasks dispatched by the task management module, analyzing the task list, calling the script to execute the automatic test, monitoring the execution state of the script and transmitting the execution result back to the task management module after the execution is finished.
And the executive machine module and the task management module are communicated in an HTTP mode.
Example 2
Fig. 2 is a flowchart illustrating a method for managing execution of an end-to-end automatic test task of a server according to an embodiment of the present application.
As can be seen from fig. 2, the method for performing and managing the server end-to-end automated test task in this embodiment includes the following steps:
s1: creating an automated testing task;
s2: executing an automatic test task to generate a task list;
s3: analyzing the task list and executing the task list to obtain an execution result;
s4: the results of the tasks and the state of the machine are updated.
Specifically, the method for creating an automated test task includes: and starting the server to enter a task management module, creating a test task, and setting a use case, test time, a machine type and machine configuration used by the task.
Specifically, the step S2 further includes the following steps:
s21: executing an automatic test task, and automatically acquiring script constraint conditions from a constraint condition library module by a task management module according to case numbers set by the task;
s22: and the task management module screens blank machines meeting the script constraint conditions from the machine management module according to the obtained script constraint conditions to generate a task list, and adds the script to a script execution queue of the machine.
The script is added into the script execution queue of the machine, so that the test task can automatically execute the appropriate execution machine, the machine of a laboratory is utilized to the maximum extent, and the condition that one part of the machine is frequently used and the other part of the machine is idle all the time is avoided.
Specifically, the task sheet includes machine information, use case information, script parameters, task numbers, task affiliated project information, and expected execution time.
Specifically, the step S3 further includes the following steps:
s31: the executive machine module obtains the request sent by the task management module and analyzes the task list;
s32: the executive machine module executes the task list, obtains an execution result after the execution is finished, and collects a log and a log file;
s33: and the execution machine module uploads the execution result and the log file to the task management module.
Specifically, in step S4, before the result of the task and the state of the machine are updated, the task management module polls the execution module and determines the task execution condition, and if all the scripts are executed, receives the execution result and the uploaded log file returned by the execution module, and finally, the task management module updates the result of the task and the state of the machine according to the received execution result and log file, and creates the automated testing task: and starting the server to enter a task management module, creating a test task, and setting a use case, test time, a machine type and machine configuration used by the task.
The above description is only for the specific embodiments of the present application, so that those skilled in the art can understand or implement the present application, and the protection scope of the present application is not limited thereby. All equivalent changes and modifications made according to the spirit of the present application should be covered in the protection scope of the present application.

Claims (7)

1. A server end-to-end automatic test task execution management system is characterized by comprising:
a task management module: the system is used for creating a test task, dispatching a task and issuing the task; the task management module comprises a task creating unit, a task generating unit, a task distributing unit and a test result counting unit; the task creating unit is used for creating a test task and setting a use case, test time, a machine type and machine configuration to be used by the task; the task generation unit is used for acquiring script constraint conditions from the constraint condition library module according to the use case numbers, screening machines meeting the script constraint conditions from the machine management module according to the acquired script constraint conditions, and generating a task list; the task allocation unit is used for sending a request to the executive machine module and sending a task list to the executive machine module; the test result counting unit is used for receiving the execution result and the file returned by the execution machine module and updating the result of the task and the state of the machine;
constraint condition library module: the script execution machine is used for screening the script execution required by the test case;
a machine management module: for managing all machines to be tested;
an execution machine module: and the task management module is used for receiving the test task, executing the task and transmitting an execution result back to the task management module after the execution is finished.
2. The system as claimed in claim 1, wherein the machine management module is further configured to filter idle machines and return machine information to the task management module.
3. The server end-to-end automated test task execution management system of claim 1, wherein the execution engine module comprises:
an execution monitoring unit: the system comprises a task management module, a script execution module, a task list analysis module, a script execution module and a script execution module, wherein the task management module is used for receiving a test task assigned by the task management module, analyzing the task list, calling the script to execute an automatic test and monitoring the script execution state;
a test result collection unit: obtaining an execution result after all the scripts are executed, and collecting logs and log files;
a communication unit: and the log file is used for uploading the execution result, the collected log and the log file to the task management module.
4. The server end-to-end automated test task execution management system of claim 1, wherein the execution machine module: the task management module is used for receiving the test tasks assigned by the task management module, analyzing the task list, calling the script to perform the execution of the automatic test, monitoring the execution state of the script, and transmitting the execution result back to the task management module after the execution is finished.
5. A server end-to-end automatic test task execution management method is characterized by comprising the following steps:
s1: creating an automated testing task; in step S1, the method for creating an automated test task includes: starting a server to enter a task management module, creating a test task, and setting a use case, test time, machine type and machine configuration to be used by the task;
s2: executing an automatic test task to generate a task list; in step S2, the method for executing the automated test task and generating the task list includes: s21: executing an automatic test task, and automatically acquiring script constraint conditions from a constraint condition library module by a task management module according to case numbers set by the task; s22: the task management module screens blank machines meeting the script constraint conditions from the machine management module according to the obtained script constraint conditions to generate a task list, and adds scripts corresponding to the test cases into a script execution queue of the machines;
s3: analyzing the task list and executing the task list to obtain an execution result;
s4: the results of the tasks and the state of the machine are updated.
6. The method for managing task execution of server end-to-end automatic testing according to claim 5, wherein in step S3, the method for parsing the task sheet and executing the task sheet to obtain the execution result includes:
s31: the executive machine module obtains the request sent by the task management module and analyzes the task list;
s32: the executive machine module executes the task list, obtains an execution result after the execution is finished, and collects a log and a log file;
s33: and the execution machine module uploads the execution result and the log file to the task management module.
7. The method as claimed in claim 5, wherein in step S4, before updating the task result and the machine status, the task management module polls the execution module and determines the task execution status, and receives the execution result and the uploaded log file returned by the execution module if all the scripts are executed, and finally, the task management module updates the task result and the machine status according to the received execution result and log file.
CN201810581702.1A 2018-06-07 2018-06-07 Server end-to-end automatic test task execution management system and method Active CN108874600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810581702.1A CN108874600B (en) 2018-06-07 2018-06-07 Server end-to-end automatic test task execution management system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810581702.1A CN108874600B (en) 2018-06-07 2018-06-07 Server end-to-end automatic test task execution management system and method

Publications (2)

Publication Number Publication Date
CN108874600A CN108874600A (en) 2018-11-23
CN108874600B true CN108874600B (en) 2021-10-08

Family

ID=64337215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810581702.1A Active CN108874600B (en) 2018-06-07 2018-06-07 Server end-to-end automatic test task execution management system and method

Country Status (1)

Country Link
CN (1) CN108874600B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783757B (en) * 2019-11-11 2024-03-01 北京沃东天骏信息技术有限公司 Test system, method, computer system, and computer-readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6275223B1 (en) * 1998-07-08 2001-08-14 Nortel Networks Limited Interactive on line code inspection process and tool
CN102387232A (en) * 2010-09-03 2012-03-21 宁波普天通信技术有限公司 General mobile phone testing system based on triaxial pushbutton and pattern recognition
CN106844198A (en) * 2016-12-27 2017-06-13 浪潮软件集团有限公司 Distributed dispatching automation test platform and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6275223B1 (en) * 1998-07-08 2001-08-14 Nortel Networks Limited Interactive on line code inspection process and tool
CN102387232A (en) * 2010-09-03 2012-03-21 宁波普天通信技术有限公司 General mobile phone testing system based on triaxial pushbutton and pattern recognition
CN106844198A (en) * 2016-12-27 2017-06-13 浪潮软件集团有限公司 Distributed dispatching automation test platform and method

Also Published As

Publication number Publication date
CN108874600A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN106844198B (en) Distributed dispatching automation test platform and method
CN109684053B (en) Task scheduling method and system for big data
CN107689953B (en) Multi-tenant cloud computing-oriented container security monitoring method and system
CN101727389B (en) Automatic test system and method of distributed integrated service
CN103645909A (en) Handling method and device for timed task
CN100451989C (en) Software testing system and testing method
CN102567203A (en) Method and system for testing performance of distributed file system (DFS)
CN111125444A (en) Big data task scheduling management method, device, equipment and storage medium
CN110162471A (en) A kind of method for testing pressure and system based on container cloud
CN107733735B (en) Script recording system and method implanted in pressure measurement device
CN104778124A (en) Automatic testing method for software application
CN106850330B (en) Intelligent cloud desktop performance test system and method
CN109560996B (en) Automatic testing system and method for terminal of Internet of things
CN102209118A (en) Distributed mass data gathering method
CN104268241A (en) Attribute display method in configuration database
CN109041023B (en) Bluetooth device testing method and system
CN111813419A (en) Method for managing life cycle of bare computer based on kubernets declaration
CN104731062A (en) Intelligent network management system and method used for monitoring state and dispatching for instruments
US9547537B2 (en) Automatic profiling report generation
CN102999417A (en) Automatic test management system and method
CN108874600B (en) Server end-to-end automatic test task execution management system and method
CN113778486A (en) Containerization processing method, device, medium and equipment for code pipeline
CN111769979A (en) Cloud resource arranging method, system, terminal and storage medium
WO2022142931A1 (en) Network device inspection method, apparatus, and device, and storage medium
CN107204868B (en) Task operation monitoring information acquisition method and 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