Movatterモバイル変換


[0]ホーム

URL:


CN113608998A - Method and device for automatically optimizing test activity, computer equipment and storage medium - Google Patents

Method and device for automatically optimizing test activity, computer equipment and storage medium
Download PDF

Info

Publication number
CN113608998A
CN113608998ACN202110753355.8ACN202110753355ACN113608998ACN 113608998 ACN113608998 ACN 113608998ACN 202110753355 ACN202110753355 ACN 202110753355ACN 113608998 ACN113608998 ACN 113608998A
Authority
CN
China
Prior art keywords
defect
test case
target
question
new
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110753355.8A
Other languages
Chinese (zh)
Other versions
CN113608998B (en
Inventor
霍丹丹
韩晓冬
廉丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Security Technologies Co LtdfiledCriticalNew H3C Security Technologies Co Ltd
Priority to CN202110753355.8ApriorityCriticalpatent/CN113608998B/en
Publication of CN113608998ApublicationCriticalpatent/CN113608998A/en
Application grantedgrantedCritical
Publication of CN113608998BpublicationCriticalpatent/CN113608998B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种测试活动自动优化的方法、装置、计算机设备及存储介质,其中方法可包括如下步骤。读取目标测试用例的编号,目标测试用例的执行结果为失败;以编号作为搜索条件,执行从缺陷库中搜索与目标测试用例相匹配的缺陷问题单的命令;根据未查找到相匹配的缺陷问题单,基于要素映射关系将目标测试用例转换为新的缺陷问题单,将新的缺陷问题单的单号存储于目标测试用例的执行结果中;或根据查找到相匹配的缺陷问题单,将缺陷问题单的单号存储于目标测试用例的执行结果中。本发明避免了对不同测试阶段下重复性工作,提高软件测试工作效率,并提高测试用例输出的及时性和缺陷问题单生成的及时性,极大地节省了测试成本和人力投入。

Figure 202110753355

The invention discloses a method, device, computer equipment and storage medium for automatic optimization of testing activities, wherein the method may include the following steps. Read the number of the target test case, the execution result of the target test case is failure; use the number as the search condition, execute the command to search for the defect ticket matching the target test case from the defect library; according to no matching defect found Problem ticket, convert the target test case into a new defect ticket based on the element mapping relationship, and store the ticket number of the new defect ticket in the execution result of the target test case; The track number of the defect ticket is stored in the execution result of the target test case. The invention avoids repetitive work in different test stages, improves the work efficiency of software testing, improves the timeliness of test case output and the timeliness of defect problem list generation, and greatly saves testing cost and manpower input.

Figure 202110753355

Description

Method and device for automatically optimizing test activity, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for automatically optimizing a test activity.
Background
Currently, the test case library and the defect library are common tools for software testing. The software engineering verification model (i.e. V model) is taken as an example for explanation: the test case library is used in the test design stage before encoding is completed, and the defect library is used in the test execution stage after encoding is completed. The test design stage mainly comprises user requirements, requirement analysis and system, summary design and detailed design, and the test execution stage mainly comprises unit test, integration test, system test and acceptance test. It can be seen that the use of the conventional test case library is separated from the use of the defect library, which causes the steps and details of different test stages to be executed separately, and often performs repetitive work, resulting in problems of low software test efficiency, high cost, and the like.
Disclosure of Invention
In order to solve the problems of low efficiency, high cost and the like of the conventional software testing technical scheme, the invention can provide a method, a device, computer equipment and a storage medium for automatically optimizing testing activities, thereby achieving a plurality of technical purposes of improving the software testing efficiency, reducing or even avoiding repetitive labor and the like.
To achieve the above technical objects, the present invention provides a method for automatically optimizing a test activity, which may include, but is not limited to, one or more of the following steps.
And reading the number of the target test case, wherein the execution result of the target test case is failure.
And executing a command for searching a defect question list matched with the target test case from a defect library by taking the number as a search condition.
And converting the target test case into a new defect question sheet based on the element mapping relation according to the defect question sheet which is not matched with the target test case, and storing the sheet number of the new defect question sheet in the execution result of the target test case.
Or storing the single number of the defect question list in the execution result of the target test case according to the matched defect question list.
Further, the converting the target test case into a new defect question sheet based on the element mapping relationship includes:
and acquiring first element information contained in the target test case.
And correspondingly converting the first element information into second element information.
And writing the second element information into a preset blank question list to form a new defect question list.
Further, the converting the target test case into a new defect question list further comprises:
and writing the additional element information into the preset blank question list to form a new defect question list.
Further, before reading the number of the target test case, the method further includes:
and reading the execution log information formed after the execution of the plurality of test cases.
And analyzing the execution log information, and taking at least one test case with a failed execution result as a target test case according to an analysis result.
To achieve the above technical objects, the present invention can also provide a method for automatically optimizing a test activity, which may include, but is not limited to, one or more of the following steps.
The sheet number of the target defect question sheet is read.
And executing a command for searching the test case matched with the target defect question sheet from a case library by taking the single number as a search condition.
And converting the target defect question list into a new test case based on the element mapping relation according to the test case which is not matched with the target defect question list, and storing the serial number of the new test case in the target defect question list.
Or storing the serial number of the test case in the target defect question list according to the searched matched test case.
Further, the converting the target defect question sheet into a new test case based on the element mapping relationship includes:
and acquiring second element information contained in the target defect question list.
And correspondingly converting the second element information into first element information.
And writing the first element information into a preset blank case to form a new test case.
Further, the converting the target defect question sheet into a new test case based on the element mapping relationship includes:
and acquiring second element information contained in the target defect question list.
And modifying the first element information contained in the test case obtained by screening according to the second element information.
And taking the test case with the modified first factor information as a new test case.
Further, the converting the target defect question sheet into a new test case includes:
and acquiring the reproduction probability value of the target defect question list.
And converting the target defect question sheet into a new test case according to the probability value greater than or equal to a preset probability value.
To achieve the above technical objects, the present invention can also provide an apparatus for automatically optimizing test activities, which may include, but is not limited to, a number reading module, a defect searching module, an intelligent mapping module, and a single number storage module.
And the number reading module is used for reading the number of the target test case. And the execution result of the target test case is failure.
And the defect searching module is used for executing a command of searching a defect question list matched with the target test case from a defect library by taking the number as a searching condition.
And the intelligent mapping module is used for converting the target test case into a new defect question sheet based on the element mapping relation according to the defect question sheet which is not searched and matched.
And the single number storage module is used for storing the single number of the new defect question list in the execution result of the target test case according to the defect question list which is not matched with the defect question list. Or the single number of the defect question list is stored in the execution result of the target test case according to the matched defect question list.
To achieve the above technical objects, the present invention can also provide an apparatus for automatically optimizing test activities, which may include, but is not limited to, a single number reading module, a use case searching module, an intelligent mapping module, and a number storage module.
And the single number reading module is used for reading the single number of the target defect question list.
And the case searching module is used for executing a command for searching the test case matched with the target defect question sheet from a case library by taking the single number as a searching condition.
And the intelligent mapping module is used for converting the target defect question sheet into a new test case based on the element mapping relation according to the test case which is not searched and matched.
The serial number storage module is used for storing the serial number of the new test case in the target defect question sheet according to the test case which is not matched with the test case; or the serial number of the test case is stored in the target defect question sheet according to the searched matched test case.
To achieve the above technical object, the present invention may further provide a computer device, which includes a memory and a processor, wherein the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the method for automatically optimizing test activities according to any embodiment of the present invention.
To achieve the above technical object, the present invention can also provide a storage medium storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the steps of the method for automatically optimizing a test activity according to any one of the embodiments of the present invention.
The invention has the beneficial effects that: the invention can avoid the repetitive work of the same or similar problems under different test stages, for example, avoid the repeated input work of the tester to the two times of data of the associated test case and the defect question sheet, thereby improving the working efficiency of software test, improving the timeliness of the output of the test case and the generation of the defect question sheet, and greatly saving the manpower input and the test cost.
According to the invention, the software test defect library and the application library are effectively and intelligently integrated through the new defect question list rich defect library automatically generated by the test cases and the new test case rich application library automatically generated by the defect question list.
Drawings
FIG. 1 illustrates a flow diagram of a method for automatic optimization of test activities in some embodiments of the invention.
FIG. 2 is a flow chart illustrating the conversion of test cases into defect problem tickets in the method for automatically optimizing test activities according to one or more embodiments of the present invention.
FIG. 3 is a flow diagram illustrating a method for automated optimization of test activities in accordance with further embodiments of the invention.
FIG. 4 is a flow diagram illustrating a conversion of a defect question sheet into a test case in a method for automatically optimizing test activities according to one or more embodiments of the invention.
FIG. 5 illustrates a schematic block diagram of an apparatus for automated test activity optimization in some embodiments of the invention.
FIG. 6 is a schematic diagram of an apparatus for automatically optimizing test activities according to further embodiments of the present invention.
FIG. 7 is a schematic diagram illustrating the internal architecture of a computing device in accordance with one or more embodiments of the invention.
Detailed Description
The following describes and explains a method, an apparatus, a computer device and a storage medium for automatic optimization of test activities according to embodiments of the present invention in detail with reference to the drawings of the specification.
The test case (TestCase) is a file for describing a test task of a specific software product, and is used for embodying a test scheme, a method, a technology, a strategy and the like; the defect question list of the invention is a file which is formed after the defect is found during the test execution and is used for describing the content of the related defect, and the defect (Bug) question list of the invention is stored in a defect library. The invention aims to enrich the test case library and the defect library, improve the use efficiency of the test case library and the defect library and provide a plurality of technical schemes for automatically optimizing software test activities.
As shown in FIG. 1, and in conjunction with FIG. 2, one or more embodiments of the invention can provide a method for automatic optimization of test activities. Specifically, the method includes a process of converting the test case into a defect question list, and specifically may include, but is not limited to, one or more of the following steps.
First, the number of the target test case is read, and the execution result of the target test case in this embodiment is failure (fail). It is understood that the execution result of the test case includes both success (pass) and failure, and the flow of the present invention is triggered when the verification result is failure after the test task is issued.
Optionally, in some embodiments of the present invention, before reading the number of the target test case, the method further includes: reading the execution log information formed after the execution of the plurality of test cases, analyzing the current execution log information, and taking at least one test case with a failed execution result as a target test case according to an analysis result.
Next, a command to search for a defect question sheet matching the target test case from the defect library is executed with the number as a search condition (key). Specifically, when the test case fails to be executed, the number of the failed test case is used for searching the Bug single number related to the number in the defect library.
Finally, according to the matched defect question list which is not found, converting the target test case into a new defect question list based on the element mapping relation, and storing the single number of the new defect question list in the execution result of the target test case; or, according to the found matched defect question list (namely, finding the associated Bug list number), indicating that the test case still has an unsolved problem, namely, case test block (block), storing the list number of the matched defect question list in the execution result of the target test case, and at this time, not generating a new defect question list.
Specifically, the method for converting the target test case into the new defect question sheet based on the element mapping relationship in the embodiment of the invention comprises the following steps:
and acquiring first element information contained in the target test case. The first element information in this embodiment includes a case number, a test module, a title of the case, a priority of the case, a preset condition, a test input, a test step, and an expected result, that is, eight elements of the test case shown in fig. 2.
The first element information is correspondingly converted into the second element information, which may include, but is not limited to, a problem attribution module for converting the test module into a defect question list, a test step for converting the preset conditions and the test step into the defect question list, a priority of the use case being converted into a severity of the defect question list, an expected result being converted into a result influence of the defect question list, a title of the use case being converted into a brief description of the defect question list, a test input of the use case being converted into a trigger factor of the defect question list, and a number of the use case being converted into a single number of the defect question list (or a single number being determined by a separate generation method), but is not limited thereto. The second element information comprises a problem attribution module, a test step, severity, result influence, brief description, trigger factors, a single number and the like.
The conversion between the first element information and the second element information of the present embodiment is performed in at least one of the following ways. (1) Direct conversion: the content is directly mapped, for example, the case number can be directly converted into a single number of a defect question sheet, the test module is directly converted into a problem attribution module, and the like. (2) Regular matching: for example, the title of the test case can be converted into a brief description of a defect question list in a regular matching mode; (3) and (3) weighted conversion: such as converting test case priorities to severity of defect problem tickets (or effect or cause blockages), etc. It should be understood that, on the basis of the technical solution of the present invention, the filling of the small part of the detailed content can also be assisted manually.
And automatically writing the second element information into a preset blank question list to form a new defect question list. More specifically, converting the target test case into a new defect question sheet further comprises: and writing the additional element information into the preset blank question list on the basis of automatically writing the second element information into the preset blank question list to form a new defect question list. The additional element information in the present embodiment includes, but is not limited to, acquired version information, question whether or not reproducing information, trigger information, preliminary positioning information, and the like. The preset blank question list is a question list with a standard question list format but no specific content.
As shown in FIG. 3, and in conjunction with FIG. 4, one or more further embodiments of the present invention can provide a method for automatic optimization of test activities. Specifically, the method may include a process of converting the defect question sheet into a test case, specifically including, but not limited to, one or more of the following steps.
Firstly, the invention takes the defect question list newly submitted at present as the target defect question list and reads the list number of the target defect question list. The target defect question list sources in this embodiment include, but are not limited to, a test case execution process, a divergence test, a major question list synchronization process, and an online question processing process.
Secondly, a command for searching a test case matched with the target defect question list from a case library is executed by taking the single number as a search condition. In this embodiment, if the triggering condition of the process is that a new defect question list is generated, the list number of the defect question list is used as a basis for determining whether there is a corresponding test case.
Finally, according to the test cases which are not matched with each other and are not found, converting the target defect question list into a new test case based on the element mapping relation, and storing the number of the new test case in the target defect question list; or storing the serial number of the test case in the target defect question list according to the searched matched test case.
Optionally, converting the target defect question sheet into a new test case includes: and acquiring a reproduction probability value of the target defect question list, and converting the target defect question list into a new test case according to the reproduction probability value being greater than or equal to a preset probability value, wherein the preset probability value may be 63% for example, although not limited thereto. Specifically, in the embodiment, the target defect question sheet is converted into a new test case under the condition that the conditional probability occurs, and the probability corresponding to the occurrence of the conditional probability can be equal to the preset probability value; and converting the target defect question sheet into a new test case under the condition that the condition necessarily occurs, wherein the corresponding probability is larger than the preset probability value. And under the condition that the test case is difficult to reproduce or irregularly appears, the current Bug question list is not suitable for generating the test case, and the conversion process is cancelled. Wherein the corresponding probability which is difficult to reproduce and irregular is less than the preset probability value.
Optionally, some embodiments of the present invention convert the target defect question sheet into a new test case based on the element mapping relationship, including:
and acquiring second element information contained in the target defect question list. The second element information of the invention comprises a problem attribution module, a test step, severity, result influence, brief description, trigger factors, a single number and the like.
Searching the case library according to the second element information without corresponding results, correspondingly converting the second element information into the first element information, this step may include, but is not limited to, converting the problem attribution module of the defect question list into a test module, converting the test step of the defect question list into a preset condition and a test step, converting the severity of the defect question list into a priority of a use case, converting the result impact of the defect question list into an expected result, converting the brief description of the defect question list into a title of a use case, converting the trigger of the defect question list into a test input of a use case, converting the single number of the defect question list into a use case number (or determining a use case number by a separate generation method), although not limited thereto, the first element information may include a case number, a test module, a title of the case, a priority of the case, a preset condition, a test input, a test step, and an expected result.
Writing the first element information into a preset blank case to form a new test case, and storing the obtained new test case in a case library. The preset blank case refers to a test case which has a standard case format but has no specific content.
Optionally, in other embodiments of the present invention, converting the target defect question sheet into a new test case based on the element mapping relationship includes: acquiring second element information contained in the target defect question sheet, searching a corresponding result in the case library according to the second element information, screening out a proper test case, modifying first element information contained in the test case obtained through screening according to the second element information, and taking the test case with the modified first element information as a new test case. By the method, the data writing amount of the formed new test case can be reduced, and the content needing to be modified can be positioned according to the content matching. The second element information comprises a problem attribution module, a test step, severity, result influence, brief description, trigger factors and a single number, and the first element information comprises a case number, a test module, a title of a case, priority of the case, a preset condition, test input, a test step and an expected result.
It should be appreciated that embodiments of the present invention can be implemented in conjunction with use-case management tools and defect management tools. The use case management tools include HP ALM, Rational CQ, TestLink, ATQ, etc., and the defect management tools include Tracup, Bugtrags, Bugzilla, JIRA, etc.
As shown in fig. 5, the method for automatically optimizing a test activity is based on the same technical concept, and one or more embodiments of the present invention can provide an apparatus for automatically optimizing a test activity. The device comprises but is not limited to a number reading module, a defect searching module, an intelligent mapping module and a single number storage module.
The number reading module is used for reading the number of the target test case; the execution result of the target test case is failure.
The number reading module is specifically used for reading execution log information formed after a plurality of test cases are executed, analyzing the execution log information, and taking at least one test case with a failed execution result as a target test case according to an analysis result.
And the defect searching module is used for executing a command of searching a defect question list matched with the target test case from the defect library by taking the serial number as a searching condition.
And the intelligent mapping module is used for converting the target test case into a new defect question list based on the element mapping relation according to the matching defect question list which is not found. The intelligent mapping module is specifically used for acquiring first element information contained in the target test case, correspondingly converting the first element information into second element information, and writing the second element information into a preset blank question list to form a new defect question list. In addition, the intelligent mapping module can also be used for writing the additional element information into a preset blank question list so as to form a new defect question list. The intelligent mapping module in some embodiments of the present invention may have several working modes, that is, the conversion between the first element information and the second element information in this embodiment adopts at least one of the following modes. (1) Direct conversion: the content is directly mapped, for example, the case number can be directly converted into a single number of a defect question sheet, the test module is directly converted into a problem attribution module, and the like. (2) Regular matching: for example, the title of the test case can be converted into a brief description of a defect question list in a regular matching mode; (3) and (3) weighted conversion: such as converting test case priorities to severity of defect problem tickets (or effect or cause blockages), etc. It should be understood that, on the basis of the technical solution of the present invention, the filling of the small part of the detailed content can also be assisted manually.
The single number storage module is used for storing the single number of the new defect question list into the execution result of the target test case according to the matched defect question list which is not found; or the single number of the defect question list is stored in the execution result of the target test case according to the matched defect question list.
As shown in fig. 6, the method for automatically optimizing a test activity is based on the same technical concept, and one or more embodiments of the present invention can provide an apparatus for automatically optimizing a test activity. The device comprises but not limited to a single number reading module, a use case searching module, an intelligent mapping module and a number storage module.
The single number reading module is used for reading the single number of the target defect question list.
The case searching module is used for executing a command of searching a test case matched with the target defect question sheet from the case library by taking the single number as a searching condition.
And the intelligent mapping module is used for converting the target defect question sheet into a new test case based on the element mapping relation according to the test case which is not searched and matched.
Specifically, the intelligent mapping module in the embodiment of the present invention is configured to obtain a probability value of the target defect question list, and convert the target defect question list into a new test case according to the probability value of the target defect question list being greater than or equal to a preset probability value.
Optionally, the intelligent mapping module of the present invention may be specifically configured to obtain second element information included in the target defect question sheet, convert the second element information into first element information, and write the first element information into a preset blank case to form a new test case.
Optionally, the intelligent mapping module in another embodiment of the present invention is specifically configured to obtain second element information included in the target defect question sheet, modify, according to the second element information, first element information included in the test case obtained through the screening, and use the test case with the modified first element information as a new test case.
The serial number storage module is used for storing the serial number of the new test case in the target defect question list according to the test case which is not matched with the serial number storage module; or the serial number of the test case is stored in the target defect question list according to the searched matched test case.
As shown in fig. 7, based on the same technical concept as the method for automatically optimizing test activities in the present invention, one or more embodiments of the present invention can further provide a computer device, where the computer device includes a memory and a processor, the memory stores computer-readable instructions, and the computer-readable instructions, when executed by the processor, cause the processor to perform the steps of the method for automatically optimizing test activities in any embodiment of the present invention; the detailed steps of the automatic test activity optimization method are described in detail in this specification, and are not described herein again.
Based on the same technical concept as the method for automatically optimizing test activities in the present invention, one or more embodiments of the present invention can also provide a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the method for automatically optimizing test activities in any of the embodiments of the present invention; the detailed steps of the automatic test activity optimization method are described in detail in this specification, and are not described herein again.
In conclusion, the invention can reduce repeated work and improve work efficiency. And a supplementary test case is generated while the Bug is input into the defect library, so that the problem of repeated workload of twice input of the same information is avoided, and the efficiency of software test work is greatly improved. The method has the effect of better timeliness, the test cases can be generated simultaneously along with the Bug problem list, the speed of outputting the test cases is higher than that of outputting the test cases in a conventional mode, and the problem of test case omission is avoided. The invention can intelligently fuse the test case library and the defect library, furthest reduces the case supplement after the test omission of the pure human brain or manual tracking test design, and also avoids the problem that the data which does not pass through the same test point is repeatedly evaluated.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable storage medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable storage medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer cartridge (magnetic device), a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM-Only Memory, or flash Memory), an optical fiber device, and a portable Compact Disc Read-Only Memory (CDROM). Additionally, the computer-readable storage medium may even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic Gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic Gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "the present embodiment," "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and simplifications made in the spirit of the present invention are intended to be included in the scope of the present invention.

Claims (12)

1. A method for automated optimization of test activities, comprising:
reading the number of a target test case, wherein the execution result of the target test case is failure;
executing a command of searching a defect question list matched with the target test case from a defect library by taking the number as a search condition;
converting the target test case into a new defect question sheet based on the element mapping relation according to the defect question sheet which is not matched with the target test case, and storing the sheet number of the new defect question sheet in the execution result of the target test case;
or storing the single number of the defect question list in the execution result of the target test case according to the matched defect question list.
2. The method of claim 1, wherein the converting the target test case into a new defect issue sheet based on the element mapping comprises:
acquiring first element information contained in the target test case;
correspondingly converting the first element information into second element information;
and writing the second element information into a preset blank question list to form a new defect question list.
3. The method of claim 2, wherein converting the target test case into a new defect issue sheet further comprises:
and writing the additional element information into the preset blank question list to form a new defect question list.
4. The method of any of claims 1-3, wherein reading the number of the target test case further comprises:
reading execution log information formed after a plurality of test cases are executed;
and analyzing the execution log information, and taking at least one test case with a failed execution result as a target test case according to an analysis result.
5. A method for automated optimization of test activities, comprising:
reading the single number of the target defect question list;
executing a command for searching a test case matched with the target defect question sheet from a case library by taking the single number as a search condition;
converting the target defect question list into a new test case based on the element mapping relation according to the test case which is not matched with the target defect question list, and storing the serial number of the new test case in the target defect question list;
or storing the serial number of the test case in the target defect question list according to the searched matched test case.
6. The method of claim 5, wherein the converting the target bug problem ticket into a new test case based on element mapping comprises:
acquiring second element information contained in the target defect question list;
correspondingly converting the second element information into first element information;
and writing the first element information into a preset blank case to form a new test case.
7. The method of claim 5, wherein the converting the target bug problem ticket into a new test case based on element mapping comprises:
acquiring second element information contained in the target defect question list;
modifying the first element information contained in the test case obtained by screening according to the second element information;
and taking the test case with the modified first factor information as a new test case.
8. The method of any of claims 5 to 7, wherein the converting the target defect issue sheet into a new test case comprises:
acquiring a reproduction probability value of the target defect question list;
and converting the target defect question sheet into a new test case according to the probability value greater than or equal to a preset probability value.
9. An apparatus for automatic optimization of test activities, comprising:
the number reading module is used for reading the number of the target test case; the execution result of the target test case is failure;
the defect searching module is used for executing a command of searching a defect question list matched with the target test case from a defect library by taking the serial number as a searching condition;
the intelligent mapping module is used for converting the target test case into a new defect question sheet based on the element mapping relation according to the defect question sheet which is not searched and matched;
the single number storage module is used for storing the single number of the new defect question list into the execution result of the target test case according to the defect question list which is not matched with the defect question list; or the single number of the defect question list is stored in the execution result of the target test case according to the matched defect question list.
10. A device for automatically optimizing test activities is characterized in that,
the single number reading module is used for reading the single number of the target defect question list;
the case searching module is used for executing a command of searching a test case matched with the target defect question sheet from a case library by taking the single number as a searching condition;
the intelligent mapping module is used for converting the target defect question sheet into a new test case based on the element mapping relation according to the test case which is not matched with the target defect question sheet;
the serial number storage module is used for storing the serial number of the new test case in the target defect question sheet according to the test case which is not matched with the test case; or the serial number of the test case is stored in the target defect question sheet according to the searched matched test case.
11. A computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions which, when executed by the processor, cause the processor to perform the steps of the method of automatic optimization of test activity according to any one of claims 1 to 4 or 5 to 8.
12. A storage medium having computer-readable instructions stored thereon which, when executed by one or more processors, cause the one or more processors to perform the steps of the method for automatic optimization of test activity according to any one of claims 1 to 4 or 5 to 8.
CN202110753355.8A2021-07-022021-07-02 Method, device, computer equipment and storage medium for automatic optimization of test activitiesActiveCN113608998B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110753355.8ACN113608998B (en)2021-07-022021-07-02 Method, device, computer equipment and storage medium for automatic optimization of test activities

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110753355.8ACN113608998B (en)2021-07-022021-07-02 Method, device, computer equipment and storage medium for automatic optimization of test activities

Publications (2)

Publication NumberPublication Date
CN113608998Atrue CN113608998A (en)2021-11-05
CN113608998B CN113608998B (en)2025-02-25

Family

ID=78303946

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110753355.8AActiveCN113608998B (en)2021-07-022021-07-02 Method, device, computer equipment and storage medium for automatic optimization of test activities

Country Status (1)

CountryLink
CN (1)CN113608998B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6011830A (en)*1996-12-102000-01-04Telefonaktiebolaget Lm EricssonOperational test device and method of performing an operational test for a system under test
US20090144675A1 (en)*2007-11-302009-06-04Christian HaufeTransaction based verification of a system on chip on system level by translating transactions into machine code
US8151248B1 (en)*2007-10-312012-04-03Sprint Communications Company L.P.Method and system for software defect management
CN107547299A (en)*2017-06-012018-01-05新华三信息安全技术有限公司A kind of method of testing and system
CN107622014A (en)*2017-09-222018-01-23广州视源电子科技股份有限公司Test report generation method and device, readable storage medium and computer equipment
CN109446076A (en)*2018-10-152019-03-08广东省科技基础条件平台中心Software project testing method, system, storage medium and terminal device
CN110096444A (en)*2019-05-062019-08-06重庆天蓬网络有限公司A kind of management system, application method and equipment generating test case based on excel
CN110245088A (en)*2019-06-212019-09-17四川长虹电器股份有限公司 A Jenkins-based defect automatic verification system and verification method
CN111444101A (en)*2020-03-272020-07-24成都嗨学梅里教育科技有限公司Method and device for automatically creating product test defects
CN112035364A (en)*2020-09-012020-12-04中国银行股份有限公司Function test result evaluation method and device
CN112783767A (en)*2021-01-182021-05-11深圳市泛海检测认证有限公司Method, device, equipment and storage medium for realizing control of test case management
CN112905438A (en)*2019-12-032021-06-04迈普通信技术股份有限公司Automatic testing method and device
CN112988577A (en)*2021-03-082021-06-18中国地震局第二监测中心Rapid software evaluation execution method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6011830A (en)*1996-12-102000-01-04Telefonaktiebolaget Lm EricssonOperational test device and method of performing an operational test for a system under test
US8151248B1 (en)*2007-10-312012-04-03Sprint Communications Company L.P.Method and system for software defect management
US20090144675A1 (en)*2007-11-302009-06-04Christian HaufeTransaction based verification of a system on chip on system level by translating transactions into machine code
CN107547299A (en)*2017-06-012018-01-05新华三信息安全技术有限公司A kind of method of testing and system
CN107622014A (en)*2017-09-222018-01-23广州视源电子科技股份有限公司Test report generation method and device, readable storage medium and computer equipment
CN109446076A (en)*2018-10-152019-03-08广东省科技基础条件平台中心Software project testing method, system, storage medium and terminal device
CN110096444A (en)*2019-05-062019-08-06重庆天蓬网络有限公司A kind of management system, application method and equipment generating test case based on excel
CN110245088A (en)*2019-06-212019-09-17四川长虹电器股份有限公司 A Jenkins-based defect automatic verification system and verification method
CN112905438A (en)*2019-12-032021-06-04迈普通信技术股份有限公司Automatic testing method and device
CN111444101A (en)*2020-03-272020-07-24成都嗨学梅里教育科技有限公司Method and device for automatically creating product test defects
CN112035364A (en)*2020-09-012020-12-04中国银行股份有限公司Function test result evaluation method and device
CN112783767A (en)*2021-01-182021-05-11深圳市泛海检测认证有限公司Method, device, equipment and storage medium for realizing control of test case management
CN112988577A (en)*2021-03-082021-06-18中国地震局第二监测中心Rapid software evaluation execution method

Non-Patent Citations (8)

* Cited by examiner, † Cited by third party
Title
DAVID PATERSON ET AL.: "An Empirical Study on the Use of Defect Prediction for Test Case Prioritization", 《2019 12TH IEEE CONFERENCE ON SOFTWARE TESTING, VALIDATION AND VERIFICATION (ICST)》, 6 June 2019 (2019-06-06), pages 346 - 357*
KARL KÜBLER ET AL.: "Test case generation for production systems with model-implemented fault injection consideration", 《PROCEDIA CIRP》, vol. 79, no. 10, 28 February 2019 (2019-02-28), pages 1 - 22*
代国林;郭友宝;邓盼;王春鹏;: "基于Web的测试过程控制与管理平台", 《科技视界》, no. 07, 5 March 2020 (2020-03-05), pages 243 - 246*
刘伟等: "《软件质量保证与测试技术》", vol. 1, 31 August 2011, 哈尔滨工业大学出版社 , pages: 1 - 300*
刘杰;: "软件测试中的测试用例复用技术", 《考试周刊》, no. 56, 15 July 2011 (2011-07-15), pages 153 - 154*
杨娜;: "跨平台系统中测试用例复用技术研究", 《电子设计工程》, no. 19, 5 October 2016 (2016-10-05), pages 76 - 78*
范明;: "浅谈软件测试过程管理", 《信息与电脑(理论版)》, no. 08, 15 August 2010 (2010-08-15), pages 44*
葛建新;: "软件测试用例库建设与维护浅谈", 《硅谷》, no. 07, 8 April 2009 (2009-04-08), pages 53*

Also Published As

Publication numberPublication date
CN113608998B (en)2025-02-25

Similar Documents

PublicationPublication DateTitle
CN110442560B (en)Log replay method, device, server and storage medium
CN112328489B (en)Test case generation method and device, terminal equipment and storage medium
US20110307502A1 (en)Extensible event-driven log analysis framework
CN107943702B (en)Hardware compatibility testing method and device
CN112347122B (en)SQL workflow processing method, device, electronic equipment and storage medium
CN119576798B (en)Automatic method and system for ADAS simulation test
CN106598874A (en)Method and device for automatically testing software
CN116016270A (en) A switch test management method, device, electronic equipment and storage medium
CN111752967A (en)SQL-based data processing method and device, electronic equipment and storage medium
CN118535887B (en)Efficient fine tuning evaluation method and system for large language model
CN113608998A (en)Method and device for automatically optimizing test activity, computer equipment and storage medium
CN118502908A (en)Scheduling system and method for batch running task arrangement
CN118363799A (en)Method, device, equipment and medium for testing performance problem recurrence of solid state disk
CN113094122B (en) Data processing script execution method and device
CN110377601A (en)A kind of MapReduce calculating process optimization method based on B-tree data structure
CN111708572B (en) A method for automatic generation of control flow diagram based on Clang program structure
JP6714742B1 (en) Program generation system, computer program thereof, and recording medium
CN112597156B (en)Programming-free dynamic data storage and form drawing method and device
JP2021124777A (en)Question answer generating device, question answer system, question answer generating method, and question answer generating program
CN115952172B (en)Data matching method and device based on database temporary table
CN114924852B (en)Interrupt data competition model detection method based on univariate access sequence mode
CN115729557B (en)Script processing method and device
CN113704093B (en)Universal interlocking software test case generation method
CN115048288B (en) Interface testing method, device, computing equipment and computer storage medium
CN114357005B (en) Method, device, terminal and storage medium for generating scientific and technological innovation information

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp