Forum Discussion
SmartBear_Suppo
12 years agoSmartBear Alumni (Retired)
Hi!
First of all, this is a bit out of scope for the support offering. That said try this Groovy Script:
--
Regards
Erik
SmartBear Sweden
First of all, this is a bit out of scope for the support offering. That said try this Groovy Script:
import com.eviware.soapui.impl.rest.RestResource;
import com.eviware.soapui.impl.wsdl.teststeps.registry.RestRequestStepFactory
import com.eviware.soapui.config.TestStepConfig
import com.eviware.soapui.impl.rest.RestRequest;
import com.eviware.soapui.impl.rest.RestService;
RestService restService = testRunner.testCase.testSuite.project.getInterfaceList()[0]
RestResource resource = restService.getOperationAt( 0 );
RestRequest request = resource.getRequestAt( 0 );
TestStepConfig testStepConfig = RestRequestStepFactory.createConfig( request, "MyTestStep" );
testRunner.testCase.addTestStep( testStepConfig );
--
Regards
Erik
SmartBear Sweden
Related Content
- 12 years ago
- 2 years ago
Recent Discussions
- 9 days ago