Test task execution method and device, computer equipment and storage medium

By providing an automated test task execution method in the hybrid cloud management platform, the problem of inefficiency in tests in traditional testing solutions is solved, and more efficient testing and wider coverage is achieved.

CN119621573APending Publication Date: 2025-03-14CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411723588.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The testing solutions of traditional hybrid cloud management platforms have the problem of low testing efficiency, and a method that can improve testing efficiency is needed.

Method used

It provides a test task execution method, which realizes the execution and results display of automated test tasks through mode switching requests, mode information feedback, functional test control operation, test task generation and execution between the user mode interface and the management end.

Benefits of technology

By automating the execution and result presentation of test tasks, the testing efficiency and coverage are improved, and the risk of the impact of test task execution on the normal use of other modes is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119621573A_ABST
    Figure CN119621573A_ABST
Patent Text Reader

Abstract

The invention relates to a test task execution method and device, computer equipment and a storage medium. The method comprises the following steps: in response to a touch operation on a mode switching control in a user mode interface, sending a mode switching request to a management end; receiving mode information of the test mode fed back by the management end, and displaying a test mode interface according to the mode information; in response to a touch operation on a function test control in the test mode interface, generating a test task comprising at least one test case; and executing the test task to obtain a task result corresponding to the test task, and displaying the task result. By adopting the method, the user side and the management side are separated, so that mode switching has high flexibility and expansibility, the test mode and other modes are subjected to environment isolation, it is ensured that the normal use of the other modes is not affected by the execution of the test task, the influence risk of the execution of the test task on the normal use of the other modes is reduced, and the test efficiency is improved. And the test efficiency and the coverage rate are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a test task execution method, apparatus, computer equipment and storage medium. Background Art

[0002] In recent years, with the gradual expansion of online business, major enterprises, institutions and private enterprises have been building their own cloud infrastructure. Hybrid cloud has been widely used because it can take into account the advantages of both public cloud and private cloud.

[0003] In traditional technology, the testing plan for the hybrid cloud management platform is that the hybrid cloud solution provider designates a testing and acceptance team to test and accept the delivered hybrid cloud management products through manual testing and automation, and produce a test report to the user. Although this method can complete the test, it has the problem of low testing efficiency. Summary of the invention

[0004] Based on this, it is necessary to provide a test task execution method, device, computer equipment and storage medium that can improve test efficiency in response to the above technical problems.

[0005] In a first aspect, the present application provides a test task execution method, which is applied to a user end and includes:

[0006] In response to a touch operation on a mode switching control in the user mode interface, sending a mode switching request to a management terminal;

[0007] Receive mode information of the test mode fed back by the management end, and display the test mode interface according to the mode information;

[0008] In response to a touch operation on a functional test control in a test mode interface, generating a test task including at least one test case;

[0009] Execute the test task, obtain the task result corresponding to the test task, and display the task result.

[0010] In one embodiment, in response to a touch operation on a functional test control in a test mode interface, generating a test task including at least one test case includes:

[0011] In response to a touch operation on a function test control in a test mode interface, obtaining at least one function to be tested;

[0012] According to the preset test mapping relationship, determine the test cases corresponding to each function to be tested;

[0013] Generate test tasks based on the test cases corresponding to each function to be tested.

[0014] In one embodiment, executing a test task and generating a task result corresponding to the test task includes:

[0015] Send the test task to the management end so that the management end can execute the test task;

[0016] Receive the task results corresponding to the test tasks fed back by the management end;

[0017] The task results of the test task are displayed in the test mode interface.

[0018] In a second aspect, the present application provides a test task execution method, which is applied to a management end, including:

[0019] Receive a test mode switching request sent by a user terminal, and obtain mode information of the test mode;

[0020] Sending mode information of the test mode to a user terminal, so that the user terminal generates a test task including at least one test case in response to a touch operation on a test mode interface displayed based on the mode information of the test mode;

[0021] Receive the test task sent by the user, execute the test task, and obtain the task result of the test task;

[0022] The task results of the test task are sent to the user end so that the user end can display the task results.

[0023] In one embodiment, the test task includes at least one test case; executing the test task to obtain a task result of the test task includes:

[0024] For each test case, determine the test environment corresponding to the test case;

[0025] Execute the test case in the test environment and obtain the test case result;

[0026] Determine the task result of the test task based on the use case results of each test case.

[0027] In one embodiment, the method further comprises:

[0028] Obtain the behavior data generated during the execution of the test task; the behavior data includes the task execution time, task duration and execution case list;

[0029] Accordingly, the task results of the test tasks are determined according to the test case results of each test case, including:

[0030] Determine the task results of the test task based on the behavior data and the use case results of each test case.

[0031] In a third aspect, the present application also provides a test task execution device, including:

[0032] A request initiating module, configured to send a mode switching request to a management terminal in response to a touch operation on a mode switching control in a user mode interface;

[0033] An interface display module is used to receive mode information of the test mode fed back by the management end, and display the test mode interface according to the mode information;

[0034] A task generation module, configured to generate a test task including at least one test case in response to a touch operation on a functional test control in a test mode interface;

[0035] The result display module is used to execute the test task, obtain the task result corresponding to the test task, and display the task result.

[0036] In a fourth aspect, the present application also provides a test task execution device, including:

[0037] A request receiving module, used to receive a test mode switching request sent by a user terminal and obtain mode information of the test mode;

[0038] An information sending module, used for sending mode information of the test mode to the user terminal, so that the user terminal generates a test task including at least one test case in response to a touch operation on a test mode interface displayed based on the mode information of the test mode;

[0039] The task execution module is used to receive the test task sent by the user end, execute the test task, and obtain the task result of the test task;

[0040] The result sending module is used to send the task results of the test task to the user end so that the user end can display the task results.

[0041] In a fifth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0042] In response to a touch operation on a mode switching control in the user mode interface, sending a mode switching request to a management terminal;

[0043] Receive mode information of the test mode fed back by the management end, and display the test mode interface according to the mode information;

[0044] In response to a touch operation on a functional test control in a test mode interface, generating a test task including at least one test case;

[0045] Execute the test task, obtain the task result corresponding to the test task, and display the task result.

[0046] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0047] In response to a touch operation on a mode switching control in the user mode interface, sending a mode switching request to a management terminal;

[0048] Receive mode information of the test mode fed back by the management end, and display the test mode interface according to the mode information;

[0049] In response to a touch operation on a functional test control in a test mode interface, generating a test task including at least one test case;

[0050] Execute the test task, obtain the task result corresponding to the test task, and display the task result.

[0051] In a seventh aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0052] In response to a touch operation on a mode switching control in the user mode interface, sending a mode switching request to a management terminal;

[0053] Receive mode information of the test mode fed back by the management end, and display the test mode interface according to the mode information;

[0054] In response to a touch operation on a functional test control in a test mode interface, generating a test task including at least one test case;

[0055] Execute the test task, obtain the task result corresponding to the test task, and display the task result.

[0056] The above-mentioned test task execution method, device, computer equipment and storage medium respond to the touch operation of the mode switching control in the user mode interface, send a mode switching request to the management end; receive the mode information of the test mode fed back by the management end, and display the test mode interface according to the mode information; respond to the touch operation of the functional test control in the test mode interface, generate a test task including at least one test case; execute the test task, obtain the task result corresponding to the test task, and display the task result. This embodiment can complete the mode switching through the mode switching control, which is simple to operate. At the same time, the mode information sent by the management end is received to switch the mode, and the user end is separated from the management end, so that the mode switching has high flexibility and scalability, and the test mode is isolated from other modes in the environment, ensuring that the execution of the test task will not affect the normal use of other modes, reducing the risk of the impact of the execution of the test task on the normal use of other modes, and improving the test efficiency and coverage. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0058] Figure 1 An application environment diagram of a test task execution method provided in this embodiment;

[0059] Figure 2 A flowchart of the first test task execution method provided in this embodiment;

[0060] Figure 3 A flowchart of a second test task execution method provided in this embodiment;

[0061] Figure 4 A structural block diagram of the first test task execution device provided in this embodiment;

[0062] Figure 5 A structural block diagram of a second test task execution device provided in this embodiment;

[0063] Figure 6 This is a diagram of the internal structure of a computer device provided in this embodiment. DETAILED DESCRIPTION

[0064] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0065] The test task execution method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the user terminal 100 sends a mode switching request to the management terminal 101 in response to a touch operation on a mode switching control in a user mode interface; receives mode information of a test mode fed back by the management terminal 101, and displays a test mode interface according to the mode information; generates a test task including at least one test case in response to a touch operation on a functional test control in the test mode interface; executes the test task, obtains a task result corresponding to the test task, and displays the task result.

[0066] In an exemplary embodiment, Figure 2 As shown, a test task execution method is provided, which is applied to Figure 1The user end in FIG. 1 is taken as an example to illustrate, and the method includes the following steps 201 to 204. Among them:

[0067] Step 201: In response to a touch operation on a mode switching control in a user mode interface, a mode switching request is sent to a management terminal.

