Application program interface testing method and device and electronic equipment

A technology of application program interface and program interface, which is applied to the test method of application program interface, its device and the field of electronic equipment, can solve the problems of low test efficiency of application program interface, achieve high-efficiency test, reduce manual processing, and solve the problem of low test efficiency. low effect

Pending Publication Date: 2022-05-27
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide a testing method of application programming interface, its devic

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
  • Application program interface testing method and device and electronic equipment
  • Application program interface testing method and device and electronic equipment
  • Application program interface testing method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0027] Example 1

[0028] According to an embodiment of the present invention, an embodiment of a method for testing an application program interface is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and , although a logical order is shown in the flowcharts, in some cases steps shown or described may be performed in an order different from that herein.

[0029] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. figure 1 A hardware structure block diagram of a computer terminal (or mobile device) for implementing a testing method of an application program interface is shown. like figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more (shown as 102a, 102b, . A processing device such as a programmabl...

Example Embodiment

[0057] Example 2

[0058] According to an embodiment of the present invention, there is also provided a device for implementing the above-mentioned testing method for an application program interface, Figure 4 is a structural block diagram of a testing device for an application program interface according to Embodiment 2 of the present invention, such as Figure 4 As shown, the device includes: a receiving module 302, a reading module 304, a decrypting module 306, an obtaining module 308, and a testing module 310. The device will be described in detail below.

[0059]The receiving module 302 is configured to receive the configuration file and the data corresponding to the target requester and the test data, wherein the test data is used to simulate the encrypted processed request data sent by the target requester to the target application program interface, and the configuration file includes and Multiple application numbers corresponding to multiple requesters one-to-one, a...

Example Embodiment

[0074] Example 4

[0075] Embodiments of the present invention may provide an electronic device, which may be a terminal or a server. In this embodiment, the electronic device as a terminal may be any computer terminal device in the computer terminal group. Optionally, in this embodiment, the above-mentioned terminal may also be a terminal device such as a mobile terminal.

[0076] Optionally, in this embodiment, the above-mentioned terminal may be located in at least one network device among multiple network devices of a computer network.

[0077] Optionally, Image 6 It is a structural block diagram of a terminal according to an exemplary embodiment. like Image 6 As shown, the terminal may include: one or more (only one shown in the figure) processors 41, and a memory 42 for storing instructions executable by the processors; wherein the processors are configured to execute the instructions to implement the above applications Test methods for program interfaces.

[007...

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 application program interface testing method, an application program interface testing device and electronic equipment. The method comprises the steps that a configuration file and test data corresponding to a target requester are received, the test data are used for simulating encrypted request data sent by the target requester to a target application program interface, and the configuration file comprises multiple application program numbers in one-to-one correspondence with the multiple requester; the multiple pieces of key information are in one-to-one correspondence with the multiple application program numbers; reading target key information corresponding to the application program number of the target requester from the configuration file; decrypting the test data through the target key information to obtain target data; obtaining a target test condition corresponding to the target application program interface; and testing the state of the target application program interface by adopting the target data according to the target test condition. The problem that in the prior art, the testing efficiency of the application program interface is low is solved.

Description

technical field [0001] The present invention relates to the technical field of functional testing, and in particular, to a testing method of an application program interface, a device thereof and an electronic device. Background technique [0002] API (Application Programming Interface, application programming interface) usually refers to some predefined interfaces (such as functions, HTTP interfaces), or refers to the conventions for the connection of different components of a software system. [0003] Because API services need to be connected with partners, they generally need to be tested in detail by the caller. There is a dependency on the caller's environment and functional familiarity, and there is a situation where the caller's function coverage is incomplete, so the test cost is high, and there will also be Incomplete coverage of quality risks. When using an interface testing tool, such as POSMAN, there will be situations where access cannot be passed because there...

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 INDUSTRIAL AND COMMERCIAL BANK OF CHINA
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