Frame-based automatic generating method for Web service test data

A technology for automatically generating and testing data, which is applied in data exchange networks, digital transmission systems, electrical components, etc., can solve problems such as inability to automatically generate test data, and achieve the effects of short test time, good modularity, and high degree of automation

CN102710460AInactive Publication Date: 2012-10-03NANJING UNIV OF POSTS & TELECOMM
2 Cites 17 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2012-10-03
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

Abstract

The invention discloses a Frame-based automatic generating method for Web service test data. The method mainly solves the challenge of trend flexibility and combination reusability which are faced with a Web service test. The method mainly comprises frame express of a test case, automatic generation of the test case, and operation of Web service test. The method comprises the steps of analyzing a WSDL (Web Services Description Language) document so as to obtain related input type information from a Schemea of the document; automatically then obtaining the test case of certain service operation by using a make Test Case function, finally packaging the test case into an HTTP (Hyper Text Transport Protocol) packet to be sent to a service end; and analyzing an SOAP message in the HTTP packet by the service end and returning to a result of a called service. After being proved by a large quantity of test data, the method has the advantages that 1, according to the WSDL, the SOAP message can be sent accurately, and return information can be obtained; 2, the test data can be automatically generated simultaneously; and compared with the prior art, the method is more superior on aspects of test time and test power.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention provides a web service automatic test framework based on monad and QuickCheck technology, solves the problem of automatic generation of test cases when users perform web service function test, and belongs to the test field of web service. Background technique

[0002] Web service (Web Service, WS for short) is an object deployed on the Web. They are based on XML (Extensible Markup Language)-based and open Web specification technology, so they have more advantages than any existing The better openness of object technology is a new platform for building interoperable distributed applications. The Web platform is a set of standards that defines how applications can achieve interoperability on the Web. We can use any language and write the required Web services on any platform.

[0003] The Web service platform mainly adopts four technologies:

[0004] 1. XML (Extensible Markup Language): The basic format for representing data in the Web se...

Examples

test Embodiment 1

[0073] Web service calls run through Simple Object Access Protocol (SOAP) communication. The SOAP protocol allows applications to exchange information via HTTP, which is also based on the XML format. This patent mainly tests the function of the Web service from the perspective of the user, so the Web service test case here generally refers to a SOAP message. SOAP messages often contain 、 ,and and other main elements, among which and is required. If you want to invoke a published service, the user must send a SOAP message request to the server, and the SOAP message contains information such as the operation name of the service and the parameter values ​​required for the operation. The SOAP message can be automatically generated by analyzing the WSDL document of the corresponding service, and the two necessary elements in the SOAP message are generated from the WSDL document and method. in The attribute value of the element can be obtained directly from the namespace ...