Method, device and equipment for automatic generation of test cases and readable storage medium

A test case and automatic generation technology, applied in the software field, can solve the problems of high labor cost and time cost, low development efficiency, low test efficiency, etc., and achieve the effect of improving code development efficiency and improving writing effect

Inactive Publication Date: 2018-08-14
PING AN TECH (SHENZHEN) CO LTD
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of the present invention is to propose a method, device, device and computer-readable storage medium for automatically generating test cases, aiming to...

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, device and equipment for automatic generation of test cases and readable storage medium
  • Method, device and equipment for automatic generation of test cases and readable storage medium
  • Method, device and equipment for automatic generation of test cases and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0042] The main solution of the embodiment of the present invention is: first create a database structure table according to the received instruction, and obtain the information of the database structure table; through the corresponding relationship between the database structure table information and the sql statement, convert the structure table information Form sql test data for sql statements; extract preset fixed templates, add sql test data and database structure table information to the fixed templates, and generate corresponding test cases; test JAVA entity class codes according to generated test cases , through the above method, the test case can be generated according to the database structure table information, the sql test data and the fixed template, without the need for the user to manually write, thereby...

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 automatic generation of test cases. The method includes the steps of creating a database structural table according to a received instruction and then acquiring information of the database structural table; according corresponding relation between the information of the database structural table and sql (structured query language) statements, converting the information of the structural table into sql statements to form sq1 test data; extracting a preset fixed template, adding the sql test data and the information of the database structural table to the fixed template to generate corresponding test cases; carrying out JAVA entity-class code tests according to the generated test cases. The invention further discloses a device and equipment for automaticgeneration of test cases and a readable storage medium. With the method, device and equipment and the readable storage medium, developers' work of writing codes can be simplified, code development time is shortened, code development efficiency is improved, and code writing and testing efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of software, in particular to a method, device, equipment and computer-readable storage medium for automatically generating test cases. Background technique [0002] With the development of various human applications and hardware chip technology, various application software is becoming more and more complex and large. Application software is generally composed of files that can be recognized by the hardware processing unit after the program code is transformed by a compiler. Complicated software requires the development of a large number of complex program codes, so the problem of program code management has become increasingly prominent. [0003] At present, in the process of program code testing, almost all test cases are manually written and test cases are performed manually. The labor cost and time cost are high, which leads to a waste of human resources to a certain extent, and reduces the development ...

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/36G06F17/30
CPCG06F11/3684G06F16/2282
Inventor 孙中熙
Owner PING AN TECH (SHENZHEN) CO LTD
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