jelar
15 years agoNew Contributor
Create HttpRequest object using Groovy script
Hi all,
I'm trying to create com.eviware.soapui.impl.support.http.HttpRequest object in the groovy script instead of adding usual HTTP Test Request test step into test case:
I can get this object from existing HTTP Test Request:
But i can't create this object, because instance of com.eviware.soapui.config.HttpRequestConfig is required:
Where I can get correct implementation of HttpRequestConfig interface?
Waiting for your advices
I'm trying to create com.eviware.soapui.impl.support.http.HttpRequest object in the groovy script instead of adding usual HTTP Test Request test step into test case:
I can get this object from existing HTTP Test Request:
def ts = testRunner.testCase.testSteps["HTTPTestRequest"];
def HttpRequest request = ts.getTestRequest();
But i can't create this object, because instance of com.eviware.soapui.config.HttpRequestConfig is required:
HttpRequest request = new HttpRequest( config, false );
Where I can get correct implementation of HttpRequestConfig interface?
Waiting for your advices
