1.测试计划-->右击添加-->Threads-->新增线程组
2.线程组-->右击配置元件-->增加http信息头管理器
3、线程组-->点击添加-->Sampler-->HTTP请求
4、http信息头管理器需要填入Content-Type(必填):text/xml;charset=UTF-8
5.在HTTP请求中XML中的数据信息,全部复制到jmeter的HTTP请求中的Body Data
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.star.com">
<soapenv:Header/>
<soapenv:Body>
<ser:doCommand>
<!--Optional:-->
<xmlFile><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
]]> </xmlFile>
</ser:doCommand>
</soapenv:Body>
</soapenv:Envelope>
6. 添加监听器和汇总报告
7.发送成功