Web Service automatic test system and method

A technology for automated testing and testing data, applied in the information field, can solve problems such as inconvenient separation of data and code, difficult maintenance of code and data, lack of versatility of code, etc., to facilitate automated testing, improve testing work efficiency, and reduce skill requirements Effect

Active Publication Date: 2015-08-26
CHINA INTERNET NETWORK INFORMATION CENTER
View PDF11 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This type of test usually has the following disadvantages: a. Data and code are not conveniently separated, data organization is complicated, a

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
  • Web Service automatic test system and method
  • Web Service automatic test system and method
  • Web Service automatic test system and method

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0067] Example 1 (the interface response data is in JSON format):

[0068] result code==200

[0069] contain==SUCCESS;

[0070] $.openplatform_response.status.code==40

[0071] $.tld.wikipedia_url==http: / / domai.nr / cn / Wikipedia

example 2

[0072] Example 2 (the interface response data is in XML format):

[0073] result code==200

[0074] notcontain==action pending

[0075] / / Envelope / Body / sayHello / return / text()==hello, xiao jianfang

[0076] / root / list / catalog[starts-with(catalogname,'property')]==Tiantian Real Estate

[0077] If there is a parameterization requirement in the input data or inspection data, the parameter data file must be provided. The parameter data file is in the form of a table, which can be a CSV or Excel file. Each column represents a value sequence of a parameter, and the total number of columns corresponds to all required parameters. The number of data fields to be transformed.

[0078] An example of the content of the parameter data file is figure 2 shown.

[0079] If there is a field in the data input or inspection data file that needs to be parameterized, enter the serial number of the parameterization flag and include it with the symbol %, in the form of:

[0080] parameter1==%p...

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 present invention provides a Web Service automatic test system, comprising: a WSDL/WADL parsing module, a data parsing module, a connection and call service module, a result verification module, and an execution control module. The present invention further provides a method implemented based on the system. With the system and method, the present invention can achieve the following technical effects: 1) With the automatic test system and method, functionality of the Web Service is automatically tested, thereby improving efficiency of test work. 2) In the automatic test process of the Web Service, a test personnel only needs to simply compile and maintain test data, thereby reducing requirements imposed on the test personnel in terms of test skill, and facilitating the automatic test. 3) The automatic test of the Web Service may be combined with a sustainable integrated environment, thereby improving an overall research and development efficiency. 4) The method is universal and is applicable to most automatic tests of the Web Service.

Description

technical field [0001] The present invention relates to the field of information technology, in particular to a Web Service automated testing system and method. Background technique [0002] Web Service is a widely used distributed network application, and users or clients can easily call its interface services by using HTTP requests. Web Service is generally designed and implemented based on SOAP (Simple Object Access Protocol), which has the characteristics of strong scalability, flexibility and ease of use. As the RESTful style is more and more widely applied to the architecture design of Web Service, the development and application of Web Service More concise, RESTful style Web Service is more excellent in terms of performance, efficiency and ease of use. [0003] The testing of Web Service generally requires the development of a local agent (client) to simulate the call to the service, and parse and check the content returned by the server. This type of testing usuall...

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 CHINA INTERNET NETWORK INFORMATION CENTER
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