Method for automatically generating testing cases

A test case and automatic generation technology, applied in the direction of software testing/debugging, to overcome the low writing efficiency, improve the generation efficiency and quality, and overcome the difficulty of guaranteeing the quality

Inactive Publication Date: 2014-10-29
GUANGDONG POWER GRID CO LTD INFORMATION CENT
View PDF4 Cites 44 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The current test case design skills require a high threshold, requiring professional designers with high technical level and rich work experience to design test cases that meet the requirements and meet the test coverage. Therefore, the quality of test cases is of great importance to people. The dependencies are very high, and the quality of test cases varies depending on who writes them
After long-term practice, it has been p

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 for automatically generating testing cases
  • Method for automatically generating testing cases
  • Method for automatically generating testing cases

Examples

Experimental program
Comparison scheme
Effect test

test Embodiment 1

[0040] see figure 2 , is a data architecture diagram of the test case management platform provided by the present invention. Specifically, it is necessary to first set up a test case template library 201 for generating a template of a test case; preferably, the test case management platform also includes a test data generation tool 202; Define and modify, and enter, modify or delete test data according to the user's operation instructions, so the test data can be automatically generated according to the user's preset rules; in addition, the test case generation rule module 203 needs to be set in advance, that is, the user needs to according to the test situation According to the needs, adopt the corresponding use case design method, such as the equivalence class division method. After completing the preparation of the above three parts, summarizing the functions of the three can automatically generate test cases in batches, such as figure 2 In test case 1, test case 2, ......

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 for automatically generating testing cases. The method includes the steps of building a testing case management platform to control generation of the testing cases, wherein the testing case management platform comprises a control layer, a service logical layer and a data accessing layer; obtaining an operation instruction input by a user; determining testing parameters and data types according to the operation instruction of the user; building testing data on the testing case management platform according to the testing parameters and the data types; calling case templates preset in a testing case template base through the data accessing layer, and automatically rendering the testing data with a case design method according to the case templates to generate the testing cases. The method for automatically generating the testing cases has the advantages that the automation degree is high, and the testing cases are comprehensive, normative, accurate and reasonable; the generating efficiency and the quality of the testing cases are greatly improved.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a method for automatically generating test cases. Background technique [0002] my country's smart grid has entered the stage of comprehensive construction, and infrastructure substations are constructed according to the standards of smart substations. With the promotion of smart substations nationwide, more and more attention has been paid to how to test the protection logic of digital protection devices more efficiently and accurately. As the software or system under test becomes more and more complex, in order to ensure the quality of the test, it is usually necessary to design and write a large number of test cases. The writing of test cases occupies a large proportion of the entire testing workload, which determines the testing efficiency and quality of the entire system. [0003] The current test case design skills require a high threshold, requiring professional...

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
Inventor 魏理豪钱扬梁哲恒龙震岳张金波
Owner GUANGDONG POWER GRID CO LTD INFORMATION CENT
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products