[0068] Among them, the mode switching control is used to switch the control between the test mode and the normal mode. The user end can be the computer device corresponding to the user, and the user can be an ordinary user, an environment administrator, a developer and tester, a product manager, and a pre-sales person. Among them, an ordinary user or an environment administrator can switch to the test mode with one click to perform functional testing and verification; it greatly reduces the understanding and use threshold of the cloud management platform, allowing non-professional users or operation and maintenance administrators to easily understand the current product function points, and independently perform test verification, and intuitively obtain the availability of the full-link function of the current system. Developers and testers can switch to the test mode to quickly debug and verify the stock functions; due to the high coupling degree of resource functions such as computing storage networks, if you want to test a certain function, you usually need to create multiple related resources. The present invention can greatly reduce the testing cost required to develop and verify whether the code changes affect the current resource functions. Product managers and pre-sales personnel can switch to the test mode, view the converged function list, and quickly demonstrate the core functions for user training; the actual resource lifecycle management operations are associated in the form of a function list, and with automated checkpoints and environment cleanup capabilities, so that users can more intuitively understand the functions and operation processes under each resource menu.

[0069] Specifically, in response to a touch operation on a mode switching control in the user mode interface, a mode switching request is generated, and the mode switching request is sent to the management end.

[0070] Step 202: Receive mode information of the test mode fed back by the management end, and display the test mode interface according to the mode information.

[0071] Specifically, the user end receives the mode information of the test mode fed back by the management end, performs rendering according to the mode information, generates corresponding components to obtain rendering results, and displays the rendering results in the test mode interface.

[0072] For example, the user end can perform conditional rendering by reading the status in the local storage or returning the content through the mode acquisition interface provided by the management end to control the display and hiding of different components.

[0073] Step 203: In response to a touch operation on a functional test control in the test mode interface, a test task including at least one test case is generated.

[0074] Among them, exemplarily, the preset test mapping relationship can be the correspondence between various cloud computing products and test cases. For example, for the cloud host module, the corresponding test cases include cloud host creation, cloud host query, cloud host modification, cloud host cancellation, cloud host mounting cloud hard disk, cloud host destruction and other use cases.

[0075] In one of the embodiments, in response to a touch operation on a functional test control in a test mode interface, at least one test case is acquired; and the test cases are combined to generate a test task.

[0076] In another embodiment, in response to a touch operation on a functional test control in a test mode interface, a test task containing at least one test case is generated, including: in response to a touch operation on a functional test control in the test mode interface, obtaining at least one function to be tested; determining the test cases corresponding to each function to be tested according to a preset test mapping relationship; and generating a test task according to the test cases corresponding to each function to be tested.

[0077] Specifically, in response to a touch operation on a functional test control in a test mode interface, at least one function to be tested is obtained; according to a preset test mapping relationship, a test case corresponding to each function to be tested is determined; and a test task is generated according to the test case corresponding to each function to be tested.

[0078] Step 204, execute the test task, obtain the task result corresponding to the test task, and display the task result.

[0079] In one of the embodiments, the user terminal executes a test task in a virtual environment, obtains a task result corresponding to the test task, and displays the task result on a test mode interface.

[0080] In another embodiment, executing a test task and generating a task result corresponding to the test task include: sending the test task to a management end so that the management end can execute the test task; receiving the task result corresponding to the test task fed back by the management end; and displaying the task result of the test task in a test mode interface.

[0081] Specifically, the user end sends a test task to the management end; the management end executes the test task and feeds back the task result corresponding to the test task to the user end; the user end receives the task result corresponding to the test task fed back by the management end; and the task result of the test task is displayed in the test mode interface.

[0082] The above-mentioned test task execution method, device, computer equipment and storage medium respond to the touch operation of the mode switching control in the user mode interface, send a mode switching request to the management end; receive the mode information of the test mode fed back by the management end, and display the test mode interface according to the mode information; respond to the touch operation of the functional test control in the test mode interface, generate a test task including at least one test case; execute the test task, obtain the task result corresponding to the test task, and display the task result. This embodiment can complete the mode switching through the mode switching control, which is simple to operate. At the same time, the mode information sent by the management end is received to switch the mode, and the user end is separated from the management end, so that the mode switching has high flexibility and scalability, and the test mode is isolated from other modes in the environment, ensuring that the execution of the test task will not affect the normal use of other modes, reducing the risk of the impact of the execution of the test task on the normal use of other modes, and improving the test efficiency and coverage.

[0083] In an exemplary embodiment, Figure 3 As shown, a test task execution method is provided, which is applied to Figure 1 The management end in FIG. 1 is taken as an example to illustrate, including the following steps 301 to 304. Among them:

[0084] Step 301: Receive a test mode switching request sent by a user terminal and obtain mode information of the test mode.

[0085] Step 302 : sending mode information of the test mode to the user terminal, so that the user terminal generates a test task including at least one test case in response to a touch operation on a test mode interface displayed based on the mode information of the test mode.

[0086] Step 303, receiving the test task sent by the user terminal, executing the test task, and obtaining the task result of the test task.

[0087] In one of the embodiments, the management end receives a test task sent by a user; constructs a scenario according to each test case in the test task; completes the construction of a virtual environment corresponding to the scenario through containerization technology (such as Docker technology) or a compilation tool (which needs to be designed in conjunction with the test case writing scheme); executes the test task in the virtual environment to obtain a task result of the test task.

[0088] In another embodiment, the test task includes at least one test case; executing the test task to obtain the task result of the test task includes: for each test case, determining the test environment corresponding to the test case; executing the test case in the test environment to obtain the case result of the test case; determining the task result of the test task based on the case results of each test case.

[0089] Specifically, for each test case, a test environment corresponding to the test case is determined, the test case is executed in the test environment, a test case result of the test case is obtained, the test case results of each test case are combined, and a task result of the test task is determined.

[0090] Furthermore, this embodiment can also: obtain behavioral data generated during the execution of the test task; the behavioral data includes task execution time, task duration and execution case list; determine the task result of the test task based on the behavioral data and the case results of each test case.

[0091] Specifically, the behavior data generated during the execution of the test task is obtained, and the behavior data and the case results of each test case are combined to obtain the task result of the test task.

[0092] Exemplarily, this embodiment can implement organizational scenario-based test cases based on the interface testing framework, such as cloud host lifecycle management, and the use case execution process: creating a virtual private cloud, subnet, querying specifications, mirroring, querying supported hard disk types, querying quotas, creating a cloud host, querying a cloud host, operating cloud host shutdown & startup, cloud host mounting a cloud hard disk, cloud host unsubscription, cloud host destruction, deleting a subnet, and deleting a virtual private cloud.

[0093] Exemplarily, this embodiment also supports the collection of execution process log recording and use case checkpoint assertion information, and records the generated behavior data based on the user's subjectively triggered test action. For example, when a user executes a use case under the cloud host module, a test behavior is recorded, and the start time, end time, duration, execution use case list, and test process and results of each use case included in the test behavior are stored.

[0094] Step 304: Send the task result of the test task to the user terminal so that the user terminal can display the task result.

[0095] This embodiment receives a test mode switching request sent by a user terminal, obtains mode information of the test mode; sends the mode information of the test mode to the user terminal, so that the user terminal can respond to the touch operation of the test mode interface displayed based on the mode information of the test mode, and generate a test task including at least one test case; receives the test task sent by the user terminal, executes the test task, and obtains the task result of the test task; sends the task result of the test task to the user terminal, so that the user terminal can display the task result. This embodiment can complete the mode switching through the mode switching control, which is simple to operate. At the same time, it receives the mode information sent by the management terminal to switch the mode, separates the user terminal from the management terminal, and makes the mode switching have high flexibility and scalability, and isolates the test mode from other modes to ensure that the execution of the test task will not affect the normal use of other modes, reduces the risk of the impact of the execution of the test task on the normal use of other modes, and improves the test efficiency and coverage.

[0096] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0097] Based on the same inventive concept, the embodiment of the present application also provides a test task execution device for implementing the test task execution method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more test task execution device embodiments provided below can refer to the limitations of the test task execution method above, and will not be repeated here.

[0098] In an exemplary embodiment, Figure 4 As shown, a test task execution device is provided, including: a request initiation module 10, an interface display module 20, a task generation module 30 and a result display module 40, wherein:

[0099] A request initiating module 10, configured to send a mode switching request to a management terminal in response to a touch operation on a mode switching control in a user mode interface;

[0100] The interface display module 11 is used to receive the mode information of the test mode fed back by the management end, and display the test mode interface according to the mode information;

[0101] A task generating module 12, for generating a test task including at least one test case in response to a touch operation on a functional test control in a test mode interface;

[0102] The result display module 13 is used to execute the test task, obtain the task result corresponding to the test task, and display the task result.

[0103] In one embodiment, the task generation module is also used to obtain at least one function to be tested in response to a touch operation on a functional test control in a test mode interface; determine the test cases corresponding to each function to be tested according to a preset test mapping relationship; and generate a test task according to the test cases corresponding to each function to be tested.

[0104] In one embodiment, the result display module is also used to send the test task to the management end so that the management end can execute the test task; receive the task result corresponding to the test task fed back by the management end; and display the task result of the test task in the test mode interface.

