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

Method and device for automatically generating test cases

A technology for generating test cases and test cases, which is applied in software testing/debugging, error detection/correction, instruments, etc., and can solve problems such as low test case writing efficiency, inability to meet test business needs, and high maintenance costs

Pending Publication Date: 2020-06-19
SUNING CLOUD COMPUTING CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The requirements document written by product personnel is an important reference for testers. Testers will manually write corresponding test cases according to the requirements proposed in the requirements document. For basic requirements that include boundary values, testers will do a lot of repetitive writing work when writing , which consumes a lot of time and energy, resulting in low test case writing efficiency and high maintenance costs, which cannot meet the current high-speed development of test business needs

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
  • Method and device for automatically generating test cases
  • Method and device for automatically generating test cases

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] see figure 1 and figure 2 , the present embodiment provides a method for automatically generating test cases, including:

[0040] Write a requirement document, which includes the boundary value of the test case; identify the content of the boundary value of the test case in the requirement document and save it as a key-value pair, including at least one test function name and the corresponding boundary value; read the key-value pair, Each of the boundary values ​​is extended to generate an extended value group corresponding to each boundary value; multiple test cases are generated based on each test function name and the corresponding boundary value and extended value group.

[0041] In the method for automatically generating test cases provided in this embodiment, for a requirement document containing boundary values, the product personnel need to add the test case boundary value at the specified position of the requirement document when writing, and the tester can o...

Embodiment 2

[0065] This embodiment provides a device for automatically generating test cases, including:

[0066] a document writing unit, configured to write a requirement document, the requirement document includes test case boundary values;

[0067] The document identification unit is used to identify the content of the boundary value of the test case in the requirement document and save it in a key-value pair, the content includes at least one test function name and the corresponding boundary value;

[0068] A boundary extension unit, configured to read the key-value pair, and perform boundary extension on each boundary value therein to generate an extended value group corresponding to each boundary value;

[0069] The use case generation unit generates a plurality of test cases based on each of the test function names and the corresponding boundary value and the extended value group.

[0070] Compared with the prior art, the beneficial effect of the device for automatically generati...

Embodiment 3

[0072] This embodiment provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is run by a processor, the steps of the above method for automatically generating test cases are executed.

[0073] Compared with the prior art, the beneficial effect of the computer-readable storage medium provided by this embodiment is the same as the beneficial effect of the method for automatically generating test cases provided by the above technical solution, which will not be repeated here.

[0074] Those of ordinary skill in the art can understand that all or part of the steps in the above-mentioned inventive method can be completed by instructing related hardware through a program. The above-mentioned program can be stored in a computer-readable storage medium. When the program is executed, it includes: For each step of the method in the foregoing embodiments, the foregoing storage medium may be: ROM / RAM, ma...

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 method and a device for automatically generating test cases, relates to the technical field of automatic testing, and can automatically expand and generate a plurality of test cases for test requirements containing boundary values. The method comprises the following steps: compiling a demand document, wherein the demand document comprises a test case boundary value; identifying the content of the boundary value of the test case in the demand document and storing the content in a key value pair mode, wherein the content comprises at least one test function name and a corresponding boundary value; reading a key value pair, and generating an extended value group corresponding to each boundary value after boundary extension is performed on each boundary value in the key value pair; and generating a plurality of test cases based on each test function name and the corresponding boundary value and extension value group. The system applies the method provided by the scheme.

Description

technical field [0001] The invention relates to the technical field of automated testing, in particular to a method and device for automatically generating test cases. Background technique [0002] With the rapid development of the mobile Internet, terminal devices such as mobile phones and computers have become a necessity for people's daily work and life. Many companies have developed a large number of applications to meet everyone's various needs, so more and more testers are devoted to the testing of applications. [0003] The requirements document written by product personnel is an important reference for testers. Testers will manually write corresponding test cases according to the requirements proposed in the requirements document. For basic requirements that include boundary values, testers will do a lot of repetitive writing work when writing , It consumes a lot of time and energy, resulting in low test case writing efficiency and high maintenance costs, which cann...

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 SUNING CLOUD 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