Service framework interface testing method and device

An interface testing and service framework technology, applied in the computer field, can solve the problems of inapplicable functional testing, inconvenient expansion, and high requirements for testers, so as to achieve automatic feedback and ease of use, and reduce development and testing communication. Cost, Ease of Scale and Portability

Active Publication Date: 2017-05-24
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF4 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Further, in the prior art, for interface testing, there are mainly the following two methods commonly used: one is white-box unit testing, for example, Junit, TestNG framework, through white-box unit testing, different interface parameters can be automatically implemented The traversal and result judgment of the interface can also test the internal logic of the interface to write test cases, but these tasks have high requirements for testers. Usually this type of test should be tested by R&D personnel, and the change of the use case needs to modify the code and Compilation, every time the test object changes, the test code needs to be recompiled. At the same time, the unit test has high requirements for testers and is not applicable to the functional test link; the other is tool software piling test, for example, the open source tool soapUI, specific , in the functional test phase, usually use piling tools for interface testing. After the interface is successfully connected, input parameters and judge the return value. Manual input and judgment are required. For large data return results, human error is relatively easy, and for a large number of interface tests Work is performed manually, which is inefficient and delays manpower. Furthermore, the functional interfaces supported by each piling tool are relatively single, which is not easy to expand. At the same time, because the service framework interface is different from the general service, the method-level interface needs to refer to the library function service package file , general interface testing tools cannot meet the requirements

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] Exemplary implementations of the present invention are described below in conjunction with the accompanying drawings, which include various details of the implementations of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0023] Such as figure 1 As shown, a flow chart of steps of a service framework interface testing method according to an embodiment of the present invention. The service framework interface testing method includes the following specific steps:

[0024] Step S1: Automatically compare the initialization return value of the test data initialization with the expected ...

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 service framework interface testing method. The method includes the steps that initialization return value of testing data initialization is automatically compared with a testing data expected value in initialization configuration information; according to initialization testing data successful in comparison, automatic regression testing operation is executed on a service framework interface, and interface testing results are generated; the interface testing results are automatically compared with a preset interface calling expected value; an interface testing effect is analyzed according to multiple interface testing results in a certain time period. The invention further discloses a service framework interface testing device.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a service framework interface testing method and device. Background technique [0002] With the development of the Internet, more and more Internet companies develop service frameworks suitable for their own businesses to improve the basic services and governance capabilities of websites. The quality of the service framework largely determines the quality of the website service. However, due to the large number of service framework interfaces, communication types may include multiple protocols and method-level service calls, and the amount of data is large, interface testing is cumbersome and error-prone, which affects the quality of the service framework. [0003] The general interface testing method is: write a program to call the interface according to the interface description document, and judge whether the function defined by the interface can be achieved; according to t...

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
Inventor 于光一马鑫王代旭吴娟
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
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