Validate response data bằng beanshell script

1. Tạo BeanShell Assertion

2. Thêm code và lưu lại

if (ResponseData.length < 60) {
Failure = true;
FailureMessage = “Expected empty response, got: ” + new String(ResponseData);
}

Leave a Reply

Your email address will not be published. Required fields are marked *