A task publishing method and device, execution method and device, and system

By publishing the priority and environmental elements of automated test tasks in the task array, it solves the problem of large-scale, multi-scenario testing requirements, achieves efficient assignment and execution of tasks, and improves testing efficiency.

CN112597030BActive Publication Date: 2024-09-17AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011569140.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-26
Publication Date
2024-09-17
Estimated Expiration
2040-12-26

AI Technical Summary

Technical Problem

Existing automated testing methods cannot meet the needs for large-scale, multi-scenario automated test task execution, especially in expanding software systems, and cannot effectively allocate and execute test tasks.

Method used

By determining the priority, case collection and environmental elements of automated test tasks, and publishing them to the task array, the execution machine can receive and execute tasks according to priority and case type when idle, ensuring that tasks are carried out in an appropriate environment.

Benefits of technology

It realizes automated test task allocation based on the priority of test tasks and matching the environment, improves task execution efficiency and efficiency, meets large-scale, multi-scenario testing needs, and reduces the consideration of execution machine requirements when task release.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112597030B
    Figure CN112597030B
Patent Text Reader

Abstract

The present invention provides a task publishing method and device, an execution method and device, and a system, including: determining the priority of an automated test task, a case set in the automated test task, and a case type of the case set; determining the environmental elements of the automated test task according to the case set; publishing the priority of the automated test task, the case type of the case set, and the environmental elements to a task array, so that an execution machine can receive the automated test task according to the priority and case type of the automated test task when idle, and execute the automated test task under the environmental elements required by the automated test task. In this way, the automated test task can be received according to the priority of the automated test, and because the automated test task published to the task array includes the environmental elements of the automated test task, it is possible to better receive a matching automated test task, thereby meeting the current large-scale, multi-scenario automated test task execution requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software development, and in particular to a task publishing method and device, an execution method and device, and a system. Background Art

[0002] As the scale of software systems continues to expand, the demand for automated testing continues to increase. Currently, the main methods for automated testing are local execution and task-based execution. Local execution means that the execution tools and cases of automated testing are stored locally on the test machine, and then the tester completes the automated testing on the machine. Task-based execution means that the server pre-configured policies or user manual selections are used to assign tasks to fixed execution machines for testing.

[0003] However, both of the above two testing methods cannot meet the current large-scale, multi-scenario automated testing task execution requirements. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a task publishing method and device, an execution method and device, and a system to meet the current large-scale, multi-scenario automated testing task execution needs.

[0005] To achieve the above object, the present invention has the following technical solutions:

[0006] A task publishing method, comprising:

[0007] Determine the priority of the automated testing task, the case set in the automated testing task, and the case type of the case set;

[0008] Determining the environmental elements of the automated testing task according to the case set;

[0009] The priority of the automated testing task, the case type of the case set, and the environmental elements of the automated testing task are published to the task array, so that the execution machine can pick up the automated testing task according to the priority and the case type of the case set when idle and execute the automated testing task under the environmental elements of the automated testing task.

[0010] Optionally, determining the priority of the automated testing task includes:

[0011] Receive an automated test task trigger request, the trigger request including: a manually initiated automated test trigger request, a scheduled task initiated automated test trigger request, and a continuous integration pipeline initiated automated test trigger request;

[0012] The priority of the automated testing task is determined according to the automated testing task triggering request.

[0013] Optionally, the trigger request for the automated test initiated by the scheduled task includes:

[0014] Trigger requests for automated testing based on user needs and trigger requests for automated testing of case availability;

[0015] Then, determining the priority of the automated test task according to the automated test task trigger request includes:

[0016] When the automated test task trigger request is the manually initiated automated test trigger request or the automated test trigger request initiated by the continuous integration pipeline, determining the priority of the automated test task to be the highest priority;

[0017] When the automated test task trigger request is the automated test trigger request set according to user requirements, determining the priority of the automated test task to be a medium priority;

