Test report generation method and device and electronic equipment

By automatically acquiring and summarizing test task data, and generating reports based on task attributes, the problem of time-consuming manual summarization and inaccurate reporting in the existing technology is solved, and efficient and reliable test report generation is achieved.

CN118550837APending Publication Date: 2024-08-27HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410831224.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The existing test report generation method requires manual communication and summary, which is time-consuming and labor-intensive, and cannot guarantee the true reliability of the report content, affecting the efficiency and reliability of the test work.

Method used

By obtaining the task data of the current test task, determining the task category information based on the attribute values ​​in the task data, and using the category information to summarize the corresponding attribute values ​​to generate a test report, automated report generation is achieved.

Benefits of technology

It saves summary time and labor costs, improves the efficiency of test report generation, ensures the accuracy and reliability of reports, and avoids manual errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550837A
    Figure CN118550837A
Patent Text Reader

Abstract

The invention discloses a test report generation method and device and electronic equipment, and is suitable for the technical field of testing, the electronic equipment automatically obtains respective task data of all current existing test tasks, and the test report is generated according to a first attribute value capable of representing the state of a project activity product to which the test tasks belong. All the task data are classified and summarized, after at least one test task contained in each task summarizing category and category information of the test task are determined, second attribute summarizing values of the test tasks of the task summarizing category are obtained through the second attribute values contained in all the task data belonging to the same task summarizing category, the test report is generated in combination with the first attribute value, and compared with an implementation mode of writing the test report after manual communication summarization, the summarization time and labor cost are greatly saved, the test report generation efficiency is improved, and the problem that the test report is inaccurate due to manual summarization or writing errors is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of testing technology, and in particular to a test report generating method, device and electronic equipment. Background Art

[0002] During the entire product development process, project personnel are usually required to submit test reports to show the project progress and resource status in the recent period (such as one week, two weeks, or one month, etc.), so as to facilitate monitoring of product development project progress, strengthen project team collaboration, and improve product development efficiency.

[0003] However, the current test reports require relevant personnel to spend a certain amount of time communicating and summarizing, writing the corresponding report content and submitting it to management personnel, which is time-consuming and labor-intensive, and there is no guarantee that the report content is true and reliable, thus affecting the efficiency and reliability of the test work. Summary of the invention

[0004] In view of the above problems, this application provides the following solutions:

[0005] A first aspect of the present application provides a test report generation method, the test report generation method comprising:

[0006] Get the task data of each existing test task;

[0007] Determine the category information of the corresponding test task according to the first attribute value included in each of the task data; the first attribute is at least one attribute representing the status of the project or product to which the test task belongs, and the category information indicates the task summary category to which the corresponding test task belongs;

[0008] Using the second attribute value contained in each of the task data corresponding to the same category information, a second attribute summary value of the test task belonging to the corresponding task summary category is obtained; the second attribute is at least one attribute of the test task that needs to be summarized;

[0009] A test report is generated according to the first attribute values ​​and the second attribute summary values ​​corresponding to the same category information.

[0010] In a possible implementation, determining the category information of the corresponding test task according to the first attribute value included in each task data includes:

[0011] Determining at least one first attribute value included in each of the task data;

[0012] Determine the category information corresponding to the test task according to the aggregation method indicated by the at least one first attribute value;

[0013] The aggregation method refers to a method of aggregating according to different states of the products or projects to which the test tasks belong.

[0014] In a possible implementation, determining the category information of the corresponding test task according to the aggregation method indicated by the at least one first attribute value includes:

[0015] By using the multiple first attribute values ​​of any of the test tasks, if it is determined that the project to which the test task belongs has not been established and the product to which the test task belongs has not been released, configuring the category information of the test task to the corresponding product name and task identifier;

[0016] If it is determined that the project to which the test task belongs has not been established and the product to which it belongs has a released version, the category information of the test task is configured as the corresponding product name and version name;

[0017] If it is determined that the project to which the test task belongs has been established, but no iteration has been planned and the product to which it belongs has a released version, the category information of the test task is configured as the corresponding project name and version name;

[0018] If it is determined that the project to which the test task belongs has been approved, no iteration has been planned and the product to which it belongs has not released a version, or that an iteration has been planned for the approved project, the category information of the test task is configured as the corresponding project name and iteration identifier; the iteration identifier is the iteration name of an unplanned iteration or a planned iteration.

[0019] In a possible implementation, the obtaining of the second attribute summary value of the test task belonging to the corresponding task summary category by using the second attribute value included in each task data corresponding to the same category information includes:

[0020] Obtaining at least one second attribute value of each of the test tasks belonging to the corresponding task summary category from each of the task data corresponding to the same category information;

[0021] The second attribute values ​​of the same second attribute of each of the test tasks belonging to the same task summary category are summarized to obtain the second attribute summary value of the second attribute of each of the test tasks belonging to the corresponding task summary category.

[0022] In a possible implementation, the second attribute values ​​of the same second attribute of each of the test tasks of the same task summary category are summarized to obtain the second attribute summary value of the second attribute of each of the test tasks belonging to the corresponding task summary category, including at least one of the following implementation methods:

[0023] If the second attribute includes a task status, and the status values ​​of the task statuses of the test tasks of the same task summary category are the same, configuring the status summary value of the test tasks belonging to the corresponding task summary category to be the status value;

[0024] If the second attribute includes a task status, and the status values ​​of the task status of each of the test tasks of the same task summary category are different, the status summary value of each of the test tasks belonging to the corresponding task summary category is configured as task in progress.

[0025] If the second attribute includes testers, configuring the tester summary values ​​of the test tasks of the same task summary category as corresponding tester identifiers;

[0026] If the second attribute includes an expected start time and an expected end time, the expected summary start time of each of the test tasks in the same task summary category is configured as the corresponding minimum expected start time, and the expected summary end time is configured as the corresponding maximum expected end time;

[0027] If the second attribute includes risk points, configuring the summary risk points of each of the test tasks in the same task summary category as corresponding risk contents;

[0028] If the second attribute includes a project level, the project level summary value of each of the test tasks in the same task summary category is configured as a level value of an unestablished project or a project to which it belongs; the greater the level value, the higher the importance of the project.

[0029] In a possible implementation, generating a test report according to each of the first attribute values ​​and each of the second attribute summary values ​​corresponding to the same category information includes:

[0030] Determine the task quantity of the test task corresponding to different second attribute summary values ​​of the same second attribute corresponding to each of the category information;

[0031] A test report in a preset format is generated by using each of the first attribute values ​​and each of the second attribute summary values ​​corresponding to the same category information, as well as the task quantity corresponding to each of the second attribute summary values, so as to output the test report through a preset transmission method.

[0032] In a possible implementation, if the category information is determined as key information, obtaining the second attribute summary value of the test task belonging to the corresponding task summary category by using the second attribute value contained in each task data corresponding to the same category information includes:

[0033] Determine each second attribute value included in each task data corresponding to the same key information as value information mapped by the key information;

[0034] Storing each value information mapped to the same key information in a corresponding list in the dictionary corresponding to the key information;

[0035] After data preprocessing is performed on each value information stored in the same list of each dictionary, the valid value information after preprocessing is summarized to obtain the second attribute summary value of the test task belonging to the corresponding task summary category; the preprocessing includes one or more of information extraction, data cleaning and format conversion.

[0036] In a possible implementation, the obtaining of task data of each currently existing test task includes any of the following implementations:

[0037] According to the preset timing summary strategy, respond to the test report generation request for the current summary time and obtain the task data of each existing test task;

[0038] Respond to the test report trigger instruction and obtain the task data of each existing test task.

[0039] A second aspect of the present application provides a test report generating device, the test report generating device comprising:

[0040] The task data acquisition module is used to obtain the task data of each existing test task;

[0041] A category information determination module, used to determine the category information of the corresponding test task according to the first attribute value contained in each of the task data; the first attribute is at least one attribute representing the status of the project or product to which the test task belongs, and the category information indicates the task summary category to which the corresponding test task belongs;

[0042] A second attribute summary value obtaining module is used to obtain the second attribute summary value of the test task belonging to the corresponding task summary category by using the second attribute value contained in each task data corresponding to the same category information; the second attribute is at least one attribute of the test task that needs to be summarized;

[0043] The test report generating module is used to generate a test report according to each of the first attribute values ​​and each of the second attribute summary values ​​corresponding to the same category information.

[0044] A third aspect of the present application provides an electronic device, the electronic device comprising: at least one communication interface, at least one memory and at least one processor;

[0045] The communication interface is used to obtain task data of each currently existing test task;

[0046] The processor is used to load and execute multiple computer instructions stored in the memory to implement the following steps:

[0047] Determine the category information of the corresponding test task according to the first attribute value included in each of the task data; the first attribute is at least one attribute representing the status of the project or product to which the test task belongs, and the category information indicates the task summary category to which the corresponding test task belongs;

[0048] Using the second attribute value contained in each of the task data corresponding to the same category information, a second attribute summary value of the test task belonging to the corresponding task summary category is obtained; the second attribute is at least one attribute of the test task that needs to be summarized;

[0049] A test report is generated according to the first attribute values ​​and the second attribute summary values ​​corresponding to the same category information.

[0050] It can be seen that in the test report generation method, device and electronic device provided in the present application, the task data of all currently existing test tasks are automatically obtained, and according to at least one first attribute that can represent the status of the project activity product to which the test task belongs and the corresponding first attribute value in each task data, all task data are classified and summarized, and at least one test task and its category information contained in each task summary category are determined. Afterwards, for test tasks belonging to the same task summary category, according to at least one second attribute of the test tasks to be summarized, the second attribute summary value of the test tasks of the task summary category is obtained by using the second attribute value contained in each corresponding task data, and a test report is generated in combination with the first attribute value. Compared with the implementation method of writing the test report after manual communication and summary, it greatly saves summary time and labor costs, improves the efficiency of test report generation, and solves the problem of inaccurate test reports due to manual summary or writing errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0052] Figure 1 A schematic diagram of the hardware structure of an optional embodiment of an electronic device applicable to the test report generation method proposed in the embodiment of the present application;

[0053] Figure 2 A schematic diagram of the hardware structure of another optional embodiment of an electronic device applicable to the test report generation method proposed in the embodiment of the present application;

[0054] Figure 3 This is a schematic diagram of the flow structure of an optional embodiment 1 of the test report generation method proposed in this application;

[0055] Figure 4 A schematic diagram of a storage list for obtaining task data of each test task in the test report generation method proposed in this application;

[0056] Figure 5 This is a schematic diagram of the flow structure of the optional embodiment 2 of the test report generation method proposed in this application;

[0057] Figure 6a A schematic diagram of different states of the project to which the test task belongs in the test report generation method proposed in this application;

[0058] Figure 6b A schematic diagram of different devices of the product to which the test task belongs in the test report generation method proposed in this application;

[0059] Figure 7 A schematic diagram of a test report applicable to the test report generation method proposed in this application;

[0060] Figure 8 This is a schematic diagram of the flow structure of the optional embodiment 3 of the test report generation method proposed in this application;

[0061] Fig. 9 A schematic diagram of the structure of a test report generating device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation mode of the present application are only used to explain the specific embodiments of the present application and are not intended to limit the present application. The embodiments of the present application will be described below in conjunction with the drawings. It is known to those of ordinary skill in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0063] Moreover, the terms "first", "second" etc. in the full text description content and the accompanying drawings of the present application are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, and this is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0064] During the execution of any type of test tasks (such as product development, any ongoing projects or temporarily proposed tasks, etc.), this application hopes to automatically generate corresponding test reports at intervals of a predefined period of time (such as one week or one month, etc., which can be flexibly configured according to actual conditions, and this application does not limit the length of this time period), and classify and summarize the progress and resource status of each test task executed in this time period from different dimensions (attributes), such as classifying and counting some or all of the field contents of project / product name, importance level, iteration / version name, participating testers, progress status, expected test start / end time and risk points, so as to represent the actual situation of each test task in a simple and clear way, provide accurate and reliable data support for test management, facilitate the team to monitor work progress and make decisions, without the need for manual communication and summary, eliminating the tedious steps of manual processing, improving test work efficiency, reducing labor costs, and avoiding manual errors, ensuring that test reports are accurate and reliable.

[0065] The test report generation method proposed in the embodiment of the present application can be applied to the field of project management. The solution is introduced below using the software development scenario as an example.

[0066] Reference Figure 1 , is a hardware structure diagram of an optional embodiment of an electronic device applicable to the test report generation method proposed in the embodiment of the present application. The electronic device may include but is not limited to a terminal device or server with functions such as data collection, data processing and transmission. The terminal device may include but is not limited to any one or more product forms such as a smart phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC) or a robot. The server may include one or more servers, such as a physical server or a cloud server that provides cloud services, etc. The following is an example of an electronic device being a server. Figure 1As shown, the electronic device may include a communication interface 110, a memory 120 and a processor 130:

[0067] In the embodiment of the present application, the number of each of the communication interface 110, the memory 120 and the processor 130 can be at least one, and the communication interface 110, the memory 120 and the processor 130 can communicate through a bus, which can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 1 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0068] The communication interface 110 may include a communication module that can realize data interaction using a wireless communication network, such as a WIFI module, a 5G / 6G (fifth generation mobile communication network / sixth generation mobile communication network) module, a GPRS module, etc., to realize data transmission between other devices (such as a database or other terminals or servers, etc.). It is understandable that the communication interface 120 may also include a communication interface that realizes data interaction between components inside the electronic device, such as a USB interface, a serial / parallel port, etc., and the present application does not limit the interface type and quantity of the communication interface 110.

[0069] The memory 120 can be used to store instructions and data. In one possible implementation, the memory 120 may mainly include an instruction storage area and a data storage area. The data storage area can store data received, generated, and intermediately generated during the use of the electronic device, such as receiving and storing task data of each test task, storing summary results of different stages, and generated test reports, etc.; the instruction storage area can store software units such as operating systems, applications, and instructions required for at least one function, or their subsets, extended sets, etc.

[0070] In an embodiment of the present application, the memory 120 can be used to store multiple computer instructions for implementing the test report generation method proposed in the present application, and the processor 130 loads and executes the computer instructions to implement the test report generation method proposed in the embodiment of the present application, and other components of the electronic device can also be called to implement corresponding functions.

[0071] In one possible implementation, the memory 120 may be any available storage medium that can be accessed by the processor 130 or the electronic device, and non-limiting examples of the storage medium include: high-speed random access memory, non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device. The processor 130 may be one or more of a central processing unit (CPU), an application-specific integrated circuit (ASIC), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices. This application does not limit the structure and model of the above-mentioned memory 120 and processor 130, and can be flexibly adjusted according to actual needs.

[0072] It should be understood that Figure 1 The structure of the electronic device shown does not constitute a limitation on the electronic device in the embodiment of the present application. In practical applications, the electronic device may include Figure 1 More components shown, or combining certain components, especially when the electronic device is a terminal device, such as Figure 2 As shown, the terminal device may also include at least one input component such as a touch sensing unit for sensing touch events on a touch display panel, a keyboard, a mouse, a camera, a microphone, etc.; at least one output component such as a display screen, a speaker, a vibration mechanism, a lamp, etc.; an antenna; a sensor module; a power management module, etc. Figure 2 The input components and output components listed are not shown. The hardware structure can be determined according to the terminal device type and its functional requirements, and this application does not list them one by one here.

[0073] The test report generating method of the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0074] Reference Figure 3 , is a flow chart of an optional embodiment 1 of the test report generation method proposed in this application, which method can be applied to any electronic device listed above, such as Figure 3 As shown, the test report generation method proposed in this embodiment includes but is not limited to the following steps:

[0075] Step S301, obtaining task data of each currently existing test task;

[0076] Combined with the above description of the technical solution of this application, in the process of developing any type of product, in order to implement the testing of different functions, applicable equipment, potential risks and various requirements for different users of this type of product, it is usually necessary to establish more test tasks and assign them to different testers, product managers, developers and other participants to perform one or multiple planned iterative tests. Among them, since the content and execution objects required to be completed by different test tasks are often different, in order to facilitate each team member and relevant personnel to quickly and accurately understand the work progress and risk situation, promote work collaboration and communication, and urge the completion of tasks on time, this application proposes that after each period of time, according to the test report generation method proposed in this application, a test report for recording the actual work progress and risk situation within the period of time is quickly and reliably generated.

[0077] Based on this, in some embodiments, when entering each pre-configured summary time (such as one week or two weeks or one month, etc., which can be configured or adjusted according to actual needs), task data such as the actual work progress and resource status of each test task can be automatically requested, such as obtaining task data of various test tasks currently in different task states such as in progress, not started or completed within the current summary time from the project management system through an interface request, such as the task name of the test task, the testers involved, the expected start time and end time, the various associated requirements, the name of the product or project to which it belongs, etc. The present application does not limit the content of the task data, and it can be pre-configured according to actual conditions to generate corresponding task data according to the configuration.

[0078] Among them, the configuration process of the summary interval time for generating two adjacent test reports, the configuration process of the task data content that needs to be recorded during the creation and execution of each test task, and the configuration process of the test report format and transmission method, etc., can be completed by relevant personnel on the corresponding configuration interface displayed on the display screen of the terminal device, or by specifying function buttons or gestures or voice commands, etc. The configuration implementation process is not described in detail in this application. In the case where it is necessary to shorten or extend the summary interval time for generating test reports, or to change the test report format or its transmission method, etc., it can still be implemented according to this configuration process.

[0079] In a possible implementation, for the task data of each test task obtained, a test report generation request can be sent to the project management system through Python, and the task data of each test task in the JSON (JavaScript Object Notation, JS object notation) format in the interface response object is stored in the response_json list (such as Figure 4 The test tasks are shown in the list, but not limited to Figure 4The task data content and storage method shown in the figure) is to use response.json() to obtain the Python dictionary data format of the interface response object. The implementation process is not described in detail in this application. It should be noted that the method for obtaining the task data of each currently existing test task includes but is not limited to the interface request acquisition method described in this embodiment.

[0080] Step S302, determining the category information of the corresponding test task according to the first attribute value included in each task data; the first attribute is at least one attribute representing the status of the project or product to which the test task belongs, and the category information indicates the task summary category to which the corresponding test task belongs;

[0081] In order to enable non-professionals to accurately understand the content of the test report, the present application can select one or more attributes that are understood by the public from the various data of the test task, and implement the classification and aggregation of the task data of all acquired test tasks (which can be simply referred to as aggregation). Therefore, the embodiment of the present application proposes to aggregate the task data of each test task according to the different states of the project or product to which each test task belongs, generate different category information for each test task, and indicate the task aggregation category to which the test task belongs after aggregation through the category information, that is, the category information of each test task corresponding to the same task aggregation category is the same.

[0082] Based on this, in the embodiments of the present application, each attribute representing the status of the project or product to which the test task belongs is recorded as the first attribute, such as the project identifier (i.e., project_name) indicating whether the test task is in the "unestablished" state; the version identifier (version_name) indicating whether the test task has set corresponding requirements, that is, whether the product to which it belongs is in the "requirement pool" state; the iteration identifier (iter_name) indicating whether an iteration is planned for the project to which the test task belongs, and one or more of the above. The present application does not impose any restrictions on the category of the first attribute and the storage method of its attribute value (recorded as the first attribute value).

[0083] Step S303, using the second attribute value contained in each task data corresponding to the same category information, obtaining the second attribute summary value of the test task belonging to the corresponding task summary category;

[0084] As analyzed above, the present application implements classification and aggregation of all currently existing test tasks according to at least one first attribute, and the corresponding first attribute value in the task data of each test task obtained. After obtaining the category information of each task aggregation category, the second attribute value of at least one second attribute currently possessed by each test task contained in each task aggregation category can be further aggregated to determine the aggregation value of the corresponding category second attribute of each test task belonging to the task aggregation category, which is recorded as the second attribute aggregation value, so as to further perform statistics according to the second attribute aggregation value of the same second attribute corresponding to each task aggregation category, etc., to meet the actual statistical content required to be displayed in the test report.

[0085] Among them, the second attribute is at least one attribute of the test task that needs to be summarized, such as the importance of the project, the expected start time (which can also be called the estimated start time of the pre-planned start test) and the expected end time (which can also be called the estimated end time of the pre-planned end test), the participating testers, etc. This application does not limit the category of each second attribute and the representation method of its attribute value.

[0086] It should be noted that for second attributes of different categories, the aggregation method of the second attribute values ​​corresponding to each test task with the same category information may be different. The second attribute aggregation value of a corresponding task aggregation category may be determined according to the rules corresponding to the content of the second attribute value, such as merging the second attribute values ​​of the same second attribute, or determining a status value as the status aggregation value of the task status of the corresponding task aggregation category according to the status value of the task status of each test task according to the rules, etc. It can be seen that a second attribute aggregation value of each task aggregation category may have one data content (such as any status aggregation value of not started, in progress, and completed), or may contain multiple data contents (such as merging the testers who participated in the corresponding test tasks). This application does not limit the method for obtaining the second attribute aggregation value of the same category of second attributes of all test tasks contained in the same task aggregation category, which can be determined according to the circumstances.

[0087] Step S304: Generate a test report according to the first attribute values ​​and the second attribute summary values ​​corresponding to the same category information.

[0088] According to the method described above, the task data of all acquired test tasks are classified and summarized according to their respective first attribute values ​​to obtain at least one test task contained in each task summary category. The same second attribute values ​​of the test tasks of the same task summary category are further summarized to obtain the same second attribute summary value of the second attribute of the test tasks of this task summary category. A test report containing these first attribute values ​​and second attribute summary values ​​can be generated according to a predefined test report template or content format, etc. The present application does not require the content format or template of the test report.

[0089] In one possible implementation, the electronic device can store each test report generated for subsequent query or review, or directly report the test report to the project management system for storage for query by team members and other relevant personnel, and can also send the test report via email (or other transmission methods) to a preset terminal, such as a pre-bound terminal device of a certain manager, and display the test report on its display screen, etc. This application does not limit the subsequent processing method of the generated test report, which can be determined according to the circumstances.

[0090] In summary, in an embodiment of the present application, when a test report needs to be generated to clearly understand the work progress and resource status of each currently existing test task, the electronic device will automatically obtain the task data of each of the currently existing test tasks, and classify and summarize all the test tasks according to at least one first attribute that can represent the status of the project activity product to which the test task belongs, according to the corresponding first attribute value in each task data, and determine at least one test task and its category information contained in each task summary category. Afterwards, for test tasks belonging to the same task summary category, according to at least one second attribute of the test tasks that need to be summarized, the second attribute summary value of the test tasks of the task summary category is obtained using the second attribute value contained in the corresponding task data. Compared with the manual communication summary method, this automatic classification and summary method greatly saves summary time and labor costs, and the present application will automatically generate a test report with a preset format or template in combination with the first attribute value of the task summary category, so as to intuitively and clearly display the first attribute values ​​of different task summary categories and the second attribute summary values ​​of different second attributes. Compared with the manual summary and writing test report method, the test report generation efficiency is improved, and manual summary or writing errors are avoided, thereby ensuring that the generated test report is accurate and reliable.

[0091] Reference Figure 5 , is a flow chart of an optional second embodiment of the test report generation method proposed in this application. This embodiment may be an optional refinement of the test report generation method proposed in the above embodiment, such as Figure 5 As shown, the method may include:

[0092] Step S501, obtaining task data of each currently existing test task;

[0093] The implementation method of step S501 can refer to the description of the corresponding part of step S301, and this embodiment will not be repeated. In a possible implementation, step S501 can be in accordance with a preset timing summary strategy, respond to the test report generation request for the current summary time, and obtain the task data of each currently existing test task. The preset defined summary strategy can be implemented by a timer, that is, the timer is pre-configured to generate a summary time for the test report, such as a summary interval time (such as generating a test report every 6 days, 10 days, or 15 days, etc.) or multiple specified summary times, etc. In this way, when it is determined that the system time has reached the current summary time of the timer, it means that a test report needs to be generated at this time, triggering the execution of the test report generation method proposed in this application.

[0094] In another possible implementation, step S501 may also be a response to a test report trigger instruction to obtain task data for each currently existing test task. In this implementation, a test task executor, manager, or assistant, etc. may operate on the interface displayed by the terminal device (or specify function keys, specify gestures, or specify voice commands, etc.) to generate a corresponding test report trigger instruction, so that the electronic device responds to the test report trigger instruction and requests task data for all currently existing test tasks through the interface. In this way, in the event of special circumstances (such as the need to adjust the research and development content, etc.), there is no need to wait for the summary time to arrive, and the generation of a test report can be actively triggered to formulate a reasonable plan based on the test report content, thereby improving the flexibility of generating a test report.

[0095] Step S502, determining at least one first attribute value included in each task data;

[0096] Step S503, determining category information of a corresponding test task according to a summary method indicated by at least one first attribute value;

[0097] Combined with the above description of the classification and summary of task data for each test task, refer to Figure 6a The project and rule iteration relationship diagram shown in the figure, for any project that has been established (it can be any of project A, project B, ..., project N, etc., where N is an integer), different states may include unplanned iterations (such as a test task that only needs to be executed once, etc.), planned iterations 1, iteration 2, ..., iteration M, etc. Among them, each iteration can be an iteration plan created and planned for the corresponding task requirements, and each iteration plan may include the development time, test time, version launch time, and task allocation of each requirement within the iteration, etc. It can be created by a product manager or other personnel, etc., and this application does not limit the planning iteration method.

[0098] Similarly, refer to Figure 6b As shown in the product and version relationship diagram, for any product that needs to be developed (it can be any product among product 1, product 2, ..., product P, where P is an integer), different states can include providing a demand pool for the product but not releasing a version (such as a temporarily created test task), and releasing various versions of the product (such as version 1, version 2, ..., version V, where V is an integer). Figure 6a and Figure 6b As shown in the content, the present application proposes to classify and aggregate all the test tasks acquired in this aggregation according to the first attribute representing the status of the product or project to which the test task belongs.

[0099] Based on this, the first attribute selected by the present application may include one or more of a project identifier (project_name), a version identifier (version_name), a task identifier (task_name), and an iteration identifier (iter_name). Figure 6a and Figure 6b The first attribute value of the project identifier can be an un-established project (in which case the corresponding product name can be recorded) or the name of an established project; the first attribute value of the version identifier can be a requirement pool or a version name (such as a version number), but is not limited to the content described in the embodiments of the present application.

[0100] It can be seen that for the selection of each first attribute, the aggregation method indicated when the combination corresponds to different first attribute values ​​is different. Therefore, when determining the first attribute values ​​contained in the task data of each test task, the present application needs to determine the task aggregation category to which the test task belongs according to the corresponding aggregation method. In another possible implementation, the first attribute values ​​corresponding to different task aggregation categories can also be determined, and then, according to the first attribute values ​​corresponding to each task aggregation category, the task data containing the first attribute values ​​are identified, that is, the task data of each test task belonging to the task aggregation category is aggregated to determine the corresponding category information. The present application does not limit the implementation method of step S503.

[0101] Preferably, combined Figure 6a and Figure 6b As shown in the relationship diagram, in the process of classifying and aggregating the acquired test tasks, it is determined whether the project identification of the corresponding test task is "not established" based on the acquired task data. If so, the classification and aggregation of the test tasks are implemented according to the following aggregation strategy 1; if not, the classification and aggregation of the test tasks can be implemented according to the following aggregation strategy 2, but it is not limited to the aggregation method described in this embodiment.

[0102] Among them, refer to Figure 6bThe relationship shown in the figure, the summary strategy 1 for the test tasks that have not been established can include: if there is a released version, it can be classified and summarized according to the product and version; if there is no released version, it can be classified and summarized according to the product and task name. Figure 6a As shown in the relationship, the summary strategy 2 for the established test tasks can include: if the iteration has been planned, or if the iteration is not planned and there is no released version, it can be classified and summarized according to the project and iteration; if the iteration is not planned but there is a released version, it can be classified and summarized according to the project and version.

[0103] It should be understood that the category information of each test task after classification and aggregation, that is, the category information of each task summary category after classification and aggregation, can be determined according to the corresponding aggregation method, such as classification and aggregation according to the product and version, the corresponding category information can include the product name and version name; classification and aggregation according to the project and iteration, the corresponding category information can include the project name and iteration name (such as the number of iterations / number), etc., but is not limited to the classification and aggregation method and the category information content determination method described in this embodiment.

[0104] Step S504, obtaining at least one second attribute value of each test task belonging to the corresponding task summary category from each task data corresponding to the same category information;

[0105] Step S505, summarizing the second attribute values ​​of the same second attribute of each test task belonging to the same task summary category to obtain the second attribute summary value of the second attribute of each test task belonging to the corresponding task summary category;

[0106] Since the second attribute in the present application is the attribute of the test task that needs to be displayed in the test report, that is, the attribute of the test task that needs to be summarized, after the embodiment of the present application completes the classification and aggregation of different task data according to the above method, the corresponding second attributes of the test tasks of each task summary category can be further summarized according to the attribute values ​​that need to be displayed in the test report. Since the attribute value characteristics of the second attributes of different categories are different, the aggregation implementation method adopted may be different, including but not limited to the description method of the corresponding part of step S303 of the above embodiment.

[0107] In one possible implementation, all task data for the same task summary category may exist in the same dictionary (i.e., a data storage structure, but not limited to the storage method described in this embodiment). Subsequently, for each dictionary, the second attribute values ​​of each test task in the list where each second attribute is located may be summarized to obtain the second attribute summary value of the corresponding second attribute.

[0108] In another possible implementation, for each task summary category, a dictionary associated with its category information can be created, each list in the dictionary corresponds to a second attribute, and the corresponding second attribute value in each task data corresponding to the task summary category is read and written into the list of the dictionary. After that, the second attribute values ​​contained in each list can be summarized to obtain the corresponding second attribute summary value. It can be seen that the data storage in the form of a list proposed in the embodiment of the present application improves the efficiency and reliability of the summary. Of course, the present application can also adopt other data storage structures to realize the storage and aggregation of task data of different task summary categories, and the implementation process is not described in detail one by one in this application.

[0109] Step S506, using different second attribute summary values ​​of the same second attribute corresponding to each category information, determine the task quantity of the test task corresponding to the different second attribute summary values;

[0110] According to the method described above, the task data of all acquired test tasks are classified and summarized to obtain the first attribute values ​​and the second attribute summary values ​​of each task summary category. If it is necessary to perform task statistics on these multiple task summary categories, since the first attribute values ​​of the same first attribute of each test task in the same task summary category are the same, the embodiment of the present application can perform statistics on the different second attribute summary values ​​of the same second attribute of each task summary category to obtain the number of test tasks corresponding to different second attribute summary values, such as the total number of test tasks in different task statuses, the total number of tasks with risk points, etc.

[0111] It should be noted that this application can be determined according to actual statistical needs, and does not require statistics on the second attribute summary values ​​of all second attributes. In order to ensure the accuracy of the statistical results, it can be verified first whether the task data of all test tasks are classified and summarized to obtain all the second attribute summary values ​​corresponding to each category of information. If so, then execute step S506.

[0112] Step S507 , generating a test report in a preset format by using the first attribute values ​​and the second attribute summary values ​​corresponding to the same category information, and the task quantity corresponding to the second attribute summary value, and outputting the test report through a preset transmission method.

[0113] According to but not limited to the method described above, the task data of all currently existing test tasks are automatically classified and summarized, and the first attribute values ​​and the second attribute summary values ​​corresponding to the task summary categories that need to be summarized in the test report are obtained, and even the summary results such as the number of tasks corresponding to different second attribute summary values ​​are obtained. These summary results can be processed according to a preset format to generate a test report with the preset format, such as converting the summary results including but not limited to the above-listed test report into a test report in HTML (Hyper Text Markup Language) table format, such as Figure 7 As shown, the test report can then be directly or periodically output through a preset transmission method such as email or network disk, so as to be displayed on the display screen of the query or receiving end. Figure 7 The test report shown is not limited to the output method described in this application.

[0114] The above statistical task data can be displayed in the test report as prompts or summary information. Other summary results of the above classification and summary can be displayed as follows: Figure 7 The table is displayed in the form shown so that viewers (such as managers or other team members) can intuitively and accurately understand the work progress and risk status, but it is not limited to this table display method.

[0115] It can be seen that after the present application automatically obtains the task data of all currently existing test tasks, it determines the category information of the test task according to the aggregation method indicated by at least one first attribute value contained in the task data of each test task, thereby realizing automatic classification and aggregation of the task data of each test task, determining the test tasks contained in each task aggregation category, and then aggregating the second attribute values ​​of the same second attribute of each test task belonging to the same task aggregation category, and quickly and accurately obtaining the second attribute aggregation value of the second attribute of the task aggregation category. Compared with manual communication to aggregate the second attribute aggregation values, the aggregation efficiency and reliability are improved, and labor costs are saved. On this basis, this embodiment can also count the number of tasks with different second attribute summary values ​​of each task summary category, and automatically generate a test report in a preset format (such as a table format, etc.) by combining the first attribute value and the second attribute summary value of each task summary category obtained by the above summary. Compared with the implementation method of writing a test report after manual summary, it avoids writing errors or subjective interference, ensures that the content of the test report is objective and reliable, and the test report format generated by this application is unified, so that viewers can quickly and accurately understand the work progress and resource allocation, provide objective data support for the team, guide decision-making, optimize resource allocation, reduce risks, improve efficiency, and enhance competitiveness.

[0116] In combination with the test report generation method described in the above embodiments, Figure 6a and Figure 6b The relationship diagram shown in FIG. 1 describes an optional implementation method for classifying and aggregating test tasks and determining the category information of each test task. After determining the multiple first attribute values ​​contained in each task data, combined with the aggregation strategy 1 and the aggregation strategy 2 described above, the following operations can be performed:

[0117] By using multiple first attribute values ​​of any test task, if it is determined that the project to which the test task belongs has not been established and the product to which it belongs has not been released, it can be classified and summarized according to the product and task to which it belongs, so the category information of the test task can be configured as the corresponding product name and task identifier (such as task name); if it is determined that the project to which the test task belongs has not been established and the product to which it belongs has a released version (such as Figure 6b In the status except "demand pool", the test tasks can be classified and summarized according to the products and versions they belong to. Therefore, the category information of the test task can be configured as the corresponding product name (such as product P) and version name (such as version V).

[0118] If the project to which the test task belongs has been established, but no iteration has been planned and the product to which it belongs has a released version (the product to which it belongs is in the following Figure 6b In the state other than "demand pool", that is, any released version), it can be classified and summarized according to the project and version, so the category information of the test task can be configured as the corresponding project name and version name; if it is determined that the project to which the test task belongs has been established, no iteration is planned, and the product to which it belongs has not released a version (the product to which it belongs is in such a Figure 6b ), or for the project that has been established and has planned iterations, it can be classified and summarized according to the projects and iterations to which it belongs. Therefore, the category information of the test task can be configured as the corresponding project name and iteration ID; the iteration ID here is the iteration name of the unplanned iteration or the planned iteration.

[0119] In some embodiments, the present application may use a Python dictionary (a data type) to store data in a key-value pair format, and use the key information to access the Value information stored in the dictionary. The key in the dictionary is unique, indicating the unique category information of the corresponding task summary category, and its corresponding Value may be of list type, recording the corresponding second attribute values ​​obtained by summarization. In this regard, the present application embodiment may use the collections library in the Python language to assist in the classification and aggregation of each task data, and may define the test task list combined_data = defaultdict(lambda: defaultdict(list)) to store the task data of each test task corresponding to each task summary category, and then traverse the task data of each test task in the test task list through for task in response_json to obtain the second attribute summary values ​​of each task summary category. The implementation process is not described in detail in this application.

[0120] Combined with the above analysis, according to the different status of the project or product to which each test task belongs (such as Figure 6a and Figure 6b The respective status values ​​shown in the second row of each test task are used to generate a key value (i.e., category information) corresponding to the test task, so that the task data of each task summary category can be subsequently merged and processed. In one possible implementation, for each test task obtained, the present application can determine whether the project identifier of the project to which the test task belongs is "not established", and combine other first attributes (each attribute can correspond to a field) values ​​to construct a key value that meets the requirements. In this regard, the present application can combine the aggregation strategy 1 and aggregation strategy 2 described above, and use an if statement to implement the classification and aggregation of each task data.

[0121] For example, an if statement is used to determine whether the project identification field "project_name" in the task data of the test task is equal to "not established", that is, the project to which it belongs is in an unestablished state, and further determine that the version identification field "version_name" is "demand pool". The category information key of the test task can be configured as (product_name, task_name), that is, the category information containing the product name and task identification is determined; if "version_name" is not "demand pool", the category information key of the test task can be configured as (product_name, version_name), that is, the category information containing the product name and version name is determined.

[0122] When using the if statement to judge, determine that the project identification field in the task data of the test task, that is, "project_name", is not equal to "unestablished project". At this time, the corresponding project name can be recorded, and the iteration identification field, that is, "iter_name", can be further determined to be "unplanned iteration", and "version_name" is not "demand pool", indicating that the product has not released a version. The category information key of the test task can be configured as (project_name, version_name); conversely, that is, "iter_name" is "unplanned iteration", but "version_name" is "demand pool", or "iter_name" is not "unplanned iteration" but iteration name, such as Figure 6a For any one of iterations A to M shown, the category information key of the test task can be configured as (project_name, iter_name).

[0123] Afterwards, a combined_data dictionary (summary data dictionary) can be created to record the key of each test task. The keys of each test task belonging to the same task summary category are the same, and the values ​​(i.e., the second attribute values) of the specified fields (i.e., the fields represented by the second attribute) in the task data of each test task are stored in the corresponding positions in the combined_data dictionary, that is, the lists / values ​​of each specified field are stored in the dictionary corresponding to its key, that is, the second attribute values ​​corresponding to each task data are recorded.

[0124] Therefore, according to the above, the category information of each determined test task is determined as the key information, and the second attribute values ​​contained in each task data corresponding to the same key information are determined as the value information mapped by the key information. Then, the value information mapped by the same key information can be stored in the corresponding list in the dictionary corresponding to the key information. After that, after data preprocessing is performed on the value information stored in the same list of each dictionary, the preprocessed valid value information is summarized to obtain the second attribute summary value of the test task belonging to the corresponding task summary category. Among them, the preprocessing can include one or more of information extraction, data cleaning and format conversion to ensure that the summary result is reliable. This application does not limit the preprocessing method and its implementation method.

[0125] Exemplarily, the value (i.e., status value) of the task status field "workflow_state_name" in each task data is added to the combined_data[key]["workflow_state_name"] list, that is, the status value of each test task is written into the task status list in the dictionary corresponding to the key of each test task; similarly, the value (e.g., tester ID) of the tester (i.e., handler) field "operator_name" in each task data is added to the combined_data[key]["operator_name"] list, that is, the tester ID of each test task is written into the tester list in the dictionary mapped to its key. Optionally, it is also possible to check whether the combined_data[key]["operator_name"] list already contains the value of the tester field "operator_name" of the test task, and if not, add it in the above manner.

[0126] Similarly, the value of the expected start time field "expected_to_start" of each test task can be added to the combined_data[key]["expected_to_start"] list; the value of the expected end time field "expected_to_end" in each test task can be added to the combined_data[key]["expected_to_end"] list; the value of the risk point field "risk_status_name" contained in each task data can be added to the combined_data[key]["risk_status_name"] list.

[0127] Optionally, if the existence of risk points is determined according to the expected start time and expected end time of each test task, the obtained risk content is written into the risk point list in the dictionary corresponding to the key of the corresponding test task, and there is no need to read the risk data contained in the task data. Therefore, this embodiment can check whether the combined_data[key]["risk_status_name"] list already contains the value of the risk point field "risk_status_name" in each task data. If not, add the risk content according to the method described above.

[0128] In addition, the value of the project name (or project number) field "project_id" in each task data can also be assigned to combined_data[key]["project_level"] to facilitate subsequent query of the project level. It should be noted that when the second attributes to be summarized may also include other second attributes in addition to the task status, tester, project ID, expected start time and expected end time listed above, the corresponding field values ​​in each task data can still be stored in the corresponding position in the combined_data field according to the method described above, and the implementation process is similar.

[0129] After determining each value (such as each second attribute value above) of the key mapping of each test task, the second attribute summary value of each second attribute of each test task of the same task summary category may be further summarized. The implementation process may include but is not limited to at least one of the following implementation methods:

[0130] If the second attribute includes the task status, and the status values ​​of the task status of each test task in the same task summary category are the same (that is, the value of the "workflow_state_name" field is the same), the status summary value of each test task belonging to the corresponding task summary category is configured to be the status value. However, if the status values ​​of the task status of each test task in the same task summary category are different, the status summary value of each test task belonging to the corresponding task summary category is configured to be task in progress. Exemplarily, for each test task in the same task summary category, if they are all in the unstarted state, their status summary value is set to "not started"; if they are all in the completed state, their status summary value is set to "completed"; otherwise, their status summary value can be set to "in progress".

[0131] If the above-mentioned second attribute includes testers (such as the "operator_name" field), the tester summary value of each test task of the same task summary category is configured as the corresponding tester identification. Exemplarily, the tester identifications of all testers for each corresponding test task are obtained, and each tester identification is separated by a comma. If the above-mentioned second attribute includes an expected start time and an expected end time, such as the above-mentioned "expected_to_start" field and "expected_to_end" field, the expected summary start time of each test task of the same task summary category can be configured as the corresponding minimum expected start time, and the expected summary end time can be configured as the corresponding maximum expected end time, that is, the minimum time among the expected start times of all test tasks of the task summary category is selected as the expected summary start time, and the maximum time among the expected end times of all test tasks of the task summary category is selected as the expected summary end time.

[0132] If the above second attribute includes risk points (such as the "risk_status_name" field), the summary risk points of each test task in the same task summary category are configured as corresponding risk contents; if the above second attribute includes project level (such as the "project_id" field), the project level summary value of each test task in the same task summary category is configured as the level value of an unestablished project or a project to which it belongs. The level value of the corresponding project can be read according to the project number or name. In this application, the larger the level value, the higher the importance of the project, which can be adopted as follows Figure 7 The level values ​​shown such as "core", "key", "ordinary" and "unestablished" represent different levels. Level values ​​such as first level, second level, and third level may also be used to represent different levels. This application does not impose any restrictions on the way level values ​​are represented.

[0133] In a possible implementation, for the method of obtaining the above-mentioned second attribute summary values, the values ​​of the specified fields contained in the task data of each task summary category stored in the dictionary can be processed by defining combined_data_list = []. For example, the key-value pairs in the combined_data dictionary can be traversed through for key, values ​​in combined_data.items(), that is, the values ​​mapped in the combined_data dictionary are accessed through the unique key of each task summary category to obtain the corresponding key-value pairs. After preprocessing, the processed single set of data, that is, the second attribute summary values, is stored by defining data={}, but it is not limited to this storage method.

[0134] Taking the processing of the expected start time of each test task of the same task summary category as an example, each date string date in the values["expected_to_start"] list of its key mapping can be read and converted to a datetime object through datetime.strptime(date, '%Y-%m-%d').date() to determine the date part. Among them, only when the result of date.strip() is true (that is, the date string is not empty after removing the spaces), it is converted to the date format and the subsequent summary processing is completed to eliminate the abnormal situation caused by the possible blank date string, that is, the expected start summary time error, etc., thereby generating a list of datetime.date objects containing valid dates. Afterwards, the minimum time can be selected from them by comparison or sorting and saved as the value of data['expected_to_start'], that is, the expected start summary time of each test task of the task summary category.

[0135] In the above loop processing process, combined_data_list.append(data) can be used before each loop ends to add data (such as the summary values ​​of the second attribute) to the combined_data_list list until all data are processed and the loop ends. After that, the first attribute values ​​and the second attribute summary values ​​of each task summary category can be sorted according to the project level, such as using combined_data_list = sorted(combined_data_list, key=lambda x: x['project_level']) to sort the data of each task summary category. Figure 7 The order shown is from core to unscheduled, but is not limited to this order.

[0136] It should be noted that in the process of summarizing the task data corresponding to each task summary category, if Figure 7 As shown, the project name of the project to which each test task belongs or the product name of the product to which it belongs can be determined as the attribute value of the first attribute such as the project identifier, and the corresponding version name or iteration number (which can represent the iteration name) or unplanned iteration can be recorded as the attribute value of the corresponding first attribute.

[0137] For the data of each task summary category after the above processing (such as the first attribute value and the second attribute summary value) and statistical data (such as the number of tasks in different task states, etc.), you can use the csv library in the python language to read and write CSV files, save these data in the data.csv file, create a test report template to read the corresponding data, and generate a test report in a table format. For example, to create an html email template content, df = pd.read_csv('data.csv', encoding=encoding) reads the content of the data.csv file, and converts the read content into an html table format and adds it to content through html_table = df.to_html(index=False). After that, use the MIMEMultipart and MIMEText classes in the built-in email library of python to create an email object message = MIMEMultipart(), add the html format email content message.attach(MIMEText(content, "html", _charset="utf-8")), and finally use the send_message method in the smtplib library to send the email. That is, all the summary contents to be sent are spliced ​​into a test report in an HTML table for storage to achieve scheduled sending, or the test report is directly sent via email, but it is not limited to the test report in this table format and its sending method.

[0138] For example, taking the scenario of generating a test weekly report regularly and sending it by email as an example, combined with the test report generation method described above, Figure 8 As shown, the present application can start the test weekly report generating device at a fixed time, obtain the task data of various existing test tasks, read each task data sequentially or randomly, and realize the classification and summary of all test tasks.

[0139] like Figure 8 As shown, you can first determine whether the project to which the test task belongs is "unestablished". If so, you can follow Figure 8 The summary strategy 1 shown in the figure determines the key, i.e., the category information, of the test task; if not, you can follow Figure 8 The summary strategy 2 shown in the figure determines the key, i.e., the category information, of the test task. After that, the combined_data dictionary can be used to store the values ​​of each specified field (i.e., each second attribute) in a standardized manner, so that the candidate can quickly and accurately obtain the summary value of each second attribute. In order to ensure the reliability of the summary result, it can be determined whether the classification and summary of all task data have been completed. If not, continue to determine whether the next test task has been established until the classification and summary of all task data have been completed. This can be done as follows: Figure 8 The rules shown can quickly and accurately obtain the second attribute summary value of each second attribute in each task data contained in each task summary category. After determining that the summary of all second attributes of all task data is completed, the number of tasks after processing can be counted according to actual summary needs, and a test weekly report in a specified format can be automatically generated and sent. There is no need for manual communication and summary, which saves the time for writing test weekly reports and improves test work efficiency and reliability.

[0140] A test report generating method provided in an embodiment of the present application is introduced above, and a device for executing the test report generating method is introduced below.

[0141] Reference Fig. 9 , is a schematic diagram of the structure of a test report generating device provided in an embodiment of the present application. Fig. 9 As shown, the test report generating device may include:

[0142] The task data acquisition module 91 is used to acquire the task data of each currently existing test task;

[0143] A category information determination module 92 is used to determine the category information of the corresponding test task according to the first attribute value contained in each of the task data; the first attribute is at least one attribute representing the status of the project or product to which the test task belongs, and the category information indicates the task summary category to which the corresponding test task belongs;

[0144] A second attribute summary value obtaining module 93 is used to obtain the second attribute summary value of the test task belonging to the corresponding task summary category by using the second attribute value contained in each task data corresponding to the same category information; the second attribute is at least one attribute of the test task to be summarized;

[0145] The test report generating module 94 is used to generate a test report according to each of the first attribute values ​​and each of the second attribute summary values ​​corresponding to the same category information.

[0146] In a possible implementation, the category information determination module 92 may include:

[0147] A first attribute value determining unit, used to determine at least one first attribute value included in each of the task data;

[0148] A category information determination unit, configured to determine the category information corresponding to the test task according to the aggregation method indicated by the at least one first attribute value;

[0149] The aggregation method refers to a method of aggregating according to different states of the products or projects to which the test tasks belong.

[0150] In a possible implementation, the category information determining unit may include:

[0151] A first configuration unit is used to configure the category information of any of the test tasks as a corresponding product name and a task identifier by using the multiple first attribute values ​​of any of the test tasks if it is determined that the project to which the test task belongs has not been established and the product to which the test task belongs has not been released;

[0152] The second configuration unit is used to configure the category information of the test task to the corresponding product name and version name if it is determined that the project to which the test task belongs has not been established and the product to which the test task belongs has a released version;

[0153] The third configuration unit is used to configure the category information of the test task to the corresponding project name and version name if it is determined that the project to which the test task belongs has been established but no iteration is planned and the product to which it belongs has a released version;

[0154] The fourth configuration unit is used to configure the category information of the test task to the corresponding project name and iteration identifier if it is determined that the project to which the test task belongs has been approved, no iteration has been planned and the product to which it belongs has not been released, or if iteration has been planned for the approved project; the iteration identifier is the iteration name of an unplanned iteration or a planned iteration.

[0155] In some further embodiments, the second attribute summary value obtaining module 93 may include:

[0156] A second attribute value obtaining unit, configured to obtain at least one second attribute value of each of the test tasks belonging to the corresponding task summary category from each of the task data corresponding to the same category information;

[0157] The second attribute summary value obtaining unit is used to summarize the second attribute values ​​of the same second attribute of each test task belonging to the same task summary category to obtain the second attribute summary value of the second attribute of each test task belonging to the corresponding task summary category.

[0158] In a possible implementation, the second attribute summary value obtaining unit may include at least one of the following configuration units:

[0159] a fifth configuration unit, configured to configure the state summary value of each of the test tasks belonging to the corresponding task summary category to the state value if the second attribute includes a task state and the state values ​​of the task states of the test tasks of the same task summary category are the same;

[0160] A sixth configuration unit is used to configure the status summary value of each of the test tasks belonging to the corresponding task summary category as task in progress if the second attribute includes a task status and the status values ​​of the task status of each of the test tasks of the same task summary category are different.

[0161] A seventh configuration unit, configured to configure the tester summary value of each of the test tasks of the same task summary category as the corresponding tester identifiers if the second attribute includes the tester;

[0162] An eighth configuration unit, configured to configure the expected summary start time of each of the test tasks of the same task summary category to the corresponding minimum expected start time, and the expected summary end time to the corresponding maximum expected end time if the second attribute includes an expected start time and an expected end time;

[0163] a ninth configuration unit, configured to configure the summary risk points of the test tasks of the same task summary category into corresponding risk contents if the second attribute includes risk points;

[0164] The tenth configuration unit is used to configure the project level summary value of each test task of the same task summary category to a level value of an unestablished project or a project to which it belongs if the second attribute includes a project level; the greater the level value, the higher the importance of the project.

[0165] Based on the above analysis, the test report generating module 94 may include:

[0166] A task quantity determination unit, configured to determine the task quantity of the test task corresponding to different second attribute summary values ​​of the same second attribute corresponding to each of the category information;

[0167] A test report generating unit is used to generate a test report in a preset format by using each of the first attribute values ​​and each of the second attribute summary values ​​corresponding to the same category information, as well as the task quantity corresponding to each of the second attribute summary values, so as to output the test report through a preset transmission method.

[0168] In a possible implementation, if the category information is determined as key information, the second attribute summary value obtaining unit may include:

[0169] A first determining unit, configured to determine each second attribute value included in each task data corresponding to the same key information as value information mapped by the key information;

[0170] A first storage unit, used for storing each value information mapped by the same key information in a corresponding list in a dictionary corresponding to the key information;

[0171] The first obtaining unit is used to perform data preprocessing on the value information stored in the same list of each dictionary, summarize the valid value information after preprocessing, and obtain the second attribute summary value of the test task belonging to the corresponding task summary category; the preprocessing includes one or more of information extraction, data cleaning and format conversion.

[0172] In an optional implementation, the task data acquisition module 91 may include any of the following acquisition units:

[0173] A first acquisition unit is used to respond to a request for generating a test report at a current summary time and acquire task data of each currently existing test task according to a preset timing summary strategy;

[0174] The second acquisition unit is used to respond to the test report trigger instruction and acquire the task data of each currently existing test task.

[0175] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any test report generation method provided in the embodiment of the present application.

[0176] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any test report generation method provided in the embodiment of the present application.

[0177] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0178] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0179] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a training device or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

