1.添加BeanShell Sampler
2.编写BeanShell Sampler代码
3.引用参数
Jmeter-BeanShell Sampler调用java代码
原文:http://www.cnblogs.com/yanzhe/p/7603229.html