[0018] When the automated test task trigger request is a trigger request for automated testing of the case availability, the priority of the automated test task is determined to be the lowest priority.

[0019] Optionally, after the execution machine receives the automated test task when idle and before executing the automated test task, the process further includes:

[0020] Check whether the execution machine has an updated version, and if so, update the version of the execution machine;

[0021] Receiving the running status of the execution machine in real time when the execution machine executes the automated testing task;

[0022] After the execution machine completes the automated testing task, it issues a task completion notification and saves the execution record of the automated testing task.

[0023] A task execution method, comprising:

[0024] When idle, pick up an automated test task in the task array according to the priority of the automated test task and the case type of the case set in the automated test task;

[0025] The automated testing task is executed under the environmental elements of the automated testing task; the environmental elements are determined according to the case set.

[0026] Optionally, the picking up of automated testing tasks in the task array according to the priority of the automated testing tasks and the case type of the case set in the automated testing tasks during the idle time includes:

[0027] Scanning the automated test tasks when idle;

[0028] Determine the levels of automated test tasks at the same priority level, the levels including: first level, second level and third level; the first level is that the execution machine has been received but not completed; the second level is that it has not been received and matches the attributes of the execution machine; the third level is that it has not been received but can be matched after the attributes of the execution machine are changed;

[0029] The automated testing tasks with the same priority level are picked up according to the level.

[0030] Optionally, after receiving the automated testing task and before executing the automated testing task under the environmental elements of the automated testing task, the method further includes:

[0031] Monitor and modify the environmental factors of the execution machine that receives the automated test task to match the environmental factors of the automated test task.

[0032] A task issuing device, comprising:

[0033] A first determining unit, configured to determine a priority of an automated testing task, a case set in the automated testing task, and a case type of the case set;

[0034] A second determining unit, configured to determine the environmental elements of the automated testing task according to the case set;

[0035] A publishing unit is used to publish the priority of the automated testing task, the case type of the case set, and the environmental elements of the automated testing task to the task array, so that the execution machine can pick up the automated testing task according to the priority and the case type of the case set when idle and execute the automated testing task under the environmental elements of the automated testing task.

[0036] A task execution device, comprising:

[0037] A receiving unit, used for receiving an automated test task in a task array according to a priority of the automated test task and a case type of a case set in the automated test task when idle;

[0038] An execution unit is used to execute the automated testing task under the environmental elements of the automated testing task; the environmental elements are determined according to the case set.

[0039] A task system comprises the above-mentioned task issuing device and the above-mentioned task executing device.

[0040] A task publishing method provided by an embodiment of the present invention includes: determining the priority of an automated test task, a case set in the automated test task, and a case type of the case set; determining the environmental elements of the automated test task according to the case set; publishing the priority of the automated test task, the case type of the case set, and the environmental elements of the automated test task to a task array, so that an execution machine can pick up the automated test task according to the priority and case type of the automated test task when idle and execute the automated test task under the environmental elements required by the automated test task. In this way, the automated test task can be picked up according to the priority of the automated test, and because the automated test task published to the task array includes the environmental elements of the automated test task, it is possible to better pick up the matching automated test task, meeting the current large-scale, multi-scenario automated test task execution requirements. Moreover, the automated test task is published to the task array, so that the execution machine can pick up the matching automated test task according to its own situation when idle, and there is no need to consider the needs of the execution machine when publishing the task, thereby improving the efficiency of task publishing. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 A schematic diagram of a task publishing method according to an embodiment of the present invention is shown;

[0043] Figure 2 A schematic diagram of a process flow of a task execution method according to an embodiment of the present invention is shown;

[0044] Figure 3 A schematic diagram showing the structure of a task issuing device according to an embodiment of the present invention is shown;

[0045] Figure 4 A schematic structural diagram of a task execution device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0046] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0047] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0048] As described in the background technology, the current automated testing methods cannot meet the current large-scale, multi-scenario automated testing task execution requirements.

