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

Automatic generation method for software test case

An automatic generation and software testing technology, applied in software testing/debugging, etc., can solve problems such as poor scalability, monotony of testers, complexity, etc., and achieve the effect of improving versatility and simplifying workload

Inactive Publication Date: 2013-06-19
AEROSPACE INFORMATION
View PDF4 Cites 27 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The traditional test case writing process is mostly done manually. Due to the complexity of writing use case files and test codes, coupled with the large number of use cases and poor scalability, and the final use cases contain a lot of repeated data and are not easy to modify, the test process is time consuming. Time-consuming and labor-intensive, it may not necessarily achieve good results
[0003] For example, take the character test of the Chinese Character Internal Code Extension Specification (GBK) of the software text interface as an example. All GBK characters are about 20,000. If there are four fields in the test that require relevant test cases, according to the previous practice, It is undoubtedly a monotonous and tiring job for testers to write tens of thousands of documents manually before they can test all GBK characters

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
  • Automatic generation method for software test case
  • Automatic generation method for software test case
  • Automatic generation method for software test case

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] Several embodiments of the present invention will be listed below, together with the accompanying drawings, component symbols, etc., to describe in detail the composition and effects of the present invention.

[0015] The present invention provides an overall program framework for software testing, and testers only need to create and generate specification modules (that is, test functions) for testing software, and write parameter requirements in XML files according to testing requirements. Then according to the requirements of the written XML read-in test, create the required test cases.

[0016] See figure 1 , figure 1 It is a flow chart of the method for automatically generating software test cases in the present invention. The software test case automatic generation method of the present embodiment comprises the following steps:

[0017] S100 establishes multiple preset use case generation specification modules and combination algorithms;

[0018] S102 Input at ...

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

An automatic generation method for a software test case comprises the following steps: establishing multiple predetermined case generation specification modules and combinational algorithms; inputting at least one test parameter value according to test demands to create an extensible markup language (XML) file; reading in the XML file and selecting test parameters and corresponding combinational algorithms; establishing multiple valid parameter test cases and multiple invalid parameter test cases with the multiple predetermined case generation specification modules according to the test parameters which are read in; synthesizing the multiple parameter test cases into at least one actual test case according to the selected combinational algorithms; and outputting the actual test case as a receipt file. Therefore, testing personnel can finish output of a test case receipt automatically after creating the XML file according to the demands, workloads of the testing personnel are greatly reduced, and the universality of a test platform and the reliability of test results are improved.

Description

technical field [0001] The invention relates to computer software testing technology, in particular to a method for automatically generating software test cases. Background technique [0002] Software testing is a very important link in software engineering, especially in the testing of software interfaces, in order to ensure the stability of interfaces and the stability of the entire software program. The traditional test case writing process is mostly done manually. Due to the complexity of writing use case files and test codes, coupled with the large number of use cases and poor scalability, and the final use cases contain a lot of repeated data and are not easy to modify, the test process is time consuming. Time-consuming and labor-intensive, it may not necessarily achieve good results. [0003] For example, take the character test of the Chinese Character Internal Code Extension Specification (GBK) of the software text interface as an example. All GBK characters are ab...

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
Inventor 刘磊
Owner AEROSPACE INFORMATION
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