Supercharge Your Innovation With Domain-Expert AI Agents!

Method, device, computer equipment and storage medium for automatically generating test cases

A test case and automatic generation technology, applied in computing, software testing/debugging, error detection/correction, etc., can solve problems such as time-consuming, unavailable test cases, and difficult test cases, so as to achieve less error-prone, Improving test efficiency and simplifying program design

Active Publication Date: 2022-06-21
PING AN TECH (SHENZHEN) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the existing technology, as the complexity of the system increases and the number of interfaces increases, it is extremely difficult to write test cases that can completely cover all interfaces, and any change in the internal interface in the actual process may lead to related test cases. Use cases are not available, and the process of writing test cases is itself a test software development process, which requires professionals to spend a long time to complete, and the process is heavy and inefficient

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, computer equipment and storage medium for automatically generating test cases
  • Method, device, computer equipment and storage medium for automatically generating test cases
  • Method, device, computer equipment and storage medium for automatically generating test cases

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0030] The automatic generation method of the test case provided by the present invention can be applied in such as figure 1 In the application environment, in which the client (computer device) communicates with the server through the network. Among them, the client (computer equipment) includes but is not limited to various personal computers, notebook computers, smart phones, tablet computers, cameras and portable wearable devices. The s...

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 test case automatic generation method, device, computer equipment and storage medium. The method includes: when it is detected that the test case generation instruction is triggered, obtain the interface documents of all test interfaces, and judge whether they meet the test requirements. Requirements; use Python to extract test attribute values ​​from interface documents that meet the test requirements, and convert them into JSON string information; generate test cases, input the corresponding JSON string information in each test case into the effective judgment model, and obtain the output judgment As a result, the test case is deduplicated according to the judgment result and recorded as the target test case; the characteristic type is determined; the characteristic level is determined according to the test attribute value and the characteristic type, and the target test case containing the characteristic type and characteristic level is recorded as Standard test cases, sort and store standard test cases. The invention realizes automatic generation of test cases with comprehensive coverage and uniqueness, and reduces labor cost.

Description

technical field [0001] The invention relates to the field of test case generation, in particular to an automatic generation method, device, computer equipment and storage medium of a test case. Background technique [0002] With the rapid development of computer technology, the system has become more and more complex, and the traditional front-end testing has been unable to meet the needs. In order to meet the needs of early intervention testing, interface testing came into being. Interface testing refers to writing test cases according to test documents, and using the written test cases to test the interface between system components. In the prior art, with the increasing complexity of the system and the increasing number of interfaces, it is extremely difficult to write test cases that can completely cover all interfaces, and changes in any internal interface in the actual process may lead to related tests. Use cases are not available, and the process of writing test case...

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 Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3676
Inventor 张美苑
Owner PING AN TECH (SHENZHEN) CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More