[0049] To this end, the embodiment of the present application provides a task publishing method, including: determining the priority of the automated test task, the case set in the automated test task, and the case type of the case set; determining the environmental elements of the automated test task according to the case set; publishing the priority of the automated test task, the case type of the case set, and the environmental elements of the automated test task to the task array, so that the execution machine can pick up the automated test task according to the priority and case type of the automated test task when idle and execute the automated test task under the environmental elements required by the automated test task. In this way, the automated test task can be picked up according to the priority of the automated test, and because the automated test task published to the task array includes the environmental elements of the automated test task, it is possible to better pick up the matching automated test task, meeting the current large-scale, multi-scenario automated test task execution requirements. Moreover, the automated test task is published to the task array, so that the execution machine picks up the matching automated test task according to its own situation when idle, and there is no need to consider the needs of the execution machine when publishing the task, thereby improving the efficiency of task publishing.

[0050] In order to facilitate understanding of the technical solution and technical effects of the present application, specific embodiments will be described in detail below with reference to the accompanying drawings.

[0051] refer to Figure 1 As shown, in step S01, the priority of the automated testing task, the case set in the automated testing task, and the case type of the case set are determined.

[0052] Determine the priority of automated test tasks so that automated test tasks with higher priorities can be executed first in the future, thereby improving the execution efficiency of automated test tasks. Since the urgency of automated test tasks is different, the priority of automated test tasks can be determined according to the urgency of automated testing. For example, when the urgency of automated test tasks is greater, they are determined as tasks with higher priority, and when the urgency of automated test tasks is less, they are determined as tasks with lower priority.

[0053] In this embodiment, the method for determining the priority of the automated test task can be specifically, after receiving the automated test task trigger request, determining the priority of the automated test task according to the automated test task trigger request. The trigger request may include: a trigger request for automated testing initiated manually, a trigger request for automated testing initiated by a scheduled task, and a trigger request for automated testing initiated by a continuous integration pipeline. The trigger request for automated testing initiated by a scheduled task may include: a trigger request for automated testing set according to user requirements and a trigger request for automated testing of case availability. When the automated test task trigger request is a trigger request for automated testing initiated manually or a trigger request for automated testing initiated by a continuous integration pipeline, the priority of the automated test task is determined to be the highest priority; when the automated test task trigger request is a trigger request for automated testing set according to user requirements, the priority of the automated test task is determined to be the middle priority; when the automated test task trigger request is a trigger request for automated testing of case availability, the priority of the automated test task is determined to be the lowest priority. For example; the priority is from level 1 to level 5 from low to high. When the trigger request is a trigger request for manually initiating automated testing or a trigger request for automated testing initiated by a continuous integration pipeline, the priority of the corresponding automated testing task is level 5; when the trigger request is a trigger request for automated testing set according to user needs, the priority of the corresponding automated testing task is level 2 to 4. Automated testing tasks can be divided into different priorities according to different user needs; when the trigger request is initiated by the automated testing platform during idle time to verify the availability of automated testing cases, the priority of the corresponding automated testing task is level 1.

[0054] Each automated test task may include one or more test cases. The test cases required for each automated test task are combined to form a case set, and each automated test case has a corresponding case set. The case set of each automated test task can be pre-configured or can be all cases in a system. When the trigger request is a trigger request for manually initiating automated testing, the case set of the corresponding automated test task can be composed of specified cases, that is, test cases can be selected independently to form a case set. Each automated test case set has a unique case type, which is usually divided into interface testing and interface testing according to different testing methods. Interface testing is to assemble transaction messages and simulate the requester to send according to the protocol. Specifically, it simulates the communication between the client and the server, sends a transaction message to the server, and determines whether the message returned by the server is correct, thereby analyzing whether the application has defects. Interface testing refers to simulating various clicks, inputs and other operations of users on the client, and analyzing whether the application has defects by judging whether the user interface meets expectations during playback.

[0055] In step S02, the environmental elements of the automated testing task are determined according to the case set.

[0056] Since the case collection includes one or more cases, the environmental elements required for each case may be the same or different. Therefore, when the case collection includes multiple cases, the automated testing task may include multiple environmental elements. The environmental elements of the execution machine that executes the automated testing task have environmental elements corresponding to the environmental elements required for the automated testing task, that is, the execution machine includes multiple environmental elements.

[0057] In step S03, the priority of the automated testing task, the case type of the case set, and the environmental elements of the automated testing task are published to the task array, so that the execution machine can pick up the automated testing task according to the priority and the case type of the case set when idle and execute the automated testing task under the environmental elements of the automated testing task.

[0058] The priority of the automated test task, the case type of the case set in the automated test task, and the environmental elements of the automated test task are published to the task array, and the priority of each automated test task, the case type of the case set, and the required environmental elements can be obtained from the task array. Therefore, when the execution machine is idle, it can pick up tasks from the task array according to the priority of the automated test task and the case type of the case set, and after picking up the task, it executes the task in the environmental elements required by the task. For example, the execution machine first determines the case type of the case set of the automated test task with the previous priority in the task array, and when the case type test can be executed, the automated test task is picked up. When the case type test cannot be executed, the case type of the case set of the automated test task with the next priority is continued to be determined until the automated test task corresponding to the case type test can be executed. After picking up the automated test task, it can first check whether the execution machine has an updated version. If so, the version is updated first. After the version is updated, the automated test task is executed, and the running status of the execution machine is received in real time during the execution of the automated test task. If the execution machine is abnormal, the execution machine can be restarted, and then the automated test task can be continued. After the execution machine completes the automated testing task, it issues a task completion notification and saves the execution record of the automated testing task for later verification. In specific applications, the execution machine may include a Windows execution machine and a Linux execution machine. The Windows execution machine can usually be used to perform interface testing and interface testing, while the Linux execution machine can usually only be used to perform interface testing. During the execution of automated testing tasks, the busy and idle status of the execution machine and the backlog of automated testing tasks in the task array can be monitored in real time. When the execution machine is relatively busy and there is a backlog of automated testing tasks in the task array, the number of execution machines can be expanded, such as automatically expanding the Linux execution machines on the PaaS, or prompting the platform operator to expand the Windows execution machines on the PaaS.

[0059] The following will take the interaction between the application server and the execution machine as an example. The application server publishes the priority of the automated test task, the case type of the case set in the automated test task, and the environmental elements of the automated test task to the task array. The application server does not communicate directly with the execution machine. The execution machine receives the automated test task from the task array according to the priority and case type when it is idle. In this way, the application server only needs to filter out the automated test tasks that need to be executed according to different automated test execution requirements, obtain the environmental elements for executing the automated test task, and publish the task to the task array, without worrying about which execution machine will execute the automated test task. Moreover, when publishing a task, there is no need to worry about whether there is an available execution machine, whether it is an automated test task to be executed, or wait for the execution result of the automated test task. When the execution machine is idle, it receives the automated test task from the task array according to the priority and case type of the automated test task. For example, the task array includes five automated testing tasks. For the sake of convenience of description, the five automated testing tasks are recorded as the first automated testing task, the second automated testing task, the third automated testing task, the fourth automated testing task and the fifth automated testing task, and the first automated testing task has the first priority, the second automated testing task has the second priority, the third automated testing task has the third priority, the fourth automated testing task has the fourth priority, and the second automated testing task has the fifth priority. When the execution machine receives the task, it first determines the case type of the case set in the first automated testing task. When the execution machine can execute the case type test of the case set in the first automated testing task, it receives the first automated testing task. When the execution machine cannot execute the case type test of the case set in the first automated testing task, it determines the case type of the case set in the second automated testing task. The case types of the case sets in the automated testing tasks are determined in sequence according to the priorities of the automated testing tasks until an executable automated testing task is found.

[0060] The above describes in detail a task publishing method provided in an embodiment of the present application. The present application also provides a task execution method. Figure 2 As shown, including:

[0061] In step 201, when idle, an automated test task is picked up from a task array according to the priority of the automated test task and the case type of the case set in the automated test task.

[0062] When the execution machine is idle, it can pick up tasks from the task array according to the priority of the automated test task and the case type of the case set. Specifically, the execution machine first determines the case type of the case set of the automated test task with the highest priority in the task array, and when the case type test can be executed, it picks up the automated test task. When the case type test cannot be executed, it continues to determine the case type of the case set of the automated test task with the next priority until the automated test task corresponding to the case type test can be executed.

[0063] In this embodiment, the automated test tasks are first scanned to ensure that the automated test tasks with higher priority are executed earlier. When multiple automated tests are at the same priority, the levels of the automated test tasks at the same priority are determined. The levels include: the first level, the second level, and the third level. The first level is that the current execution machine has been received but not completed, so as to ensure that the task continues to be executed after abnormal termination or forced restart after the task is received in the previous cycle; the second level is that it has not been received and matches the attributes of the execution machine, specifically referring to the matching of the environmental factors required by the automated test task with the environmental factors of the current execution machine; the third level is that it has not been received but the execution machine attributes can be matched later. Usually, the requirements of automated test tasks for environmental factors are abstracted into fixed attributes and variable attributes. Fixed attributes refer to the environmental factors of the execution machine that can be monitored but cannot be modified, such as the execution machine operating system and version, and variable attributes refer to the environmental factors of the execution machine that can be monitored and modified, such as the execution machine IE browser version. The unreceived but the execution machine attributes can be matched later specifically refers to that before the execution machine receives the automated test task, the execution machine changes its own environmental factors according to the environmental factors required by the automated test task to meet the environmental factors required by the automated test task. In a specific application, after receiving an automated test task, before executing the automated test task under the environmental elements of the automated test task, the environmental elements of the execution machine receiving the automated test task are monitored and changed to match the environmental elements of the automated test task. For example, the execution machine includes an executor, an execution machine manager, and an environment manager, and the environment manager is used to monitor, add, or modify the environmental elements of the execution machine.

[0064] In step 202, the automated testing task is executed under the environmental elements of the automated testing task; the environmental elements are determined according to the case set.

[0065] The automated testing task is performed under the environmental elements required by the automated testing task. Since the case collection includes one or more cases, the environmental elements required for each case may be the same or different. Therefore, when the case collection includes multiple cases, the automated testing task may include multiple environmental elements. The environmental elements of the execution machine that executes the automated testing task have environmental elements corresponding to the environmental elements required for the automated testing task, that is, the execution machine includes multiple environmental elements.

[0066] The above describes in detail a task execution method provided in an embodiment of the present application. The present application also provides a task issuing device, referring to Figure 3 As shown, including:

[0067] A first determining unit 301 is used to determine the priority of an automated testing task, a case set in the automated testing task, and a case type of the case set;

[0068] A second determining unit 302, configured to determine the environmental elements of the automated testing task according to the case set;

[0069] The publishing unit 303 is used to publish the priority of the automated testing task, the case type of the case set and the environmental elements of the automated testing task to the task array, so that the execution machine can pick up the automated testing task according to the priority and the case type when idle and execute the automated testing task under the environmental elements.

[0070] The present application also provides a task execution device, referring to Figure 4 As shown, including:

[0071] A receiving unit 401 is used to receive an automated test task in the task array according to the priority of the automated test task and the case type of the case set in the automated test task when idle;

[0072] The execution unit 402 is used to execute the automated testing task under the environmental elements of the automated testing task; the environmental elements are determined according to the case set.

[0073] The embodiment of the present application also provides a task system, including: the above-mentioned task issuing device and the above-mentioned task executing device.

[0074] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0075] The above is only a preferred embodiment of the present invention. Although the present invention has been disclosed as a preferred embodiment, it is not intended to limit the present invention. Any technician familiar with the art can make many possible changes and modifications to the technical solution of the present invention by using the above disclosed methods and technical contents without departing from the scope of the technical solution of the present invention, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of protection of the technical solution of the present invention.

Claims

1. A task publishing method, It is characterized in that include: Determine the priority of the automated testing task, the case set in the automated testing task, and the case type of the case set; The case types include interface testing and interface testing; Determining the environmental elements of the automated testing task according to the case set; The priority of the automated test task, the case type of the case set, and the environmental elements of the automated test task are published to the task array, so that the execution machine can pick up the automated test task according to the priority and the case type of the case set when idle and execute the automated test task under the environmental elements of the automated test task; The process of the execution machine picking up the automated test task according to the priority and the case type of the case set when idle includes: judging whether the case type of the case set of the automated test task with a higher priority in the task array is executable; when the case type of the case set of the automated test task with a higher priority in the task array is executable, picking up the automated test task with a higher priority; when the case type of the case set of the automated test task with a higher priority in the task array is not executable, continuing to judge whether the case type of the case set of the automated test task with a next priority is executable, until the automated test task corresponding to the executable case type is determined to be executed; The execution machine receives the automated test task according to the priority and the case type of the case set when idle, and also includes: scanning the automated test task when idle; determining the level of automated test tasks at the same priority, the levels including: first level, second level and third level; the first level is that the execution machine has received but not completed; the second level is that it has not been received and matches the attributes of the execution machine; the third level is that it has not been received but can be matched after the attributes of the execution machine are changed; receiving the automated test task at the same priority according to the level; wherein, the matching with the attributes of the execution machine includes matching the environmental factors required for the automated test task with the environmental factors of the execution machine.

2. The method according to claim 1, It is characterized in that Determining the priority of automated testing tasks includes: Receive an automated test task trigger request, the trigger request including: a manually initiated automated test trigger request, a scheduled task initiated automated test trigger request, and a continuous integration pipeline initiated automated test trigger request; The priority of the automated testing task is determined according to the automated testing task triggering request.

3. The method according to claim 2, It is characterized in that The trigger request for the automated test initiated by the scheduled task includes: Trigger requests for automated testing based on user needs and trigger requests for automated testing of case availability; Then, determining the priority of the automated test task according to the automated test task trigger request includes: When the automated test task trigger request is the manually initiated automated test trigger request or the automated test trigger request initiated by the continuous integration pipeline, determining the priority of the automated test task to be the highest priority; When the automated test task trigger request is the automated test trigger request set according to user requirements, determining the priority of the automated test task to be a medium priority; When the automated test task trigger request is a trigger request for automated testing of the case availability, the priority of the automated test task is determined to be the lowest priority.

4. The method according to claim 1, It is characterized in that After the execution machine receives the automated test task when idle, and before executing the automated test task, the method further includes: Check whether the execution machine has an updated version, and if so, update the version of the execution machine; Receiving the running status of the execution machine in real time when the execution machine executes the automated testing task; After the execution machine completes the automated testing task, it issues a task completion notification and saves the execution record of the automated testing task.

5. A task execution method, It is characterized in that include: When idle, pick up automated test tasks in the task array according to the priority of the automated test tasks and the case types of the case sets in the automated test tasks, wherein the case types include interface testing and interface testing; The process of obtaining an automated test task according to the priority of the automated test task and the case type of the case set in the automated test task includes: judging whether the case type of the case set of the automated test task with a higher priority in the task array is executable; when the case type of the case set of the automated test task with a higher priority in the task array is executable, obtaining the automated test task with a higher priority; when the case type of the case set of the automated test task with a higher priority in the task array is not executable, continuing to judge whether the case type of the case set of the automated test task with the next priority is executable, until the automated test task corresponding to the executable case type is determined to be executed; The method of claiming an automated test task in the task array according to the priority of the automated test task and the case type of the case set in the automated test task when idle also includes: scanning the automated test task when idle; determining the level of automated test tasks at the same priority, the levels including: the first level, the second level and the third level; the first level means that the execution machine has claimed it but not completed it; the second level means that it has not been claimed and matches the attributes of the execution machine; the third level means that it has not been claimed but can be matched after the attributes of the execution machine are changed; claiming the automated test task at the same priority according to the level, wherein the matching with the attributes of the execution machine includes matching the environmental factors required by the automated test task with the environmental factors of the execution machine; The automated testing task is executed under the environmental elements of the automated testing task; the environmental elements are determined according to the case set.

6. The method according to claim 5, It is characterized in that After receiving the automated testing task and before executing the automated testing task under the environmental elements of the automated testing task, the method further includes: Monitor and modify the environmental factors of the execution machine that receives the automated test task to match the environmental factors of the automated test task.

7. A task issuing device, It is characterized in that include: A first determining unit, used to determine the priority of the automated testing task, the case set in the automated testing task, and the case type of the case set, wherein the case type includes interface testing and interface testing; A second determining unit, configured to determine the environmental elements of the automated testing task according to the case set; A publishing unit, used for publishing the priority of the automated test task, the case type of the case set, and the environmental elements of the automated test task to the task array, so that the execution machine can pick up the automated test task according to the priority and the case type of the case set when idle and execute the automated test task under the environmental elements of the automated test task; Among them, the process of claiming the automated testing task according to the priority and the case type of the case set includes: judging whether the case type of the case set of the automated testing task with a higher priority in the task array is executable; when the case type of the case set of the automated testing task with a higher priority in the task array is executable, claiming the automated testing task with a higher priority; when the case type of the case set of the automated testing task with a higher priority in the task array is not executable, continuing to judge whether the case type of the case set of the automated testing task with the next priority is executable, until the automated testing task corresponding to the executable case type is determined to be executed; The execution machine receives the automated test task according to the priority and the case type of the case set when idle, and also includes: scanning the automated test task when idle; determining the level of automated test tasks at the same priority, the levels including: first level, second level and third level; the first level is that the execution machine has received but not completed; the second level is that it has not been received and matches the attributes of the execution machine; the third level is that it has not been received but can be matched after the attributes of the execution machine are changed; receiving the automated test task at the same priority according to the level, wherein the matching with the attributes of the execution machine includes matching the environmental factors required for the automated test task with the environmental factors of the execution machine.

8. A task execution device, It is characterized in that include: The receiving unit is used to receive the automated test task in the task array according to the priority of the automated test task and the case type of the case set in the automated test task when idle; the case type includes interface test and interface test: The process of obtaining an automated test task according to the priority of the automated test task and the case type of the case set in the automated test task includes: judging whether the case type of the case set of the automated test task with a higher priority in the task array is executable; when the case type of the case set of the automated test task with a higher priority in the task array is executable, obtaining the automated test task with a higher priority; when the case type of the case set of the automated test task with a higher priority in the task array is not executable, continuing to judge whether the case type of the case set of the automated test task with the next priority is executable, until the automated test task corresponding to the executable case type is determined to be executed; When idle, the automated test tasks are picked up in the task array according to the priority of the automated test tasks and the case type of the case set in the automated test tasks, including: scanning the automated test tasks when idle; determining the levels of automated test tasks at the same priority, the levels including: first level, second level and third level; the first level means that the execution machine has picked up but not completed; the second level means that the tasks have not been picked up and match the attributes of the execution machine; the third level means that the tasks have not been picked up but can be matched after the attributes of the execution machine are changed; picking up the automated test tasks at the same priority according to the levels, wherein the matching with the attributes of the execution machine includes matching the environmental factors required by the automated test tasks with the environmental factors of the execution machine; An execution unit is used to execute the automated testing task under the environmental elements of the automated testing task; the environmental elements are determined according to the case set.

9. A task system, It is characterized in that It includes the task issuing device described in claim 7 and the task executing device described in claim 8.