import java.util.*;
import java.lang.*;
String verify = prev.getResponseDataAsString();//获取响应结果
String test_verify=verify.substring(5,11); //截取验证码
log.info("提取JDBC请求返回的验证码:"+test_verify);
vars.put("myTest_verify", test_verify);
标签:jdbc,java,String,verify,响应,test,import,jmeter From: https://www.cnblogs.com/xiezhifei-testingtechnology/p/17218661.html