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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com