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

Generation method and device for software test case

A test case generation and test case technology, which is applied in the computer field, can solve the problems of not fully considering different functional connections and incomplete coverage of function points, so as to improve test efficiency, fast and simple method, and ensure test quality.

Active Publication Date: 2018-08-17
GUANGDONG EFLYCLOUD COMPUTING CO LTD
View PDF3 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, there are generally two methods of software testing. The first is to write test cases according to functional requirements and then execute the test. The second is to write test cases according to business flow and usage scenarios and then execute the test. Compared with the two, the first method The coverage of each function point is relatively comprehensive, but the connection between different functions is not fully considered. The second scheme considers the connection between different functions but the coverage of function points is not comprehensive.

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
  • Generation method and device for software test case
  • Generation method and device for software test case
  • Generation method and device for software test case

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] Reference figure 1 , A method for generating software test cases, including the following steps:

[0037] Generate test cases corresponding to each functional requirement point according to the software requirement specification, and put these test cases into the basic use case library;

[0038] Generate test case data according to the test cases in the basic use case library;

[0039] According to the usage scenario and business flow, obtain the combined conditions that each function demand point is triggered;

[0040] Delete the repeated combinations in the combination conditions, combine and call the test case data according to the remaining combination conditions, and obtain all the combined test cases;

[0041] Extract the reusable test cases from the combined test cases and put them into the basic use case library as shared use cases.

[0042] Specifically, in this embodiment, the corresponding test case can be directly executed according to the functional requirements of th...

Embodiment 2

[0053] Reference image 3 , A software test case generation device, including:

[0054] The test case generation module is used to generate test cases corresponding to each functional requirement point according to the software requirement specification, and put these test cases into the basic use case library;

[0055] The test case data generation module is used to generate test case data according to the test cases in the basic use case library;

[0056] The combination condition obtaining module is used to obtain the combination condition triggered by each functional demand point according to the usage scenario and business flow;

[0057] The combination call module is used to delete the repeated combinations in the combination conditions, and perform combination calls on the test case data according to the remaining combination conditions to obtain all the combination test cases;

[0058] The shared use case extraction module is used to extract the reusable test cases in the combi...

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 discloses a generation method and device for a software test case. The method comprises the following steps that: according to a software requirement specification, generating test casescorresponding to each functional requirement point, and putting the test cases into a basic case library; according to the test cases in the basic case library, generating test case data; according to a use scene and a business flow, independently obtaining a combination condition for triggering each functional requirement point; deleting repeated combinations in the combination condition, carrying out combined calling on the test case data according to residual combination conditions, and obtaining all combined test cases; and extracting the test cases which can be repeatedly used in the combined test case, and putting the test cases in the basic case library as the shared case. The test case generation method is quick and simple, function points can be comprehensively covered when a test is executed, different use scenes and business flows are considered, and the method is favorable for improving test efficiency while software testing quality is guaranteed.

Description

Technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for generating software test cases. Background technique [0002] In software testing, there is often no problem when executing each functional test case, but executing these use cases under different business flows and usage scenarios will trigger defects. At present, there are generally two software testing methods. The first is to write test cases based on functional requirements and then execute the test. The second is to write test cases based on the business flow and usage scenarios and then execute the test; the two are in contrast, the first solution The coverage of each function point is more comprehensive, but the connection between different functions is not fully considered. The second scheme considers the connection between different functions but the function point coverage is not comprehensive. Summary of the invention [0003] In order to solve th...

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/3684
Inventor 江洁杨燕清郭俊杰谭钰荧
Owner GUANGDONG EFLYCLOUD COMPUTING CO LTD
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