Interface test case automatic generation method and device, and storage medium

An interface testing and automatic generation technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as energy consumption of maintenance scripts, manpower, material resources and time, project delay risks, etc., to shorten the test cycle, Ease of updating scripts, saving writing time

Pending Publication Date: 2020-02-21
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the current industry, the writing of interface use case scripts in automated testing is manual or semi-automatic, and each script writing takes a lot of manpower and time. For later interface parameter type changes, parameter number changes, and interface additions and deletions, etc. , testers need to re-modify test c

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
  • Interface test case automatic generation method and device, and storage medium
  • Interface test case automatic generation method and device, and storage medium
  • Interface test case automatic generation method and device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

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

[0053] The present invention provides a method for automatically generating interface test cases, which is applied to an electronic device 1. Reference figure 1 What is shown is a schematic diagram of an application environment of a preferred embodiment of the method for automatically generating interface test cases of the present invention.

[0054] In this embodiment, the electronic device 1 may be a terminal device with arithmetic function, such as a server, a smart phone, a tablet computer, a portable computer, a desktop computer, and the like.

[0055] The electronic device 1 includes a processor 12, a memory 11, a network interface 13, and a communication bus 14.

[0056] The memory 11 includes at least one type of readable storage medium. The at least one type of readable storage medium may be a non-volatile sto...

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 relates to the technical field of test case generation, and provides an interface test case automatic generation method and a device, and a computer readable storage medium. The method comprises the steps of obtaining an interface parameter document according to an obtained interface test case generation instruction; analyzing an interface parameter document, determining an array ofall interfaces based on the interface parameter document, and the array comprises an interface address path, a transmission mode and an input parameter; assigning the array to each interface, loadingthe array assigned to each interface to a script to obtain an execution script, and creating the script on an interface test tool in advance; and performing an interface test on the interface test tool by utilizing the execution script to generate an interface test case. Compared with the prior art that scripts are written manually or semi-automatically before interfaces are tested, the script writing time is saved, the testing efficiency is greatly improved, and the whole testing period is shortened.

Description

technical field [0001] The invention relates to the technical field of test case generation, in particular to a method, device and computer-readable storage medium for automatically generating interface test cases. Background technique [0002] With the continuous development of communication technology, more and more functional software are applied on terminal equipment such as mobile phones and computers, such as communication software such as WeChat and QQ; payment software such as mobile banking and Alipay; the functions of these functional software are all It is realized by calling multiple interfaces through the program code. These functional software need to be tested before they go on the market, and testing has become an indispensable step in product development iterations. In the test building, the writing of test cases is like the cornerstone of the building. Regardless of functional testing, performance testing, or automated testing, test cases are the first st...

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
CPCG06F11/3684G06F11/3688
Inventor 郭佳
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
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