Test report generation method and device, electronic equipment and computer readable storage medium

By obtaining operator information, determining expected results and target test results, and automatically generating test reports, the problems of low generation efficiency and high error rate of IMS test reports in the prior art are solved, and efficient and accurate test reports are achieved.

CN119720969APending Publication Date: 2025-03-28HUIZHOU TCL CLOUD INTERNET CORP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, after completing the IMS compatibility test, a large number of test results of multiple operators need to be written into the test report, which is time-consuming and laborious, and has the possibility of errors, and is inconvenient to use.

Method used

By responsive to the generated test result table, obtain the operator information corresponding to the test result table; determine the expected result table based on the operator information; determine the target test result based on the test result table and the expected result table; generate a test report based on the target test result.

Benefits of technology

It improves the efficiency of generating test reports, reduces the occurrence of errors in writing test results in test reports, realizes automated test report generation, and reduces the consumption of manpower and time resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119720969A_ABST
    Figure CN119720969A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a test report generation method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: responding to a generated test result table, and obtaining operator information corresponding to the test result table; determining an expected result table according to the operator information; determining a target test result according to the test result table and the expected result table; and generating a test report according to the target test result. According to the test report generation method provided by the invention, the generation efficiency of the test report is improved, and the test result writing error condition in the test report is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of automated testing technology, and specifically to a test report generating method, device, electronic device, and computer-readable storage medium. Background Art

[0002] IMS (IP Multimedia Subsystem) was proposed by the International Organization for Standardization (3GPP), which is composed of telecommunication standardization organizations around the world. It is a new network technology generated based on the demand for new broadband multimedia services. It can be widely used in mobile communication networks and fixed networks. For example, it can provide users with convenient voice calls, video calls, real-time messaging, multimedia conferencing and other network communication services.

[0003] For network communication equipment manufacturers, in order to ensure that the network communication equipment they produce can normally access the IMS networks of multiple operators, they need to conduct a large number of tests on the IMS network compatibility of multiple operators. However, in the prior art, after completing the IMS compatibility test, a large number of test results of multiple operators need to be written into the test report. This process is time-consuming and laborious, and there is a possibility of error, which is not convenient to use. Summary of the invention

[0004] The embodiments of the present application provide a test report generation method, device, electronic device, and computer-readable storage medium, which can improve the generation efficiency of the test report and reduce the occurrence of test result writing errors in the test report.

[0005] In a first aspect, an embodiment of the present application provides a test report generating method, the method comprising:

[0006] In response to the generated test result table, obtaining operator information corresponding to the test result table;

[0007] Determine an expected result table according to the operator information;

[0008] Determine the target test result according to the test result table and the expected result table;

[0009] A test report is generated according to the target test results.

[0010] Optionally, in some embodiments of the present application, before obtaining the operator information corresponding to the test result table in response to the generated test result table, the method further includes:

[0011] receiving a test instruction, and determining the operator information corresponding to the test instruction;

[0012] Performing test processing using a test component corresponding to the operator information to obtain the test result table;

[0013] Among them, different operator information corresponds to different test components.

[0014] Optionally, in some embodiments of the present application, determining the expected result table according to the operator information includes:

[0015] Acquire at least one expected result corresponding to the operator information from an expected result database according to the operator information;

[0016] Determining the expected result table according to the at least one expected result;

[0017] The expected result database stores a plurality of expected results corresponding to a plurality of operators.

[0018] Optionally, in some embodiments of the present application, determining the target test result according to the test result table and the expected result table includes:

[0019] Obtaining the test results in the test result table, and obtaining the expected results in the expected result table;

[0020] The target test result is determined according to the test result and the expected result.

[0021] Optionally, in some embodiments of the present application, determining the target test result according to the test result and the expected result includes:

[0022] Determine whether the test result is consistent with the expected result corresponding to the test result, and obtain a determination result;

[0023] Based on the judgment result, the target test result is determined.

[0024] Optionally, in some embodiments of the present application, before generating a test report according to the target test result, the method further includes:

[0025] Determine the test component corresponding to the test result table;

[0026] The preset test form is generated according to the test component.

[0027] Optionally, in some embodiments of the present application, generating a test report according to the target test result includes:

[0028] The target test results are stored in the preset test table, and the test report is generated.

[0029] In a second aspect, an embodiment of the present application further provides a test report generating device, the device comprising:

[0030] An acquisition module, configured to, in response to the generated test result table, acquire operator information corresponding to the test result table;

[0031] A first determining module, configured to determine an expected result table according to the operator information;

[0032] A second determination module, used to determine a target test result according to the test result table and the expected result table;

[0033] A generating module is used to generate a test report according to the target test result.

[0034] Optionally, in some embodiments of the present application, the acquisition module includes:

[0035] A receiving unit, configured to receive a test instruction and determine the operator information corresponding to the test instruction;

[0036] A processing unit, configured to perform test processing using a test component corresponding to the operator information to obtain the test result table;

[0037] Among them, different operator information corresponds to different test components.

[0038] Optionally, in some embodiments of the present application, the first determining module includes:

[0039] A first acquisition unit, configured to acquire at least one expected result corresponding to the operator information from an expected result database according to the operator information;

[0040] A first determining unit, configured to determine the expected result table according to the at least one expected result;

[0041] The expected result database stores a plurality of expected results corresponding to a plurality of operators.

[0042] Optionally, in some embodiments of the present application, the second determining module includes:

[0043] A second acquisition unit, used to acquire the test results in the test result table and to acquire the expected results in the expected result table;

[0044] The second determining unit is used to determine the target test result according to the test result and the expected result.

[0045] Optionally, in some embodiments of the present application, the second determining module further includes:

[0046] A judgment unit, used to judge whether the test result is consistent with the expected result corresponding to the test result, and obtain a judgment result;

[0047] The third determining unit is used to determine the target test result based on the judgment result.

[0048] Optionally, in some embodiments of the present application, the generating module includes:

[0049] A fourth determining unit, used to determine the test component corresponding to the test result table;

[0050] The first generating unit is used to generate the preset test form according to the test component.

[0051] Optionally, in some embodiments of the present application, the generating module further includes:

[0052] The second generating unit is used to store the target test result into the preset test table and generate the test report.

[0053] In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps in the above-mentioned test report generation method when executed by the processor.

[0054] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned test report generation method are implemented.

[0055] In a fifth aspect, the embodiments of the present application further provide a computer program product or a computer program, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the test report generation method provided in the various optional implementations described in the embodiments of the present application.

[0056] In summary, the embodiments of the present application obtain the operator information corresponding to the test result table in response to the generated test result table; determine the expected result table according to the operator information; determine the target test result according to the test result table and the expected result table; and generate a technical solution for a test report according to the target test result. According to the operator information in the test result table generated after the test is completed, the expected result table corresponding to the test result table is obtained, and the target test result is determined through the test result table and the expected result table, and then a test report is generated, which improves the efficiency of generating the test report and reduces the occurrence of errors in writing test results in the test report. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0058] Figure 1 is a schematic diagram of a scenario in which an electronic device according to an embodiment of the present application executes the test report generating method;

[0059] Figure 2 It is a schematic diagram of performing IMS function testing using a test component generated by Python provided in an embodiment of the present application;

[0060] Figure 3 is a schematic diagram of a test result acquisition process generated by Python provided in an embodiment of the present application;

[0061] Figure 4 is a schematic diagram of a process for obtaining an expected result generated by Python provided in an embodiment of the present application;

[0062] Figure 5 It is a schematic diagram of the process of comparing the test results generated by Python with the expected results provided in the embodiment of the present application;

[0063] Figure 6 It is a schematic diagram of the overall process of the test report generation method provided in an embodiment of the present application;

