Software test case distance calculation method based on attraction degree

A technology of test cases and software testing, applied in software testing/debugging, computing, error detection/correction, etc., to achieve the effects of good formulation, easy quantification, and wide application range

Inactive Publication Date: 2020-01-14
NO 63921 UNIT OF PLA
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The existing test case distance calculation methods are only suitable for specific test types and algorithm implementations, and there is still a lack of test case distances with good versatility and adaptability that can guide different test types such as black-box testing and white-box testing. calculation method

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
  • Software test case distance calculation method based on attraction degree
  • Software test case distance calculation method based on attraction degree
  • Software test case distance calculation method based on attraction degree

Examples

Experimental program
Comparison scheme
Effect test

test Embodiment c

[0032] For any two test cases c i , c j , the test case distance from IDTC ij It can be formulated as:

[0033]

[0034] or

[0035]

[0036]

[0037] Among them, aspiration ij Attraction for the test case, aspiration ij =1-similarity ij ;similarity ij It is the test case similarity, which is any monotonic function with a value between 0 and 1, namely similarity ij ∈ [0, 1]; nIDTC ij is the normalized form of test case distance. IDTC is the abbreviation of Intimacy-based Distance betweenTest Cases, and nIDTC is the abbreviation of normalized Intimacy-based Distance between Test Cases.

test Embodiment ci

[0038] According to the definition, for test case c i , c j , the greater the test case similarity, the less attractive the test case is, and the test case distance from IDTC ij Larger: Conversely, the smaller the test case similarity, the greater the test case attraction, and the test case distance from IDTC ij smaller. When selecting or sorting test cases, the test case with the smallest distance is preferred.

[0039] The test case similarity is not unique, it can have a variety of mathematical function forms, as long as the function meets the following two conditions: one is that the value is between 0 and 1; the other is a monotone function. Due to the non-uniqueness of similarity, aspiration and test cases are not unique from IDTC, but there is obviously: similarity ij ∈ [0, 1], aspiration ij∈[0,1].IDTC ij ∈[0,∞), nIDTC ij ∈[0,1).

[0040] A set of typical expressions of test case distance IDTC, test case aspiration and test case similarity are given below.

[0...

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 software test case distance calculation method based on attraction degree, and belongs to the technical field of software testing. The method comprises the following steps: S1, defining the similarity of test cases according to test contents covered by the test cases; S2, defining the attraction degree between the test cases according to the similarity of the test cases; and S3, calculating the distance between the test cases based on the attraction degree between the test cases. The method is not only suitable for black box testing, but also suitable for white box testing, wide in application range, good in universality, simple and convenient to operate and easy to use, and result quantification is easy to compare.

Description

technical field [0001] The invention belongs to the technical field of software testing, and relates to a method for calculating distances of software testing cases based on attractiveness. Background technique [0002] Software testing is a key link and an important means to ensure software quality. In software testing, especially enhanced software testing or regression testing, it is often necessary to maintain existing test case sets. [0003] Test case selection and prioritization is an important content of test case set maintenance, which has a great influence on the effect and efficiency of software testing. Test case selection refers to the selection of test cases related to software changes from the existing test case set to complete the test of the software after the change; test case prioritization refers to when the test schedule, cost and other test budgets are insufficient To execute all test cases, or more generally, when you want to execute the test cases wi...

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/36
CPCG06F11/3684G06F11/3688
Inventor 张卫祥窦朝晖刘文红董锐张慧颖于潇
Owner NO 63921 UNIT OF PLA
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