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

Interface test method and device

An interface testing and interface technology, applied in the testing field, can solve the problem of low reuse rate of test codes, and achieve the effect of solving the low reuse rate and improving the reuse rate.

Active Publication Date: 2015-05-13
GUANGZHOU KUGOU TECH
View PDF7 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problem of low reuse rate of test codes in interface testing in the above technology, an embodiment of the present invention provides an interface testing method and device

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 method and device
  • Interface test method and device
  • Interface test method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0077] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0078] Please refer to figure 1 , which shows a method flowchart of an interface testing method provided by an embodiment of the present invention. The interface testing method can be applied to electronic devices such as mobile phones, tablet computers, laptop computers, desktop computers and the like. The interface testing method may include the following steps:

[0079] Step 102, calling an independent test code file corresponding to the target interface to be tested, where the test parameters and interface paths corresponding to the target interface are preset.

[0080] In this embodiment, different independent test code files are pre-configured for different interfaces. When the target interface needs to be tested, the independ...

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 an interface test method and device and belongs to the field of testing technology. The method includes the step of calling an independent test code file corresponding to a target interface needing to be tested; the step of calling a public test code file through the independent test code file and transmitting test parameters and an interface path corresponding to the target interface to the public test code file; the step of generating request data through the public test code file according to the test parameters and public test parameters and generating a request address according to the interface path and a test environment address; the step of testing the target interface through the public test code file according to the request data and the request address. The problem that the reuse rate of test codes is low when interface testing is conducted through correlation techniques is solved; different independent test code files and the same public test code file are configured for different interfaces, and test codes needed for different interfaces are planned and managed in a unified mode, so that the reuse rate of the test codes is increased.

Description

technical field [0001] The invention relates to the technical field of testing, in particular to an interface testing method and device. Background technique [0002] Interface testing refers to the testing of software interfaces between different system components. For example, one or more HTTP (Hypertext Transfer Protocol, hypertext transfer protocol) service interfaces may be set in the server for providing web services to the client. In order to ensure the quality of service, it is necessary to test the HTTP service interface. [0003] Due to the large differences in functions, protocols, and usage specifications of different interfaces, it is impossible to use common testing tools to test the interfaces. Currently, in related interface testing methods, for different interfaces, testers need to manually write different test codes one by one, so as to implement testing on different interfaces. [0004] However, the above method lacks unified planning and management for...

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 GUANGZHOU KUGOU TECH
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