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()) {
|
for (ParameterModel parameterModel : behaviorModel.getParameters()) {
|
||||||
if (parameterModel.getKey().equals("expResCnttype") ) {
|
if (parameterModel.getKey().equals("expResCnttype") ) {
|
||||||
|
|
||||||
if (parameterModel.getValue().matches(filterTypeMatch)) {
|
if (parameterModel.getValue() != null && parameterModel.getValue().matches(filterTypeMatch)) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -207,7 +207,7 @@ public class RequestHandler implements Runnable {
|
||||||
sb.append(changeList2String(headerMap.get(key)) + "\r\n");
|
sb.append(changeList2String(headerMap.get(key)) + "\r\n");
|
||||||
continue;
|
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");
|
sb.append("Content-Length: "+responseModel.getResponse().length +"\r\n");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue