JMeter-SOAP/XML-RPC协议的接口测试

前言

JMeter3.2版本之后就没有SOAP/XML-RPC Request插件了,那么该如何进行webservice接口的测试呢?

今天我们来一起学习一下怎么在3.2以后版本的JMeter进行webservice接口测试吧!

一:在测试计划下添加配置元件-HTTP信息头管理器,并在界面添加Content-Type信息,Content-Type:text/xml;charset=utf-8

二:添加线程组,线程组下添加取样器-HTTP请求,写入正确的webservice接口地址和参数

三:添加监听器-察看结果树,点击运行,查看执行结果

附:

Web Services地址:http://www.webxml.com.cn/zh_cn/web_services.aspx

接口地址:/WebServices/WeatherWS.asmx

接口参数:

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <getRegionProvince xmlns="http://WebXml.com.cn/" />
  </soap:Body>
</soap:Envelope>
原文地址:https://www.cnblogs.com/zhangwuxuan/p/12419397.html