[0064] Figure 7 It is a structural schematic diagram of a test report generating device provided in an embodiment of the present application;

[0065] Figure 8 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0066] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the above features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0067] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.

[0068] First, the terms involved in this application are explained:

[0069] IMS: IP Multimedia Subsystem, is a multimedia communication system based on IP network, designed to provide various multimedia services, such as voice calls, video calls, real-time messaging, multimedia conferencing, etc. IMS is defined and standardized by the 3GPP organization, and it is widely used in mobile communication networks and fixed networks.

[0070] 3GPP: The Third Generation Partnership Project is an international standardization organization dedicated to developing global standards for mobile communication technologies. It is composed of telecommunication standardization organizations around the world. The main task of 3GPP is to develop and develop standards for mobile communication technologies to promote interoperability and interconnection worldwide. Its work focuses on the architecture, protocols, interfaces and services of mobile communication systems, covering the development of mobile communication technologies from 2G (second generation) to 5G (fifth generation).

[0071] VoLTE: Voice over LTE, is a voice communication technology based on the LTE (Long-Term Evolution) network, allowing users to make high-quality voice calls through the LTE network. Traditional voice calls use 2G or 3G networks, while VoLTE uses the high bandwidth and low latency characteristics of the LTE network to provide a clearer and more reliable voice call experience.

[0072] VoWiFi: Voice over Wi-Fi is a technology for making voice calls over a Wi-Fi network. It allows users to make voice calls over a Wi-Fi network in areas without LTE signal coverage or indoors. VoWiFi can provide a wider coverage area and better indoor signal quality while reducing dependence on operator networks.

[0073] ViLTE: Video over LTE is a video calling technology based on LTE network, which allows users to make high-quality real-time video calls through LTE network. ViLTE takes advantage of the high bandwidth and low latency characteristics of LTE network to provide a clearer and smoother video calling experience.

[0074] MCC: Mobile Country Code, MCC is the abbreviation of Mobile Country Code, which is a three-digit country / region identification code. Each country or region has a unique MCC, which is used to identify the country or region of the mobile communication network. MCC usually corresponds to the telephone area code of the country or region, and is used to identify and distinguish different countries or regions in the mobile communication system.

[0075] MNC: Mobile Network Code, MNC is the abbreviation of Mobile Network Code, which is a code consisting of two to three digits. MNC is used together with MCC to identify mobile network operators in a specific country or region. Through MNC, you can distinguish the mobile networks of different operators in the same country or region.

[0076] Python: A high-level programming language that is easy to learn, readable, and powerful. It is widely used in various fields, including software development, data analysis, artificial intelligence, scientific computing, etc.

[0077] The embodiments of the present application provide a test report generation method, device, electronic device and computer-readable storage medium. Specifically, the embodiments of the present application provide a test report generation device suitable for an electronic device, the electronic device including a test report generation system, or a network communication device running the test report generation system, such as a smart device (such as a mobile phone, a computer, a tablet computer, a smart TV, etc.), and can also be used in other communication processing devices that need to perform network communication.

[0078] In the prior art, the test report generation scenario after the IMS test of a smartphone is taken as an example. After performing the IMS automated test and obtaining the actual test results, the tester needs to obtain multiple expected test results of multiple test cases from the IMS requirement table (expected test result database), and then compare the expected test results with the actual test results, and write the final test results obtained after comparison into the test report.

[0079] IMS functional testing includes at least three modules: VoLTE module, VoWiFi module and ViLTE module, and there are at least 22 common test cases for the three modules. IMS functional testing also requires testing multiple operators, and may perform repeated tests. Therefore, testers need to write the test results of different operators into the corresponding test reports of the operators multiple times.

[0080] In summary, the existing method of obtaining IMS test reports requires a lot of manpower and time, and there is a high probability of human misjudgment during the process of comparing multiple results.

