Forum Discussion

jelar's avatar
jelar
New Contributor
15 years ago

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:

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
No RepliesBe the first to reply