At present, most of the sites are using HTTP SOAPUI, how to operate it?
Many of the internet is using Google to do the example, because Google normal way can not access, so the following will use Baidu website to do examples
1: Open the browser input Baidu URL in the library input SOAPUI
2: Click Baidu for a moment
In Google Chrome debug mode (press F12), you can see a screen similar to the picture shown in the network
The first one is the request of our Baidu
Click on the first request, then pull the block below
Here we can see the specific request information
Request Url:http://wenku.baidu.com/search?word=soapui&org=0
The query parameter from here is WOAPUI
Now we're going to import this URL into soapui.
File-->newrestservice
The following screen appears
Enter URL
Http://wenku.baidu.com/search?word=SOAPUI&org=0
Press ok
It is found here that automatically interprets our input URL parameters as parameters on the from form
Click Run Test Single step request is OK
On the right can see the specific response information, note that the XML will appear garbled, here we for the convenience of viewing, switch to HTML page check
Single-step request verification OK, we can build a test suite.
Right-click on the request and select Add TestCase
Enter test suite name
Enter test Case name
Click OK
When the request is added to the use case, we can set the assertion
The subsequent operation is the same as the webserver operation
We can set the parameterization, like the above soapui we can go to selenium
Reprint to: http://mp.weixin.qq.com/s?__biz=MjM5OTI2MTQ3OA==&mid=210125128&idx=2&sn= 326b730a969a5c268c3fac85882251cf&scene=1&srcid=0913yeigtc7zhtkuvvqsjsnv#rd
SOAPUI Testing the HTTP protocol