CN109726103B - Test report generation method, device, equipment and storage medium - Google Patents

Test report generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN109726103B
CN109726103B CN201810459373.3A CN201810459373A CN109726103B CN 109726103 B CN109726103 B CN 109726103B CN 201810459373 A CN201810459373 A CN 201810459373A CN 109726103 B CN109726103 B CN 109726103B
Authority
CN
China
Prior art keywords
test
data
target
test data
generating
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.)
Active
Application number
CN201810459373.3A
Other languages
Chinese (zh)
Other versions
CN109726103A (en
Inventor
臧慧芝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810459373.3A priority Critical patent/CN109726103B/en
Priority to PCT/CN2018/094801 priority patent/WO2019218444A1/en
Publication of CN109726103A publication Critical patent/CN109726103A/en
Application granted granted Critical
Publication of CN109726103B publication Critical patent/CN109726103B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Abstract

The invention discloses a method, a device, equipment and a computer readable storage medium for generating a test report, wherein the method accesses test information sent from the outside through a preset interface, analyzes the test data in the test information, acquires a data type identifier of the test data, and stores the test data in a classified manner according to the data type identifier; acquiring a test case corresponding to the test data in the test information, and performing associated storage on the test case and the classified test data; when a report generation instruction is detected, the test data is imported into a preset display model, a corresponding test chart is generated, and a corresponding test evaluation report is generated according to a test case and the test chart corresponding to the test data. And data are classified and stored according to the data types and the test cases, so that the corresponding search of the data is facilitated, the workload of searching and analyzing the data is reduced, and the searching and analyzing efficiency is improved.

Description

Test report generation method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for generating a test report.
Background
When an application program runs in a test mode, a large amount of test data can be generated. In the prior art, a large amount of test data is simply distinguished according to the version of an application program, and the test data is not subjected to relevant management. When analyzing the large amount of test data, because the stored granularity is too coarse, that is, the types of the test data are more, and the abnormal conditions of each type of data are different, when generating a data report according to the existing test data, the data analysis workload is extremely large, and the data searching efficiency is low.
Disclosure of Invention
The invention mainly aims to provide a method, a device and equipment for generating a test report and a computer readable storage medium, and aims to solve the technical problems of large analysis workload and low searching efficiency of the existing test data.
In order to achieve the above object, the present invention provides a method for generating a test report, including the steps of:
test information sent from the outside is accessed through a preset interface, test data in the test information is analyzed, a data type identifier of the test data is obtained, and the test data is classified and stored according to the data type identifier;
acquiring a test case corresponding to the test data in the test information, and performing associated storage on the test case and the classified test data;
when a report generation instruction is detected, the test data is imported into a preset display model, a corresponding test chart is generated, and a corresponding test evaluation report is generated according to a test case and the test chart corresponding to the test data.
Optionally, when a report generation instruction is detected, the step of importing the test data into a preset display model, generating a corresponding test chart, and generating a corresponding test evaluation report according to the test case and the test chart corresponding to the test data specifically includes:
when a report generating instruction is detected, acquiring target test data in the report generating instruction, acquiring a target data identifier of the target test data, and selecting a corresponding preset display model according to the target data identifier;
and importing the target test data into the preset display model, generating a corresponding target test chart, acquiring a target test case stored in association with the target test data, and generating a corresponding test evaluation report according to the target test chart and the target test case.
Optionally, when the report generating instruction is detected, the step of acquiring the target test data in the report generating instruction, acquiring the target data identifier of the target test data, and selecting the corresponding preset display model according to the target data identifier specifically includes:
when a report generation instruction is detected, acquiring target test data in the report generation instruction, and acquiring a target data identifier of the target test data;
judging whether the target test data is performance test data or not according to a pre-stored data type list and the target data identifier;
and when the target test data is judged to be performance test data, acquiring a preset display model corresponding to the target test data from the display model corresponding to the performance test data.
Optionally, the step of importing the target test data into the preset display model, generating a corresponding target test chart, obtaining a target test case stored in association with the target test data, and generating a corresponding test evaluation report according to the target test chart and the target test case specifically includes:
importing the target test data into the preset display model to generate a corresponding target test chart;
acquiring a target test case stored in association with the target test data, wherein the target test data comprises a program version, a test equipment name, a central processing unit occupancy rate and/or a memory occupancy rate;
and generating a corresponding test evaluation report according to the target test chart, the target test case and one or more parameter information of the program version, the test equipment name, the central processing unit occupancy rate and/or the memory occupancy rate.
Optionally, when a report generation instruction is detected, the step of importing the test data into a preset display model, generating a corresponding test chart, and generating a corresponding test evaluation report according to the test case and the test chart corresponding to the test data specifically includes:
when a report generation instruction is detected, importing the test data into a preset display model to generate a corresponding test chart;
displaying the test chart on a visual display interface, and starting an editing mode of the test chart when an editing request triggered based on the test chart is detected;
adjusting the test chart based on the display dimension input by the tester in the editing mode to obtain the test chart meeting the test requirement;
and generating a corresponding test evaluation report according to the test case corresponding to the test data and the adjusted test chart.
Optionally, after the steps of accessing test information sent from the outside through a preset interface, analyzing test data in the test information, obtaining a data identifier of the test data, and storing the test data according to a data type by classification according to a pre-stored data type list and the data identifier, the method further includes:
comparing the test data with preset test standard data, and judging whether the test data is abnormal or not;
and when the test data are judged to be abnormal, generating a reminding message according to the abnormal test data.
In order to achieve the above object, the present invention also provides a test report generation device, including:
the access classification module is used for accessing test information sent from the outside through a preset interface, analyzing test data in the test information, acquiring a data type identifier of the test data, and classifying and storing the test data according to the data type identifier;
the case correlation module is used for acquiring a test case corresponding to the test data in the test information and performing correlation storage on the test case and the classified test data;
and the report generation module is used for importing the test data into a preset display model when a report generation instruction is detected, generating a corresponding test chart, and generating a corresponding test evaluation report according to the test case and the test chart corresponding to the test data.
Optionally, the report generation module includes:
the model determining unit is used for acquiring target test data in a report generating instruction when the report generating instruction is detected, acquiring a target data identifier of the target test data, and selecting a corresponding preset display model according to the target data identifier;
and the report generation unit is used for importing the target test data into the preset display model, generating a corresponding target test chart, acquiring a target test case stored in association with the target test data, and generating a corresponding test evaluation report according to the target test chart and the target test case.
In addition, to achieve the above object, the present invention further provides a test report generation device, which includes a processor, a memory, and a test report generation program stored in the memory and executable by the processor, wherein when the test report generation program is executed by the processor, the steps of the test report generation method as described above are implemented.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium having a test report generation program stored thereon, wherein the test report generation program, when executed by a processor, implements the steps of the test report generation method as described above.
The invention provides a test report generation method, which accesses externally sent test information through a preset interface, analyzes test data in the test information, acquires a data type identifier of the test data, and classifies and stores the test data according to the data type identifier; acquiring a test case corresponding to the test data in the test information, and performing associated storage on the test case and the classified test data; when a report generation instruction is detected, the test data is imported into a preset display model, a corresponding test chart is generated, and a corresponding test evaluation report is generated according to a test case and the test chart corresponding to the test data. By the mode, the test data are classified and stored according to the data types and the test cases, so that the test data can be searched correspondingly, the workload of data searching and analyzing is reduced, the searching and analyzing efficiency is improved, and the technical problems of large workload of analyzing the existing test data and low searching efficiency are solved.
Drawings
Fig. 1 is a schematic hardware configuration diagram of a test report generation device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for generating a test report according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for generating a test report according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for generating a test report according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating a method for generating a test report according to a fourth embodiment of the present invention
Fig. 6 is a functional block diagram of a test report generation apparatus according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The terminal of the embodiment of the invention can be a fixed terminal or a mobile terminal, wherein the fixed terminal is an Internet of things device, an intelligent air conditioner with a networking function, an intelligent lamp, an intelligent power supply and the like; the invention relates to a mobile terminal, such as AR/VR equipment with networking function, an intelligent sound box, an automatic driving automobile, a PC, a smart phone, a tablet computer, an electronic book reader, a portable computer and other terminal equipment with display function.
Referring to fig. 1, fig. 1 is a schematic hardware structure diagram of a test report generation device according to an embodiment of the present invention. In this embodiment of the present invention, the device for generating a test report may include a processor 1001 (e.g., a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface); the memory 1005 may be a high-speed RAM memory, or may be a non-volatile memory (e.g., a magnetic disk memory), and optionally, the memory 1005 may be a storage device independent of the processor 1001.
Those skilled in the art will appreciate that the hardware configuration shown in FIG. 1 does not constitute a limitation on the test report generation apparatus, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to fig. 1, the memory 1005 of fig. 1, which is one type of computer-readable storage medium, may include an operating system, a network communication module, and a test report generation program.
In fig. 1, the network communication module is mainly used for connecting to a server and performing data communication with the server; and the processor 1001 may call the test report generation program stored in the memory 1005 and execute the test report generation method provided by the embodiment of the present invention.
The embodiment of the invention provides a method for generating a test report.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for generating a test report according to a first embodiment of the present invention.
In this embodiment, the method for generating the test report includes the following steps:
step S10, accessing externally sent test information through a preset interface, analyzing test data in the test information, acquiring a data type identifier of the test data, and storing the test data in a classified manner according to the data type identifier;
at present, with the increasing requirements of people on the stability of terminals and application software, the requirements of the compatibility of the terminals and the application software are also increasing, so that a terminal manufacturer is required to test terminal hardware for many times before the terminals leave a factory. Meanwhile, the application software installed for the terminal also needs to have a high degree of conformity with the terminal, which requires repeated testing of the terminal and the application software. The existing terminal test needs the participation of the tester, the tester may have many test data inputs and collects in the test process, and the collected test data information is arranged to generate the corresponding test report. In the prior art, a large amount of test data is simply distinguished according to the version of an application program, and the test data is not subjected to relevant management. When analyzing the large amount of test data, because the stored granularity is too coarse, that is, the types of the test data are more, and the abnormal conditions of the data of each type are different, the existing test data not only has great analysis workload, but also is difficult to quickly and accurately find the abnormal data, resulting in low searching efficiency.
In the present embodiment, a method for generating a test report is provided, which is applied to a device for generating a test report, where the device for generating a test report includes a generating program and a generating server. In order to facilitate the testers to use the generation method provided by the application under various conditions, the application provides various external interfaces to receive test information sent by the testers through a generation program, and the testers can submit the test information to a generation server for corresponding data processing through a webpage, such as an http post request. In order to facilitate manual testing, a submitting mode of the data compression package is further provided, for example, a compression package format file such as zip and rar is provided, that is, a tester only needs to package test information and submit the test information to the generation server through an interface. The test information comprises test data, a test case for generating the test data, a device name for executing the test case and other information. And after the generation server acquires the data type identifier of the test data, storing the test data into a corresponding type data table according to the data type identifier corresponding to the data types such as a performance test data type, a function test data type, an interface test data type and the like. When receiving the test information, the generation server analyzes the test information to obtain test data, test cases, test equipment names and the like in the test information. And if the test information is a compressed package format file uploaded by a tester, decompressing the compressed package format file to obtain the test data. And then acquiring a data identifier of the test data, and performing type division on the received test data according to the data model, namely dividing the test data after the test operation of an application program (APP) into types such as performance test data, function test data, adaptive compatibility test data, weak network test data and the like. And correspondingly storing the test data into a corresponding type data table in a database according to the divided result.
Step S20, obtaining a test case corresponding to the test data in the test information, and storing the test case and the classified test data in a correlation manner;
in this embodiment, after the type of the test data is divided, a test case corresponding to the test data is generated according to a corresponding relationship between the test data and the test case, and the test case and the test data are stored in an associated manner. The specific storage may be: and executing the test data of different application programs on the same equipment by using the same test case, and storing the data by using the application programs as arguments. For example, the test data generated by the same test case is further classified and stored in the performance test data type.
And step S30, when a report generation instruction is detected, importing the test data into a preset display model, generating a corresponding test chart, and generating a corresponding test evaluation report according to the test case and the test chart corresponding to the test data.
In this embodiment, the report generation instruction may be triggered by a tester through a generation option on a generation program, or automatically triggered and generated by the server according to test data generated by the execution instruction when the server detects a test case execution instruction. The preset display model is a chart for displaying the test data, and may be in the form of a line chart, a bar chart, a scatter chart, and a table. And when detecting a report generation instruction, the generation server imports the test data into a preset display model to generate a test chart. And acquiring a test case and associated test data in the database, adding the test case or the test data to the test chart, and generating a corresponding test evaluation report. The method specifically comprises the following steps: and displaying the CPU occupation of the same APP on the same equipment through a bar graph or a line graph according to different time, or displaying the CPU occupation of the same APP on different equipment through comparison of the bar graph or the line graph. The average value or the maximum value of the performance test data of the same APP can be compared with the APP related data of the standard in the industry for displaying. And each bar graph can be stored in an associated manner, for example, when the CPU occupation data of one APP is found to be abnormal, a tester can jump to other related performance data tables, bar graphs or line graphs of the APP by clicking the data to be abnormal of the CPU, or jump to the CPU occupation data tables, bar graphs or line graphs of the APP at other terminals, so that the tester can conveniently perform related comparison and analysis.
The embodiment provides a method for generating a test report, which includes accessing test information sent from the outside through a preset interface, analyzing test data in the test information, acquiring a data type identifier of the test data, and storing the test data in a classified manner according to the data type identifier; acquiring a test case corresponding to the test data in the test information, and performing associated storage on the test case and the classified test data; when a report generation instruction is detected, the test data is imported into a preset display model, a corresponding test chart is generated, and a corresponding test evaluation report is generated according to a test case and the test chart corresponding to the test data. By the mode, the test data are classified and stored according to the data types and the test cases, so that the test data can be searched correspondingly, the workload of data searching and analyzing is reduced, the searching and analyzing efficiency is improved, and the technical problems of large workload of analyzing the existing test data and low searching efficiency are solved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for generating a test report according to a second embodiment of the present invention.
Based on the foregoing embodiment shown in fig. 2, in this embodiment, step S30 specifically includes:
step S31, when a report generating instruction is detected, acquiring target test data in the report generating instruction, acquiring a target data identifier of the target test data, and selecting a corresponding preset display model according to the target data identifier;
in this embodiment, the preset display model may be a corresponding data table of the test data type and the test chart template. The test requests include performance test requests, function test requests, adaptation compatibility test requests, weak network test requests and other type test requests, and the same type test request also includes different parameter test requests, for example, the performance test requests include CPU occupation, memory occupation, battery consumption, flow consumption, frame number, FPS and other parameter test requests. In this embodiment, different test report generation instructions are generated according to different test requests, and different types of target test data are obtained according to different test report generation instructions. The target data identifier of the target test data may be used to identify a data type of the target test data, such as performance test data or functional test data. Different types of test requests are preset with different test chart templates correspondingly, wherein different test parameters in the performance test requests are preset with different test chart templates correspondingly. If the data type of the target test data is the performance test type, acquiring a preset performance test chart template corresponding to the performance test type, and if the data type of the target test data is the performance test type, correspondingly displaying performance parameter data such as corresponding CPU occupation, CPU time slice occupation and the like in a preset area of a performance test report through a bar graph, correspondingly displaying performance parameter data such as corresponding memory occupation, battery consumption and the like in the preset area of the performance test report through a pie graph, and further comparing and displaying relevant parameters such as versions, equipment, CPU occupation, memory and the like of each test case in a form of a table.
Step S32, importing the target test data into the preset display model, generating a corresponding target test chart, obtaining a target test case stored in association with the target test data, and generating a corresponding test evaluation report according to the target test chart and the target test case.
In this embodiment, when the target test chart template corresponding to the target test data is determined according to the corresponding data table in the preset display model, all test data corresponding to the target test case associated with the target test data are acquired, all test data corresponding to the target test case are correspondingly filled in the target test chart template, and are correspondingly displayed in the preset area of the test evaluation report, so that the corresponding test evaluation report is generated.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for generating a test report according to a third embodiment of the present invention.
Based on the foregoing embodiment shown in fig. 3, in this embodiment, step S31 specifically includes:
step S311, when a report generation instruction is detected, acquiring target test data in the report generation instruction, and acquiring a target data identifier of the target test data;
step S312, judging whether the target test data is performance test data or not according to a pre-stored data type list and the target data identifier;
step 313, when the target test data is determined to be performance test data, obtaining a preset display model corresponding to the target test data from the display models corresponding to the performance test data.
In this embodiment, a corresponding data model is generated by training in advance according to data identifiers corresponding to data types such as a performance test data type, a function test data type, an interface test data type and the like, and then type division is performed on the received test data type according to the data model, that is, the test data after the test operation of the application program APP is divided into the types such as the performance test data, the function test data, the adaptation compatibility test data, the weak network test data and the like. The tester can set corresponding test cases for corresponding test types in advance according to test requirements, for example, opening a password red packet, having account cold start, having account hot start, sending 10 expressions, viewing video messages, establishing 10 air conferences and the like, and merging and archiving the related test data of the same case. For example, comprehensively storing related test data such as CPU occupation, memory occupation, battery consumption, flow consumption, frame number, FPS and the like for sending 10 expression cases under the performance test data type, and associating the test data with the APP name, the performance test data type and the sending 10 expression cases; or comprehensively storing related test data such as CPU occupation, memory occupation, battery consumption, flow consumption, frame number, FPS and the like for establishing 10 air conference cases under the performance test data type, and associating with the APP name, the performance test data type, the established 10 air conference cases and the like. The test data comprises a keyword identifier of the test case, and the test case can be distinguished according to the keyword identifier. The test cases may be named by a tester according to a test scenario, and the same test case may be used for the same APP to be implemented on different devices, or the same test case may be used for the different APPs to be implemented on the same device. And acquiring a target data identifier corresponding to target test data in the report generation instruction, and comparing the target data identifier with the performance test data identifier. And judging whether the target data identifier is the same as the performance test data identifier, and if the target data identifier is the same as the performance test data identifier, judging that the target test data is the performance test data. Otherwise, it is determined that the target test data is not performance test data and the target data identifier is compared to other types of data identifiers. And when the target test data are determined to be performance test data, acquiring a corresponding display model in a corresponding data table according to the performance test data.
Further, step S32 specifically includes:
step S321, importing the target test data into the preset display model to generate a corresponding target test chart;
step S322, acquiring a target test case stored in association with the target test data, wherein the target test data comprises a program version, a test equipment name, a central processing unit occupancy rate and/or a memory occupancy rate;
step S323, generating a corresponding test evaluation report according to the target test chart and the target test case, and one or more parameter information of the program version, the test device name, the central processing unit occupancy rate, and/or the memory occupancy rate.
In this embodiment, the target test data includes a program version, a test device name, a CPU occupancy rate and/or a memory occupancy rate, and may further include parameters such as battery consumption, traffic consumption, a frame number, and an FPS. Different report forms are preset for different parameters. And acquiring a corresponding test report template according to the parameters in the test data, for example, correspondingly displaying corresponding performance parameter data such as CPU occupation, CPU time slice occupation and the like in a preset area of the test report template through a bar graph, correspondingly displaying corresponding performance parameter data such as memory occupation, battery consumption and the like in a preset area of the test report template through a pie graph, and further performing comparative display on relevant parameters such as versions, equipment, CPU occupation, memory and the like of each test case in a form. And determining a corresponding test report template according to the parameters. And then counting or calculating the corresponding related test data according to the corresponding test parameters, and correspondingly displaying each test parameter in the test report template through a preset report form so as to generate a test report corresponding to the test request. The test report can be displayed in a comparison mode through line graphs, bar graphs and table forms. For example, the CPU occupation of the same APP on the same device is displayed through a bar graph or a line graph according to different time, or the CPU occupation of the same APP on different devices is displayed through comparison of the bar graph or the line graph. The average value or the maximum value of the performance test data of the same APP can be compared with the APP related data of the standard in the industry for displaying. And each bar graph can be stored in an associated manner, for example, when the CPU occupation data of one APP is found to be abnormal, a tester can jump to other related performance data tables, bar graphs or line graphs of the APP by clicking the data to be abnormal of the CPU, or jump to the CPU occupation data tables, bar graphs or line graphs of the APP at other terminals, so that the tester can conveniently perform related comparison and analysis.
Referring to fig. 5, fig. 5 is a flowchart illustrating a method for generating a test report according to a fourth embodiment of the present invention.
Based on the embodiment shown in fig. 3, in this embodiment, the method for generating a test report further includes:
step S41, comparing the test data with preset test standard data, and judging whether the test data is abnormal;
and step S42, when the test data is judged to be abnormal, generating a reminding message according to the abnormal test data.
In this embodiment, in order to solve the technical problem that it is difficult to quickly and accurately find abnormal data, when test data is analyzed, a data type is determined according to the test data identifier, that is, according to test parameters in the data, and preset test standard data corresponding to the test parameters is determined. The preset test standard data is APP related test parameter data which accords with program standards in the industry. And judging whether the test data is abnormal or not according to the preset test standard data. If the difference between the test data and the preset test standard data is within a preset threshold, the test data is normal, and if the difference between the test data and the preset test standard data is more than the preset threshold, the test data is abnormal. And if the test data are normal, generating a corresponding test evaluation report according to the test data, and if the test data are abnormal, performing test abnormality analysis on the test data and the test chart. If the CPU occupation data of one APP is found to be abnormal, a tester can jump to other related performance data tables, bar graphs or line graphs of the APP by clicking the data to be abnormal of the CPU, or jump to the CPU occupation data tables, bar graphs or line graphs of the APP at other terminals, so that the tester can conveniently perform related comparative analysis.
In the embodiment, the test data is displayed according to the preset display model, so that a tester can more intuitively check the change condition among various test parameters, determine whether the performance of the application software is normal, and simultaneously perform synchronous display analysis on the test data and the preset test standard data, thereby facilitating more detailed analysis on the test data and reducing the searching difficulty of abnormal data.
Further, the method for generating the test report further comprises:
step S51, when a report generation instruction is detected, importing the test data into a preset display model to generate a corresponding test chart;
step S52, displaying the test chart on a visual display interface, and starting an editing mode of the test chart when an editing request triggered based on the test chart is detected;
step S53, adjusting the test chart based on the display dimension input by the tester in the editing mode to obtain the test chart meeting the test requirement;
and step S54, generating a corresponding test evaluation report according to the test case corresponding to the test data and the adjusted test chart.
In this embodiment, the test chart is displayed on a visual display interface, it needs to be additionally explained that the test chart may be dynamic, when an edit request triggered based on the test chart is detected, an edit mode of the test chart is started, and the test chart is adjusted based on a display dimension input by a tester in the edit mode, so as to obtain the test chart meeting a test requirement, that is, an edit condition.
In this embodiment, the tester can edit the test chart, and the user can adjust the display dimension to display the test parameters, so that the test chart is displayed more flexibly and variously, and the tester can quickly influence the test factors. For example, the tester can jump to other related performance data tables, bar graphs or line graphs of the APP by clicking the abnormal data of the CPU to be tested, or jump to CPU occupation data tables, bar graphs or line graphs of the APP on other terminals, so that the tester can conveniently perform related comparison and analysis.
In addition, the embodiment of the invention also provides a device for generating the test report.
Referring to fig. 6, fig. 6 is a functional block diagram of a test report generation apparatus according to a first embodiment of the present invention.
In this embodiment, the apparatus for generating a test report includes:
the access classification module 10 is configured to access test information sent from the outside through a preset interface, analyze test data in the test information, obtain a data identifier of the test data, and classify and store the test data according to a data type according to a pre-stored data type list and the data identifier;
the case correlation module 20 is configured to obtain a test case corresponding to the test data in the test information, and perform correlation storage on the test case and the classified test data;
the report generating module 30 is configured to, when a report generating instruction is detected, import the test data into a preset display model, generate a corresponding test chart, and generate a corresponding test evaluation report according to a test case and the test chart corresponding to the test data.
Further, the report generating module 30 specifically includes:
the model determining unit 31 is configured to, when a report generating instruction is detected, acquire target test data in the report generating instruction, acquire a target data identifier of the target test data, and select a corresponding preset display model according to the target data identifier;
the report generating unit 32 is configured to import the target test data into the preset display model, generate a corresponding target test chart, obtain a target test case stored in association with the target test data, and generate a corresponding test evaluation report according to the target test chart and the target test case.
Further, the model determining unit 31 further includes:
an identifier obtaining subunit 311, configured to, when a report generation instruction is detected, obtain target test data in the report generation instruction, and obtain a target data identifier of the target test data;
a data determining subunit 312, configured to determine whether the target test data is performance test data according to a pre-stored data type list and the target data identifier;
the model determining subunit 313 is configured to, when it is determined that the target test data is performance test data, obtain, from the display models associated with the performance test data, a preset display model corresponding to the target test data.
Further, the report generating unit 32 specifically includes:
a chart generating subunit 321, configured to import the target test data into the preset display model, and generate a corresponding target test chart;
a case obtaining subunit 322, configured to obtain a target test case stored in association with the target test data, where the target test data includes a program version, a test device name, a central processing unit occupancy rate, and/or a memory occupancy rate;
the report generating subunit 323 is configured to generate a corresponding test evaluation report according to the target test chart and the target test case, and one or more parameter information of the program version, the test device name, the central processor occupancy rate, and/or the memory occupancy rate.
Further, the device for generating the test report further includes:
a comparing unit 41, configured to compare the test data with preset test standard data, and determine whether the test data is abnormal;
and the reminding unit 42 is used for generating a reminding message according to the abnormal test data when the test data is judged to be abnormal.
Further, the apparatus for generating a measurement report further includes:
the chart generating unit 51 is configured to, when a report generating instruction is detected, import the test data into a preset display model, and generate a corresponding test chart;
the editing unit 52 is configured to display the test chart on a visual display interface, and when an editing request triggered based on the test chart is detected, start an editing mode of the test chart;
the adjusting unit 53 is configured to adjust the test chart based on the display dimension input by the tester in the editing mode to obtain a test chart meeting the test requirement;
and a report generating unit 54, configured to generate a corresponding test evaluation report according to the test case corresponding to the test data and the adjusted test chart.
Each module in the device for generating a test report corresponds to each step in the embodiment of the method for generating a test report, and the functions and implementation processes thereof are not described in detail herein.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer-readable storage medium of the present invention stores a test report generation program, wherein the test report generation program, when executed by a processor, implements the steps of the test report generation method as described above.
The method for implementing the test report generation program when executed may refer to various embodiments of the test report generation method of the present invention, and details thereof are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for generating a test report, the method comprising the steps of:
test information sent from the outside is accessed through a preset interface, test data in the test information is analyzed, a data type identifier of the test data is obtained, the test data is classified and stored according to the data type identifier, the test information comprises the test data and a test case for generating the test data, and the data type identifier comprises a performance test data type, a function test data type, an interface test type, an adaptive compatibility test data type or an identifier corresponding to a weak network test data type;
acquiring a test case corresponding to the test data in the test information, and performing associated storage on the test case and the classified test data;
when a report generation instruction is detected, the test data is imported into a preset display model, a corresponding test chart is generated, and a corresponding test evaluation report is generated according to a test case and the test chart corresponding to the test data.
2. The method for generating a test report according to claim 1, wherein the step of importing the test data into a preset display model when a report generation instruction is detected, generating a corresponding test chart, and generating a corresponding test evaluation report according to a test case and the test chart corresponding to the test data specifically includes:
when a report generating instruction is detected, acquiring target test data in the report generating instruction, acquiring a target data identifier of the target test data, and selecting a corresponding preset display model according to the target data identifier;
and importing the target test data into the preset display model, generating a corresponding target test chart, acquiring a target test case stored in association with the target test data, and generating a corresponding test evaluation report according to the target test chart and the target test case.
3. The method for generating a test report according to claim 2, wherein the step of acquiring the target test data in the report generating instruction and acquiring the target data identifier of the target test data when the report generating instruction is detected, and selecting the corresponding preset display model according to the target data identifier specifically comprises:
when a report generation instruction is detected, acquiring target test data in the report generation instruction, and acquiring a target data identifier of the target test data;
judging whether the target test data is performance test data or not according to a pre-stored data type list and the target data identifier;
and when the target test data is judged to be performance test data, acquiring a preset display model corresponding to the target test data from the display model corresponding to the performance test data.
4. The method for generating a test report according to claim 2, wherein the step of importing the target test data into the preset display model, generating a corresponding target test chart, obtaining a target test case stored in association with the target test data, and generating a corresponding test evaluation report according to the target test chart and the target test case specifically includes:
importing the target test data into the preset display model to generate a corresponding target test chart;
acquiring a target test case stored in association with the target test data, wherein the target test data comprises a program version, a test equipment name, a central processing unit occupancy rate and/or a memory occupancy rate;
and generating a corresponding test evaluation report according to the target test chart, the target test case and one or more parameter information of the program version, the test equipment name, the central processing unit occupancy rate and/or the memory occupancy rate.
5. The method for generating a test report according to claim 1, wherein the step of importing the test data into a preset display model when a report generation instruction is detected, generating a corresponding test chart, and generating a corresponding test evaluation report according to a test case and the test chart corresponding to the test data specifically includes:
when a report generation instruction is detected, importing the test data into a preset display model to generate a corresponding test chart; displaying the test chart on a visual display interface, and starting an editing mode of the test chart when an editing request triggered based on the test chart is detected;
adjusting the test chart based on the display dimension input by the tester in the editing mode to obtain the test chart meeting the test requirement;
and generating a corresponding test evaluation report according to the test case corresponding to the test data and the adjusted test chart.
6. The method for generating a test report according to any one of claims 1 to 5, wherein after the step of accessing the test information sent from the outside through the preset interface, analyzing the test data in the test information, obtaining the data identifier of the test data, and storing the test data according to the data type by classifying according to the pre-stored data type list and the data identifier, the method further comprises:
comparing the test data with preset test standard data, and judging whether the test data is abnormal or not;
and when the test data are judged to be abnormal, generating a reminding message according to the abnormal test data.
7. An apparatus for generating a test report, the apparatus comprising:
the access classification module is used for accessing test information sent from the outside through a preset interface, analyzing test data in the test information, acquiring a data type identifier of the test data, and classifying and storing the test data according to the data type identifier, wherein the test information comprises the test data and a test case for generating the test data, and the data type identifier comprises a performance test data type, a function test data type, an interface test type, an adaptive compatibility test data type or an identifier corresponding to a weak network test data type;
the case correlation module is used for acquiring a test case corresponding to the test data in the test information and performing correlation storage on the test case and the classified test data;
and the report generation module is used for importing the test data into a preset display model when a report generation instruction is detected, generating a corresponding test chart, and generating a corresponding test evaluation report according to the test case and the test chart corresponding to the test data.
8. The apparatus for generating a test report of claim 7, wherein said report generating module comprises:
the model determining unit is used for acquiring target test data in a report generating instruction when the report generating instruction is detected, acquiring a target data identifier of the target test data, and selecting a corresponding preset display model according to the target data identifier;
and the report generation unit is used for importing the target test data into the preset display model, generating a corresponding target test chart, acquiring a target test case stored in association with the target test data, and generating a corresponding test evaluation report according to the target test chart and the target test case.
9. A test report generation apparatus comprising a processor, a memory, and a test report generation program stored on the memory and executable by the processor, wherein the test report generation program, when executed by the processor, implements the steps of the test report generation method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a test report generation program, wherein the test report generation program, when executed by a processor, implements the steps of the test report generation method according to any one of claims 1 to 6.
CN201810459373.3A 2018-05-14 2018-05-14 Test report generation method, device, equipment and storage medium Active CN109726103B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810459373.3A CN109726103B (en) 2018-05-14 2018-05-14 Test report generation method, device, equipment and storage medium
PCT/CN2018/094801 WO2019218444A1 (en) 2018-05-14 2018-07-06 Test report generating method, apparatus and device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810459373.3A CN109726103B (en) 2018-05-14 2018-05-14 Test report generation method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109726103A CN109726103A (en) 2019-05-07
CN109726103B true CN109726103B (en) 2021-09-21

Family

ID=66293800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810459373.3A Active CN109726103B (en) 2018-05-14 2018-05-14 Test report generation method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN109726103B (en)
WO (1) WO2019218444A1 (en)

Families Citing this family (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221953A (en) * 2019-05-20 2019-09-10 平安普惠企业管理有限公司 Test result analysis method, apparatus, server and storage medium
US11379348B2 (en) * 2019-06-21 2022-07-05 ProKarma Inc. System and method for performing automated API tests
CN110727552B (en) * 2019-10-12 2023-10-31 深圳市元征科技股份有限公司 Equipment testing method, system, electronic equipment and storage medium
CN110955600B (en) * 2019-11-27 2023-11-10 中国银行股份有限公司 Interface testing method and device
CN110955603B (en) * 2019-12-03 2023-06-06 望海康信(北京)科技股份公司 Automated testing method, apparatus, electronic device and computer readable storage medium
CN111078518B (en) * 2019-12-12 2023-08-18 广州品唯软件有限公司 Data acquisition method, terminal device and computer readable storage medium
CN111045879B (en) * 2019-12-13 2023-10-24 广州品唯软件有限公司 Method, device and storage medium for generating pressure test report
CN111290945B (en) * 2020-01-17 2023-07-14 惠州市德赛西威汽车电子股份有限公司 Compatibility test system and method for vehicle-mounted application equipment to externally connected storage equipment
CN111309623B (en) * 2020-02-29 2024-04-16 平安科技(深圳)有限公司 Coordinate class data classification test method and device
CN111611144B (en) * 2020-05-27 2023-09-19 中国工商银行股份有限公司 Method, apparatus, computing device, and medium for processing performance test data
CN111814319A (en) * 2020-06-22 2020-10-23 深圳市瑞能实业股份有限公司 Battery test data display method and device and storage medium
CN111858320A (en) * 2020-07-03 2020-10-30 Oppo广东移动通信有限公司 Test data processing method and device and electronic equipment
CN111679301B (en) * 2020-07-14 2023-05-16 上海移远通信技术股份有限公司 Testing method, device, equipment and storage medium of navigation positioning module
CN111858354A (en) * 2020-07-23 2020-10-30 远光软件股份有限公司 Method and device for automatically generating test report, storage medium and electronic equipment
CN112052169A (en) * 2020-09-01 2020-12-08 深圳创维-Rgb电子有限公司 Test management method, system, device and computer readable storage medium
CN112069073A (en) * 2020-09-07 2020-12-11 深圳创维-Rgb电子有限公司 Test case management method, terminal and storage medium
CN112153375B (en) * 2020-09-25 2023-09-15 深圳平安智慧医健科技有限公司 Front-end performance testing method, device, equipment and medium based on video information
CN112328450A (en) * 2020-11-03 2021-02-05 平安信托有限责任公司 Data monitoring method and device, computer equipment and storage medium
CN112527634B (en) * 2020-11-25 2023-06-02 中国联合网络通信集团有限公司 Program division method and device, software testing method and platform
CN112597018A (en) * 2020-12-22 2021-04-02 未来电视有限公司 Interface test case generation method, device, equipment and storage medium
CN112506380B (en) * 2020-12-23 2023-07-14 通力科技股份有限公司 Touch equipment detection method, touch equipment detection device and readable storage medium
CN112835334B (en) * 2020-12-31 2022-05-27 广州明珞装备股份有限公司 Industrial data platform testing method and device, computer equipment and storage medium
CN112965907A (en) * 2021-03-11 2021-06-15 南京爱奇艺智能科技有限公司 VR APP automatic test method and device
CN113190443A (en) * 2021-04-28 2021-07-30 南京航空航天大学 Test method, test device, computer equipment and storage medium
CN113297083B (en) * 2021-05-27 2022-08-19 山东云海国创云计算装备产业创新中心有限公司 Cross-platform IC test method, device, equipment and medium
CN113568829A (en) * 2021-07-05 2021-10-29 Oppo广东移动通信有限公司 External field test method and device and storage medium
CN113535578B (en) * 2021-07-28 2023-04-21 展讯半导体(成都)有限公司 CTS test method, CTS test device and CTS test equipment
CN113645100A (en) * 2021-08-13 2021-11-12 福建天泉教育科技有限公司 Full link pressure test scheme and system based on metadata tag
CN113641583A (en) * 2021-08-16 2021-11-12 拉扎斯网络科技(上海)有限公司 Data processing method, data processing apparatus, electronic device, storage medium, and program product
CN113609133A (en) * 2021-08-19 2021-11-05 深圳市通标科技有限公司 Household appliance safety detection data processing method, system and storage medium
CN113722229A (en) * 2021-09-06 2021-11-30 挂号网(杭州)科技有限公司 Software testing method and device, electronic equipment and storage medium
CN113872831B (en) * 2021-09-28 2022-09-16 北京永信至诚科技股份有限公司 Network test visualization system and method
CN115081410A (en) * 2022-07-19 2022-09-20 中电金信软件有限公司 Method and device for automatically generating experiment report
WO2024020898A1 (en) * 2022-07-27 2024-02-01 西门子股份公司 Data error detection method, apparatus, electronic device, and storage medium
CN116737592A (en) * 2023-07-26 2023-09-12 小米汽车科技有限公司 Program testing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742531A (en) * 2008-11-13 2010-06-16 中国移动通信集团设计院有限公司 Method and device for storing test data
CN105488089A (en) * 2014-12-31 2016-04-13 哈尔滨安天科技股份有限公司 Automatic generation method and system of quality evaluation report
CN107832226A (en) * 2017-11-23 2018-03-23 中国平安人寿保险股份有限公司 Report-generating method, device, equipment and computer media based on performance test

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090077538A1 (en) * 2007-09-18 2009-03-19 Michael Paul Keyes Methods for testing software using orthogonal arrays
CN102331983A (en) * 2010-07-15 2012-01-25 鸿富锦精密工业(深圳)有限公司 Test report generation system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742531A (en) * 2008-11-13 2010-06-16 中国移动通信集团设计院有限公司 Method and device for storing test data
CN105488089A (en) * 2014-12-31 2016-04-13 哈尔滨安天科技股份有限公司 Automatic generation method and system of quality evaluation report
CN107832226A (en) * 2017-11-23 2018-03-23 中国平安人寿保险股份有限公司 Report-generating method, device, equipment and computer media based on performance test

Also Published As

Publication number Publication date
CN109726103A (en) 2019-05-07
WO2019218444A1 (en) 2019-11-21

Similar Documents

Publication Publication Date Title
CN109726103B (en) Test report generation method, device, equipment and storage medium
CN110245213B (en) Questionnaire generation method, device, equipment and storage medium
CN109684047A (en) Event-handling method, device, equipment and computer storage medium
CN109753406B (en) Interface performance monitoring method, device, equipment and computer readable storage medium
CN109633351B (en) Intelligent IT operation and maintenance fault positioning method, device, equipment and readable storage medium
CN109726100A (en) Application performance test method, apparatus, equipment and computer readable storage medium
CN107688950B (en) After-sale consultation method for household appliances, electronic equipment and computer readable storage medium
WO2019218513A1 (en) Apparatus and method for monitoring testing process, and computer-readable storage medium
CN106970797B (en) Message prompting method and device and electronic equipment
CN109726108B (en) Front-end code testing method, device, system and medium based on analog data
CN109272215B (en) Project development quality monitoring method and device, computer equipment and storage medium
CN112286825A (en) Screen testing method and device for intelligent cabin and electronic equipment
CN111310351A (en) Method and device for monitoring state of workshop equipment, terminal equipment and storage medium
CN109634986B (en) System monitoring method, device, computer and computer readable storage medium
CN111045879A (en) Pressure test report generation method and device and storage medium
CN107908525B (en) Alarm processing method, equipment and readable storage medium
CN103913150A (en) Consistency detection method for electron components of intelligent ammeter
CN110502557B (en) Data importing method, device, computer equipment and storage medium
CN110162361B (en) Intelligent prompting method and device based on user behavior, terminal and storage medium
CN107357703B (en) Terminal application power consumption detection method and server
CN113672497B (en) Method, device and equipment for generating non-buried point event and storage medium
CN111026637B (en) Method and device for positioning problem code
CN109947803B (en) Data processing method, system and storage medium
CN113468066A (en) User interface testing method and device
CN113238901A (en) Multi-device automatic testing method and device, storage medium and computer 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
GR01 Patent grant
GR01 Patent grant