CN113778847A - Test report generation method and device - Google Patents
Test report generation method and device Download PDFInfo
- Publication number
- CN113778847A CN113778847A CN202011409891.8A CN202011409891A CN113778847A CN 113778847 A CN113778847 A CN 113778847A CN 202011409891 A CN202011409891 A CN 202011409891A CN 113778847 A CN113778847 A CN 113778847A
- Authority
- CN
- China
- Prior art keywords
- test
- configuration file
- monitoring data
- task
- name
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 281
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000012544 monitoring process Methods 0.000 claims abstract description 83
- 238000004590 computer program Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000002085 persistent effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a test report generation method and device, and relates to the technical field of computers. One embodiment of the method comprises: determining a configuration file corresponding to the test task, wherein the configuration file is used for configuring a customized field of the test report; executing the test task, monitoring the test task, and associating the test result of the test task with the configuration file; and generating a test report based on the test result and the configuration file. The implementation method can automatically generate the customized test, thereby greatly improving the working efficiency and saving the time cost and the labor cost; the method and the device realize the customization of the test report, flexibly customize the test report according to the requirement, meet the customization requirement of a user, and have expandability and editability in the generated test report.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a test report, an electronic device, and a computer-readable medium.
Background
With the popularization of agile testing, in order to improve the testing efficiency, the application of automatic testing is more and more common. After the automated test is performed, the test result needs to be analyzed in order to check the test result and better analyze the stability and coverage of the automatically performed use case.
However, in the process of implementing the present invention, the inventor finds that at least the following problems exist in the prior art: the current test result mainly analyzes the test case without combining the test environment, and the stability trend of case execution cannot be comprehensively known; moreover, most test results only exist in the automatic test framework, and are not stored persistently, so that the test results are inconvenient to check and cannot be comprehensively analyzed in combination with historical tests.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for generating a test report, an electronic device, and a computer-readable medium, which can automatically generate a customized test, so as to greatly improve work efficiency and save time cost and labor cost; the method and the device realize the customization of the test report, flexibly customize the test report according to the requirement, meet the customization requirement of a user, and have expandability and editability in the generated test report.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a test report generating method including:
determining a configuration file corresponding to the test task, wherein the configuration file is used for configuring a customized field of the test report;
executing the test task, monitoring the test task, and associating the test result of the test task with the configuration file;
and generating a test report based on the test result and the configuration file.
Optionally, the test task includes a plurality of test cases;
monitoring the test task, and associating the test result of the test task with the configuration file comprises: executing the test case for each test case, and associating the execution detail information of the test case with the configuration file to obtain first monitoring data; and after the execution of the plurality of test cases is finished, associating the test results of the plurality of test cases with the configuration file to obtain second monitoring data.
Optionally, after associating the test result of the test task with the configuration file, the method further includes: sending the first monitoring data and the second monitoring data to a preset message middleware to enable the preset message middleware to analyze the first monitoring data and the second monitoring data; and writing the analyzed first monitoring data and the second monitoring data into a preset database.
Optionally, the configuration file includes one or more of the following information: the name of the test task, the name of the project, the name of the system, the number of test iterations, the name of the requirements, and the name of the test case.
To achieve the above object, according to another aspect of an embodiment of the present invention, there is provided a test report generating apparatus including:
the determining module is used for determining a configuration file corresponding to the test task, wherein the configuration file is used for configuring a customized field of the test report;
the monitoring module is used for executing the test task, monitoring the test task and associating the test result of the test task with the configuration file;
and the generating module is used for generating a test report based on the test result and the configuration file.
Optionally, the test task includes a plurality of test cases;
the monitoring module is further configured to: executing the test case for each test case, and associating the execution detail information of the test case with the configuration file to obtain first monitoring data; and after the execution of the plurality of test cases is finished, associating the test results of the plurality of test cases with the configuration file to obtain second monitoring data.
Optionally, the listening module is further configured to: sending the first monitoring data and the second monitoring data to a preset message middleware to enable the preset message middleware to analyze the first monitoring data and the second monitoring data; and writing the analyzed first monitoring data and the second monitoring data into a preset database.
Optionally, the configuration file includes one or more of the following information: the name of the test task, the name of the project, the name of the system, the number of test iterations, the name of the requirements, and the name of the test case.
To achieve the above object, according to another aspect of an embodiment of the present invention, there is provided an electronic apparatus including: one or more processors; a storage device, configured to store one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the test report generation method according to the embodiment of the present invention.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a computer-readable medium on which a computer program is stored, the program implementing the test report generation method of an embodiment of the present invention when executed by a processor.
One embodiment of the above invention has the following advantages or benefits: determining a configuration file corresponding to the test task, wherein the configuration file is used for configuring a customized field of the test report; executing the test task, monitoring the test task, and associating the test result of the test task with the configuration file; generating a test report based on the test result and the configuration file, and automatically generating a customized test packet, thereby greatly improving the working efficiency and saving the time cost and the labor cost; the method and the device realize the customization of the test report, flexibly customize the test report according to the requirement, meet the customization requirement of a user, and have expandability and editability in the generated test report.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main flow of a test report generation method of an embodiment of the present invention;
FIG. 2 is a schematic diagram of a main flow of a test report generation method according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of the main modules of a test report generation apparatus according to an embodiment of the present invention;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 5 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
At present, when a test report is analyzed, a test case in the test report needs to be analyzed to determine which system or project a test task belongs to, manual assembly and form counting are needed, and then the stability of case execution is analyzed. This results in significant effort and effort on the part of the tester, high costs, and susceptibility to error.
At least to solve the above problems, embodiments of the present invention provide a test report generation method, which automatically generates customized tests, thereby greatly improving the working efficiency and saving the time cost and the labor cost; the method and the device realize the customization of the test report, flexibly customize the test report according to the requirement, meet the customization requirement of a user, and have expandability and editability in the generated test report.
Fig. 1 is a schematic diagram of a main flow of a test report generation method according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
step S101: determining a configuration file corresponding to the test task, wherein the configuration file is used for configuring a customized field of the test report;
step S102: executing the test task, monitoring the test task, and associating the test result of the test task with the configuration file;
step S103: and generating a test report based on the test result and the configuration file.
For step S101, the configuration file is used to configure custom fields in the test report. The user may maintain the fields in the test report that need to be presented in the configuration file. As a specific example, the configuration file may include one of the following pieces of information: the name of the test task, the name of the project, the name of the system, the number of test iterations, the name of the requirements, and the name of the test case. In the embodiment of the invention, a user can flexibly set the content in the configuration file according to the scene requirement. In an alternative embodiment, the configuration file may also include information of the test task creator and the executive information.
In other optional embodiments, the user may flexibly configure the information to be displayed in the test report according to the scene requirement through a visual interface at the front end.
For step S102, the test task can be executed using an automated test framework such as TestNG, and a listener in TestNG can be used to monitor the execution of the test task.
For step S103, after associating the test results with the configuration file, a test report may be generated based on the test results and the configuration file.
According to the test report generation method, the configuration file corresponding to the test task is determined, and the configuration file is used for configuring the customized field of the test report; executing the test task, monitoring the test task, and associating the test result of the test task with the configuration file; generating a test report based on the test result and the configuration file, and automatically generating a customized test packet, thereby greatly improving the working efficiency and saving the time cost and the labor cost; the method and the device realize the customization of the test report, flexibly customize the test report according to the requirement, meet the customization requirement of a user, and have expandability and editability in the generated test report.
In an alternative embodiment, the test task includes a plurality of test cases. As shown in fig. 2, the step of monitoring the test task and associating the test result of the test task with the configuration file includes:
step S201: executing the test case for each test case, and associating the execution detail information of the test case with the configuration file to obtain first monitoring data;
step S202: after the execution of the test cases is completed, associating the test results of the test cases with the configuration file to obtain second monitoring data;
step S203: sending the first monitoring data and the second monitoring data to a preset message middleware to enable the preset message middleware to analyze the first monitoring data and the second monitoring data;
step S204: and writing the analyzed first monitoring data and the second monitoring data into a preset database.
Specifically, when executing the use cases, it is determined whether all the test use cases have been executed. And if the test case is not executed completely, correlating the execution detail information of the test case with the configuration file in the listener to obtain first monitoring data. The execution detail information of each test case includes the name, input, output and execution result (including success or failure) of the test case. And if all the test cases are executed, correlating the execution results of all the test cases to obtain first monitoring data. The execution results of all test cases comprise the number of successful cases, the number of failed cases, the number of skipped cases and the execution time of the case. And then sending the first monitoring data and the second monitoring data to a preset message middleware, and the preset message middleware analyzes the first monitoring data and the second monitoring data and writes the first monitoring data and the second monitoring data into a database according to a preset format for persistent storage. More specifically, the preset message middleware performs JSON formatting on the monitored first monitored data and second monitored data according to a format required to be put in a warehouse, and then analyzes the JSON string and writes the JSON string into the database in a circulating manner. JSON (JavaScript Object Notation) is a lightweight data exchange format.
In an alternative embodiment, while the test task is being executed, if there are other systems that need to process the test result, the message middleware may be listened to.
Fig. 3 is a schematic diagram of main blocks of a test report generation apparatus 300 according to an embodiment of the present invention, and as shown in fig. 3, the apparatus 300 includes:
a determining module 301, configured to determine a configuration file corresponding to the test task, where the configuration file is used to configure a custom field of the test report;
a monitoring module 302, configured to execute the test task, monitor the test task, and associate a test result of the test task with the configuration file;
a generating module 303, configured to generate a test report based on the test result and the configuration file.
In this embodiment, the configuration file is used to configure custom fields in the test report. The user may maintain the fields in the test report that need to be presented in the configuration file. As a specific example, the configuration file may include one of the following pieces of information: the name of the test task, the name of the project, the name of the system, the number of test iterations, the name of the requirements, and the name of the test case. In the embodiment of the invention, a user can flexibly set the content in the configuration file according to the scene requirement. The user can flexibly configure the information to be displayed in the test report according to the scene requirements through a visual interface at the front end.
The listening module 302 may perform the test task using an automated test framework such as TestNG and listen for the execution of the test task using a listener in TestNG.
The generation module 303 may generate a test report based on the test result and the configuration file after associating the test result with the configuration file.
Optionally, the test task includes a plurality of test cases;
the listening module 302 is further configured to: executing the test case for each test case, and associating the execution detail information of the test case with the configuration file to obtain first monitoring data; and after the execution of the plurality of test cases is finished, associating the test results of the plurality of test cases with the configuration file to obtain second monitoring data.
Optionally, the listening module 302 is further configured to: sending the first monitoring data and the second monitoring data to a preset message middleware to enable the preset message middleware to analyze the first monitoring data and the second monitoring data; and writing the analyzed first monitoring data and the second monitoring data into a preset database.
The test report generation device of the embodiment of the invention judges whether all test cases are executed completely or not when the cases are executed. And if the test case is not executed completely, correlating the execution detail information of the test case with the configuration file in the listener to obtain first monitoring data. The execution detail information of each test case includes the name, input, output and execution result (including success or failure) of the test case. And if all the test cases are executed, correlating the execution results of all the test cases to obtain first monitoring data. The execution results of all test cases comprise the number of successful cases, the number of failed cases, the number of skipped cases and the execution time of the case. And then sending the first monitoring data and the second monitoring data to a preset message middleware, and the preset message middleware analyzes the first monitoring data and the second monitoring data and writes the first monitoring data and the second monitoring data into a database according to a preset format for persistent storage.
The test report generating device of the embodiment of the invention determines the configuration file corresponding to the test task, wherein the configuration file is used for configuring the customized field of the test report; executing the test task, monitoring the test task, and associating the test result of the test task with the configuration file; generating a test report based on the test result and the configuration file, and automatically generating a customized test packet, thereby greatly improving the working efficiency and saving the time cost and the labor cost; the method and the device realize the customization of the test report, flexibly customize the test report according to the requirement, meet the customization requirement of a user, and have expandability and editability in the generated test report.
The device can execute the method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
Fig. 4 shows an exemplary system architecture 400 to which the test report generation method or the test report generation apparatus of the embodiments of the present invention may be applied.
As shown in fig. 4, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405. The network 404 serves as a medium for providing communication links between the terminal devices 401, 402, 403 and the server 405. Network 404 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 401, 402, 403 to interact with a server 405 over a network 404 to receive or send messages or the like. The terminal devices 401, 402, 403 may have various communication client applications installed thereon, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, and the like.
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 405 may be a server that provides various services, such as a background management server that supports shopping websites browsed by users using the terminal devices 401, 402, and 403. The background management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (e.g., target push information and product information) to the terminal device.
It should be noted that the test report generation method provided in the embodiment of the present invention is generally executed by the server 405, and accordingly, the test report generation apparatus is generally disposed in the server 405.
It should be understood that the number of terminal devices, networks, and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 5, shown is a block diagram of a computer system 500 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a sending module, an obtaining module, a determining module, and a first processing module. The names of these modules do not in some cases constitute a limitation on the unit itself, and for example, the sending module may also be described as a "module that sends a picture acquisition request to a connected server".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise:
determining a configuration file corresponding to the test task, wherein the configuration file is used for configuring a customized field of the test report;
executing the test task, monitoring the test task, and associating the test result of the test task with the configuration file;
and generating a test report based on the test result and the configuration file.
According to the technical scheme of the embodiment of the invention, the configuration file corresponding to the test task is determined, and the configuration file is used for configuring the customized field of the test report; executing the test task, monitoring the test task, and associating the test result of the test task with the configuration file; generating a test report based on the test result and the configuration file, and automatically generating a customized test packet, thereby greatly improving the working efficiency and saving the time cost and the labor cost; the method and the device realize the customization of the test report, flexibly customize the test report according to the requirement, meet the customization requirement of a user, and have expandability and editability in the generated test report.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method for generating a test report, comprising:
determining a configuration file corresponding to the test task, wherein the configuration file is used for configuring a customized field of the test report;
executing the test task, monitoring the test task, and associating the test result of the test task with the configuration file;
and generating a test report based on the test result and the configuration file.
2. The method of claim 1, wherein the test task comprises a plurality of test cases;
monitoring the test task, and associating the test result of the test task with the configuration file comprises:
executing the test case for each test case, and associating the execution detail information of the test case with the configuration file to obtain first monitoring data;
and after the execution of the plurality of test cases is finished, associating the test results of the plurality of test cases with the configuration file to obtain second monitoring data.
3. The method of claim 2, wherein after associating the test results of the test task with the configuration file, the method further comprises:
sending the first monitoring data and the second monitoring data to a preset message middleware to enable the preset message middleware to analyze the first monitoring data and the second monitoring data;
and writing the analyzed first monitoring data and the second monitoring data into a preset database.
4. The method of claim 1, wherein the configuration file comprises one of more of the following: the name of the test task, the name of the project, the name of the system, the number of test iterations, the name of the requirements, and the name of the test case.
5. A test report generation apparatus, comprising:
the determining module is used for determining a configuration file corresponding to the test task, wherein the configuration file is used for configuring a customized field of the test report;
the monitoring module is used for executing the test task, monitoring the test task and associating the test result of the test task with the configuration file;
and the generating module is used for generating a test report based on the test result and the configuration file.
6. The apparatus of claim 5, wherein the test task comprises a plurality of test cases;
the monitoring module is further configured to:
executing the test case for each test case, and associating the execution detail information of the test case with the configuration file to obtain first monitoring data;
and after the execution of the plurality of test cases is finished, associating the test results of the plurality of test cases with the configuration file to obtain second monitoring data.
7. The apparatus of claim 6, wherein the listening module is further configured to:
sending the first monitoring data and the second monitoring data to a preset message middleware to enable the preset message middleware to analyze the first monitoring data and the second monitoring data;
and writing the analyzed first monitoring data and the second monitoring data into a preset database.
8. The apparatus of claim 5, wherein the configuration file comprises one of more of: the name of the test task, the name of the project, the name of the system, the number of test iterations, the name of the requirements, and the name of the test case.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011409891.8A CN113778847A (en) | 2020-12-03 | 2020-12-03 | Test report generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011409891.8A CN113778847A (en) | 2020-12-03 | 2020-12-03 | Test report generation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113778847A true CN113778847A (en) | 2021-12-10 |
Family
ID=78835271
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011409891.8A Pending CN113778847A (en) | 2020-12-03 | 2020-12-03 | Test report generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113778847A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114546880A (en) * | 2022-03-23 | 2022-05-27 | 徐工汉云技术股份有限公司 | Test report display method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104360920A (en) * | 2014-12-02 | 2015-02-18 | 微梦创科网络科技(中国)有限公司 | Automatic testing method and device for interface |
CN107622014A (en) * | 2017-09-22 | 2018-01-23 | 广州视源电子科技股份有限公司 | Test report generation method and device, readable storage medium and computer equipment |
CN109491891A (en) * | 2018-10-17 | 2019-03-19 | 深圳壹账通智能科技有限公司 | Full-automatic interface pressure surveys method, apparatus, computer equipment and storage medium |
CN111190825A (en) * | 2019-12-28 | 2020-05-22 | 深圳市优必选科技股份有限公司 | Automatic test method, system and robot |
-
2020
- 2020-12-03 CN CN202011409891.8A patent/CN113778847A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104360920A (en) * | 2014-12-02 | 2015-02-18 | 微梦创科网络科技(中国)有限公司 | Automatic testing method and device for interface |
CN107622014A (en) * | 2017-09-22 | 2018-01-23 | 广州视源电子科技股份有限公司 | Test report generation method and device, readable storage medium and computer equipment |
CN109491891A (en) * | 2018-10-17 | 2019-03-19 | 深圳壹账通智能科技有限公司 | Full-automatic interface pressure surveys method, apparatus, computer equipment and storage medium |
CN111190825A (en) * | 2019-12-28 | 2020-05-22 | 深圳市优必选科技股份有限公司 | Automatic test method, system and robot |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114546880A (en) * | 2022-03-23 | 2022-05-27 | 徐工汉云技术股份有限公司 | Test report display method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111190888A (en) | Method and device for managing graph database cluster | |
CN109829121B (en) | Method and device for reporting click behavior data | |
CN109901987B (en) | Method and device for generating test data | |
CN111444077A (en) | Method and device for generating flow node test data | |
CN109218041B (en) | Request processing method and device for server system | |
CN110795328A (en) | Interface testing method and device | |
CN112131095A (en) | Pressure testing method and device | |
CN111858621A (en) | Method, device, equipment and computer readable medium for monitoring business process | |
CN111984234A (en) | Method and device for processing work order | |
CN112948138B (en) | A method and device for processing messages | |
CN113822745A (en) | Article display method and device | |
CN113778847A (en) | Test report generation method and device | |
CN112579428B (en) | Interface testing method, device, electronic equipment and storage medium | |
CN111555894A (en) | Data processing method, device, equipment and storage medium | |
CN109087097B (en) | Method and device for updating same identifier of chain code | |
CN113378346A (en) | Method and device for model simulation | |
CN115454956A (en) | Log generation method and device, electronic equipment and storage medium | |
CN112860447B (en) | Interaction method and system between different applications | |
CN114064803A (en) | Data synchronization method and device | |
CN111176982A (en) | Test interface generation method and device | |
CN113065920B (en) | Data processing method and system | |
CN111949472A (en) | Method and device for recording application logs | |
CN112905427B (en) | Data processing method and device | |
CN113268417B (en) | Task execution method and device | |
CN113779448B (en) | A page processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |