A software regression test case screening method based on cloud computing

Through the cloud-based software regression test case screening method, using labeling and keyword filtering technology, the regression test case library is automatically constructed and screened, and the problem of inefficient regression testing of traditional software is solved, and the rapid positioning of complex systems is achieved. Accurate test range identification.

CN117472727BActive Publication Date: 2024-12-17SHANGHAI TIANHAO INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211397484.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-09
Publication Date
2024-12-17
Estimated Expiration
2042-11-09

AI Technical Summary

Technical Problem

When traditional software regression testing faces complex and diverse user needs, it is difficult to quickly and accurately locate the functional business scope, and it relies heavily on personnel familiarity, resulting in inefficiency and error-prone.

Method used

The cloud-based software regression test case screening method is adopted to automatically build and screen the regression test case library through the labeling of use cases and requirements, keyword filtering and deduplication, so as to reduce manpower dependence and improve testing efficiency.

Benefits of technology

It realizes rapid positioning of complex systems and accurate identification of regression testing scope, reduces human resources dependence, and improves the efficiency of software regression testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117472727B_ABST
    Figure CN117472727B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for screening software regression test cases based on cloud computing, which labels the cases and requirements in the cloud computing center, filters the cases according to the different importance of the requirements, and obtains a regression test case library. The present invention discloses a method for screening software regression test cases based on cloud computing, which inputs the project test cases into the cloud computing center system, screens the software regression test cases in the cloud computing center, and determines the regression test case library according to the importance of the requirements when the software version has a requirement change, reduces the dependence of the software version backtesting scope definition work on personnel, quickly locates the software version backtesting scope, solves the diversified and complex user requirements, performs regression testing on large and complex systems, quickly locates the test scope, reduces the dependence on human resources, and improves the efficiency of software regression testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software development, and in particular to a cloud computing-based software regression test case screening method with high software regression test efficiency. Background Art

[0002] Based on the popularity of the current agile model of software development, from the early days when user requirements were single and low in complexity, there were few problems or little impact on the main functions of the product after software development and debugging, to the current continuous acquisition of user requirements, embracing changes, the diversification and complexity of software systems, and the increasing number of functional requirements for high-complexity software implementations. The volume of software systems is getting larger and larger. After the traditional software requirements are changed, the scope of regression testing is heavily dependent on the personnel's familiarity with the system. For software testers, it is not only time-consuming and brain-consuming to fully cover the required functions of complex system software, but also prone to errors; and it is impossible to quickly and accurately locate the functional business scope that needs regression testing after the requirements are changed. Therefore, it is necessary to propose an improvement to overcome the defects of the existing technology. Summary of the invention

[0003] The purpose of the present invention is to solve the problems in the prior art and to provide a method for screening software regression test cases based on cloud computing with high software regression testing efficiency.

[0004] The technical scheme of the present invention is: a method for screening software regression test cases based on cloud computing, comprising the following steps: S1, labeling the test cases to obtain a labeled test case library K1: performing word segmentation recognition on the use case name, splitting the use case name into verb D1 and noun M1, taking the precondition T1 of the use case as a label, labeling the use case, and obtaining a test case library K1 with label markings; S2, labeling the requirements: splitting the requirements into verb D2 and noun M2, labeling the verb D2 and noun M2 of the requirements; S3, performing keyword filtering on the test case library K1 according to the labeled requirements verb D2 and noun M2, and obtaining a pre-test case library: performing keyword filtering on the test case library K1 according to the label of the noun M2 of the requirements; S4. Obtain the regression test case library G3 according to the importance of the requirement: when the importance of the requirement is general, the regression test case library G3 is the combination of filtering the pre-test case library Y1 with the verb D2 of the requirement as the keyword corresponding to the verb D1 of the use case and filtering the pre-test case library Y2 with the verb D2 of the requirement as the pre-condition T1 of the use case corresponding to the keyword; when the importance of the requirement is important, the regression test case library G3 is the combination of the pre-test case library Y1 and the pre-test case library Y2; S5. De-duplicate the regression test case library G3 to obtain the final regression test case library K3.

[0005] As a preferred technical solution, step S1 and step S2 can be performed simultaneously.

[0006] As a preferred technical solution, in the step S2, before labeling the required noun M2, the following steps are also included: filtering the required noun M2 by industry keywords, obtaining industry-related noun keywords M2, and labeling the industry-related noun keywords M2.

[0007] The present invention discloses a software regression test case screening method based on cloud computing, which inputs project test cases into a cloud computing center system, performs software regression test case screening in the cloud computing center, and determines a regression test case library according to the importance of the requirements when a software version requirement changes, thereby reducing the dependence of software version backtest scope definition work on personnel, quickly locating the software version backtest scope, solving the problem of diversified and complex user requirements, performing regression testing on large and complex systems, quickly locating the test scope, reducing the dependence on human resources, and improving software regression testing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 The present invention is a flowchart of a method for screening software regression test cases based on cloud computing. DETAILED DESCRIPTION

[0009] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0010] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two, but does not exclude the inclusion of at least one.

[0011] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0012] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0013] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.

[0014] like Figure 1 A method for screening software regression test cases based on cloud computing according to the present invention is shown, comprising the following steps:

[0015] S1. Label the use cases to obtain a labeled test case library K1: Perform word segmentation on the use case name, split the use case name into verb D1 and noun M1, use the precondition T1 of the use case as a label, label the use case, and obtain a test case library K1 with label markings;

[0016] S2. Label the requirements: Split the requirements into verbs D2 and nouns M2, and label the verbs D2 and nouns M2 of the requirements;

[0017] S3. Perform keyword filtering on the test case library K1 according to the labeled demand verb D2 and noun M2 to obtain a pre-test case library: perform keyword filtering on the test case library K1 according to the label of the demand noun M2 to obtain a pre-test case library Y1; perform keyword filtering on the test case library K1 according to the label of the demand verb D2 to obtain a pre-test case library Y2;

[0018] S4. Obtain the regression test case library G3 according to the importance of the requirements:

[0019] When the importance of the requirement is general, the regression test case library G3 is a combination of filtering the pre-test case library Y1 by using the verb D2 of the requirement as a keyword corresponding to the verb D1 of the use case and filtering the pre-test case library Y2 by using the verb D2 of the requirement as a keyword corresponding to the precondition T1 of the use case; that is, the regression test case library G3 = filtering the pre-test case library Y1 by using the verb D2 of the requirement as a keyword corresponding to the verb D1 of the use case + filtering the pre-test case library Y2 by using the verb D2 of the requirement as a keyword corresponding to the precondition T1 of the use case;

[0020] When the importance of the requirement is important, the regression test case library G3 is the collection of the pre-test case library Y1 and the pre-test case library Y2; that is, the regression test case library G3 = [pre-test case library Y1] + [pre-test case library Y2];

[0021] S5. De-duplicate the regression test case library G3 to obtain the final regression test case library K3.

[0022] Specifically, in step S1, the test case is first input into the cloud computing center system, and the word segmentation recognition of the case name is performed through the data processing system of the cloud computing center system. When there is a demand change, the demand is input into the cloud computing center system, and the cloud computing center system performs word segmentation recognition on the demand.

[0023] In practical applications, due to frequent changes in requirements, in order to improve efficiency, in a cloud computing-based software regression test case screening method of the present invention, steps S1 and S2 can be performed simultaneously.

[0024] In order to make the keywords of the requirements more accurate, improve the accuracy of the positioning range, and improve the efficiency of software regression testing, in step S2, before labeling the noun M2 of the requirements, the following steps are also included: filtering the noun M2 of the requirements by industry keywords, obtaining industry-related noun keywords M2, and labeling the industry-related noun keywords M2.

[0025] After step S4 is completed, there are some overlapping cases in the regression test case library G3, so it is necessary to filter the duplicate cases to obtain the final regression test case library K3.

[0026] The present invention discloses a software regression test case screening method based on cloud computing, which inputs project test cases into a cloud computing center system, performs software regression test case screening in the cloud computing center, and determines a regression test case library according to the importance of the requirements when a software version requirement changes, thereby reducing the dependence of software version backtest scope definition work on personnel, quickly locating the software version backtest scope, solving the problem of diversified and complex user requirements, performing regression testing on large and complex systems, quickly locating the test scope, reducing the dependence on human resources, and improving software regression testing efficiency.

[0027] The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of implementation of the present invention. That is, all equivalent changes and modifications made according to the content of the patent application scope of the present invention should belong to the technical scope of the present invention.

Claims

1. A method for screening software regression test cases based on cloud computing, characterized in that: The following steps are involved: S1. Label the use cases to obtain a labeled test case library K1: Perform word segmentation on the use case name, split the use case name into verb D1 and noun M1, use the precondition T1 of the use case as a label, label the use case, and obtain a test case library K1 with label markings; S2. Label the demand: Split the demand into verb D2 and noun M2, and label the verb D2 and noun M2 of the demand; S3. Perform keyword filtering on the test case library K1 according to the labeled demand verb D2 and noun M2 to obtain a pre-test case library: perform keyword filtering on the test case library K1 according to the label of the demand noun M2 to obtain a pre-test case library Y1; perform keyword filtering on the test case library K1 according to the label of the demand verb D2 to obtain a pre-test case library Y2; S4. Obtain the regression test case library G3 according to the importance of the requirements: When the importance of the requirement is average, the regression test case library G3 is a combination of the pre-test case library Y1 filtered by the verb D1 of the use case corresponding to the keyword using the verb D2 of the requirement as a keyword and the pre-test case library Y2 filtered by the pre-condition T1 of the use case corresponding to the keyword using the verb D2 of the requirement as a keyword; When the importance of the requirement is important, the regression test case library G3 is the collection of the pre-test case library Y1 and the pre-test case library Y2; S5. De-duplicate the regression test case library G3 to obtain the final regression test case library K3.

2. The method for screening software regression test cases based on cloud computing according to claim 1, characterized in that: The step S1 and the step S2 are performed synchronously.

3. The method for screening software regression test cases based on cloud computing according to claim 1, characterized in that: In the step S2, before labeling the required noun M2, the following steps are also included: filtering the required noun M2 by industry keywords, obtaining industry-related noun keywords, and labeling the industry-related noun keywords.