jmeter beanshell
//获取返回数据
String json = prev.getResponseDataAsString();
///加入变量
vars.put("restr",json);
//获取请求的内容
prev.getResponseDataAsString()
///获取变量的值 (包括所有变量)
vars.get("user")
写入log
log.info("请求的username:"+vars.get("username")+",返回:"+str);
调用内置函数
log.info("${__CSVRead(c:\data.txt,0)}" );
beanshell断言
if (str_res.indexOf("1400")>-1){
Failure=true;
FailureMessage=str_res;
}
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAocAAACOCAIAAADM5jVUAAASLUlEQVR4nO3dbYhc1R3H8bwqtdnEzbItsWYFQRdNk0B3lIIoUYm0KlUq0gdTqSY0uCmRYDDi+pzVareYaFVqRG3CBmONDyFYkobShWpNIKu+0BqtWrU+xIc4Gi2W3bVMX0y9He8553/+99x7Zu7Mfj8cwubsuedhZvb+9s7ZvTujCgAAymFGqycAAAD+h1QGAKAsSGUAAMqCVAYAoCxIZQAAyiKdykMjGymUSMX1Kmz5xCgUCqUkhVSmNKnUajUhlfN8awkAHcOeyruefZtCMcvQyMY33v9XQCGVAUDDmcotmQ3KrJ7Kb3/4WUBpTGUznoVUXr5ujBJcIr4aAMRBKkOrnsrvffzvgJK6Vk7FsCuVl68bqyEUqQy0I1IZWvVUrn46EVDMd7Br7pCuq0fy3lc/oYQVUhloR6QytOqp/MlnkwHFuq+chLGZykQyqQxMT6QytOqp/NnE5wEl074ykUwqA9MWqQyteipPfv6fgKLfV9ZEcuUL8SIt6Tz2QJmm1DgrUhnoSFIqVwxZew84BKVVT+WwnzxS7isrr5Jjp3J5ktg6K+X0SGWgHfmvlcPyOM+BKKcCr5XrzH1l/YWyGU6N3z5mrTS/AbWO4jrQlZTyQN5m1iGsPZDKQMcISeXG84LZxjx3xJw/mqcJ+8rBqexNSn1lwIHWTvJ366o0ByKVgY6ROZWtYeytRAcwfwa7IhJ+Btu1r5wzla2hKCSlK+dyxmdAKmeapNmeVAY6RjGpXPVdQKMDWH9fueIQ9vvKTXgH25xqk1NZnhKpDExzgancSG4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AgLFoKQAAwFi0FAAAYCxaCgAAMBYtBQAAGIuWAgAAjEVLAQAAxvL/agSl1jTnS5sAAAAASUVORK5CYII=" alt="" />
获取系统时间
import java.text.SimpleDateFormat;
import java.util.Date;
//SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHHmmssSSS");
String date = df.format(new Date());
vars.put("systime",date);
log.info(date);
jmeter beanshell 不支持泛型 如
Map<String,Object> map2 = new HashMap<String,Object>(); //会报错
改成
Map m = new HashMap();
m.put("key","v");
这样就好了 引用第三方jar包。需要把jar放到
D:\software\apache-jmeter-3.2\lib 目录下
import java.util.HashMap;
import java.util.Map;
import com.alibaba.fastjson.JSON;
String str ="{\"action\":1020,\"result\":true,\"msg\":\"登录成功!\",\"data\":\"15200000001:258aa505-f9ae-4d44-a5b5-5090a35bfd7e\"}";
Map map2 =JSON.parseObject(str);
log.info(map2.get("action").toString());
jmeter beanshell的更多相关文章
- jmeter BeanShell实例-----两个变量之间的断言对比
jmeter BeanShell实例-----两个变量之间的断言对比 在jmeter的中,断言没法对两个变量的进行对比后判断,只能使用Bean Shell断言来进行,总是有人来问怎么写呢.这里写一个简 ...
- Testing Complex Logic with JMeter Beanshell
BeanShell是最先进的JMeter内置组件之一.JMeter具有丰富的内置插件,可满足性能测试的许多需求.例如,在编写一些复杂的测试时,您可能需要一些额外的脚本.在这种情况下,值得使用Beans ...
- JMeter BeanShell示例
翻译:https://blog.trigent.com/jmeter-blog-series-jmeter-beanshell-example 在这个例子中,我们将演示在Apache JMeter中使 ...
- JMeter博客系列:JMeter BeanShell示例
1.简介 Apache JMeter是一个基于Java的开源工具,使您可以在应用程序上执行功能,负载,性能和回归测试.应用程序可以在Web服务器上运行,也可以是独立的.它支持在包含静态和动态资源的客户 ...
- jmeter BeanShell实例-----两个变量之间的断言对比(转)
jmeter BeanShell实例-----两个变量之间的断言对比 在jmeter的中,断言没法对两个变量的进行对比后判断,只能使用Bean Shell断言来进行,总是有人来问怎么写呢.这里写一个简 ...
- jmeter beanShell修改http请求参数
jmeter beanShell修改http请求参数 在使用jmeter进行测试时,需要对上一步响应的明文参数,如userName='tom' token='%sdf%sdkdfj'之类的参数,加密一 ...
- Jmeter Beanshell 编程简介
简介 Jmeter除了提供丰富的组件以外,还提供脚本支持,可通过编写脚本来丰富Jmeter,实现普通组件无法完成的功能.Beanshell是一种轻量级的Java脚本语言,完全符合Java规范,并且内置 ...
- Jmeter beanshell编程实例
1.引言 BeanShell是一种小型的,免费的,可嵌入的符合Java语法规范的源代码解释器,具有对象脚本语言特性. 在Jmeter实践中,由于BeanShell组件较高的自由度,通常被用来处理较为复 ...
- Jmeter beanshell 生成手机号加密签名
首先自己写一个根据手机号生成加密字符串的函数,并且导出为Jar包,函数具体内容省略,网上有很多 将Jar包放到Jmeter lib\ext目录下面,然后在user.properties里面把路径加进去 ...
随机推荐
- git 生成公钥与私钥
一. 第1步:创建SSH Key.在windows下查看[c盘->用户->自己的用户名->.ssh]下是否有id_rsa.id_rsa.pub文件,如果没有需要手动生成.打开git ...
- 让cocos h5里的文字可以在手机上被长按复制
更改CCBoot.js代码: // Adjust mobile css settings if (cc.sys.isMobile) { var fontStyle = document.createE ...
- 【数据库】SQLite学习
http://www.cnblogs.com/fnng/archive/2013/05/26/3099547.html
- TCP传输控制协议
TCP 在TCP/IP协议模型中, 传输层协议有TCP和UDP, 这里主要介绍下可靠传输TCP协议, 目前是传输层协议首选. 特点 面向数据流(字节流形式) 虚电路连接 有缓冲传输(提供push机制 ...
- 模糊聚类算法(FCM)
伴随着模糊集理论的形成.发展和深化,RusPini率先提出模糊划分的概念.以此为起点和基础,模糊聚类理论和方法迅速蓬勃发展起来.针对不同的应用,人们提出了很多模糊聚类算法,比较典型的有基于相似性关系和 ...
- element resetFields 方法报错
resetFields 对整个表单进行重置,将所有字段值重置为初始值并移除校验结果:如果用了之后报错如下: 查了下资料,是DOM加载的顺序问题: 解决方法: this.$nextTick(() =& ...
- Ubantu 新建用户后没有生成对应文件夹
原命令:useradd python 改正后:useradd python -m 后成功在home目录下创建文件夹 原因: man useradd就可以看到如此介绍:Create the user´s ...
- 【转】使用JMeter测试你的EJB
对EJB进行一些性能基准测试是非常有必要和有帮助的,测试的方法和工具有很多,不过我最近发现,Apache JMeter是进行基准测试的一个优秀工具.可惜的是,JMeter没有提供一个可测试任意EJB的 ...
- 【转】Jmeter安装 for windows
总结: 一.Jmeter安装总结 1.配置Java环境变量时需要注意设置的路径需要和JDK安装的路径一样 2.配置Java环境变量时需要注意JDK的版本号 3.配置环境变量时多个变量以分号隔开,但是确 ...
- CCPC2018-湖南全国邀请赛 K 2018
K.2018 题目描述 Given a, b, c, d , find out the number of pairs of integers ( x, y ) where a ≤ x ≤ b, c ...