[0081] Therefore, there is a need for a method that can automatically obtain the expected results from the IMS requirement form (expected test result database), compare the expected results with the actual results, obtain the target test results, and finally automatically generate an IMS functional test report based on the target test results, so as to solve the problem that the process of writing test reports consumes a lot of manpower and time resources, and there is a problem of human misjudgment in the writing process.

[0082] The embodiment of the present application provides a test report generation method, device, electronic device and computer-readable storage medium. A technical solution is adopted to obtain the operator information corresponding to the test result table in response to the generated test result table; determine the expected result table according to the operator information; determine the target test result according to the test result table and the expected result table; and generate a test report according to the target test result.

[0083] In summary, the test report generation method provided in the embodiment of the present application can obtain the expected result table corresponding to the test result table based on the operator information in the test result table generated after the test is completed, and determine the target test result through the test result table and the expected result table, and then generate a test report, which improves the efficiency of test report generation and reduces the occurrence of test result writing errors in the test report.

[0084] By adopting the embodiment of the present application, it is possible to avoid manually comparing the actual test results with the expected test results to obtain the final test results, and manually filling in the repetitive and cumbersome process of the test results, thereby reducing the consumption of manpower and time resources. By adopting the embodiment of the present application, it is possible to automatically generate an IMS function test report, automatically compare the test results, and write the test results into the test report in batches, thereby achieving a technical effect of less time, high accuracy, liberating human resources, and improving work efficiency.

[0085] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.

[0086] For details, please refer to Figure 1 , Figure 1 : is a schematic diagram of a scenario in which an electronic device according to an embodiment of the present application executes the test report generating method, wherein the specific execution process of the main control device executing the test report generating method is as follows:

[0087] S101: In response to a generated test result table, obtaining operator information corresponding to the test result table;

[0088] In an embodiment of the present application, the above-mentioned test result table is a table generated after the IMS function test is performed on the network communication equipment to be tested. The test result table records the test results of multiple common test cases of the VoLTE module, VoWiFi module and ViLTE module under the requirements of a certain operator, as well as the operator information corresponding to this test.

[0089] It should be noted that one test result table corresponds to a test result under one operator requirement, and the test content may include but is not limited to multiple test cases for functional testing of functional modules such as VoLTE module, VoWiFi module and ViLTE module. Operator information may include but is not limited to operator name, MCC, MNC, and operator requirements.

[0090] As an optional embodiment, the test report generation scenario after the smartphone performs an IMS test is still taken as an example. After the smartphone performs an IMS function test under the requirements of operator A, a test result table corresponding to operator A is generated. The test report generation system that executes the test report generation method responds to the generated test result table and can obtain the operator information corresponding to this test from the test result table, so as to subsequently obtain the expected result corresponding to the operator information from the expected result database.

[0091] It should be noted that the test report generation system for executing the test report generation method can be run in the above-mentioned smartphone, or can be run by other devices other than the smartphone, such as a computer, by connecting the smartphone to the computer by wire or wirelessly, and running the test program or test component on the computer to complete the test of the smartphone.

[0092] In response to the generated test result table, before obtaining the operator information corresponding to the test result table, optionally, the test report generation method provided in the embodiment of the present application also includes: receiving a test instruction, determining the above-mentioned operator information corresponding to the above-mentioned test instruction; using the test component corresponding to the above-mentioned operator information to perform test processing to obtain the above-mentioned test result table.

[0093] In the embodiment of the present application, different operator information corresponds to different test components. The above test instruction carries the operator's requirement information corresponding to this test, and the test components are pre-set according to the operator's requirement information.

[0094] As an optional embodiment, when the test report generation system receives a test instruction, it determines the test component corresponding to the operator based on the operator information in the test instruction, and uses the determined test component to test the network communication device to be tested to generate a test result table.

[0095] Specifically, the smartphone receives a test instruction (the test instruction is to test the IMS function under the requirements of operator A), determines that the operator information in the test instruction indicates operator A, obtains test component A (corresponding to operator A) from a pre-set test component database, uses test component A to perform test processing, and generates a corresponding test result table.

[0096] It should be noted that the above test result table can also be pre-set according to the test component to generate a table template, so that the test results can be directly stored in the table template after the test is completed to generate a test result table.

[0097] For details, please refer to Figure 2 , Figure 2This is a schematic diagram of using Python-generated test components to perform IMS function testing provided by an embodiment of the present application. After the test report generation system obtains the test component, it runs the component to perform IMS automated testing to test the IMS function of the network communication device to be tested. The test process includes but is not limited to: opening the setting file (Setting APK); checking whether the SIM card menu exists in the menu interface for managing and configuring smart card functions; if it exists, entering the SIM card menu to check whether the network menu exists; if it exists, entering the Network menu to check whether the VoLTE menu exists; if it exists, the actual test result returned is that the VoLTE menu exists; if it does not exist during the above detection process, the actual test result returned is that the VoLTE menu does not exist.

[0098] Optionally, after completing the IMS functional test, the test results are stored in a table template to generate a test result table.

[0099] It should be noted that the traversal path in the detection process of the VoLTE menu is generally fixed, but it can also be modified or set according to the actual needs of the operator. The test process of the VoLTE menu in the embodiment of the present application is only an example. In addition, the test process in the VoWiFi module and the ViLTE module is not specifically limited in this application.

[0100] It should also be noted that after the test components are pre-set according to the operator's needs, the contents of multiple automated tests of the same operator are the same; only when the operator's needs change will the pre-set test components be modified accordingly.

[0101] S102: Determine an expected result table according to the operator information.

[0102] In the embodiment of the present application, the above-mentioned expected result table is a table in which at least one expected test result is pre-set according to the latest operator requirements, and the expected test results recorded in the expected result table are stored in an expected result database (also referred to as an IMS requirement table).

[0103] It should be noted that the expected result is information automatically obtained by indexing the IMS requirement table according to information such as the operator name, MCC, and MNC.

[0104] Optionally, the test report generation method provided in the embodiment of the present application further includes: acquiring at least one expected result corresponding to the above-mentioned operator information from an expected result database according to the above-mentioned operator information; and determining the above-mentioned expected result table according to the above-mentioned at least one expected result.

[0105] In the embodiment of the present application, the above-mentioned expected result database stores multiple expected results corresponding to multiple operators.

[0106] As an optional embodiment, after receiving the test result table, based on the operator information (indicating operator A) in the above test result table, the expected test result (at least one) corresponding to operator A is retrieved from the IMS requirement table, and the expected result table is generated based on at least one expected test result.

[0107] It should be noted that the above-mentioned expected result table can be pre-set according to the test components corresponding to the operator or the operator's needs, so that after the expected test results corresponding to the operator information are retrieved, they are directly stored in the pre-set table template to generate the above-mentioned expected result table.

[0108] S103: Determine the target test result according to the test result table and the expected result table.

[0109] In the embodiment of the present application, a comparison result can be obtained by comparing the test result table and the expected result table, and the comparison result can be used as the above-mentioned target test result.

[0110] Optionally, the test results and expected results may be presented simultaneously as the above-mentioned target test results.

[0111] It should be noted that the expression form of the above-mentioned target test results is not specifically limited, and can be difference data between the test results and the expected results, or a judgment on whether the test results are consistent with the expected results, etc.

[0112] Optionally, the test report generation method provided in the embodiment of the present application also includes: obtaining the test results in the above-mentioned test result table, and obtaining the expected results in the above-mentioned expected result table; and determining the above-mentioned target test results based on the above-mentioned test results and the above-mentioned expected results.

[0113] For details, please refer to Figure 3 , Figure 3 This is a schematic diagram of the test result acquisition process generated by Python provided in an embodiment of the present application. The acquired test results include but are not limited to: the test results of the VoLTE menu function, the test results of the VoLTE icon function, the test results of the VoLTE menu default switch state, the test results of the VoLTE registration function, the test results of the VoLTE active text message sending function, the test results of the VoLTE active call making function, the test results of the VoLTE text message receiving function, the test results of the VoLTE call receiving function, the test results of the VoLTE conference call function, the test results of the VoLTE SRVCC function, the test results of the VoLTE emergency call function, etc.

[0114] Accordingly, see Figure 4 , Figure 4 This is a schematic diagram of the expected result acquisition process generated by Python provided in an embodiment of the present application. It is to check the expected results of the test case of the VoLTE menu. The expected results acquired may include but are not limited to: the expected results of the VoLTE menu function, the expected results of the VoLTE icon function, the expected results of the VoLTE menu default switch state, the expected results of the VoLTE registration function, the expected results of the VoLTE active text message sending function, the expected results of the VoLTE active call making function, the expected results of the VoLTE text message receiving function, the expected results of the VoLTE phone receiving function, the expected results of the VoLTE conference call making function, the expected results of the VoLTE SRVCC function, the expected results of the VoLTE emergency call function, etc.

[0115] Optionally, the test result table and the test results in the table can be stored in an actual result module (ActualResult module). Correspondingly, the expected result table and the expected results in the table can be stored in an expected result module (Expected Result module).

[0116] Optionally, the test report generation method provided in the embodiment of the present application also includes: judging whether the above test result is consistent with the above expected result corresponding to the above test result, and obtaining a judgment result; and determining the above target test result based on the above judgment result.

[0117] In an embodiment of the present application, for the expected result, the corresponding check item has a corresponding flag bit, such as "Yes", "Support", etc. According to the options that exist in the expected result, after the actual test by the test component, the corresponding "Yes" or "No" will be output according to the actual test result. The flag bit of the expected result is compared with the flag bit of the actual test result, and the options are classified to ensure that the data of the expected result and the actual result can be matched and compared one by one.

[0118] It should be noted that the test result must be consistent with the expected result in order to be determined as passed.

[0119] For details, please refer to Figure 5 , Figure 5This is a schematic diagram of the comparison process of the test results and expected results generated by Python provided in the embodiment of the present application, which compares the actual test results of the VoLTE menu with the expected test results to obtain the final test results. The contents to be compared may include but are not limited to: whether the test results of the VoLTE menu function are consistent with the expected results, whether the test results of the VoLTE icon function are consistent with the expected results, whether the test results of the VoLTE menu default switch state are consistent with the expected results, whether the test results of the VoLTE registration function are consistent with the expected results, whether the test results of the VoLTE active text message sending function are consistent with the expected results, whether the test results of the VoLTE active call function are consistent with the expected results, whether the test results of the VoLTE receiving text messages are consistent with the expected results, whether the test results of the VoLTE receiving phone calls are consistent with the expected results, whether the test results of the VoLTE conference call function are consistent with the expected results, whether the test results of the VoLTE SRVCC function are consistent with the expected results, whether the test results of the VoLTE emergency call function are consistent with the expected results, etc.

[0120] Optionally, the above target test results may be stored in a comparison result module (Compare Result module).

[0121] S104: Generate a test report according to the target test results.

[0122] Before generating a test report according to the above-mentioned target test results, optionally, the test report generation method provided in the embodiment of the present application also includes: determining the test component corresponding to the above-mentioned test result table; and generating the above-mentioned preset test table according to the above-mentioned test component.

[0123] In an embodiment of the present application, the above-mentioned test report can be pre-templated according to the test component to generate a test report template, so that after the comparison is completed, the comparison result can be directly stored in the test report template to generate the above-mentioned test report.

[0124] Optionally, the test report generation method provided in the embodiment of the present application also includes: storing the above-mentioned target test results into the above-mentioned preset test table, and generating the above-mentioned test report.

[0125] In the present application, please refer to Figure 6 , Figure 6 It is a schematic diagram of the overall process of the test report generation method provided in the embodiment of the present application, the actual test results are obtained from the IMS automated test results, and the expected results are obtained from the expected result database, and the test results of the test case are obtained by comparison through the comparison result module and stored in the test report.

[0126] Through the embodiments of the present application, based on the operator information in the test result table generated after the test is completed, the expected result table corresponding to the test result table is obtained, and the target test result is determined through the test result table and the expected result table, and then a test report is generated, thereby improving the efficiency of test report generation and reducing the occurrence of test result writing errors in the test report.

[0127] In order to better implement the test report generation method of the present application, the present application also provides a test report generation device based on the test report generation method. The meanings of the terms are the same as those in the test report generation method, and the specific implementation details can refer to the description in the method embodiment.

[0128] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of the test report generating device provided in an embodiment of the present application, which may be specifically as follows:

[0129] An acquisition module 701 is used to acquire operator information corresponding to the test result table in response to the generated test result table;

[0130] A first determining module 702, configured to determine an expected result table according to the operator information;

[0131] A second determination module 703, configured to determine a target test result according to the test result table and the expected result table;

[0132] The generating module 704 is used to generate a test report according to the target test result.

[0133] Optionally, in some embodiments of the present application, the acquisition module 701 includes:

[0134] A receiving unit, configured to receive a test instruction and determine the operator information corresponding to the test instruction;

[0135] A processing unit, configured to perform test processing using a test component corresponding to the operator information to obtain the test result table;

[0136] Among them, different operator information corresponds to different test components.

[0137] Optionally, in some embodiments of the present application, the first determining module 702 includes:

[0138] A first acquisition unit, configured to acquire at least one expected result corresponding to the operator information from an expected result database according to the operator information;

[0139] A first determining unit, configured to determine the expected result table according to the at least one expected result;

[0140] The expected result database stores a plurality of expected results corresponding to a plurality of operators.

[0141] Optionally, in some embodiments of the present application, the second determining module 703 includes:

[0142] A second acquisition unit, used to acquire the test results in the test result table and to acquire the expected results in the expected result table;

[0143] The second determining unit is used to determine the target test result according to the test result and the expected result.

[0144] Optionally, in some embodiments of the present application, the second determining module 703 further includes:

[0145] A judgment unit, used to judge whether the test result is consistent with the expected result corresponding to the test result, and obtain a judgment result;

[0146] The third determining unit is used to determine the target test result based on the judgment result.

[0147] Optionally, in some embodiments of the present application, the generating module 704 includes:

[0148] A fourth determining unit, used to determine the test component corresponding to the test result table;

[0149] The first generating unit is used to generate the preset test form according to the test component.

[0150] Optionally, in some embodiments of the present application, the generating module 704 further includes:

[0151] The second generating unit is used to store the target test result into the preset test table and generate the test report.

[0152] In the embodiment of the present application, the acquisition module 701 first responds to the generated test result table to obtain the operator information corresponding to the test result table, then the first determination module 702 determines the expected result table according to the operator information, and then the second determination module 703 determines the target test result according to the test result table and the expected result table, and then the generation module 704 generates a test report according to the target test result.

[0153] Among them, the embodiment of the present application obtains the expected result table corresponding to the test result table based on the operator information in the test result table generated after the test is completed, and determines the target test result through the test result table and the expected result table, and then generates a test report, thereby improving the efficiency of test report generation and reducing the occurrence of test result writing errors in the test report.

[0154] In addition, the present application also provides an electronic device, such as Figure 8 As shown, it shows a schematic diagram of the structure of the electronic device involved in this application, specifically:

[0155] The electronic device may include components such as a processor 801 with one or more processing cores, a memory 802 with one or more computer-readable storage media, a power supply 803, and an input unit 804. Those skilled in the art will appreciate that Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0156] The processor 801 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 802 and calling data stored in the memory 802, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 801 may include one or more processing cores; preferably, the processor 801 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 801.

