分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 教程案例

性能测试十:jmeter进阶之webService与socket

发布时间:2023-09-06 02:27责任编辑:苏小强关键词:暂无标签

 一、webService

1、添加http post请求
2、添加header:Conent-type:text/xml

Post请求的body中填写
<soapenv:Envelope
  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:web="http://webservice.lee.com/">
  <soapenv:Header/>
  <soapenv:Body>
    <web:getOrderInfo>
      <!--Optional:-->
???????????      <arg0>aaa</arg0>
      <!--Optional:-->
      <arg1>123</arg1>
    </web:getOrderInfo>
  </soapenv:Body>
</soapenv:Envelope>

其中,红色字体是需要根据不同的webservice接口进行修改,其他保持固定
 xmlns:web=“http://webservice.lee.com/”是包名
web:getOrderInfoById是方法名
arg为参数

4.x以下添加

 4.x以上添加

webService都是post请求

header:Conent-type:text/xml

二、socket

服务器名称或IP:填写socket接口的ip

端口号:写socket接口的端口号

Re-use connection:是否重用链接,如果选择,同一个线程执行的所有请求都会使用一个tcp连接

Re-use connection+close connection:每个请求结束后关闭连接

End of line byte value:socket接口返回的数据结尾标识符的ascii码 要发送的文本:发送的数据

性能测试十:jmeter进阶之webService与socket

原文地址:https://www.cnblogs.com/zhongyehai/p/10171050.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved