jmeter测试dubbo接口
2019-07-24 本文已影响0人
没有色彩的Lily
1、安装插件
下载地址:https://github.com/dubbo/jmeter-plugins-for-apache-dubbo
下载完成之后,把这个插件放到jemter下/lib/ext目录下,之后重启jmeter
2、反编译工具
jd-gui.exe 或者mac的工具
3、确定公司zookeeper地址
4、找到下载jar包的地址,下载你需要测试的jar包(为了方便你查看相应的包名、方法名等)
5、打开jmeter,添加线程组,然后添加dubbo sample

6、填写相应的参数

(1)填写zookeeper的地址
(2)填写接口的设置信息
Interface: 包名.接口名

method: 方法名
(3)填写请求参数 对应的类型和值

Java类型匹配ParamType查询表



jmter的一些问题
一些参数的构造:
基础类型:

需要注意:int和Integer 这种类型

服务器自定义的类型:

嵌套结构:



jmeter

rpc接口返回的数据中有乱码的解决方案:
一、1.打开jmter配置文件bin/jmeter.properties
2.修改配置文件,查找“sampleresult.default.encoding”将其改为utf8,注意要去掉“#”号
sampleresult.default.encoding=utf-8