Test task creation method and device, terminal and storage medium
By obtaining program development task information and directory structure, test tasks are automatically created, which solves the problem of low efficiency in manually creating test tasks and realizes efficient program function testing.
Patent Information
- Application Number
- CN202310403508.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-06
- Publication Date
- 2024-10-15
AI Technical Summary
In the existing technology, program function testing requires manual creation of test tasks, resulting in low testing efficiency.
By obtaining the development task information of the program, configure the test task information on the task configuration page based on the directory structure of multiple program functions, automatically create the test task, and execute the test after meeting the task creation conditions.
There is no need to manually create test tasks, which improves testing efficiency and simplifies the program function testing process.
Smart Images

Figure CN118779209A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a test task creation method, device, terminal and storage medium. Background Art
[0002] With the development of computer technology, people gradually pay more attention to the quality of programs in the process of program development. Among them, whether the program functions normally is an important factor in measuring the quality of the program. Therefore, in order to ensure the quality of the program, it is usually necessary to test the program function before the program is released.
[0003] In the related art, a tester usually determines the program functions to be tested in the program, such as functions of logging in and logging out of an account, etc. The tester creates a test task for the function to be tested, and then executes the test task to test the program function.
[0004] However, the above method requires manual creation of test tasks, which results in low test efficiency. Summary of the invention
[0005] The embodiment of the present application provides a test task creation method, device, terminal and storage medium, which can improve the test efficiency. The technical solution is as follows:
[0006] In one aspect, a test task creation method is provided, the method comprising:
[0007] Acquire development task information of a program, wherein the development task information includes a directory structure of a plurality of program functions to be tested in the program;
[0008] Based on the directory structure of the multiple program functions, displaying a task configuration page, the task configuration page is used to configure test task information of the multiple test tasks to be created, the multiple test tasks correspond one-to-one to the multiple program functions, and the test task information is used to indicate information required to create the test task;
[0009] Based on the task configuration operation in the task configuration page, determining the test task information of the plurality of test tasks to be created, the test task information including task creation conditions;
[0010] In response to any test task satisfying a task creation condition, the test task is created based on the test task information of the test task.
[0011] On the other hand, a test task creation device is provided, the device comprising:
[0012] An acquisition module, used for acquiring development task information of a program, wherein the development task information includes a directory structure of a plurality of program functions to be tested in the program;
[0013] A first display module, configured to display a task configuration page based on the directory structure of the plurality of program functions, wherein the task configuration page is used to configure test task information of the plurality of test tasks to be created, wherein the plurality of test tasks correspond one-to-one to the plurality of program functions, and the test task information is used to indicate information required to create the test task;
[0014] A determination module, configured to determine the test task information of the plurality of test tasks to be created based on the task configuration operation in the task configuration page, wherein the test task information includes a task creation condition;
[0015] The test task creation module is used to create the test task based on the test task information of any test task in response to any test task satisfying the task creation condition.
[0016] In some embodiments, the test task information also includes preconditions; the determination module is used to display at least one created task for any test task to be created based on the configuration operation of the preconditions on the task configuration page; based on the predecessor task selection operation on the task configuration page, determine the predecessor task associated with the test task; and use the completion of the predecessor task as a prerequisite for the test task; the test task creation module is used to create the test task based on the test task information of the test task in response to the test task satisfying the preconditions and task creation conditions.
[0017] In some embodiments, the test task information also includes a pre-creation condition; the determination module is used to determine the pre-creation condition of the test task based on the configuration operation of the pre-creation condition on the task configuration page; the test task creation module is used to pre-create the test task based on the test information of the test task when the test task meets the pre-creation condition and does not meet at least one of the task creation condition and the pre-condition, and the pre-created test task is in an unexecutable state.
[0018] In some embodiments, the test task information also includes the task executor and the task leader;
[0019] The determination module is used for displaying a list of executors and a list of responsible persons associated with any test task to be created on the task configuration page based on the personnel configuration operation on the task configuration page; determining at least one task executor for testing the test task based on the selection operation of the task executor in the executor list; and determining at least one task responsible person for the test task based on the selection operation of the task responsible person in the responsible person list;
[0020] The device also includes:
[0021] The adding module is used to add the test task to the task lists of the at least one task executor and the at least one task responsible person respectively in response to the test task being created.
[0022] In some embodiments, the test task information further includes a task time limit, and the task time limit is used to indicate the start time and the end time of the test task, and the device further includes:
[0023] The second display module is used to display a prompt message when the number of test tasks performed by any task executor within the task time limit is greater than a quantity threshold, wherein the prompt message is used to prompt the task executor to be reselected.
[0024] In some embodiments, the acquisition module is used to determine a development plan for the program, the development plan is used to indicate multiple program functions to be tested in the program, a directory structure of the multiple program functions, and function introduction information of the multiple program functions; copy the directory structure of the multiple program functions to obtain development task information of the program;
[0025] The device also includes:
[0026] A link establishment module is used to establish a link between the directory structure of the development task information and the directory of the same program function in the directory structure in the development plan, and the link is used to display the function introduction information of the corresponding program function after being triggered.
[0027] In some embodiments, the acquisition module is used to acquire test information, where the test information is used to indicate multiple program functions to be tested, and the test information is stored in at least one form of table, text or image; the test information is converted into a directory structure to obtain development task information of the program.
[0028] In some embodiments, the apparatus further comprises:
[0029] An update information determination module, configured to determine update information of the development plan in response to an update of the development plan;
[0030] An updating module is used to update the development task information based on the update information of the development plan.
[0031] In some embodiments, the update information determination module is further used to determine the update information of the test task in response to the test task information of the test task being updated;
[0032] The updating module is further configured to update, in the development plan, program information associated with the program function tested by the testing task based on the updating information.
[0033] In some embodiments, the apparatus further comprises:
[0034] A third display module is used to display a task management page, wherein the task management page displays a Gantt chart tab, a task progress tab, and a task allocation tab;
[0035] A fourth display module, configured to display a Gantt chart page in response to a trigger operation on the Gantt chart tab, wherein the Gantt chart page is configured to display task executors and task deadlines of multiple test tasks through a Gantt chart;
[0036] A fifth display module, for displaying a task progress page in response to a trigger operation on the task progress tab, wherein the task progress page displays progress information of a plurality of test tasks, wherein the progress information includes the task progress, task executor and task time limit of the test task;
[0037] The sixth display module is used to display a task assignment page in response to a trigger operation on the task assignment tab, wherein the task assignment page displays a plurality of task executors and a test task corresponding to each task executor.
[0038] On the other hand, a terminal is provided, the terminal comprising a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to implement the test task creation method as described in the above aspects.
[0039] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the test task creation method as described in the above aspects.
[0040] On the other hand, a computer program product is provided, including a computer program, wherein the computer program is loaded and executed by a processor to implement the test task creation method as described in the above aspects.
[0041] The embodiment of the present application provides a test task creation scheme. In the process of testing multiple program functions of a program, by obtaining the development task information of the program, multiple program functions to be tested in the program and the directory structure of the multiple program functions can be determined. According to the directory structure of the multiple program functions, the test task information of the test tasks to be created corresponding to the multiple program functions can be configured more conveniently on the task configuration page, thereby improving the efficiency of configuring the test task information. According to the task configuration operation on the task configuration page, the test task information such as the task creation conditions of the multiple test tasks to be created can be determined. Then, when the test task meets the task creation conditions, the test task is automatically created. The program function can be tested by executing the created test task. Therefore, there is no need to manually create the test task, which can improve the efficiency of the test. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 It is a schematic diagram of an implementation environment of a test task creation method provided in an embodiment of the present application;
[0044] Figure 2 is a flowchart of a test task creation method provided in an embodiment of the present application;
[0045] Figure 3 is a flowchart of another test task creation method provided in an embodiment of the present application;
[0046] Figure 4 is a flow chart for generating development task information provided by an embodiment of the present application;
[0047] Figure 5 This is a schematic diagram of obtaining image requirements through a development plan provided by an embodiment of the present application;
[0048] Figure 6 It is a schematic diagram of obtaining image requirements through test information provided by an embodiment of the present application;
[0049] Figure 7 is a schematic diagram of a copy directory structure provided in an embodiment of the present application;
[0050] Figure 8 is a schematic diagram of a task configuration page provided in an embodiment of the present application;
[0051] Fig. 9is a schematic diagram of a test task provided in an embodiment of the present application;
[0052] Fig.10 This is a flowchart of a synchronous update field provided by an embodiment of the present application;
[0053] Fig.11 This is a flowchart of creating a test task provided by an embodiment of the present application;
[0054] Fig.12 is a schematic diagram of a test system architecture provided in an embodiment of the present application;
[0055] Fig.13 It is a schematic diagram of a Gantt chart page provided in an embodiment of the present application;
[0056] Fig.14 is a schematic diagram of a task progress page provided in an embodiment of the present application;
[0057] Fig.15 is a schematic diagram of another task progress page provided in an embodiment of the present application;
[0058] Fig.16 is a schematic diagram of a task allocation page provided in an embodiment of the present application;
[0059] Fig.17 It is a structural schematic diagram of a test task creation device provided in an embodiment of the present application;
[0060] Fig.18 It is a structural diagram of another test task creation device provided in an embodiment of the present application;
[0061] Fig.19 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0063] In this application, the terms "first", "second", etc. are used to distinguish identical or similar items with basically the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there any limitation on quantity and execution order.
[0064] In the present application, the term "at least one" means one or more, and the term "plurality" means two or more.
[0065] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the development task information and test task information involved in this application are obtained with full authorization.
[0066] The test task creation method provided in the embodiment of the present application can be executed by a computer device. In some embodiments, the computer device is a terminal or a server. The following takes the computer device as an example to introduce the implementation environment of the test task creation method provided in the embodiment of the present application. Figure 1 Schematic diagram of an implementation environment of a test task creation method provided in an embodiment of the present application. Figure 1 The implementation environment includes a terminal 101 and a server 102. The terminal 101 and the server 102 can be directly or indirectly connected via wired or wireless communication, which is not limited in this application.
[0067] In some embodiments, terminal 101 is a smart phone, a tablet computer, a laptop computer, a desktop computer, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, etc., but is not limited thereto. Terminal 101 installs and runs a test-type application. The application is used to determine the program functions to be tested in the program, the test tasks to be created, and the task creation conditions of the test tasks to be created in the process of developing the program. The application is also used to create test tasks corresponding to the program functions when the task creation conditions are met, so that the tester can test the program functions to be tested in the above program by executing the test tasks. The application is associated with server 102, and server 102 provides background services.
[0068] In some embodiments, the server 102 is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. In some embodiments, the server 102 is used to obtain the task creation conditions of the test task to be created through the terminal 101, and create the test task corresponding to the program function when the task creation conditions are met.
[0069] In some embodiments, the server 102 undertakes the main computing work and the terminal 101 undertakes the secondary computing work; or, the server 102 undertakes the secondary computing work and the terminal 101 undertakes the main computing work; or, the server 102 and the terminal 101 adopt a distributed computing architecture to perform collaborative computing.
[0070] Those skilled in the art will appreciate that the number of the above terminals may be more or less. For example, the above terminal may be only one, or the above terminals may be dozens or hundreds, or more. The embodiment of the present application does not limit the number of terminals and device types.
[0071] Figure 2 is a flow chart of a test task creation method provided by an embodiment of the present application, such as Figure 2 As shown, in the embodiment of the present application, the execution by the terminal is taken as an example for explanation. The test task creation method includes the following steps:
[0072] 201. The terminal obtains development task information of a program, where the development task information includes a directory structure of multiple program functions to be tested in the program.
[0073] In the embodiment of the present application, the program is a computer program under development. During the development of the program, the program functions of the program need to be tested to ensure that the program can run normally. In the process of testing the program, it is necessary to determine the functions to be tested in the program, such as functions such as registering an account, logging in to an account, and canceling an account.
[0074] The terminal obtains the development task information of the program, and based on the development task information, the terminal can determine the directory structure of multiple program functions to be tested in the program. Among them, after the development of the program function is completed, the program function is the program function to be tested. The development task information includes at least the directory structure of multiple program functions to be tested in the program. The directory structure is used to represent the hierarchical relationship between multiple program functions to be tested. For example, program functions A and B are parent functions, and program function a and program function b are child functions of program function B.
[0075] 202. The terminal displays a task configuration page based on the directory structure of multiple program functions. The task configuration page is used to configure test task information of multiple test tasks to be created. The multiple test tasks correspond to the multiple program functions one by one. The test task information is used to indicate the information required to create the test task.
[0076] In an embodiment of the present application, the terminal displays a task configuration page. The task configuration page is used to configure the test task information of the test task corresponding to the program function according to the directory structure. Among them, the test task information can indicate the information required to create the test task, such as the task creation conditions of the test task, the task deadline of the test task, and the task executor of the test task. The embodiment of the present application does not limit the specific content of the test task information.
[0077] 203. The terminal determines test task information of multiple test tasks to be created based on the task configuration operation in the task configuration page, where the test task information includes task creation conditions.
[0078] In an embodiment of the present application, based on the task configuration operation in the task configuration page, the terminal determines the test task information of multiple test tasks configured in the task configuration page. Among them, the task configuration operation can be performed by a manager. Accordingly, the manager configures the task creation conditions, task executors, task deadlines and other information of the test tasks corresponding to the program functions on the task configuration page according to the directory structure of the multiple program functions to be tested. Through the directory structure of the multiple program functions obtained as described above, the test task information corresponding to the multiple program functions can be configured on the task configuration page according to the directory structure, thereby improving the efficiency of configuring the test task information.
[0079] 204. In response to any test task satisfying a task creation condition, the terminal creates a test task based on the test task information of the test task.
[0080] In an embodiment of the present application, after the terminal determines the test task information such as the task creation conditions of multiple test tasks to be created, the terminal can determine whether the test task meets the task creation conditions at a certain time interval. In response to any test task currently meeting the task creation conditions, the terminal creates a test task that meets the test task information according to the configured test task information. For example, the terminal determines once every 10ms whether the task creation conditions of the test task are currently met. In the case where the test task currently meets the task creation conditions, the terminal creates the test task according to the test task information. Among them, in the case where the test task information indicates the task deadline and the task executor, the terminal determines that the deadline of the test task is the task deadline indicated by the test task information, such as March 7. The terminal determines that the task executor of the test task is the task executor indicated by the test task information.
[0081] An embodiment of the present application provides a test task creation method. In the process of testing multiple program functions of a program, by obtaining the development task information of the program, multiple program functions to be tested in the program and the directory structure of the multiple program functions can be determined. According to the directory structure of the multiple program functions, the test task information of the test tasks to be created corresponding to the multiple program functions can be conveniently configured on the task configuration page, thereby improving the efficiency of configuring the test task information. According to the task configuration operation on the task configuration page, the test task information such as the task creation conditions of the multiple test tasks to be created can be determined. Then, when the test task meets the task creation conditions, the test task is automatically created. The program function can be tested by executing the created test task. Therefore, there is no need to manually create the test task, which can improve the efficiency of the test.
[0082] Figure 3 is a flowchart of another test task creation method provided by an embodiment of the present application, such as Figure 3 As shown, in the embodiment of the present application, the execution by the terminal is taken as an example for explanation. The test task creation method includes the following steps:
[0083] 301. The terminal obtains development task information of a program, where the development task information includes a directory structure of multiple program functions to be tested in the program.
[0084] In the embodiment of the present application, the program is a computer program under development. In the process of developing the program, it is necessary to test the program functions of the program to ensure that the program can run normally. In the process of testing the program, it is necessary to determine the test requirements of the program. The test requirements can indicate the program functions to be tested in the program, such as program functions such as registering an account, logging in to an account, and canceling an account.
[0085] The terminal obtains the development task information of the program, and the terminal can determine the directory structure of multiple program functions to be tested in the program based on the development task information. The directory structure is used to represent the hierarchical relationship between multiple program functions to be tested. For example, program function A is the parent function, and program function a, program function b, and program function c are child functions of program function A.
[0086] It should be noted that, in the process of obtaining development task information, the terminal can obtain the development task information in the following two ways.
[0087] Method 1: The terminal obtains development task information through the development plan of the program. The terminal determines the development plan of the program. The development plan can indicate the development information during the program development process, that is, the information configured for the program in the development system. For example, multiple program functions to be tested in the program, the directory structure of multiple program functions, and the function introduction information of multiple program functions. In the process of the terminal obtaining the development task information through the development plan, the terminal does not need to additionally configure the development information indicated by the above development plan, and can directly reuse the above information. Among them, the function introduction information is used to introduce the function of the program function, the code corresponding to the program function, and the development log of the program function. The terminal copies the directory structure of multiple program functions from the development plan to obtain the development task information of the program. By copying the directory structure of multiple program functions to be tested in the development plan of the program, the hierarchical structure of the program functions to be tested can be obtained, which is convenient for testing and managing the program functions to be tested according to the directory structure.
[0088] In some embodiments, after the terminal obtains the development task information through the development plan of the program, the terminal establishes a link between the directory structure of the development task information and the directory of the same program function in the directory structure in the development plan. The link is used to display the function introduction information of the corresponding program function after being triggered. For example, for program function a and the function introduction information of program function a, the terminal establishes a link to the function introduction information between the directory structure of program function a indicated by the development task information and the directory structure of program function a indicated by the development plan. After the link is established, by triggering the link in the directory structure of the development task information, the function introduction information of program function a can be viewed in the directory structure corresponding to the development plan.
[0089] In some embodiments, when the development plan is updated, the terminal can synchronously update the development task information. In response to the development plan being updated, the terminal determines the updated information of the development plan. The terminal updates the development task information based on the updated information of the development plan. For example, when the directory structure in the development plan is updated, the terminal updates the directory structure in the development task information accordingly. Or, when the program function in the development plan is updated, the terminal updates the program function in the development task information accordingly. By synchronously updating the development task information when the development plan is updated, it is possible to avoid deviations between the testing of the program function and the development of the program function due to inconsistent information between the two.
[0090] Method 2: The terminal obtains development task information through test information. The terminal obtains test information. The test information is used to indicate multiple program functions to be tested. The test information is stored in at least one form of table, text or image. The terminal converts the above-mentioned multiple forms of test information into the form of a directory structure to obtain the development task information of the program. By converting different forms of test information into the form of a directory structure, the format of the development task information can be unified, thereby facilitating the creation of test tasks for program functions based on the development task information in a unified format.
[0091] It should be noted that, in the process of the terminal acquiring the development task information, the terminal can generate the development task information inside the test system. The test system is used to test the program function to be tested. Accordingly, the terminal creates the test task corresponding to the program function according to the development task information through the test system. In order to more clearly explain the process of the terminal generating the development task information inside the test system, the following is combined with Figure 4 The flowchart of generating development task information shown in the figure illustrates the above process.
[0092] like Figure 4 As shown, the development requirements in the external development project are the development plan of the program. The terminal determines the development requirements in the external development project. The terminal copies the directory structure of multiple program functions indicated by the development requirements to the test system through data crawling to obtain the mirror requirements. Among them, the mirror requirements are the development task information. The test internal routine tasks are the test information. The test information is used to store multiple program functions to be tested in the form of tables, documents, images, etc. The terminal can convert the above-mentioned various forms of test information into the form of directory structure by batch importing the test internal routine tasks to obtain the test internal requirements. The terminal copies the directory structure of multiple program functions indicated by the test internal requirements through data crawling to obtain the mirror requirements. Figure 5 A schematic diagram of obtaining image requirements for the above terminal through the development plan. The development plan shows the number, title, directory structure and status of the program function. Among them, the status includes completed, planning and transferred to testing. Completed means that the program function has been tested, planning means that the program function is being planned and tested, and transferred to testing means that the program function development is completed and can be tested. Figure 6 This is a schematic diagram of the above terminal obtaining image requirements through test information.
[0093] The following is a description of the specific process of terminal copying directory structure in obtaining development task information. Figure 7As shown in the schematic diagram of copying the directory structure, the terminal first copies multiple sub-functions indicated by the directory structure in the development plan, and then recursively copies the parent function of the sub-function until the complete directory structure is copied to obtain the development task information. In some embodiments, during the process of copying the sub-function, the terminal first copies the title of the sub-function, and then establishes a link between the copied sub-function and the corresponding program function in the directory structure. In response to the triggering operation of the link, the functional description information of the sub-function can be displayed.
[0094] 302. The terminal displays a task configuration page based on the directory structure of multiple program functions. The task configuration page is used to configure test task information of multiple test tasks to be created. The multiple test tasks correspond to the multiple program functions one by one. The test task information is used to indicate the information required to create the test task.
[0095] In an embodiment of the present application, the terminal displays a task configuration page. The task configuration page is used to configure the test task information of the test task corresponding to the program function according to the directory structure of the program function. Among them, the test task information can indicate the information required to create the test task, such as the task creation conditions of the test task, the task deadline of the test task, and the task executor of the test task. The embodiment of the present application does not limit the specific content of the test task information. Figure 8 This is a diagram of a task configuration page. Figure 8 As shown, the task configuration page displays multiple fields such as task creation conditions, switch conditions, preconditions, pre-creation conditions, task executors, task leaders, task types, and task deadlines. For ease of display, the above multiple fields are arranged in two rows for display. In some embodiments, the above multiple fields can be displayed in one or more rows according to actual needs. The terminal can obtain the test task information of the test task corresponding to the program function in the above fields. For example, the terminal obtains the preconditions of the test task corresponding to sub-function a on the task configuration page, which is to complete test task 5; the task executor is Xx; the task leader is Xxx; the task type is K0; and the task deadline is 3.4-3.6. Among them, the pre-creation condition field of sub-function a is empty, indicating that sub-function a is not configured with pre-creation conditions. Therefore, the test task corresponding to sub-function a has no pre-creation conditions.
[0096] 303. The terminal determines test task information of multiple test tasks to be created based on the task configuration operation in the task configuration page, where the test task information includes task creation conditions.
[0097] In an embodiment of the present application, based on the task configuration operation in the task configuration page, the terminal determines the test task information of multiple test tasks configured in the task configuration page. Among them, the task configuration operation can be performed by a manager. Accordingly, the manager configures the task creation conditions, task executors, task deadlines and other information of the test tasks corresponding to the program functions on the task configuration page according to the directory structure of the multiple program functions to be tested. Through the directory structure of the multiple program functions obtained as described above, the test task information corresponding to the multiple program functions can be configured on the task configuration page according to the directory structure, thereby improving the efficiency of configuring the test task information.
[0098] In some embodiments, the test task information also includes switch conditions. The switch conditions are used to indicate additional conditions for creating a test task. Among them, the switch conditions include a switch whitelist and a switch blacklist. The terminal can determine the additional conditions for creating a test task by configuring the switch whitelist and the switch blacklist. Among them, the conditions configured in the switch whitelist are the above-mentioned additional conditions. The conditions configured in the switch blacklist are non-essential conditions for creating a test task. That is, when the terminal creates a test task, it is not necessary to meet the conditions in the switch blacklist. Therefore, the switch conditions and the task creation conditions can jointly indicate the conditions for creating a test task. For example, the switch whitelist of a program function indicates that the program function needs to be performance tested. In this case, the test task of the program function can only be created if the program function meets both the task creation conditions and the additional conditions of the performance test.
[0099] 304. In response to any test task satisfying the task creation condition, the terminal creates a test task based on the test task information of the test task.
[0100] In an embodiment of the present application, after the terminal determines the test task information such as the task creation conditions of the multiple test tasks to be created, the terminal can determine whether the test task meets the task creation conditions at a certain time interval. In response to any test task currently meeting the task creation conditions, the terminal creates a test task that meets the test task information according to the configured test task information. For example, the terminal determines once every 10ms whether the task creation conditions of the test task are currently met. In the case where the test task currently meets the task creation conditions, the terminal creates the test task according to the test task information. Fig. 9 is a schematic diagram of a test task. Fig. 9 As shown, the terminal displays the test tasks corresponding to the program function in the "Task" tab of the parent function of the program function. Correspondingly, the "Task" tab of the parent function displays the test tasks corresponding to multiple sub-functions of the parent function, as well as the creation time, title, test status and executor of each test task.
[0101] In some embodiments, the test task information also includes a precondition. For any test task to be created, the terminal displays at least one created task based on the configuration operation of the precondition on the task configuration page. Among them, the created task can be a test task that has been created but has not started testing, or a test task that is being tested, or a test task that has been completed, and the embodiment of the present application does not limit this. The terminal determines the precondition associated with the test task based on the precondition selection operation on the task configuration page. Among them, the number of preconditions associated with the test task can be one or more, and the embodiment of the present application does not limit the number of preconditions. The terminal uses the completion of the precondition as a precondition for the test task. In response to the test task satisfying the precondition and the task creation condition, the terminal creates the test task based on the test task information of the test task. By taking the completion of the precondition as a precondition, and creating the test task only when the test task satisfies both the precondition and the task creation condition, the order of creation of multiple test tasks can be controlled so that the order of creating the test tasks satisfies the test process.
[0102] In some embodiments, the test task information also includes pre-creation conditions. The terminal determines the pre-creation conditions of the test task based on the configuration operation of the pre-creation conditions on the task configuration page. Among them, the pre-creation conditions are used to indicate the conditions for pre-creating the test task. When the test task needs to be prepared for the test, such as planning the test time and planning the task executor, the planning can be carried out through the pre-created test task. When the test task meets the pre-creation conditions and does not meet at least one of the task creation conditions and the pre-conditions, the terminal pre-creates the test task based on the test information of the test task. The pre-created test task is in an unexecutable state, so the pre-created test task can only be used for the preparation and planning of the test task. By introducing the pre-creation conditions and pre-creating the test task when the test task meets the pre-creation conditions, it is possible to prepare and plan the test through the pre-created test task when the test task is preparing for the test.
[0103] In some embodiments, the test task information also includes task executors and task responsible persons. For any test task to be created, the terminal displays the list of executors and the list of responsible persons associated with the test task on the task configuration page based on the personnel configuration operation on the task configuration page. The list of executors includes multiple task executors, and the task executors are the people who perform the test tasks. The list of responsible persons includes multiple task responsible persons, and the task responsible persons are the people who manage the test tasks. The responsible person can review and supervise the execution of the test tasks. The terminal determines at least one task executor for testing the test task based on the selection operation of the task executor in the list of executors. The terminal determines at least one task responsible person for the test task based on the selection operation of the task responsible person in the list of responsible persons. In response to the test task being created, the terminal adds the test task to the task list of at least one task executor and at least one task responsible person, respectively. By assigning a task executor and a task responsible person to the generated test task, and adding the test task to the task list of the corresponding person, the distribution of the test task can be realized, avoiding that no one performs the test task after the test task is generated, and improving the efficiency of allocating and executing the test task.
[0104] In some embodiments, the test task information also includes a task time limit. The task time limit is used to indicate the start time and end time of the test task. When the number of test tasks of any task executor within the task time limit is greater than a quantity threshold, the terminal displays a prompt message, and the prompt message is used to prompt the task executor to reselect. Among them, the quantity threshold can be a preset value, such as 3, 4 or 5, which is not limited in the embodiments of the present application. By introducing a quantity threshold, the number of test tasks that the task executor needs to perform within the task time limit can be controlled to avoid too many test tasks for the task executor, thereby reducing the efficiency of the test.
[0105] It can be seen from some of the above embodiments that the test task information may include task creation conditions, switch conditions, preconditions, pre-creation conditions, task executors, task leaders, task types, and task deadlines. Therefore, the terminal can display the above test task information on the task configuration page. The administrator can configure the above multiple test task information on the task configuration page.
[0106] In some embodiments, after the terminal creates a test task, it can synchronously update the development plan when the test task information of the test task is updated. In response to the test task information of the test task being updated, the terminal determines the updated information of the test task. Based on the updated information, the terminal updates the program information associated with the program function tested by the test task in the development plan. By synchronously updating the development plan when the test task information is updated, it is possible to avoid deviations between the testing of the program function and the development of the program function due to inconsistent information between the two.
[0107] For example, after the test task is completed, the terminal updates the status of the test task to completed in the test task information. The terminal can update the status of the program function tested by the test task to completed in the development plan, thereby indicating that the program function has completed the test.
[0108] In some embodiments, the terminal uses the fields corresponding to the test task information and the key information that needs to be synchronized in the development plan as associated fields, and adds the associated fields to the field table. Among them, the field table stores the fields corresponding to the test task information and the key information that needs to be synchronized in the development plan. For example, fields such as test time, task leader, task executor, test start time, test end time, and test progress. When a field in the field table is updated, the terminal can synchronize the information of the updated field to the field associated with the field. Fig.10 is a flowchart for synchronously updating fields. Fig.10 As shown, in response to an update to the test task information, the terminal receives an update notification through a webhook (network hook), and determines the number of the test task, the updated fields in the test task information, and the field update information. The terminal determines whether the updated field is in the field table. If the updated field is not in the field table, the terminal does not need to synchronously update the development plan. If the updated field is in the field table, the terminal searches the field table for the field associated with the field. The terminal determines the development plan corresponding to the associated field, and synchronously updates the information of the field in the development plan. It should be noted that Fig.10 The flowchart shown is an example of the terminal synchronously updating the development plan when the test task information is updated. The terminal can also synchronously update the test task information through the above process when the development plan is updated.
[0109] In order to more clearly explain the process of creating a test task at the terminal, Fig.11 The flowchart of creating a test task shown in the figure illustrates the above process.
[0110] like Fig.11 As shown, after the terminal obtains the development task information, the terminal determines the task creation condition, switch condition, precondition and pre-creation condition of the test task based on the test task information configured on the task configuration page. When the task creation condition, switch condition and precondition are met, the terminal establishes the test task. When the pre-creation condition is met and at least one of the task creation condition, switch condition and precondition is not met, the terminal pre-creates the test task. After the test task is created, in response to the update of the test task information of the test task, the terminal determines whether the development task information needs to be updated. If an update is required, the terminal synchronously updates the development task information.
[0111] The terminal can Fig.12 The test system architecture shown in the figure updates the test task information and development task information synchronously. Fig.12 As shown, the test task information and development task information are stored in the test system. The development platform includes a webhook, a database, and a timing program. When the test task information or development task information of the test system is updated, the terminal can be notified through the webhook deployed by the development platform. The terminal then synchronously updates the test task information or development task information. The terminal can determine whether the test task in the test system currently meets the task creation conditions at a certain time interval through the timing program. If the task creation conditions are met, the terminal creates a test task. Users can access the development platform through the network and view the development task information, test task information, and created test tasks.
[0112] 305. The terminal displays a task management page, which includes a Gantt chart tab, a task progress tab, and a task allocation tab.
[0113] In an embodiment of the present application, after the terminal creates a test task, the terminal can display a task management page. The task management page is used to view and manage the created test tasks. For example, by triggering the task progress tab of the task management page, the test progress of the test task can be viewed. By triggering the task allocation tab of the task management page, the allocation of the test task can be viewed.
[0114] 306. In response to a triggering operation on the Gantt chart tab, the terminal displays a Gantt chart page, where the Gantt chart page is used to display task executors and task deadlines of multiple test tasks through a Gantt chart.
[0115] In an embodiment of the present application, in response to a trigger operation on the Gantt chart tab of the task management interface, the terminal displays multiple test tasks in the task list of different task executors and the task time limit of each test task in the form of a Gantt chart on the Gantt chart page. Fig.13 This is a schematic diagram of a Gantt chart page. Fig.13 As shown, the Gantt chart page displays multiple test tasks of task executor 1 and multiple test tasks of task executor 2, as well as the task deadline and task progress of each test task. For example, the task deadline of test task 1 of task executor 1 is 2023.3.4-2023.3-6, and the task progress is 50%.
[0116] 307. In response to the triggering operation on the task progress tab, the terminal displays a task progress page, which displays progress information of multiple test tasks, including task progress, task executors, and task deadlines of the test tasks.
[0117] In an embodiment of the present application, in response to a trigger operation on the task progress tab of the task management interface, the terminal displays a task progress page, and displays task progress information such as task progress, task deadline, and task executor for multiple test tasks on the task progress page. Fig.14 This is a schematic diagram of a task progress page. Fig.14 As shown, the task progress page displays the number, title, status, task executor, task time limit, task progress, task notes and other information of multiple test tasks. Among them, the task notes include the completion status of the task, the reason for the delay and the reason for the timeout.
[0118] In some embodiments, the terminal can Fig.15 The task progress page shown displays information such as the total number of tasks, today's completed number, remaining number, total completed number, and completion rate of different types of test tasks according to the type of test tasks.
[0119] 308. In response to the triggering operation on the task assignment tab, the terminal displays a task assignment page, where the task assignment page displays a plurality of task executors and a test task corresponding to each task executor.
[0120] In the embodiment of the present application, in response to the triggering operation of the task allocation tab of the task management interface, the terminal displays the following Fig.16 The task assignment page shown in the figure displays multiple task executors, the test tasks of each task executor, and the task deadline of the tester. By displaying the Gantt chart tab, task progress tab, and task assignment tab in the task management interface, and triggering the tab to display the corresponding page, the progress information of the test task, task executor, and task deadline can be displayed more intuitively, which can improve the efficiency of managing test tasks.
[0121] In some embodiments, the terminal may also display the Gantt chart page, task progress page, and task assignment page in other ways. For example, in response to a trigger operation on a Gantt chart tab, a task progress tab, or a task assignment tab, the terminal may independently display the Gantt chart page, the task progress page, or the task assignment page. The Gantt chart tab, the task progress tab, and the task assignment tab are independent of each other and may not be located on the task management page.
[0122] An embodiment of the present application provides a test task creation method. In the process of testing multiple program functions of a program, by obtaining the development task information of the program, multiple program functions to be tested in the program and the directory structure of the multiple program functions can be determined. According to the directory structure of the multiple program functions, the test task information of the test tasks to be created corresponding to the multiple program functions can be conveniently configured on the task configuration page, thereby improving the efficiency of configuring the test task information. According to the task configuration operation on the task configuration page, the test task information such as the task creation conditions of the multiple test tasks to be created can be determined. Then, when the test task meets the task creation conditions, the test task is automatically created. The program function can be tested by executing the created test task. Therefore, there is no need to manually create the test task, which can improve the efficiency of the test.
[0123] Fig.17 Schematic diagram of a test task creation device provided in an embodiment of the present application. Fig.17 The device includes: an acquisition module 1701, a first display module 1702, a determination module 1703, and a test task creation module 1704.
[0124] An acquisition module 1701 is used to acquire development task information of a program, where the development task information includes a directory structure of multiple program functions to be tested in the program;
[0125] A first display module 1702 is used to display a task configuration page based on the directory structure of multiple program functions, where the task configuration page is used to configure test task information of multiple test tasks to be created, where the multiple test tasks correspond to the multiple program functions one by one, and the test task information is used to indicate information required to create the test task;
[0126] A determination module 1703, configured to determine test task information of multiple test tasks to be created based on the task configuration operation in the task configuration page, wherein the test task information includes task creation conditions;
[0127] The test task creation module 1704 is configured to create a test task based on the test task information of the test task in response to any test task satisfying a task creation condition.
[0128] In some embodiments, the test task information also includes preconditions; a determination module 1703 is used to display at least one created task for any test task to be created based on the configuration operation of the preconditions on the task configuration page; based on the predecessor task selection operation on the task configuration page, the predecessor task associated with the test task is determined; the completion of the predecessor task is used as a prerequisite for the test task; a test task creation module 1704 is used to create a test task based on the test task information of the test task in response to the test task satisfying the preconditions and task creation conditions.
[0129] In some embodiments, the test task information also includes pre-creation conditions; a determination module 1703 is used to determine the pre-creation conditions of the test task based on the configuration operation of the pre-creation conditions on the task configuration page; a test task creation module 1704 is used to pre-create a test task based on the test information of the test task when the test task meets the pre-creation conditions and does not meet at least one of the task creation conditions and the pre-conditions, and the pre-created test task is in an unexecutable state.
[0130] In some embodiments, the test task information also includes the task executor and the task leader;
[0131] The determination module 1703 is used for displaying the list of executors and the list of responsible persons associated with the test task on the task configuration page for any test task to be created based on the personnel configuration operation on the task configuration page; determining at least one task executor for testing the test task based on the selection operation of the task executor in the executor list; and determining at least one task responsible person for the test task based on the selection operation of the task responsible person in the responsible person list;
[0132] Fig.18 is a schematic diagram of the structure of another test task creation device provided in an embodiment of the present application, such as Fig.18 As shown, the device also includes:
[0133] The adding module 1705 is used to add the test task to the task list of at least one task executor and at least one task responsible person respectively in response to the test task being created.
[0134] In some embodiments, the test task information further includes a task time limit, and the task time limit is used to indicate the start time and the end time of the test task. The device further includes:
[0135] The second display module 1706 is used to display a prompt message when the number of test tasks of any task executor within the task time limit is greater than the number threshold, and the prompt message is used to prompt to reselect the task executor.
[0136] In some embodiments, the acquisition module 1701 is used to determine a development plan for a program, where the development plan is used to indicate multiple program functions to be tested in the program, a directory structure of the multiple program functions, and function introduction information of the multiple program functions; copy the directory structure of the multiple program functions to obtain development task information of the program; the device also includes:
[0137] The link establishment module 1707 is used to establish a link between the directory structure of the development task information and the directory of the same program function in the directory structure in the development plan. The link is used to display the function introduction information of the corresponding program function after being triggered.
[0138] In some embodiments, the acquisition module 1701 is used to obtain test information, the test information is used to indicate multiple program functions to be tested, and the test information is stored in at least one form of table, text or image; the test information is converted into a directory structure to obtain program development task information.
[0139] In some embodiments, the apparatus further comprises:
[0140] An update information determination module 1708, for determining update information of the development plan in response to an update of the development plan;
[0141] The updating module 1709 is used to update the development task information based on the update information of the development plan.
[0142] In some embodiments, the update information determination module 1708 is further configured to determine the update information of the test task in response to the test task information of the test task being updated;
[0143] The updating module 1709 is further configured to update the program information associated with the program function tested by the test task in the development plan based on the updated information.
[0144] In some embodiments, the apparatus further comprises:
[0145] The third display module 1710 is used to display a task management page, which includes a Gantt chart tab, a task progress tab, and a task allocation tab;
[0146] The fourth display module 1711 is used to display a Gantt chart page in response to a trigger operation on the Gantt chart tab, where the Gantt chart page is used to display task executors and task deadlines of multiple test tasks through a Gantt chart;
[0147] The fifth display module 1712 is used to display a task progress page in response to a trigger operation on the task progress tab, where the task progress page displays progress information of multiple test tasks, including task progress, task executors, and task deadlines of the test tasks;
[0148] The sixth display module 1713 is used to display a task assignment page in response to a trigger operation on the task assignment tab, where the task assignment page displays multiple task executors and the test tasks corresponding to each task executor.
[0149] An embodiment of the present application provides a test task creation device, which can determine multiple program functions to be tested in the program and the directory structure of the multiple program functions by obtaining the development task information of the program during the process of testing multiple program functions. According to the directory structure of the multiple program functions, the test task information of the test tasks to be created corresponding to the multiple program functions can be conveniently configured on the task configuration page, thereby improving the efficiency of configuring the test task information. According to the task configuration operation on the task configuration page, the test task information such as the task creation conditions of the multiple test tasks to be created can be determined. Then, when the test task meets the task creation conditions, the test task is automatically created. The program function can be tested by executing the created test task. Therefore, there is no need to manually create the test task, which can improve the efficiency of the test.
[0150] It should be noted that the test task creation device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the test task creation device and the test task creation method embodiment provided in the above embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0151] An embodiment of the present application also provides a terminal, which includes a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the test task creation method provided in the above embodiment.
[0152] Fig.19 It is a structural diagram of a terminal provided in an embodiment of the present application.
[0153] The terminal 1900 includes a processor 1901 and a memory 1902 .
[0154] The processor 1901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1901 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1901 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1901 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0155] The memory 1902 may include one or more computer-readable storage media, which may be non-transitory. The memory 1902 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1902 is used to store at least one computer program, which is used to be possessed by the processor 1901 to implement the test task creation method provided in the method embodiment of the present application.
[0156] In some embodiments, the terminal 1900 may further optionally include: a peripheral device interface 1903 and at least one peripheral device. The processor 1901, the memory 1902 and the peripheral device interface 1903 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1903 via a bus, a signal line or a circuit board. Optionally, the peripheral device includes: at least one of a radio frequency circuit 1904, a display screen 1905, a camera assembly 1906, an audio circuit 1907 and a power supply 1908.
[0157] The peripheral device interface 1903 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1901 and the memory 1902. In some embodiments, the processor 1901, the memory 1902, and the peripheral device interface 1903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1901, the memory 1902, and the peripheral device interface 1903 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0158] The radio frequency circuit 1904 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1904 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1904 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1904 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1904 can communicate with other devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1904 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0159] The display screen 1905 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1905 is a touch display screen, the display screen 1905 also has the ability to collect touch signals on the surface or above the surface of the display screen 1905. The touch signal can be input to the processor 1901 as a control signal for processing. At this time, the display screen 1905 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1905 can be one, set on the front panel of the terminal 1900; in other embodiments, the display screen 1905 can be at least two, respectively set on different surfaces of the terminal 1900 or in a folding design; in other embodiments, the display screen 1905 can be a flexible display screen, set on the curved surface or folding surface of the terminal 1900. Even, the display screen 1905 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1905 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0160] The camera assembly 1906 is used to capture images or videos. Optionally, the camera assembly 1906 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal 1900, and the rear camera is arranged on the back of the terminal 1900. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1906 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0161] The audio circuit 1907 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1901 for processing, or input them into the radio frequency circuit 1904 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1900. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1901 or the radio frequency circuit 1904 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1907 may also include a headphone jack.
[0162] The power supply 1908 is used to power various components in the terminal 1900. The power supply 1908 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1908 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0163] In some embodiments, the terminal 1900 further includes one or more sensors 1909 . The one or more sensors 1909 include, but are not limited to: an acceleration sensor 1910 , a gyroscope sensor 1911 , a pressure sensor 1912 , an optical sensor 1913 , and a proximity sensor 1914 .
[0164] The acceleration sensor 1910 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1900. For example, the acceleration sensor 1910 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1901 can control the display screen 1905 to display the user page in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1910. The acceleration sensor 1910 can also be used to collect game or user motion data.
[0165] The gyro sensor 1911 can detect the body direction and rotation angle of the terminal 1900, and the gyro sensor 1911 can cooperate with the acceleration sensor 1910 to collect the user's 3D actions on the terminal 1900. The processor 1901 can implement the following functions based on the data collected by the gyro sensor 1911: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0166] The pressure sensor 1912 may be provided at the side frame of the terminal 1900 and / or the lower layer of the display screen 1905. When the pressure sensor 1912 is provided at the side frame of the terminal 1900, it may detect the user's holding signal of the terminal 1900, and the processor 1901 may perform left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1912. When the pressure sensor 1912 is provided at the lower layer of the display screen 1905, the processor 1901 may control the operability control on the UI page according to the user's pressure operation on the display screen 1905. The operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0167] The optical sensor 1913 is used to collect the ambient light intensity. In one embodiment, the processor 1901 can control the display brightness of the display screen 1905 according to the ambient light intensity collected by the optical sensor 1913. Optionally, when the ambient light intensity is high, the display brightness of the display screen 1905 is increased; when the ambient light intensity is low, the display brightness of the display screen 1905 is decreased. In another embodiment, the processor 1901 can also dynamically adjust the shooting parameters of the camera assembly 1906 according to the ambient light intensity collected by the optical sensor 1913.
[0168] The proximity sensor 1914, also called a distance sensor, is disposed on the front panel of the terminal 1900. The proximity sensor 1914 is used to collect the distance between the user and the front of the terminal 1900. In one embodiment, when the proximity sensor 1914 detects that the distance between the user and the front of the terminal 1900 is gradually decreasing, the processor 1901 controls the display screen 1905 to switch from the screen-on state to the screen-off state; when the proximity sensor 1914 detects that the distance between the user and the front of the terminal 1900 is gradually increasing, the processor 1901 controls the display screen 1905 to switch from the screen-off state to the screen-on state.
[0169] Those skilled in the art will understand that Fig.19 The structure shown in the figure does not constitute a limitation on the terminal 1900, and the terminal 1900 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0170] An embodiment of the present application further provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the test task creation method provided in the above embodiment.
[0171] An embodiment of the present application also provides a computer program product, including a computer program, which is loaded and executed by a processor to implement the test task creation method provided in the above embodiment.
[0172] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program. The above program may be stored in a computer-readable storage medium, and the above storage medium may be a read-only memory, a disk or an optical disk, etc.
[0173] The above description is only an optional embodiment of the embodiments of the present application and is not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the present application.
Claims
1. A test task creation method, characterized in that: The method comprises: Acquire development task information of a program, wherein the development task information includes a directory structure of a plurality of program functions to be tested in the program; Based on the directory structure of the multiple program functions, displaying a task configuration page, the task configuration page is used to configure test task information of the multiple test tasks to be created, the multiple test tasks correspond one-to-one to the multiple program functions, and the test task information is used to indicate information required to create the test task; Based on the task configuration operation in the task configuration page, determining the test task information of the plurality of test tasks to be created, the test task information including task creation conditions; In response to any test task satisfying a task creation condition, the test task is created based on the test task information of the test task.
2. The method according to claim 1, characterized in that: The test task information also includes preconditions; The determining the test task information of the plurality of test tasks to be created based on the task configuration operation in the task configuration page includes: For any test task to be created, based on the configuration operation of the preconditions on the task configuration page, display at least one created task; Determining a predecessor task associated with the test task based on a predecessor task selection operation on the task configuration page; Taking the completion of the pre-task as a pre-condition for the test task; In response to any test task satisfying a task creation condition, creating the test task based on the test task information of the test task includes: In response to the test task satisfying a precondition and a task creation condition, the test task is created based on the test task information of the test task.
3. The method according to claim 2, characterized in that The test task information also includes a pre-creation condition, and the method further includes: Determining the pre-creation condition of the test task based on the configuration operation of the pre-creation condition on the task configuration page; When the test task satisfies the pre-creation condition but does not satisfy at least one of the task creation condition and the pre-condition, the test task is pre-created based on the test information of the test task, and the pre-created test task is in an unexecutable state.
4. The method according to claim 1, characterized in that: The test task information also includes the task executor and the task leader; The determining the test task information of the plurality of test tasks to be created based on the task configuration operation in the task configuration page includes: For any test task to be created, based on the personnel configuration operation on the task configuration page, a list of executors and a list of persons in charge associated with the test task are displayed on the task configuration page; Determine at least one task executor for testing the test task based on a selection operation of the task executor in the executor list; Determine at least one task leader of the test task based on a selection operation of the task leader in the list of leaders; The method further comprises: In response to the test task being created, the test task is added to the task lists of the at least one task executor and the at least one task leader, respectively.
5. The method according to claim 4, characterized in that The test task information also includes a task time limit, and the task time limit is used to indicate the start time and the end time of the test task. The method also includes: When the number of test tasks performed by any task executor within the task time limit is greater than a quantity threshold, a prompt message is displayed, wherein the prompt message is used to prompt a task executor to be reselected.
6. The method according to claim 1, characterized in that The acquiring of the development task information of the program includes: Determining a development plan for the program, the development plan being used to indicate a plurality of program functions to be tested in the program, a directory structure of the plurality of program functions, and function introduction information of the plurality of program functions; Copying the directory structure of the plurality of program functions to obtain development task information of the program; The method further comprises: A link is established between the directory structure of the development task information and the directory of the same program function in the directory structure in the development plan, and the link is used to display the function introduction information of the corresponding program function after being triggered.
7. The method according to claim 1, characterized in that The acquiring of the development task information of the program includes: Acquire test information, where the test information is used to indicate a plurality of program functions to be tested, and the test information is stored in at least one form of a table, text, or image; The test information is converted into a directory structure to obtain the development task information of the program.
8. The method according to claim 6, characterized in that The method further comprises: In response to an update of the development plan, determining update information of the development plan; The development task information is updated based on the update information of the development plan.
9. The method according to claim 6, characterized in that After creating the test task based on the test task information of the test task, the method further includes: In response to the test task information of the test task being updated, determining the update information of the test task; Based on the update information, program information associated with the program function tested by the test task is updated in the development plan.
10. The method according to claim 1, characterized in that After creating the test task based on the test task information of the test task, the method further includes: Displaying a task management page, wherein the task management page displays a Gantt chart tab, a task progress tab, and a task assignment tab; In response to a trigger operation on the Gantt chart tab, a Gantt chart page is displayed, wherein the Gantt chart page is used to display task executors and task deadlines of multiple test tasks through a Gantt chart; In response to a trigger operation on the task progress tab, a task progress page is displayed, wherein the task progress page displays progress information of multiple test tasks, wherein the progress information includes the task progress, task executor and task time limit of the test task; In response to a triggering operation on the task assignment tab, a task assignment page is displayed, wherein the task assignment page displays a plurality of task executors and a test task corresponding to each task executor.
11. A test task creation device, characterized in that: The device comprises: An acquisition module, used for acquiring development task information of a program, wherein the development task information includes a directory structure of a plurality of program functions to be tested in the program; A first display module, configured to display a task configuration page based on the directory structure of the plurality of program functions, wherein the task configuration page is used to configure test task information of the plurality of test tasks to be created, wherein the plurality of test tasks correspond one-to-one to the plurality of program functions, and the test task information is used to indicate information required to create the test task; A determination module, configured to determine the test task information of the plurality of test tasks to be created based on the task configuration operation in the task configuration page, wherein the test task information includes a task creation condition; The test task creation module is used to create the test task based on the test task information of any test task in response to any test task satisfying the task creation condition.
12. A terminal, characterized in that: The terminal includes a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the test task creation method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: At least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by the processor to implement the test task creation method according to any one of claims 1 to 10.
14. A computer program product comprising a computer program, characterized in that The computer program is loaded and executed by a processor to implement the test task creation method according to any one of claims 1 to 10.