Claims

1. A test report generation method, characterized in that: The test report generating method comprises: Get the task data of each existing test task; Determine the category information of the corresponding test task according to the first attribute value included in each of the task data; the first attribute is at least one attribute representing the status of the project or product to which the test task belongs, and the category information indicates the task summary category to which the corresponding test task belongs; Using the second attribute value contained in each of the task data corresponding to the same category information, a second attribute summary value of the test task belonging to the corresponding task summary category is obtained; the second attribute is at least one attribute of the test task that needs to be summarized; A test report is generated according to the first attribute values ​​and the second attribute summary values ​​corresponding to the same category information.

2. The test report generation method according to claim 1, characterized in that: Determining the category information of the corresponding test task according to the first attribute value included in each task data includes: Determining at least one first attribute value included in each of the task data; Determine the category information corresponding to the test task according to the aggregation method indicated by the at least one first attribute value; The aggregation method refers to a method of aggregating according to different states of the products or projects to which the test tasks belong.

3. The test report generating method according to claim 2, characterized in that: The determining, according to the aggregation method indicated by the at least one first attribute value, the category information of the corresponding test task includes: By using the multiple first attribute values ​​of any of the test tasks, if it is determined that the project to which the test task belongs has not been established and the product to which the test task belongs has not been released, configuring the category information of the test task to the corresponding product name and task identifier; If it is determined that the project to which the test task belongs has not been established and the product to which it belongs has a released version, the category information of the test task is configured as the corresponding product name and version name; If it is determined that the project to which the test task belongs has been established, but no iteration has been planned and the product to which it belongs has a released version, the category information of the test task is configured as the corresponding project name and version name; If it is determined that the project to which the test task belongs has been approved, no iteration has been planned and the product to which it belongs has not released a version, or that an iteration has been planned for the approved project, the category information of the test task is configured as the corresponding project name and iteration identifier; the iteration identifier is the iteration name of an unplanned iteration or a planned iteration.

4. The test report generating method according to any one of claims 1 to 3, characterized in that: The obtaining the second attribute summary value of the test task belonging to the corresponding task summary category by using the second attribute value included in each task data corresponding to the same category information includes: Obtaining at least one second attribute value of each of the test tasks belonging to the corresponding task summary category from each of the task data corresponding to the same category information; The second attribute values ​​of the same second attribute of each of the test tasks belonging to the same task summary category are summarized to obtain the second attribute summary value of the second attribute of each of the test tasks belonging to the corresponding task summary category.

5. The test report generating method according to claim 4, characterized in that: The second attribute values ​​of the same second attribute of each of the test tasks of the same task summary category are summarized to obtain the second attribute summary value of the second attribute of each of the test tasks belonging to the corresponding task summary category, including at least one of the following implementation methods: If the second attribute includes a task status, and the status values ​​of the task statuses of the test tasks of the same task summary category are the same, configuring the status summary value of the test tasks belonging to the corresponding task summary category to be the status value; If the second attribute includes a task status, and the status values ​​of the task status of each of the test tasks of the same task summary category are different, the status summary value of each of the test tasks belonging to the corresponding task summary category is configured as task in progress. If the second attribute includes testers, configuring the tester summary values ​​of the test tasks of the same task summary category as corresponding tester identifiers; If the second attribute includes an expected start time and an expected end time, the expected summary start time of each of the test tasks in the same task summary category is configured as the corresponding minimum expected start time, and the expected summary end time is configured as the corresponding maximum expected end time; If the second attribute includes risk points, configuring the summary risk points of each of the test tasks in the same task summary category as corresponding risk contents; If the second attribute includes a project level, the project level summary value of each of the test tasks in the same task summary category is configured as a level value of an unestablished project or a project to which it belongs; the greater the level value, the higher the importance of the project.

6. The test report generating method according to claim 5, characterized in that: The generating a test report according to each of the first attribute values ​​and each of the second attribute summary values ​​corresponding to the same category information includes: Determine the task quantity of the test task corresponding to different second attribute summary values ​​of the same second attribute corresponding to each of the category information; A test report in a preset format is generated by using each of the first attribute values ​​and each of the second attribute summary values ​​corresponding to the same category information, as well as the task quantity corresponding to each of the second attribute summary values, so as to output the test report through a preset transmission method.

7. The test report generating method according to claim 4, characterized in that: If the category information is determined as key information, the second attribute value included in each task data corresponding to the same category information is used to obtain the second attribute summary value of the test task belonging to the corresponding task summary category, including: Determine each second attribute value included in each task data corresponding to the same key information as value information mapped by the key information; Storing each value information mapped to the same key information in a corresponding list in the dictionary corresponding to the key information; After data preprocessing is performed on each value information stored in the same list of each dictionary, the valid value information after preprocessing is summarized to obtain the second attribute summary value of the test task belonging to the corresponding task summary category; the preprocessing includes one or more of information extraction, data cleaning and format conversion.

8. The test report generating method according to any one of claims 1 to 3, characterized in that: The task data of each currently existing test task may be obtained in any of the following ways: According to the preset timing summary strategy, respond to the test report generation request for the current summary time and obtain the task data of each existing test task; Respond to the test report trigger instruction and obtain the task data of each existing test task.

9. A test report generating device, characterized in that: The test report generating device comprises: The task data acquisition module is used to obtain the task data of each existing test task; A category information determination module, used to determine the category information of the corresponding test task according to the first attribute value contained in each of the task data; the first attribute is at least one attribute representing the status of the project or product to which the test task belongs, and the category information indicates the task summary category to which the corresponding test task belongs; A second attribute summary value obtaining module is used to obtain the second attribute summary value of the test task belonging to the corresponding task summary category by using the second attribute value contained in each task data corresponding to the same category information; the second attribute is at least one attribute of the test task that needs to be summarized; The test report generating module is used to generate a test report according to each of the first attribute values ​​and each of the second attribute summary values ​​corresponding to the same category information.

10. An electronic device, characterized in that: The electronic device comprises: at least one communication interface, at least one memory and at least one processor; The communication interface is used to obtain task data of each currently existing test task; The processor is used to load and execute multiple computer instructions stored in the memory to implement the following steps: Determine the category information of the corresponding test task according to the first attribute value included in each of the task data; the first attribute is at least one attribute representing the status of the project or product to which the test task belongs, and the category information indicates the task summary category to which the corresponding test task belongs; Using the second attribute value contained in each of the task data corresponding to the same category information, a second attribute summary value of the test task belonging to the corresponding task summary category is obtained; the second attribute is at least one attribute of the test task that needs to be summarized; A test report is generated according to the first attribute values ​​and the second attribute summary values ​​corresponding to the same category information.