jmeter断言
方法一
String responseString = prev.getResponseDataAsString();
String responseCheck ="\"code\":200";
if (responseString.contains(responseCheck))
{
prev.setSuccessful(true);
}else{
log.info("Error, responseString: "+responseString);
prev.setSuccessful(false);
}
方法二