Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for Mock testing of WebService

A technology for testing requests and input parameters, which is applied in the Mock testing field of WebService, can solve problems such as error-prone and heavy maintenance workload, and achieve the effect of convenient implementation and flexible method

Inactive Publication Date: 2017-03-22
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] 2. Personnel who test mocks need strong coding skills and a lot of time, and need to understand the implementation mechanisms of webservice servers under different development platforms, etc.;
[0007] 3. When the interface changes, the existing code needs to be modified, the maintenance workload is heavy, and error-prone

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
  • Method and device for Mock testing of WebService
  • Method and device for Mock testing of WebService
  • Method and device for Mock testing of WebService

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments 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.

[0030] figure 1 It is a schematic diagram of main steps of a method for Mock testing of WebService according to an embodiment of the present invention. Such as figure 1 As shown, a WebService Mock test method of the present invention mainly includes the following steps S11 to S15.

[0031] Step S11: Generate input parameters and output parameters to be tested by the Moc...

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 a method and a device for Mock testing of WebService. Through the method and the device, Mock testing can be performed easily and precisely with high performance. Mock testing can be realized just according to obtained parameter information of a WebService interface. The method is flexible and convenient to implement, and true black box Mock testing is done. The method for Mock testing of WebService comprises the steps that input parameters and output parameters to be subjected to Mock testing are generated; sets of the input parameters and the output parameters are saved into a database in the form of parameter sets; input content of a Mock testing request sent by a calling system is analyzed, and a text document is generated; the text document is compared and matched with the input parameters in all the parameter sets stored in the database sequentially; if matching succeeds, the output parameters in the parameter sets are output, or else an error message is output.

Description

technical field [0001] The invention relates to the technical field of computer software testing, in particular to a method and device for Mock testing of WebService. Background technique [0002] Software testing refers to the process of operating the program under specified conditions to find program errors, measure software quality, and evaluate whether it can meet the design requirements. When doing testing, it is often encountered that many tested programs rely on external WebService interfaces to provide test environments and parameters, etc. The dependent WebService interfaces are not within the scope of the tested program, but only a certain execution step of the tested program It is necessary to call the external WebService interface to obtain data. However, in many cases, the program to which the external WebService interface belongs is unavailable or unstable, and it needs to be tested many times before a clear result can be obtained. Moreover, due to the perfor...

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 BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD