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
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 2
Abstract
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 ...