Method and device for determining test case, storage medium and electronic equipment

A technology of test cases and use cases, which is applied in software testing and computer fields, can solve problems such as unproposed solutions, and achieve the effect of solving low testing efficiency, reducing regression testing workload, and solving heavy testing workload

Pending Publication Date: 2022-05-31
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] For the above problems, no effective solution has been proposed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for determining test case, storage medium and electronic equipment
  • Method and device for determining test case, storage medium and electronic equipment
  • Method and device for determining test case, storage medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] The methods for determining test cases in the prior art are mainly divided into two categories: one is to establish a position relationship table of each row of executable statements in the source code and the associated unique identification information; Corresponding unique identification information, combined with the location relationship table to determine the relationship table between each test case and the corresponding executable statement in the source code; determine the test case corresponding to the updated part of the source code according to the reverse mapping of the relationship table . However, this method does not use deep learning and neural networks to predict whether the code is defective or not, and cannot effectively narrow the scope of associated use cases.

[0026] The other is to obtain the version codes of the iterated version and the pre-iterated version of the program to be tested; according to the difference between the version codes of th...

test Embodiment 1: change , test Embodiment 2: change , and test Embodiment 3

[0075] Optionally, traverse the regression test cases and corresponding call function sets in the above-mentioned collected knowledge base. If the same test cases exist in the above-mentioned call function set and the predicted defective function set, that is, the above-mentioned call function set and the predicted defective function If there is an intersection between the sets, record the use case identification of the above-mentioned same test case in the recommended use case set of predictive defect function. For example, the presentation form of the above-mentioned recommended use case set of predictive defect function can be but not limited to: The change function occurs, regression test case 2: the change function occurs this time, and the regression test case 3: the change function occurs this time....

[0076] Optionally, the keyword in the key-value pair of the above-mentioned predictive defect function recommended use case set is the predictive defect function, and th...

Embodiment 2

[0098] According to an embodiment of the present disclosure, a device embodiment for implementing the above method for determining a test case is also provided, Figure 7 is a schematic structural diagram of a device for determining a test case according to a second embodiment of the present disclosure, such as Figure 7As shown, the above-mentioned device for determining a test case includes: a first acquisition module 700, a second acquisition module 702, and a determination module 704, wherein:

[0099] The above-mentioned first acquisition module 700 is configured to acquire the current digitization index corresponding to the current code change information within a predetermined period of time, wherein the above-mentioned current digitization index is the digitization data of the code source file;

[0100] The above-mentioned second acquisition module 702 is configured to use the above-mentioned current digitization index to predict the code program defect occurring withi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and device for determining a test case, a storage medium and electronic equipment, and relates to the technical field of computers, in particular to the technical field of software testing. According to the specific implementation scheme, a current digital index corresponding to current code change information in a preset time period is obtained, and the current digital index is digital data of a code source file; predicting code program defects appearing in the preset time period by adopting the current digital index to obtain a prediction result; according to the prediction result and a preset corresponding relation, a regression test case set is determined, and the preset corresponding relation is a preset corresponding relation between the application program to be tested and a regression test case.

Description

technical field [0001] The present disclosure relates to the technical field of computers, in particular to the technical field of software testing, and in particular to a method, device, storage medium and electronic equipment for determining test cases. Background technique [0002] For a long time, regression testing has been an important link in the testing of rapidly iterative software. In most cases, changes to some software have a linkage impact on other functions. Usually, before the software is released, all the regression test cases are selected to test the software to ensure the product quality of the software, but the above method has a large amount of testing workload and low testing efficiency. [0003] For the above problems, no effective solution has been proposed yet. Contents of the invention [0004] The present disclosure provides a method, device, storage medium and electronic equipment for determining test cases. [0005] According to one aspect of ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36G06N3/08G06N20/00
CPCG06F11/3684G06N20/00G06N3/08
Inventor 黄磊陈美娜朱华亮
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products