Test webservice interfaces (soap type of interface)
First, the nature of the agreement webservice
After a package of post type of HTTP request
Web service generally is to use the SOAP protocol to call it by HTTP, in fact, he is a WSDL document, the customer can read the WSDL document to use the Web service.
SOAP Simple to understand, this is an open protocol SOAP = RPC + HTTP + XML: using HTTP as the underlying communication protocol; RPC call as a way of consistency, XML as the format for data transfer, allowing service providers and customer service through the firewall communication interaction INTERNET.
So in fact we can through a number of methods to test the webservice through, http request jmeter in.
Http header only need to use two parameters Manager Content-Type and SOAPAction.
Second, how do webservice interface requests
(1) tools: jmeter, postman, soapui, python code, etc.
(2) how to know webservice request?
- Interface request is an address suffix wsdl
- Messages are xml files
(3) how to obtain the address of the interface based on the packet protocol webservice
By acquiring soapui tool, soapui can help users to check, call, implements a Web Service function / load / compliance testing through soap / http
You can determine the number of packets in the packet interface via webservice in operation name
How to use soapui
- soapUI installation (1, download the file and extract the cracked version, double SoapUI-x64-5.4.0-EB.exe .2 installation program, copy crack Protection-4.6.jar-packets lib directory to replace the mounting soapui .3 original file, run the program bin \ soapui-pro.bat, import scz.key.4, crack open the software that is completed)
- Double-click on the desktop to run the tool soapUI
- Click the button on the one-way SOAP blue
- Import webservice message
- Each file request that is webservice interface to each request parameter (the address is the address of the interface of the navigation bar requested)
(4) jmeter script debugging
- Test Plan -Threads (users) - the thread group
- sample-HTTP request (interface address: the address on the navigation bar soapui request mode: POST request body: XML request parameter type, placed in Body Data)
-
http header information management needs to fill in the Content-Type (required) or SOAPAction, and the information SOAPAction not have to fill.
These two data acquisition from soapUI in. When the blue line shows not: when "http //" at the beginning of the information, this information soapAction is not mandatory.
-
In the http header information manager, we need to fill in the Content-Type Information
- View Results tree - run, run to see results
-