[0157] The memory 802 can be used to store software programs and modules. The processor 801 executes various functional applications and data processing by running the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 802 may also include a memory controller to provide the processor 801 with access to the memory 802.

[0158] The electronic device also includes a power supply 803 for supplying power to each component. Preferably, the power supply 803 can be logically connected to the processor 801 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 803 can also include any components such as one or more DC or AC power supplies, recharging systems, power supply device debugging circuits, power converters or inverters, and power status indicators.

[0159] The electronic device may further include an input unit 804, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0160] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 801 in the electronic device will load the executable file corresponding to the process of one or more application programs into the memory 802 according to the following instructions, and the processor 801 will run the application program stored in the memory 802, thereby implementing the steps in any test report generation method provided in the embodiments of the present application.

[0161] In summary, the embodiments of the present application obtain the operator information corresponding to the test result table in response to the generated test result table; determine the expected result table according to the operator information; determine the target test result according to the test result table and the expected result table; and generate a technical solution for a test report according to the target test result. According to the operator information in the test result table generated after the test is completed, the expected result table corresponding to the test result table is obtained, and the target test result is determined through the test result table and the expected result table, and then a test report is generated, which improves the efficiency of generating the test report and reduces the occurrence of errors in writing test results in the test report.

[0162] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0163] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0164] To this end, the present application provides a computer-readable storage medium, on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any test report generating method provided in the present application.

[0165] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0166] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0167] Since the instructions stored in the computer-readable storage medium can execute the steps in any test report generation method provided in the present application, the beneficial effects that can be achieved by any test report generation method provided in the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0168] The above is a detailed introduction to a test report generation method, device, electronic device and computer-readable storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

[0169] It should be noted that in the specific implementation of this application, related data such as user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

Claims

1. A test report generation method, characterized in that: include: In response to the generated test result table, obtaining operator information corresponding to the test result table; Determine an expected result table according to the operator information; Determine the target test result according to the test result table and the expected result table; A test report is generated according to the target test results.

2. The method according to claim 1, characterized in that Before obtaining the operator information corresponding to the test result table in response to the generated test result table, the method further includes: receiving a test instruction, and determining the operator information corresponding to the test instruction; Performing test processing using a test component corresponding to the operator information to obtain the test result table; Among them, different operator information corresponds to different test components.

3. The method according to claim 1, characterized in that The step of determining the expected result table according to the operator information includes: Acquire at least one expected result corresponding to the operator information from an expected result database according to the operator information; Determining the expected result table according to the at least one expected result; The expected result database stores a plurality of expected results corresponding to a plurality of operators.

4. The method according to claim 1, characterized in that: Determining the target test result according to the test result table and the expected result table includes: Obtaining the test results in the test result table, and obtaining the expected results in the expected result table; The target test result is determined according to the test result and the expected result.

5. The method according to claim 4, characterized in that The step of determining the target test result according to the test result and the expected result includes: Determine whether the test result is consistent with the expected result corresponding to the test result, and obtain a determination result; Based on the judgment result, the target test result is determined.

6. The method according to claim 1, characterized in that Before generating a test report according to the target test result, the method further includes: Determine the test component corresponding to the test result table; A preset test table is generated according to the test component.

7. The method according to claim 6, characterized in that Generating a test report according to the target test result includes: The target test results are stored in the preset test table, and the test report is generated.

8. A test report generating device, characterized in that: The device comprises: An acquisition module, configured to, in response to the generated test result table, acquire operator information corresponding to the test result table; A first determining module, configured to determine an expected result table according to the operator information; A second determination module, used to determine a target test result according to the test result table and the expected result table; A generating module is used to generate a test report according to the target test result.

9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps in the test report generating method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the test report generating method according to any one of claims 1 to 7 are implemented.