refactor create test plan and recording
This commit is contained in:
parent
15ac6877a4
commit
f30ed0f193
|
@ -216,7 +216,7 @@ public class TestPlanFactory {
|
|||
for (ParameterModel parameterModel : behaviorModel.getParameters()) {
|
||||
if (parameterModel.getKey().equals("expResCnttype") ) {
|
||||
|
||||
if (parameterModel.getValue().matches(filterTypeMatch)) {
|
||||
if (parameterModel.getValue() != null && parameterModel.getValue().matches(filterTypeMatch)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
|
|
@ -207,7 +207,7 @@ public class RequestHandler implements Runnable {
|
|||
sb.append(changeList2String(headerMap.get(key)) + "\r\n");
|
||||
continue;
|
||||
}
|
||||
if(key.equals("Content-Length") && headerMap.get(key).get(0).equals("-1")){
|
||||
if(key.equals("Content-Length")){
|
||||
sb.append("Content-Length: "+responseModel.getResponse().length +"\r\n");
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue