Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Automatic interface testing method and device

A technology of automatic testing and interface testing, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of time-consuming, labor-intensive, low work efficiency, etc., to save cost, save time, and reduce development cost effect

Pending Publication Date: 2020-03-24
BOCO INTER TELECOM
View PDF0 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the object of the present invention is to provide a general automated interface testing method and device, which can solve the problems of time-consuming and labor-intensive writing of interface documents and interface testing, and low work efficiency

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
  • Automatic interface testing method and device
  • Automatic interface testing method and device
  • Automatic interface testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] figure 1 It is a schematic flowchart of an automatic testing method for an interface provided in the first embodiment of the present invention, and the method includes the following steps:

[0038] Step S1: Obtain all interface configuration files of the system under test, check the syntax compliance of the files, and save the compliant interface configuration files after checking compliance, and the interface configuration files are used to describe the test The interface description information of the system is made according to the specification of the interface configuration file, including interface identification, interface operation type, interface parameter and the type of returned response result data. The interface identification is unique; the interface operation type is for the interface Action type.

[0039] This step can collect various required common interface data, and uniformly use the interface configuration file to express the interface data and res...

Embodiment 2

[0071] Corresponding to the method in the first embodiment above, an embodiment of the present invention further provides an automatic interface testing device for executing the method in the first embodiment above.

[0072] image 3 A schematic diagram showing the module composition of an automatic test device for an interface provided by the second embodiment of the present invention.

[0073] like image 3 As shown, the automatic test device of the interface in this embodiment includes five modules:

[0074] The configuration acquisition module M100 is used to obtain all interface configuration files YAML of the system under test, check the syntax compliance of the files, and save the compliant interface configuration files YAML after checking compliance, and the interface The configuration file is used to describe the interface description information of the test system. It is made according to the specification of the interface configuration file, including the interfac...

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 provides an automatic interface testing method which comprises the following steps: acquiring all interface configuration files of a tested system, and performing grammar compliance check; acquiring the compliant interface configuration file and interface description information in the compliant interface configuration file; generating an interface document; sending an interface service request to the tested system according to the interface identifier, the interface parameter and the interface operation type in the interface description information; enabling the tested system torespond after receiving the interface service request and return an interface response result; analyzing the interface response result data of the tested system, and verifying the data legality of the data analysis result; judging whether the interface response result data conforms to the type of return response result data in the interface description information or not, and marking inconformitydata items; generating interface test reports. In addition, the invention further provides an automatic interface testing device. Efficient butt joint of interface joint debugging is achieved, time is saved, and an interface document is automatically generated.

Description

technical field [0001] The invention relates to the technical field of communication interface testing, in particular to a testing method and device for automatically providing interface documents. Background technique [0002] Interface testing of software systems often takes a lot of time and energy for software developers. In addition, some existing tools for automatically generating interface documents require developers to add a large number of comment documents to code comments, and then extract the comments. This not only increases the workload of developers in the interface development process, but also causes a lot of redundant interface comment codes to be mixed in the code, which affects the readability of the code. [0003] On the other hand, in the process of software development, developers not only need to write interface codes, but also write comprehensive interface documents. In the original interface development management, a large number of interface file ...

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 Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3628G06F11/3668
Inventor 程晶钟荷柳杨远伟张东陈晓峰范长华朱莉杜大江李新建冒红蔚李江涛索晓明王鹿媛王朝东
Owner BOCO INTER TELECOM
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products