jmeter常用的方法

1、String aa = prev.getResponseDataAsString();

2、String bb = aa.substring(from,to);

3、string.equals(string)//判断字符串相等

4、引入json.jar

import org.json.JSONArray;
import org.json.JSONObject;

JSONObject response_obj = new JSONObject(prev.getResponseDataAsString());

猜你喜欢

转载自www.cnblogs.com/brigth-9V/p/10223055.html