A test report management method, device, readable storage medium and terminal device
By extracting the configuration information from the preset test report configuration information set and using the neural network model to process the team feature vector, the problem that the existing technology cannot meet the personalized needs of the test team is solved, and the dynamic configuration and personalized generation of the test report are realized. and sending, improving management flexibility and efficiency.
Patent Information
- Application Number
- CN202111007188.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-30
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-08-30
AI Technical Summary
The existing test report management method cannot meet the individual needs of each test team, and the fixed management method cannot adapt to the specific needs of different teams.
By extracting configuration information from a preset test report configuration information set, generating a report based on the configuration information, and sending the report based on the configuration information sent by the test report, strategies based on interaction and artificial intelligence are used to match the configuration information of the target test team. , using the neural network model to process the team feature vector to determine the configuration information of the preferred reference team.
It realizes the dynamic configuration of test reports according to the needs of different test teams, meets the personalized needs of each test team, and improves the flexibility and efficiency of test report generation and sending.
Smart Images

Figure CN113704113B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of artificial intelligence technology, and in particular relates to a test report management method, device, computer-readable storage medium and terminal equipment. Background Art
[0002] In the existing test process management platform, the generation and sending of test reports are generally performed according to a fixed and unified requirement. However, in reality, different test teams often have different needs. This rigid test report management method can no longer meet the personalized needs of each test team. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a test report management method, apparatus, computer-readable storage medium and terminal device to solve the problem that the existing test report management method cannot meet the personalized needs of each test team.
[0004] A first aspect of an embodiment of the present invention provides a test report management method, which may include:
[0005] Extracting test report configuration information from a preset test report configuration information set;
[0006] Extracting test report generation configuration information from the test report configuration information, and generating a test report according to the test report generation configuration information;
[0007] Test report sending configuration information is extracted from the test report configuration information, and the test report is sent according to the test report sending configuration information.
[0008] In a specific implementation of the first aspect, before extracting the test report configuration information from the preset test report configuration information set, the method may further include:
[0009] Obtaining a test report configuration instruction, wherein the test report configuration instruction is used to instruct a creation, deletion or update operation on the test report configuration information;
[0010] Extracting the identity information in the test report configuration instruction, and searching a preset database for a target sub-library corresponding to the identity information;
[0011] According to the test report configuration instruction, a new creation, deletion or update operation of the test report configuration information is performed in the target sub-library.
[0012] In a specific implementation of the first aspect, before obtaining the test report configuration instruction, the method may further include:
[0013] Get the test report configuration mode selection command;
[0014] Extracting the mode selection flag in the test report configuration mode selection instruction;
[0015] If the mode selection flag is the same as the preset first value, executing the preset interactive-based test report configuration strategy;
[0016] If the mode selection flag is the same as the preset second value, the preset test report configuration strategy based on artificial intelligence matching is executed.
[0017] In a specific implementation of the first aspect, executing a preset test report configuration strategy based on artificial intelligence matching may include:
[0018] Obtaining team information of a target test team on each preset evaluation dimension, wherein the target test team is a test team corresponding to the identity information in the test report configuration mode selection instruction;
[0019] Constructing a feature vector of the target test team according to the team information of the target test team in each preset evaluation dimension;
[0020] Inputting the feature vector of the target test team into a pre-trained neural network model for processing, and obtaining the category of the target test team output by the neural network model;
[0021] A test team is selected from each alternative reference test team as a preferred reference test team, and the test report configuration information corresponding to the preferred reference test team is determined as the test report configuration information corresponding to the target test team. The alternative reference test team is a test team of the same category as the target test team.
[0022] In a specific implementation of the first aspect, the training process of the neural network model may include:
[0023] Constructing a training data set; the training data set includes a plurality of training samples, each of which includes a feature vector of a test team and a category of expected output;
[0024] For each training sample in the training data set, the neural network model is used to process the feature vector in the training sample to obtain the category of the actual output;
[0025] Calculating a training loss value according to the category of the expected output in the training sample and the category of the actual output;
[0026] The model parameters of the neural network model are adjusted according to the training loss value until the preset training conditions are met.
[0027] In a specific implementation of the first aspect, constructing a training data set may include:
[0028] Constructing a feature vector of each reference test team, wherein the reference test team is a test team that has been configured with a test report;
[0029] Perform cluster analysis on each reference test team according to its feature vectors to obtain the category of each reference test team;
[0030] The training dataset is constructed according to the feature vectors and categories of each reference test team.
[0031] In a specific implementation of the first aspect, selecting a test team from each candidate reference test team as a preferred reference test team may include:
[0032] respectively calculating the vector distance between the feature vector of each candidate reference test team and the feature vector of the target test team;
[0033] The candidate reference test team having the smallest vector distance with the feature vector of the target test team is selected as the preferred reference test team.
[0034] A second aspect of an embodiment of the present invention provides a test report management device, which may include:
[0035] A configuration information extraction module, used to extract test report configuration information from a preset test report configuration information set;
[0036] A generation configuration information extraction module is used to extract test report generation configuration information from the test report configuration information, and generate a test report according to the test report generation configuration information;
[0037] The sending configuration information extraction module is used to extract the test report sending configuration information from the test report configuration information, and send the test report according to the test report sending configuration information.
[0038] In a specific implementation of the second aspect, the test report management device may further include:
[0039] A configuration instruction acquisition module, used to acquire a test report configuration instruction, wherein the test report configuration instruction is used to instruct a creation, deletion or update operation on the test report configuration information;
[0040] A target sub-library search module, used to extract the identity information in the test report configuration instruction, and search for a target sub-library corresponding to the identity information in a preset database;
[0041] The configuration operation module is used to create, delete or update the test report configuration information in the target sub-database according to the test report configuration instruction.
[0042] In a specific implementation of the second aspect, the test report management device may further include:
[0043] A selection instruction acquisition module is used to obtain a test report configuration mode selection instruction;
[0044] A flag extraction module, used to extract the mode selection flag in the test report configuration mode selection instruction;
[0045] A first strategy execution module, configured to execute a preset test report configuration strategy based on interaction if the mode selection flag is the same as a preset first value;
[0046] The second strategy execution module is used to execute the preset test report configuration strategy based on artificial intelligence matching if the mode selection identification bit is the same as the preset second numerical value.
[0047] In a specific implementation of the second aspect, the second policy execution module may include:
[0048] A team information acquisition submodule, used to acquire team information of a target test team on various preset evaluation dimensions, wherein the target test team is a test team corresponding to the identity information in the test report configuration mode selection instruction;
[0049] A feature vector construction submodule, used to construct a feature vector of the target test team according to the team information of the target test team in each preset evaluation dimension;
[0050] A model processing submodule, used for inputting the feature vector of the target test team into a pre-trained neural network model for processing, and obtaining the category of the target test team output by the neural network model;
[0051] The team selection submodule is used to select a test team from each candidate reference test team as a preferred reference test team, wherein the candidate reference test team is a test team of the same category as the target test team.
[0052] The configuration information determination submodule is used to determine the test report configuration information corresponding to the preferred reference test team as the test report configuration information corresponding to the target test team.
[0053] In a specific implementation of the second aspect, the second policy execution module may further include:
[0054] The data set construction submodule is used to construct a training data set; the training data set includes a number of training samples, each of which includes a feature vector of a test team and a category of expected output;
[0055] An actual output category determination submodule is used to process the feature vector in each training sample in the training data set using the neural network model to obtain the category of the actual output;
[0056] A training loss value calculation submodule, used to calculate the training loss value according to the category of the expected output in the training sample and the category of the actual output;
[0057] The model parameter adjustment submodule is used to adjust the model parameters of the neural network model according to the training loss value until the preset training conditions are met.
[0058] In a specific implementation of the second aspect, the data set construction submodule may include:
[0059] A feature vector construction unit, used to construct a feature vector of each reference test team, wherein the reference test team is a test team that has been configured for a test report;
[0060] A cluster analysis unit, used for performing cluster analysis on each reference test team according to the feature vector of each reference test team to obtain the category of each reference test team;
[0061] The data set construction unit is used to construct the training data set according to the feature vectors and categories of each reference test team.
[0062] In a specific implementation of the second aspect, the team selection submodule may include:
[0063] A vector distance calculation unit, used to respectively calculate the vector distance between the feature vector of each candidate reference test team and the feature vector of the target test team;
[0064] The team selection unit is used to select the candidate reference test team with the smallest vector distance between the candidate reference test team and the target test team as the preferred reference test team.
[0065] A third aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above-mentioned test report management methods are implemented.
[0066] The fourth aspect of an embodiment of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above-mentioned test report management methods when executing the computer program.
[0067] A fifth aspect of an embodiment of the present invention provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the steps of any one of the above-mentioned test report management methods.
[0068] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: the embodiments of the present invention extract test report configuration information from a preset test report configuration information set; extract test report generation configuration information from the test report configuration information, and generate a test report according to the test report generation configuration information; extract test report sending configuration information from the test report configuration information, and send the test report according to the test report sending configuration information. Through the embodiments of the present invention, the needs of different test teams for test reports are recorded in the form of test report configuration information, different test teams can correspond to different test report configuration information, and the generation and sending of test reports are performed according to the test report configuration information, which can meet the personalized needs of each test team. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0070] Figure 1 A flow chart of an embodiment of a test report management method in an embodiment of the present invention;
[0071] Figure 2 A schematic flow chart for obtaining customized test report configuration information for each test team through interaction with relevant personnel;
[0072] Figure 3 Schematic flow chart of configuration strategy selection for test reports;
[0073] Figure 4 A schematic flow chart of configuring a strategy for executing a test report based on AI matching;
[0074] Figure 5 It is a schematic flow chart of the training process of the neural network model;
[0075] Figure 6A structural diagram of an embodiment of a test report management device in an embodiment of the present invention;
[0076] Figure 7 The present invention is a schematic block diagram of a terminal device in an embodiment of the present invention. DETAILED DESCRIPTION
[0077] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0078] The embodiments of the present invention can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0079] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0080] The execution subject of the embodiment of the present invention may be a terminal device based on artificial intelligence technology, which is used to execute the test report management method in the embodiment of the present invention.
[0081] See also Figure 1 , an embodiment of a test report management method in an embodiment of the present invention may include:
[0082] Step S101: extract test report configuration information from a preset test report configuration information set.
[0083] The terminal device can obtain a test report configuration information set from a preset storage medium, wherein the test report configuration information set is a set composed of test report configuration information of each test team, wherein each test report configuration information corresponds to a process of generating and sending a test report. The embodiment of the present invention takes any one of the test report configuration information in the test report configuration information set (recorded as target test report configuration information) as an example to describe in detail the process of generating and sending a test report.
[0084] Step S102: extract test report generation configuration information from the test report configuration information, and generate a test report according to the test report generation configuration information.
[0085] Each test report configuration information may include two parts: test report generation configuration information and test report sending configuration information. The test report generation configuration information may include the selection of information of each microservice module, and the microservice module may include but is not limited to task management, test execution, defect management, etc. The test report generation configuration may also include the selection of data provided by the peripheral system, which may include but is not limited to the data content such as the execution status of automation cases in the automation tool, code coverage, and other types of test indicators. The test indicators may include but are not limited to: test pass rate = number of passed test case executions / total number of case executions; case execution rate = number of actual executed case studies / total number of planned executed case studies; test pass rate of each functional module = number of passed test case executions of each functional module / total number of case study executions of each functional module; number of case study executions in each stage = number of actual executed case studies in each stage / total number of planned executed case studies in each stage; tester case study ratio = number of case studies of each tester / total number of case studies; defect pass rate = closed defects / total number of defects; defect legacy ratio = number of missed defects / total number of defects; defect test stage ratio = defects in each stage / total number of defects; total defect type ratio = defects of each type / total number of defects; total defect severity ratio = defects of each degree / total number of defects.
[0086] The terminal device generates configuration information based on the test report, sends information requests to each microservice module, and receives relevant information provided by these microservice modules. At the same time, it sends data requests to the peripheral system and receives relevant data provided by the peripheral system. After receiving these data, the terminal device can assemble these data to obtain the required test report.
[0087] Step S103: extract test report sending configuration information from the test report configuration information, and send the test report according to the test report sending configuration information.
[0088] Among them, the test report sending configuration information may include specific configurations of the report sending stage, sending time, and email recipients from multiple dimensions. The report sending stage may include but is not limited to: smoke test, system test (SystemTest, ST), ST test progress, user acceptance test (User Acceptance Test, UAT), regression test and other stages.
[0089] The terminal device sends configuration information according to the test report, and sends the corresponding test report to the specific email recipient at a specific sending stage and sending time.
[0090] It should be noted that the above process is to take a test report configuration information as an example to illustrate the generation and sending process of the corresponding test report. The test report configuration information set includes the test report configuration information of each test team. The terminal device can generate and send test reports for different test teams according to these settings by traversing these test report configuration information, so as to meet the personalized needs of each test team for test reports.
[0091] Through the embodiment of the present invention, the needs of different test teams for test reports are recorded in the form of test report configuration information. Different test teams can correspond to different test report configuration information. The generation and sending of test reports are executed in accordance with the test report configuration information, which can meet the personalized needs of each test team.
[0092] Furthermore, in another specific implementation of the embodiment of the present invention, the terminal device may obtain the test report configuration information customized by each test team in advance through interaction with relevant personnel, and establish a test report configuration information set, and the specific steps of its execution may include the following: Figure 2 The process shown:
[0093] Step S201: Obtain test report configuration instructions.
[0094] The test report configuration instruction is used to instruct a creation, deletion or update operation on the test report configuration information.
[0095] In an embodiment of the present invention, the test report can be configured by the configuration administrator on his terminal device, where the configuration administrator refers to the head of the test team, or the person designated within the test team to be responsible for configuring the test report. Each test team has a corresponding configuration administrator, and the configuration performed may include but is not limited to creating a new test report, deleting a test report, and updating a test report.
[0096] Specifically, the configuration administrator can log in to a preset test report configuration interactive interface through the identity information (ID) of the test team to which he belongs, and input the configuration information of the test report on the interactive interface.
[0097] When creating a new test report, the configuration administrator fills in the report name of the test report to be created on the interactive interface, wherein the report name is an identifier of the test report, and the report names of different test reports of the same configuration administrator are different.
[0098] The specific test report configuration content may include two parts: test report generation configuration and test report sending configuration. Among them, the test report generation configuration may include the selection of information for each microservice module and the selection of data provided by the peripheral system. The test report sending configuration may configure the report sending stage, sending time, and email recipient from multiple dimensions.
[0099] After the configuration administrator completes filling in the information on the interactive interface, he clicks the Generate button to send a test report configuration instruction to the terminal device, which carries the identity information and the configuration information filled in by the configuration administrator on the interactive interface.
[0100] When the configuration administrator deletes a test report, he can select the test report to be deleted on the interactive interface and click the delete button to send a test report configuration instruction to the terminal device, which carries the identity information and the report name of the test report to be deleted.
[0101] When the configuration administrator updates the test report, he can select the test report to be updated on the interactive interface and update the information in the test report. After completion, click the Update button to send a test report configuration instruction to the terminal device. The instruction carries the identity information and the test report update information filled in by the configuration administrator on the interactive interface.
[0102] Step S202: extract the identity information in the test report configuration instruction, and search for a target sub-library corresponding to the identity information in a preset database.
[0103] In an embodiment of the present invention, in order to meet the needs of free customization and avoid mutual interference between data of different configuration managers and improve data security, a corresponding sub-library can be set in the database for each configuration manager, and each sub-library is independent and unrelated to each other.
[0104] The corresponding relationship between the configuration administrator and the sub-library can be dynamically configured according to the actual situation. When there is a new configuration administrator, the corresponding use space can be allocated to the configuration administrator in the unused space in the database, that is, the sub-library corresponding to the configuration administrator; when the configuration administrator no longer needs the service, the corresponding relationship between the configuration administrator and the sub-library can be released, and the database space used by the sub-library corresponding to the configuration administrator can be released; when the sub-library corresponding to the configuration administrator has insufficient space, the sub-library can be expanded, and the configuration administrator can be allocated additional use space in the unused space in the database. The sub-library in the present invention is a logical concept rather than a physical concept. The sub-library corresponding to a configuration administrator does not have to be a continuous physical storage space, but can be a collection composed of multiple discontinuous physical storage spaces.
[0105] Assuming that the sub-library is composed of N discontinuous physical storage spaces, respectively recorded as storage space segment 1, storage space segment 2, ..., storage space segment N, then a pointer to the segment head of storage space segment 2 is stored at the end of storage space segment 1, a pointer to the segment head of storage space segment 3 is stored at the end of storage space segment 2, ..., and so on, thereby forming a logically continuous sub-library. The set of test report configuration information included in all sub-libraries is the test report configuration information set.
[0106] After receiving the test report configuration instruction, the terminal device extracts the identity information therein and searches the database for a sub-library corresponding to the identity information.
[0107] Step S203: Create, delete or update test report configuration information in the target sub-database according to the test report configuration instruction.
[0108] If it is a new test report, the terminal device generates a new test report configuration information according to the test report configuration instruction.
[0109] Furthermore, a master table of the configuration administrator may be pre-set in the sub-library to record information of all test reports in the sub-library, including but not limited to report identification, report name, version, etc. The master table is associated with the report identification of each test report.
[0110] In the process of creating a new test report, a report ID can be assigned to the new test report configuration information, and a new test report configuration information record can be added to the main table, recording the report ID, report name, version and other information of the test report configuration information, so as to facilitate the subsequent quick query of the test report configuration information based on the main table.
[0111] If the test report is to be deleted, the terminal device extracts the report name from the test report configuration instruction, searches for the test report configuration information record corresponding to the report name in the main table, obtains the report identifier from the searched test report configuration information record, searches for the corresponding test report configuration information through the report identifier, and deletes the test report configuration information. After the deletion is completed, the test report configuration information record of the test report in the main table is also deleted.
[0112] If the test report is to be updated, the terminal device extracts the report name from the test report configuration instruction, searches for the test report record corresponding to the report name in the main table, obtains the report identifier from the queried test report configuration information record, searches for the corresponding test report configuration information through the report identifier, and after determining the test report configuration information to be updated, updates the test report configuration information according to the test report configuration instruction. After the update is completed, the record of the test report configuration information in the main table is also updated, such as updating the version information.
[0113] Through customized configuration strategies, the test report configuration interactive interface on the terminal device is used to obtain the configuration administrator's configuration requirements for the test report, and the corresponding test report configuration is performed in the corresponding database sub-library according to the configuration requirements, thereby realizing dynamic configuration of the test report and meeting the free customization requirements of different test teams for the test report.
[0114] Furthermore, in another specific implementation of the embodiment of the present invention, the terminal device may also pre-set multiple test report configuration modes, and execute corresponding test report configuration strategies according to the selection of the configuration administrator to further increase the flexibility of the configuration. The specific steps of execution may include: Figure 3 The process shown:
[0115] Step S301: Obtain a test report configuration mode selection instruction.
[0116] Specifically, the configuration administrator can log in to the preset test report configuration mode selection interface through the identity information of the test team to which he belongs, and check the required test report configuration mode in the interface. After the configuration administrator completes the test report configuration mode selection on the interface, he clicks the confirmation button, and a test report configuration mode selection instruction is sent to the terminal device, which carries the identity information and the test report configuration mode selected by the configuration administrator on the interface.
[0117] Step S302: extract the mode selection flag in the test report configuration mode selection instruction.
[0118] In a specific implementation of the embodiment of the present invention, the selection result of the configuration administrator can be recorded in the form of a mode selection flag in the test report configuration mode selection instruction. For example, if the configuration administrator selects an interactive test report configuration strategy, the mode selection flag takes a value of 0. If the configuration administrator selects an artificial intelligence matching-based test report configuration strategy, the mode selection flag takes a value of 1. Of course, other recording forms can also be set according to actual conditions, and the embodiment of the present invention does not specifically limit this.
[0119] Step S303: Execute the test report configuration strategy corresponding to the value of the mode selection flag.
[0120] Specifically, if the mode selection flag is the same as the preset first value, the preset interactive-based test report configuration strategy is executed. The specific execution process of the strategy is steps S201 to S203, which will not be repeated here.
[0121] If the mode selection flag is the same as the preset second value, the preset test report configuration strategy based on artificial intelligence matching is executed. The specific execution process of the strategy may include the following steps: Figure 4 Steps shown:
[0122] Step S401: Obtain team information of the target test team on each preset evaluation dimension.
[0123] The target test team is a test team corresponding to the identity information in the test report configuration mode selection instruction.
[0124] In the embodiment of the present invention, the specific evaluation dimensions can be flexibly adjusted according to the actual situation, and the embodiment of the present invention does not specifically limit this. For example, the evaluation dimensions may include but are not limited to the product line, the number of team members, the team level, etc. The team information of the target test team in each evaluation dimension is stored in a specified database in a numerical form, and the terminal device can extract the corresponding information from the database.
[0125] Step S402: construct a feature vector of the target test team according to the team information of the target test team in each preset evaluation dimension.
[0126] To facilitate data analysis, the team information of the target test team on each evaluation dimension can be constructed as a feature vector as shown below:
[0127] TgVec=(TgInfo1,TgInfo2,TgInfo3,...TgInfo d ,...TgInfo DN )
[0128] Where d is the serial number of each evaluation dimension, 1≤d≤DN, DN is the total number of evaluation dimensions, TgInfo d is the team information of the target test team on the dth evaluation dimension, and TgVec is the feature vector of the target test team.
[0129] Step S403: input the feature vector of the target test team into a pre-trained neural network model for processing, and obtain the category of the target test team output by the neural network model.
[0130] The neural network model used in the embodiments of the present invention may include but is not limited to convolutional neural networks (CNN), deep convolutional neural networks (DCNN), inverse graphics networks (IGN), generative adversarial networks (GAN), recurrent neural networks (RNN), deep residual networks (DRN), support vector machines (SVM) and other neural network models.
[0131] like Figure 5 As shown, the training process of the neural network model may include the following steps:
[0132] Step S4031: construct a training data set.
[0133] The training data set includes a plurality of training samples, each of which includes a feature vector of a test team and a category of expected output.
[0134] Specifically, in an embodiment of the present invention, the feature vectors of each reference test team can be constructed in the manner of step S402, and the reference test team is a test team that has been configured for a test report. Then, cluster analysis can be performed on each reference test team based on the feature vectors of each reference test team to obtain the category of each reference test team. The embodiment of the present invention can select any clustering algorithm in the prior art to perform cluster analysis according to actual conditions to form several categories. Each category can be set with a corresponding numerical representation. For example, 0, 1, 2, ... can be used to represent different categories. Of course, other numerical representations can also be used according to actual conditions, and the embodiment of the present invention does not specifically limit this. In this way, the feature vector and category of each reference test team can form a training sample, and the training data set can be constructed according to the feature vector and category of each reference test team.
[0135] Step S4032: For each training sample in the training data set, use the neural network model to process the feature vector in the training sample to obtain the actual output category.
[0136] Step S4033: Calculate the training loss value according to the category of the expected output in the training sample and the category of the actual output.
[0137] The specific calculation method of the training loss value can be set according to actual conditions. In a specific implementation of an embodiment of the present invention, the square error between the category of the expected output and the category of the actual output can be calculated, and the square error can be determined as the training loss value.
[0138] Step S4034: adjust the model parameters of the neural network model according to the training loss value until the preset training conditions are met.
[0139] The training condition may be that the number of training times reaches a preset number threshold or the neural network model has converged. The number threshold may be set according to actual conditions and is not specifically limited in the embodiments of the present invention.
[0140] Step S404: select a test team from each candidate reference test team as a preferred reference test team, and determine the test report configuration information corresponding to the preferred reference test team as the test report configuration information corresponding to the target test team.
[0141] Among them, the alternative reference test team is a test team of the same category as the target test team. In an embodiment of the present invention, the vector distance between the feature vector of each alternative reference test team and the feature vector of the target test team can be calculated respectively, and then the alternative reference test team with the smallest vector distance between the feature vector of the target test team is selected as the preferred reference test team, and its corresponding test report configuration information is determined as the test report configuration information corresponding to the target test team.
[0142] The configuration administrator of the target test team can directly use the test report configuration information, or make some local adaptive adjustments based on this. The adjustment process can refer to the specific description of the aforementioned interactive-based test report configuration strategy, which will not be repeated here.
[0143] Under the test report configuration strategy based on artificial intelligence matching, the configuration administrator does not need to configure the test report from scratch. Instead, the terminal device intelligently matches the configuration administrator with other test teams that have already configured the test report based on the test team to which the configuration administrator belongs, and configures the test report for the target test team based on the matched test report configuration. In this mode, the efficiency of test report configuration is greatly improved, and the workload of the configuration administrator for test report configuration is reduced.
[0144] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0145] Corresponding to the test report management method described in the above embodiment, Figure 6 A structural diagram of an embodiment of a test report management device provided by an embodiment of the present invention is shown.
[0146] In this embodiment, a test report management device may include:
[0147] Configuration information extraction module 601, used to extract test report configuration information from a preset test report configuration information set;
[0148] A generation configuration information extraction module 602 is used to extract test report generation configuration information from the test report configuration information, and generate a test report according to the test report generation configuration information;
[0149] The sending configuration information extraction module 603 is used to extract the test report sending configuration information from the test report configuration information, and send the test report according to the test report sending configuration information.
[0150] In a specific implementation of the embodiment of the present invention, the test report management device may further include:
[0151] A configuration instruction acquisition module, used to acquire a test report configuration instruction, wherein the test report configuration instruction is used to instruct a creation, deletion or update operation on the test report configuration information;
[0152] A target sub-library search module, used to extract the identity information in the test report configuration instruction, and search for a target sub-library corresponding to the identity information in a preset database;
[0153] The configuration operation module is used to create, delete or update the test report configuration information in the target sub-database according to the test report configuration instruction.
[0154] In a specific implementation of the embodiment of the present invention, the test report management device may further include:
[0155] A selection instruction acquisition module is used to obtain a test report configuration mode selection instruction;
[0156] A flag extraction module, used to extract the mode selection flag in the test report configuration mode selection instruction;
[0157] A first strategy execution module, configured to execute a preset test report configuration strategy based on interaction if the mode selection flag is the same as a preset first value;
[0158] The second strategy execution module is used to execute the preset test report configuration strategy based on artificial intelligence matching if the mode selection identification bit is the same as the preset second numerical value.
[0159] In a specific implementation of the embodiment of the present invention, the second policy execution module may include:
[0160] A team information acquisition submodule, used to acquire team information of a target test team on various preset evaluation dimensions, wherein the target test team is a test team corresponding to the identity information in the test report configuration mode selection instruction;
[0161] A feature vector construction submodule, used to construct a feature vector of the target test team according to the team information of the target test team in each preset evaluation dimension;
[0162] A model processing submodule, used for inputting the feature vector of the target test team into a pre-trained neural network model for processing, and obtaining the category of the target test team output by the neural network model;
[0163] The team selection submodule is used to select a test team from each candidate reference test team as a preferred reference test team, wherein the candidate reference test team is a test team of the same category as the target test team.
[0164] The configuration information determination submodule is used to determine the test report configuration information corresponding to the preferred reference test team as the test report configuration information corresponding to the target test team.
[0165] In a specific implementation of the embodiment of the present invention, the second policy execution module may further include:
[0166] The data set construction submodule is used to construct a training data set; the training data set includes a number of training samples, each of which includes a feature vector of a test team and a category of expected output;
[0167] An actual output category determination submodule is used to process the feature vector in each training sample in the training data set using the neural network model to obtain the category of the actual output;
[0168] A training loss value calculation submodule, used to calculate the training loss value according to the category of the expected output in the training sample and the category of the actual output;
[0169] The model parameter adjustment submodule is used to adjust the model parameters of the neural network model according to the training loss value until the preset training conditions are met.
[0170] In a specific implementation of the embodiment of the present invention, the data set construction submodule may include:
[0171] A feature vector construction unit, used to construct a feature vector of each reference test team, wherein the reference test team is a test team that has been configured for a test report;
[0172] A cluster analysis unit, used for performing cluster analysis on each reference test team according to the feature vector of each reference test team to obtain the category of each reference test team;
[0173] The data set construction unit is used to construct the training data set according to the feature vectors and categories of each reference test team.
[0174] In a specific implementation of the embodiment of the present invention, the team selection submodule may include:
[0175] A vector distance calculation unit, used to respectively calculate the vector distance between the feature vector of each candidate reference test team and the feature vector of the target test team;
[0176] The team selection unit is used to select the candidate reference test team with the smallest vector distance between the candidate reference test team and the target test team as the preferred reference test team.
[0177] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0178] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0179] Figure 7 A schematic block diagram of a terminal device provided by an embodiment of the present invention is shown. For ease of explanation, only the parts related to the embodiment of the present invention are shown.
[0180] In this embodiment, the terminal device 7 may be a computing device such as a desktop computer, a notebook, or a palm computer. The terminal device 7 may include: a processor 70, a memory 71, and a computer-readable instruction 72 stored in the memory 71 and executable on the processor 70, such as a computer-readable instruction for executing the above-mentioned test report management method. When the processor 70 executes the computer-readable instruction 72, the steps in the above-mentioned test report management method embodiments are implemented, such as Figure 1 Alternatively, when the processor 70 executes the computer-readable instructions 72, the functions of each module / unit in the above-mentioned device embodiments are realized, for example, Figure 6 Functions of modules 601 to 603 are shown.
[0181] Exemplarily, the computer-readable instructions 72 may be divided into one or more modules / units, which are stored in the memory 71 and executed by the processor 70 to implement the present invention. The one or more modules / units may be a series of computer-readable instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer-readable instructions 72 in the terminal device 7.
[0182] The processor 70 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0183] The memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or memory of the terminal device 7. The memory 71 may also be an external storage device of the terminal device 7, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 7. Further, the memory 71 may also include both an internal storage unit of the terminal device 7 and an external storage device. The memory 71 is used to store the computer-readable instructions and other instructions and data required by the terminal device 7. The memory 71 may also be used to temporarily store data that has been output or is to be output.
[0184] Each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0185] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of computer-readable instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store computer-readable instructions.
[0186] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A test report management method, characterized in that: include: Extract test report configuration information from a preset test report configuration information set; wherein the process of determining the test report configuration information includes: obtaining a test report configuration mode selection instruction; extracting a mode selection identification bit in the test report configuration mode selection instruction; if the mode selection identification bit is the same as a preset first value, obtaining a test report configuration instruction, the test report configuration instruction is used to indicate a new creation, deletion or update operation on the test report configuration information; extracting identity identification information in the test report configuration instruction, and searching a target sub-library corresponding to the identity identification information in a preset database; performing a new creation, deletion or update operation on the test report configuration information in the target sub-library according to the test report configuration instruction; if the mode selection identification bit is the same as a preset second value, obtaining a target The team information of the test team in each preset evaluation dimension, the target test team is the test team corresponding to the identity information in the test report configuration mode selection instruction; constructing the feature vector of the target test team according to the team information of the target test team in each preset evaluation dimension; inputting the feature vector of the target test team into a pre-trained neural network model for processing, and obtaining the category of the target test team output by the neural network model; selecting a test team from each alternative reference test team as the preferred reference test team, and determining the test report configuration information corresponding to the preferred reference test team as the test report configuration information corresponding to the target test team, the alternative reference test team is a test team of the same category as the target test team; Extracting test report generation configuration information from the test report configuration information, and generating a test report according to the test report generation configuration information; Test report sending configuration information is extracted from the test report configuration information, and the test report is sent according to the test report sending configuration information.
2. The test report management method according to claim 1, characterized in that: The training process of the neural network model includes: Constructing a training data set; the training data set includes a plurality of training samples, each of which includes a feature vector of a test team and a category of expected output; For each training sample in the training data set, the neural network model is used to process the feature vector in the training sample to obtain the category of the actual output; Calculating a training loss value according to the category of the expected output in the training sample and the category of the actual output; The model parameters of the neural network model are adjusted according to the training loss value until the preset training conditions are met.
3. The test report management method according to claim 2, characterized in that: The constructing of the training data set comprises: Constructing a feature vector of each reference test team, wherein the reference test team is a test team that has been configured with a test report; Perform cluster analysis on each reference test team according to its feature vectors to obtain the category of each reference test team; The training dataset is constructed according to the feature vectors and categories of each reference test team.
4. The test report management method according to any one of claims 1 to 3, characterized in that: The step of selecting a test team from among the candidate reference test teams as a preferred reference test team comprises: respectively calculating the vector distance between the feature vector of each candidate reference test team and the feature vector of the target test team; The candidate reference test team having the smallest vector distance with the feature vector of the target test team is selected as the preferred reference test team.
5. A test report management device, characterized in that: include: A configuration information extraction module, used to extract test report configuration information from a preset test report configuration information set; wherein the process of determining the test report configuration information includes: obtaining a test report configuration mode selection instruction; extracting a mode selection identification bit in the test report configuration mode selection instruction; if the mode selection identification bit is the same as a preset first value, obtaining a test report configuration instruction, the test report configuration instruction is used to indicate a new creation, deletion or update operation on the test report configuration information; extracting identity identification information in the test report configuration instruction, and searching a target sub-library corresponding to the identity identification information in a preset database; performing a new creation, deletion or update operation on the test report configuration information in the target sub-library according to the test report configuration instruction; if the mode selection identification bit is the same as a preset second value , then obtain the team information of the target test team in each preset evaluation dimension, the target test team is the test team corresponding to the identity information in the test report configuration mode selection instruction; construct the feature vector of the target test team according to the team information of the target test team in each preset evaluation dimension; input the feature vector of the target test team into a pre-trained neural network model for processing, and obtain the category of the target test team output by the neural network model; select a test team from each alternative reference test team as the preferred reference test team, and determine the test report configuration information corresponding to the preferred reference test team as the test report configuration information corresponding to the target test team, the alternative reference test team is a test team with the same category as the target test team; A generation configuration information extraction module is used to extract test report generation configuration information from the test report configuration information, and generate a test report according to the test report generation configuration information; The sending configuration information extraction module is used to extract the test report sending configuration information from the test report configuration information, and send the test report according to the test report sending configuration information.
6. A computer-readable storage medium storing computer-readable instructions, characterized in that: When the computer-readable instructions are executed by a processor, the steps of the test report management method according to any one of claims 1 to 4 are implemented.
7. A terminal device, comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, characterized in that: When the processor executes the computer-readable instructions, the steps of the test report management method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Test report generation method and apparatus
CN106095670A
Generation method and device for application program evaluation report, and evaluation report
CN108228441A
A mobile user application preference identification method based on a deep neural network
CN109840550A
Personalized recommendation method and system based on interactive data clustering
CN110162706A
Internet of Things-oriented household appliance test report generation and interaction method and device
CN111241804A
