Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Test case determination method and device, electronic equipment and storage medium

A test case and determination method technology, applied in software testing/debugging, error detection/correction, electrical digital data processing, etc., can solve the problems of high manual screening cost, high execution cost, incomplete coverage, etc., and achieve easy display and storage , solve the effect of high labor cost and reduce selection error

Pending Publication Date: 2022-05-13
AGRICULTURAL BANK OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the first method needs to artificially decompose the test requirements, and then manually judge the relationship between the use cases and the decomposed demand points. There is a problem that the accuracy of the screened test cases is not enough, and the cost of manual screening is high.
Although the second and third methods consider both test code coverage and execution cost, the second and third methods still belong to the artificial selection of test cases, and there is no targeted testing for test requirements. analysis, it is impossible to give a reduction method that not only meets the test requirements but also guarantees complete coverage of test cases
As far as the existing selection strategies of test cases for regression testing are concerned, no matter which strategy is selected, it is an artificial choice when selecting test cases, and the selection based on human experience will inevitably make the scope of regression test cases decision-making. Bring errors, and when there is a lot of repetition or redundancy in the coverage of the selected test cases, the manpower and time costs of test case execution will be greatly increased, and there may be incomplete coverage or high execution costs

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
  • Test case determination method and device, electronic equipment and storage medium
  • Test case determination method and device, electronic equipment and storage medium
  • Test case determination method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] figure 1 It is a flowchart of a method for determining a test case provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of automatically and accurately selecting a regression test case. The method can be executed by a test case determination device, which can be controlled by software and / or hardware, and generally can be integrated in electronic equipment. The electronic device may be a terminal device or a server device or the like. The embodiment of the present invention does not limit the type of the electronic device executing the method for determining the test case. Correspondingly, such as figure 1 As shown, the method includes the following operations:

[0037] S110. Obtain test case associated data.

[0038]Wherein, the data associated with the test case may be data associated with the test case meeting the test requirement, and is used to determine the test case meeting the test requirement. Test case associat...

Embodiment 2

[0054] figure 2 It is a flowchart of a test case determination method provided by Embodiment 2 of the present invention. This embodiment is embodied on the basis of the above-mentioned embodiments. In this embodiment, an initial spanning tree model is generated based on historical test cases. And generate a specific optional implementation of the spanning tree model to be matched according to the data to be tested. Correspondingly, such as figure 2 As shown, the method includes the following operations:

[0055] S210. Obtain test case associated data.

[0056] In an optional embodiment of the present invention, obtaining test case associated data may include: obtaining historical execution data of historical test cases; determining execution time data and execution complexity data of historical test cases according to historical execution data; Data and execution complexity data determine use case weights.

[0057] Wherein, the historical execution data may be data refle...

Embodiment 3

[0101] Figure 10 is a schematic diagram of a test case determination device provided in Embodiment 3 of the present invention, such as Figure 10 As shown, the device includes: a data acquisition module 310, a tree model generation module 320, a first data determination module 330 and a second data determination module 340, wherein:

[0102] A data acquisition module 310, configured to acquire test case associated data; wherein, the test case associated data includes historical test cases, data to be tested, and use case weights;

[0103] Tree model generation module 320, for generating initial spanning tree model according to history test case, and generating to be matched spanning tree model according to data to be tested;

[0104] The first data determination module 330 is used to determine the intersection test case data of the initial spanning tree model and the spanning tree model to be matched;

[0105] The second data determining module 340 is configured to determin...

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 embodiment of the invention discloses a test case determination method and device, electronic equipment and a storage medium. The test case determination method comprises the following steps: acquiring test case associated data; wherein the test case associated data comprises historical test cases, to-be-tested data and case weights; generating an initial spanning tree model according to the historical test case, and generating a to-be-matched spanning tree model according to the to-be-tested data; determining intersection test case data of the initial spanning tree model and the spanning tree model to be matched; and determining a target test case according to the intersection test case data and the case weight matched with the intersection test case data. According to the technical scheme provided by the embodiment of the invention, the labor cost for selecting the test case can be saved, the selection error caused by manually selecting the test case is reduced, and the execution efficiency of the regression test is improved on the premise of ensuring the full coverage of the test case.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of regression testing, and in particular to a method, device, electronic equipment and storage medium for determining a test case. Background technique [0002] Software testing is born with software. Bill Hetzel pointed out in the book "The Complete Guide to Software Testing", "Testing is any activity aimed at evaluating a program or system attribute. Testing is a measure of software quality." 1983 The definition of software testing in the software engineering terminology proposed by IEEE in 1999 is: "the process of running or testing a software system by manual or automatic means, the purpose of which is to check whether it meets the specified requirements or to clarify the expected results and results. The difference between the actual results." The purpose of software testing is to verify whether the software system meets the requirements, and is integrated with the entire devel...

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
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3676
Inventor 赵莉王海林黄欣
Owner AGRICULTURAL BANK OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products