CN114238077A - Automatic test task arranging system and method - Google Patents
Automatic test task arranging system and method Download PDFInfo
- Publication number
- CN114238077A CN114238077A CN202111384587.7A CN202111384587A CN114238077A CN 114238077 A CN114238077 A CN 114238077A CN 202111384587 A CN202111384587 A CN 202111384587A CN 114238077 A CN114238077 A CN 114238077A
- Authority
- CN
- China
- Prior art keywords
- test
- test task
- task
- host
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses an automatic test task arranging system and a method, the automatic test task arranging system comprises a management host and a plurality of test hosts, the management host is respectively connected with the plurality of test hosts, wherein the management host comprises a test task definition module, a test task assignment module, a node monitoring module and a test task arranging module, and each test host comprises an agent module.
Description
Technical Field
The invention belongs to the field of automatic testing, and particularly relates to an automatic testing task arranging system and method.
Background
With the increasingly specialized, streamlined and standardized test technology, wherein the test process is more standardized, a great deal of repetitive work can be generated by smoke test, regression test and version iteration test, a great deal of repetitive work is performed manually, so that aesthetic fatigue is inevitable, and at the moment, the automatic test technology needs to be held in work to avoid errors generated by a great deal of manual repetitive work.
As automated testing is increasingly used, automated testing tools for different test types, different testing tasks, are also being developed. With the increase of test tasks and the complexity of test tools, the execution of the automatic test tasks requires a large amount of labor and time cost for the acquisition of test resources, the configuration and deployment of the automatic tools, the creation of the test environment and other work, so that the time cost for the creation and maintenance of the test environment is improved, and the utilization rate of the automatic test resources is also reduced.
The invention provides an automatic test task arranging system which can effectively reduce the time cost of test environment creation and maintenance and improve the utilization rate of automatic test resources.
Disclosure of Invention
The invention aims to provide an automatic test task arranging system which can effectively reduce the time cost of test environment creation and maintenance and improve the utilization rate of automatic test resources.
In order to achieve the above object, the present invention provides an automatic test task orchestration system, which includes a management host and a plurality of test hosts, wherein the management host is respectively connected to the plurality of test hosts;
the management host includes:
the test task definition module is used for creating a test task template according to the test task;
the test task issuing module is used for compiling a test task list corresponding to the current test task and issuing the test task list to the test task arranging module based on the current test task and the test task template;
the node monitoring module is used for monitoring the running state of each test host;
the test task arranging module is used for selecting a target test host and issuing a task starting instruction to the target test host to execute a test task based on the test task list and the running state of each test host;
each of the test hosts includes:
and the agent module is used for receiving and executing the test task issued by the management host.
Optionally, the management host further includes:
the test task monitoring module is used for monitoring execution information of the target test host for executing the test task, wherein the execution information comprises the execution state and progress of the test task and resources occupied by the test task;
and the test result recovery module is used for receiving and analyzing the test result of the test task.
Optionally, a message service system is also included,
the input end of the message service system is respectively connected with the plurality of test hosts and is used for receiving the test result transmitted by each test host;
and the output end of the message service system is connected with the test result recovery module and is used for transmitting the received test result to the test result recovery module.
Optionally, a database is also included;
and the database is connected with the test result recovery module and used for receiving and storing the test task result.
Optionally, the test task template includes a plurality of automated test tools and configuration information corresponding to each of the automated test tools.
Optionally, the running state of the test host includes CPU, memory occupancy, disk IO indicator, and number of executed tasks.
Optionally, the agent module includes:
the mirror image management module is used for receiving the test task and pulling a mirror image based on the test task;
and the container management module is used for creating a container based on the mirror image and the test task, and the container is used for executing the test task.
An automated test task orchestration method, comprising:
creating a test task template according to the test task;
writing a test task list corresponding to the current test task and issuing the test task list based on the current test task and the test task template;
based on the test task list and the monitored running state of each test host, selecting a target test host and issuing a task starting instruction to the target test host to execute a test task;
and receiving and executing the test task issued by the management host.
Optionally, the editing method further includes:
and monitoring the execution information of the target test host for executing the test task, wherein the execution information comprises the execution state and progress of the test task and the resources occupied by the test task.
Optionally, the editing method further includes:
and receiving and analyzing the test result of the test task.
The invention has the beneficial effects that:
the automatic test task arranging system comprises a management host and a plurality of test hosts, wherein the management host is respectively connected with the plurality of test hosts, the management host comprises a test task definition module, a test task assignment module, a node monitoring module and a test task arranging module, each test host comprises an agent module, and the test task definition module of the invention comprises: according to the test task, a test task template is established, and the test task is issued to a module: based on the current test task and the test task template, writing a test task list corresponding to the current test task and sending the test task list to a test task arranging module, wherein the node monitoring module is used for: monitoring the running state of each test host, and testing the task arranging module: based on the test task list and the running state of each test host, selecting a target test host and issuing a task starting instruction to the target test host to execute a test task, wherein the agent module is used for: the method and the system receive and execute the test tasks issued by the management host, so that different types of automatic test tools can be selected by the method and the system, different test types are supported, meanwhile, the automation of issuing, environment creating and executing of the test tasks is realized, the time cost of creating and maintaining the test environment is effectively reduced, and the utilization rate of automatic test resources is improved.
Additional features and advantages of the invention will be set forth in the detailed description which follows.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent by describing in more detail exemplary embodiments thereof with reference to the attached drawings, in which like reference numerals generally represent like parts throughout.
FIG. 1 illustrates a block diagram of an automated test task orchestration system according to one embodiment of the invention.
FIG. 2 illustrates a flow diagram of a method of automated test task orchestration according to one embodiment of the invention.
Description of the reference numerals
1. A management host; 11. a test task definition module; 12. a test task issuing module; 13. a node monitoring module; 14. a test task arrangement module; 2. a test host; 21. an agent module; 3. a message service system; 4. a database.
Detailed Description
Preferred embodiments of the present invention will be described in more detail below. While the following describes preferred embodiments of the present invention, it should be understood that the present invention may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
According to the automatic test task arranging system, the arranging system comprises a management host and a plurality of test hosts, wherein the management host is respectively connected with the plurality of test hosts;
the management host includes:
the test task definition module is used for creating a test task template according to the test task;
the test task issuing module is used for compiling a test task list corresponding to the current test task and issuing the test task list to the test task arranging module based on the current test task and the test task template;
the node monitoring module is used for monitoring the running state of each test host;
the test task scheduling module is used for selecting a target test host and issuing a task starting instruction to the target test host to execute a test task based on the test task list and the running state of each test host;
each test host comprises:
and the agent module is used for receiving and executing the test task issued by the management host.
Specifically, the automatic test task arranging system comprises a management host and a plurality of test hosts, wherein the management host is respectively connected with the plurality of test hosts, the management host comprises a test task definition module, a test task assignment module, a node monitoring module and a test task arranging module, each test host comprises an agent module, and the test task definition module of the invention: according to the test task, a test task template is established, and the test task is issued to a module: based on the current test task and the test task template, writing a test task list corresponding to the current test task and sending the test task list to a test task arranging module, wherein the node monitoring module is used for: monitoring the running state of each test host, and testing the task arranging module: based on the test task list and the running state of each test host, selecting a target test host and issuing a task starting instruction to the target test host to execute a test task, wherein the agent module is used for: the method and the system receive and execute the test tasks issued by the management host, so that different types of automatic test tools can be selected by the method and the system, different test types are supported, meanwhile, the automation of issuing, environment creating and executing of the test tasks is realized, the time cost of creating and maintaining the test environment is effectively reduced, and the utilization rate of automatic test resources is improved.
Furthermore, the automatic test executive staff creates a test task template according to a specific test task, adds/modifies related task information based on the test task template, forms a test task list corresponding to the current test task and sends the test task list to the test task arranging module, so that the learning cost of the test executive staff for the deployment of the automatic test tool is effectively reduced, and more energy can be used for compiling the test script.
In one example, the management host further comprises:
the test task monitoring module is used for monitoring execution information of the target test host for executing the test task, wherein the execution information comprises the execution state and progress of the test task and resources occupied by the test task;
and the test result recovery module receives and analyzes the test result of the test task.
In one example, the orchestration system further comprises a message service system,
the input end of the message service system is respectively connected with the plurality of test hosts and is used for receiving the test result transmitted by each test host;
the output end of the message service system is connected with the test result recovery module and used for transmitting the received test result to the test result recovery module.
In one example, the orchestration system further comprises a database;
the database is connected with the test result recovery module and used for receiving and storing the test task result.
Specifically, the connection mode between the database and the test result recovery module is preferably wireless communication connection.
In one example, a test task template includes a plurality of automated test tools and configuration information corresponding to each automated test tool.
In one example, the operational status of the test host includes CPU, memory occupancy, disk IO metrics, and number of tasks executed.
Specifically, the test task arranging module performs resource evaluation on each test host according to the running state of each test host and a preset weight proportion, selects a target test host based on a resource evaluation result, and issues a task starting instruction to the target test host to execute a test task.
In one example, the agent module includes:
the mirror image management module is used for receiving the test task and pulling the mirror image based on the test task;
and the container management module is used for creating a container based on the mirror image and the test task, and the container is used for executing the test task.
Specifically, the container management module is used for creating containers based on mirroring and testing tasks, and performing configuration, starting, stopping, recycling and a plurality of inter-container interconnection operations on the containers.
An automated test task orchestration method, comprising:
creating a test task template according to the test task;
compiling a test task list corresponding to the current test task and issuing the test task list based on the current test task and the test task template;
based on the test task list and the monitored running state of each test host, selecting a target test host and issuing a task starting instruction to the target test host to execute the test task;
and receiving and executing the test task issued by the management host.
In one example, the orchestration method further comprises:
and monitoring the execution information of the target test host for executing the test task, wherein the execution information comprises the execution state and progress of the test task and the resources occupied by the test task.
In one example, the orchestration method further comprises:
and receiving and analyzing the test result of the test task.
Example one
FIG. 1 illustrates a block diagram of an automated test task orchestration system according to one embodiment of the invention.
As shown in fig. 1, the automated test task orchestration system includes a management host and a plurality of test hosts, wherein the management host is connected to the plurality of test hosts respectively;
the management host includes:
the test task definition module is used for creating a test task template according to the test task;
the test task issuing module is used for compiling a test task list corresponding to the current test task and issuing the test task list to the test task arranging module based on the current test task and the test task template;
the node monitoring module is used for monitoring the running state of each test host;
the test task scheduling module is used for selecting a target test host and issuing a task starting instruction to the target test host to execute a test task based on the test task list and the running state of each test host;
each test host comprises:
and the agent module is used for receiving and executing the test task issued by the management host.
Wherein, the management host computer still includes:
the test task monitoring module is used for monitoring execution information of the target test host for executing the test task, wherein the execution information comprises the execution state and progress of the test task and resources occupied by the test task;
and the test result recovery module receives and analyzes the test result of the test task.
Wherein the arrangement system further comprises a message service system,
the input end of the message service system is respectively connected with the plurality of test hosts and is used for receiving the test result transmitted by each test host;
the output end of the message service system is connected with the test result recovery module and used for transmitting the received test result to the test result recovery module.
Wherein, the arrangement system also comprises a database;
the database is connected with the test result recovery module and used for receiving and storing the test task result.
Wherein, agent module includes:
the mirror image management module is used for receiving the test task and pulling the mirror image based on the test task;
and the container management module is used for creating a container based on the mirror image and the test task, and the container is used for executing the test task.
Specifically, the mirror image management module locally searches whether a corresponding mirror image file exists in the host according to the name and version information of the test tool, the name and version information of the system to be tested and the version information in the received task information; and if the corresponding mirror image is not found locally, automatically downloading the corresponding mirror image to the mirror image center. And the container management module starts the corresponding container according to the received task information, completes the configuration of the container, deletes the corresponding container after the test task is completed, and recovers resources. The container management also comprises the monitoring of the running state, resource occupation and other information of the started container.
Example two
FIG. 2 illustrates a flow diagram of a method of automated test task orchestration according to one embodiment of the invention.
As shown in fig. 2, the automated test task scheduling method includes:
step 1: creating a test task template according to the test task;
step 2: compiling a test task list corresponding to the current test task and issuing the test task list based on the current test task and the test task template;
and step 3: based on the test task list and the monitored running state of each test host, selecting a target test host and issuing a task starting instruction to the target test host to execute the test task;
and 4, step 4: and receiving and executing the test task issued by the management host.
The arranging method further comprises the following steps:
and monitoring the execution information of the target test host for executing the test task, wherein the execution information comprises the execution state and progress of the test task and the resources occupied by the test task.
The arranging method further comprises the following steps:
and receiving and analyzing the test result of the test task.
The automatic test task arranging method further comprises the following steps:
and receiving and transmitting the test result transmitted by each test host.
The automatic test task arranging method further comprises the following steps:
and receiving and storing the test task result.
The automatic test task arranging method further comprises the following steps:
receiving a test task, and pulling a mirror image based on the test task;
a container is created based on the mirroring and testing tasks, the container being used to perform the testing tasks.
The test task template comprises a plurality of automatic test tools and configuration information corresponding to each automatic test tool.
The running state of the test host comprises a CPU, a memory occupancy rate, a disk IO index and the number of executed tasks.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments.
Claims (10)
1. An automatic test task arranging system is characterized by comprising a management host and a plurality of test hosts, wherein the management host is respectively connected with the plurality of test hosts;
the management host includes:
the test task definition module is used for creating a test task template according to the test task;
the test task issuing module is used for compiling a test task list corresponding to the current test task and issuing the test task list to the test task arranging module based on the current test task and the test task template;
the node monitoring module is used for monitoring the running state of each test host;
the test task arranging module is used for selecting a target test host and issuing a task starting instruction to the target test host to execute a test task based on the test task list and the running state of each test host;
each of the test hosts includes:
and the agent module is used for receiving and executing the test task issued by the management host.
2. The automated test task orchestration system according to claim 1, wherein the management host further comprises:
the test task monitoring module is used for monitoring execution information of the target test host for executing the test task, wherein the execution information comprises the execution state and progress of the test task and resources occupied by the test task;
and the test result recovery module is used for receiving and analyzing the test result of the test task.
3. The automated test task orchestration system of claim 2, further comprising a message service system,
the input end of the message service system is respectively connected with the plurality of test hosts and is used for receiving the test result transmitted by each test host;
and the output end of the message service system is connected with the test result recovery module and is used for transmitting the received test result to the test result recovery module.
4. The automated test task orchestration system according to claim 3, further comprising a database;
and the database is connected with the test result recovery module and used for receiving and storing the test task result.
5. The automated test task orchestration system of claim 1, wherein the test task template comprises a plurality of automated test tools and configuration information corresponding to each of the automated test tools.
6. The automated test task orchestration system of claim 1, wherein the operational state of the test host comprises CPU, memory occupancy, disk IO metrics, and number of executing tasks.
7. The automated test task orchestration system according to claim 1, wherein the agent module comprises:
the mirror image management module is used for receiving the test task and pulling a mirror image based on the test task;
and the container management module is used for creating a container based on the mirror image and the test task, and the container is used for executing the test task.
8. An automatic test task arranging method is characterized by comprising the following steps:
creating a test task template according to the test task;
writing a test task list corresponding to the current test task and issuing the test task list based on the current test task and the test task template;
based on the test task list and the monitored running state of each test host, selecting a target test host and issuing a task starting instruction to the target test host to execute a test task;
and receiving and executing the test task issued by the management host.
9. The automated test task orchestration method according to claim 8, wherein the orchestration method further comprises:
and monitoring the execution information of the target test host for executing the test task, wherein the execution information comprises the execution state and progress of the test task and the resources occupied by the test task.
10. The automated test task orchestration method according to claim 8, wherein the orchestration method further comprises:
and receiving and analyzing the test result of the test task.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111384587.7A CN114238077A (en) | 2021-11-19 | 2021-11-19 | Automatic test task arranging system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111384587.7A CN114238077A (en) | 2021-11-19 | 2021-11-19 | Automatic test task arranging system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114238077A true CN114238077A (en) | 2022-03-25 |
Family
ID=80750337
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111384587.7A Pending CN114238077A (en) | 2021-11-19 | 2021-11-19 | Automatic test task arranging system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114238077A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115858400A (en) * | 2023-02-27 | 2023-03-28 | 广州市玄武无线科技股份有限公司 | Mobile app automatic test task arrangement system |
CN116383093A (en) * | 2023-06-05 | 2023-07-04 | 成都佰维存储科技有限公司 | Windows test environment deployment method and device, readable storage medium and electronic equipment |
CN117075571A (en) * | 2023-03-06 | 2023-11-17 | 昆易电子科技(上海)有限公司 | Test method, test system, test equipment and readable storage medium |
-
2021
- 2021-11-19 CN CN202111384587.7A patent/CN114238077A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115858400A (en) * | 2023-02-27 | 2023-03-28 | 广州市玄武无线科技股份有限公司 | Mobile app automatic test task arrangement system |
CN117075571A (en) * | 2023-03-06 | 2023-11-17 | 昆易电子科技(上海)有限公司 | Test method, test system, test equipment and readable storage medium |
CN116383093A (en) * | 2023-06-05 | 2023-07-04 | 成都佰维存储科技有限公司 | Windows test environment deployment method and device, readable storage medium and electronic equipment |
CN116383093B (en) * | 2023-06-05 | 2023-08-08 | 成都佰维存储科技有限公司 | Windows test environment deployment method and device, readable storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114238077A (en) | Automatic test task arranging system and method | |
CN106547613B (en) | Scheduling and fault recovery method for task processing flow | |
CN104778124B (en) | A kind of software application automated testing method | |
CN101526919B (en) | Method for generating script files to test Web application software and device thereof | |
CN106506283B (en) | Business test method and device of bank and enterprise docking system | |
US20130205172A1 (en) | Integrated System and Method for Validating the Functionality and Performance of Software Applications | |
CN109656820B (en) | Intelligent automatic test system based on CBTC | |
CN106874189B (en) | Method for realizing automatic test system of power grid real-time database system | |
US20150100830A1 (en) | Method and system for selecting and executing test scripts | |
CN111309609B (en) | software processing system | |
CN113741958A (en) | Software development and delivery method and system based on cloud-native | |
US20220269595A1 (en) | Testing iot-applications based on a fleet of iot-devices | |
CN110232013B (en) | Test method, test device, controller and medium | |
CN110209565A (en) | A kind of metadata schema adjustment method and its device | |
CN116400987A (en) | Continuous integration method, device, electronic equipment and storage medium | |
CN107919998B (en) | Sensor server function testing method and system based on JMeter | |
CN115913314A (en) | Method, device and system for monitoring data relay task flow of relay satellite ground station | |
Herpel et al. | Model based testing of satellite on-board software—an industrial use case | |
CN112052181A (en) | Embedded software automatic test system based on software engineering | |
CN110825645A (en) | Assembly line type full-process automatic testing method | |
CN116450305B (en) | SOAR platform assembly execution method and device based on distributed task scheduling | |
CN116204399B (en) | Automatic performance test method and system for Linux system | |
Guiotto et al. | MaTeLo: automated testing suite for software validation | |
Ali et al. | Enabling test case prioritization for component based software development | |
CN114661620A (en) | Interface automatic test system and method based on functional module |
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 |