buildDialog();
} else {
dialog.setValue(Form.ENDPOINT, "");
}
params = new XmlBeansRestParamsTestPropertyHolder(testCase, RestParametersConfig.Factory.newInstance());
paramsTable = new RestParamsTable(params, false, NewRestResourceActionBase.ParamLocation.RESOURCE, true, false);
dialog.getFormField(Form.PARAMSTABLE).setProperty("component", paramsTable);
dialog.setValue(Form.STEPNAME, name);
try {
if (dialog.show()) {
HttpRequestConfig httpRequest = HttpRequestConfig.Factory.newInstance();
httpRequest.setEndpoint(HttpUtils.completeUrlWithHttpIfProtocolIsNotHttpOrHttpsOrPropertyExpansion(dialog.getValue(Form.ENDPOINT)));
httpRequest.setMethod(dialog.getValue(Form.HTTPMETHOD));
XmlBeansRestParamsTestPropertyHolder tempParams = new XmlBeansRestParamsTestPropertyHolder(testCase,
httpRequest.addNewParameters());
tempParams.addParameters(params);
tempParams.release();
TestStepConfig testStep = TestStepConfig.Factory.newInstance();
testStep.setType(HTTPREQUEST_TYPE);
testStep.setConfig(httpRequest);
testStep.setName(dialog.getValue(Form.STEPNAME));