[0105] In an exemplary embodiment, Figure 5 As shown, a test task execution device is provided, comprising: a request receiving module 20, an information sending module 21, a task execution module 22 and a result sending module 23, wherein:

[0106] The request receiving module 20 is used to receive the test mode switching request sent by the user terminal and obtain the mode information of the test mode;

[0107] An information sending module 21, configured to send mode information of a test mode to a user terminal, so that the user terminal generates a test task including at least one test case in response to a touch operation on a test mode interface displayed based on the mode information of the test mode;

[0108] The task execution module 22 is used to receive the test task sent by the user terminal, execute the test task, and obtain the task result of the test task;

[0109] The result sending module 23 is used to send the task result of the test task to the user end so that the user end can display the task result.

[0110] In one embodiment, the result sending module 23 is also used to determine the test environment corresponding to each test case; execute the test case in the test environment to obtain the test case result of the test case; and determine the task result of the test task according to the test case result of each test case.

[0111] In one embodiment, the test task execution device is also used to obtain behavioral data generated during the execution of the test task; the behavioral data includes task execution time, task duration and a list of executed use cases; accordingly, the task result of the test task is determined based on the use case results of each test case, including: determining the task result of the test task based on the behavioral data and the use case results of each test case.

[0112] Each module in the above-mentioned test task execution device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0113] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a test task execution method is implemented.

[0114] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0115] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0116] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0117] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0118] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0119] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0120] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0121] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A test task execution method, characterized in that: Applied to a user terminal, the method includes: In response to a touch operation on a mode switching control in the user mode interface, sending a mode switching request to a management terminal; receiving mode information of the test mode fed back by the management end, and displaying a test mode interface according to the mode information; In response to a touch operation on a functional test control in a test mode interface, generating a test task including at least one test case; Execute the test task, obtain the task result corresponding to the test task, and display the task result.

2. The method according to claim 1, characterized in that: The step of generating a test task including at least one test case in response to a touch operation on a functional test control in a test mode interface comprises: In response to a touch operation on a function test control in a test mode interface, obtaining at least one function to be tested; According to the preset test mapping relationship, determine the test cases corresponding to each function to be tested; Generate test tasks based on the test cases corresponding to each function to be tested.

3. The method according to claim 1, characterized in that The executing the test task and generating a task result corresponding to the test task includes: Sending the test task to the management end so that the management end executes the test task; Receive the task result corresponding to the test task fed back by the management end; The task result of the test task is displayed in the test mode interface.

4. A test task execution method, characterized in that: Applied to the management end, the method includes: Receive a test mode switching request sent by a user terminal, and obtain mode information of the test mode; Sending mode information of the test mode to a user terminal, so that the user terminal generates a test task including at least one test case in response to a touch operation on a test mode interface displayed based on the mode information of the test mode; Receive the test task sent by the user terminal, execute the test task, and obtain the task result of the test task; The task result of the test task is sent to the user terminal so that the user terminal can display the task result.

5. The method according to claim 4, characterized in that The test task includes at least one test case; and executing the test task to obtain a task result of the test task includes: For each test case, determining a test environment corresponding to the test case; Execute the test case in the test environment to obtain a test case result of the test case; The task result of the test task is determined according to the case result of each test case.

6. The method according to claim 4, characterized in that The method further comprises: Acquire behavior data generated during the execution of the test task; the behavior data includes task execution time, task duration and execution case list; Correspondingly, determining the task result of the test task according to the case result of each test case includes: The task result of the test task is determined according to the behavior data and the case results of each test case.

7. A test task execution device, characterized in that: Applied to a user terminal, the device comprises: A request initiating module, configured to send a mode switching request to a management terminal in response to a touch operation on a mode switching control in a user mode interface; An interface display module, used to receive mode information of the test mode fed back by the management end, and display the test mode interface according to the mode information; A task generation module, configured to generate a test task including at least one test case in response to a touch operation on a functional test control in a test mode interface; The result display module is used to execute the test task, obtain the task result corresponding to the test task, and display the task result.

8. A test task execution device, characterized in that: Applied to the management end, the device includes: A request receiving module, used to receive a test mode switching request sent by a user terminal and obtain mode information of the test mode; An information sending module, used for sending mode information of the test mode to the user terminal, so that the user terminal generates a test task including at least one test case in response to a touch operation on a test mode interface displayed based on the mode information of the test mode; A task execution module, used for receiving the test task sent by the user terminal, executing the test task, and obtaining the task result of the test task; The result sending module is used to send the task result of the test task to the user terminal so that the user terminal can display the task result.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.