Forum Discussion
SmartBear_Suppo
13 years agoSmartBear Alumni (Retired)
Hi,
You can programatically set the endpoint of a request by running request.endpoint = "<new endpoint>". You will need to do this for each endpoint, so you'll want to write something like this:
Regards,
Dain
SmartBear Stockholm
You can programatically set the endpoint of a request by running request.endpoint = "<new endpoint>". You will need to do this for each endpoint, so you'll want to write something like this:
import com.eviware.soapui.impl.support.http.HttpRequestTestStep
def endpoint = "<your endpoint here>"
project.testSuiteList.each { testSuite ->
testSuite.testCaseList.each { testCase ->
testCase.testStepList.findAll( { it instanceof HttpRequestTestStep } ).each { testStep ->
testStep.httpRequest.endpoint = endpoint
}
}
}
Regards,
Dain
SmartBear Stockholm
Related Content
- 2 months agoNicolaFilosa_SE
Recent Discussions
- 20 hours agoLukaszK