Search

CN-122019393-A - Case design method based on agility test

CN122019393ACN 122019393 ACN122019393 ACN 122019393ACN-122019393-A

Abstract

The method comprises the steps of dividing a system to be tested into different functional modules, determining weights of the functional modules, designing basic test cases for the functional modules, automatically executing the test cases, recording the defect number of the functional modules and the test case number, calculating defect density and risk index of the functional modules, supplementing the test cases for the functional modules with the risk index higher than a threshold value, and performing iterative optimization. The embodiment uses a data analysis technology to identify a system key test module, focuses test resources on the key test of the key module, and supplements test cases in a targeted manner by analyzing historical case execution conditions and defect data to construct a dynamic test case set, thereby effectively solving the contradiction between quality and efficiency in agile test. On the premise of ensuring the defect detection rate, the concentrated test resources are used for carrying out the key test on the key module, so that the test resources are redistributed, and the test efficiency and the defect detection capability are obviously improved.

Inventors

  • SHI HUAN
  • ZHU LINGFANG
  • WANG YAJUAN
  • LIANG YIXUAN

Assignees

  • 电信科学技术第十研究所有限公司

Dates

Publication Date
20260512
Application Date
20260303

Claims (9)

  1. 1. A use case design method based on agility test is characterized by comprising the following steps: s1, dividing a system to be tested into different functional modules, and determining the weight of each functional module according to the use frequency, the code multiplexing degree, the logic complexity and the research and development coding capacity of a user; S2, designing basic test cases for all the functional modules; S3, automatically executing test cases, and recording the defect number of each functional module and the test case number; S4, calculating defect density and risk index of each functional module according to the weight, defect number and test case number of each functional module; S5, supplementing test cases for the functional modules with risk indexes higher than the threshold value; s6, iteratively optimizing the steps S3-S5 until the risk indexes of all the functional modules are smaller than the threshold value.
  2. 2. The agile test-based use case design method according to claim 1, wherein in S1, when the test object is a functional module, each functional module is divided into a plurality of sub-functional units.
  3. 3. The agile test-based use case design method according to claim 1, wherein in S1, weights of the functional modules are The expression is as follows: Wherein, the For the frequency of use by the user, In order to be of a logical complexity, In order to achieve a degree of code multiplexing, To develop coding capabilities.
  4. 4. The agile test-based case design method according to claim 1, wherein in S2, an equivalence class division, a boundary value, and a scene method are used to design a base test case for each functional module.
  5. 5. The agile test-based case design method of claim 1, wherein in S3, the process of executing the test case comprises automatically executing the basic case set for a first round, and executing only the defect-related case, the high-priority case of the functional module with the defect and the supplementary test case for a subsequent round.
  6. 6. The agile test-based use case design method according to claim 1, wherein in S4, each module risk index The expression is as follows: Wherein, the In order to achieve a defect density, As the mean value of the density of the defects, Is the standard deviation of the two-dimensional image, Is the weight.
  7. 7. The agile test-based case design method of claim 1, wherein in S5, at least one of a fuzzy test method, a permeation test method, a misguess method, and an heuristics test method is used to supplement the test case.
  8. 8. The agile test-based use case design method according to claim 1, wherein the threshold value of the mth round execution is 。
  9. 9. The agile test-based case design method of claim 1, wherein the number of test cases to be supplemented is the same as the number of test cases to be supplemented The expression is as follows: Wherein, the For the number of defects, As the mean value of the density of the defects, The number of test cases is the basis.

Description

Case design method based on agility test Technical Field The invention relates to the technical field of computer software testing, in particular to a use case design method based on agile testing. Background Under the background of rapid iteration of the internet technology, the software development industry is facing increasingly severe competitive pressure, and higher requirements are put on the product value delivery speed and the system iteration efficiency. As a key link in the agile development system, agile testing is needed to break through the limitation of the traditional testing mode under the dual goals of ensuring product quality and shortening delivery cycle. The problems of quality risk caused by time compression, unbalanced test resource allocation, test coverage gap caused by demand change, systematic risk caused by defect propagation and the like commonly exist in the current test practice. Especially, in the design level of test cases, due to the lack of scientific priority evaluation standards, the phenomenon that the test depth is not matched with the defect detection rate often occurs, namely, on one hand, the test investment of a key service module is insufficient, and on the other hand, a large amount of test resources are consumed in an edge scene, so that a pareto trap with test efficiency is formed. Accordingly, there is a need to improve one or more problems in the related art as described above. It is noted that this section is intended to provide a background or context for the technical solutions of the present disclosure as set forth in the claims. The description herein is not admitted to be prior art by inclusion in this section. Disclosure of Invention The present invention is directed to a case design method based on agile testing that, at least to some extent, overcomes one or more of the problems due to the limitations and disadvantages of the related art. The invention provides a use case design method based on agility test, comprising the following steps: s1, dividing a system to be tested into different functional modules, and determining the weight of each functional module according to the use frequency, the code multiplexing degree, the logic complexity and the research and development coding capacity of a user; S2, designing basic test cases for all the functional modules; S3, automatically executing test cases, and recording the defect number of each functional module and the test case number; S4, calculating defect density and risk index of each functional module according to the weight, defect number and test case number of each functional module; S5, supplementing test cases for the functional modules with risk indexes higher than the threshold value; s6, iteratively optimizing the steps S3-S5 until the risk indexes of all the functional modules are smaller than the threshold value. In the present invention, in S1, when the test object is a functional module, each functional module is divided into a plurality of sub-functional units. In the invention, in S1, the weight of each functional moduleThe expression is as follows: Wherein, the For the frequency of use by the user,In order to be of a logical complexity,In order to achieve a degree of code multiplexing,To develop coding capabilities. In the invention, in S2, an equivalence class division, a boundary value and a scene method are used for designing basic test cases for each functional module. In the invention, in S3, the process of executing the test cases comprises the steps of automatically executing a basic case set in the first round, executing only the defect related case, the high-priority case of the defective functional module in the subsequent round and supplementing the test case. In the invention, in S4, each module risk indexThe expression is as follows: Wherein, the In order to achieve a defect density,As the mean value of the density of the defects,Is the standard deviation of the two-dimensional image,Is the weight. In the invention, in S5, at least one supplementary test case of a fuzzy test method, a permeation test method, an error guess method and an exploratory test method is used. In the invention, the threshold value of the m-th round execution is。 In the invention, the supplementary test case is a strip number typeThe expression is as follows: Wherein, the For the number of defects,As the mean value of the density of the defects,The number of test cases is the basis. The technical scheme provided by the invention can comprise the following beneficial effects: According to the case design method based on agile test, a key test module of a system is identified by using a data analysis technology, and test resources are focused on the key test of the key module; in the implementation level, the test cases are purposefully supplemented by analyzing the execution conditions and defect data of the historical cases, and the dynamic test case set is constructed, so that the contradicti