Forum Discussion
1 Reply
Sort By
- PaulMSSuper Contributor
import com.eviware.soapui.impl.rest.RestResource
import com.eviware.soapui.impl.rest.RestRequest
import com.eviware.soapui.impl.rest.RestMethod
import com.eviware.soapui.impl.rest.RestService
import com.eviware.soapui.impl.rest.RestRequestInterface
RestService restService = testRunner.testCase.testSuite.project.getInterfaceList()[0]
RestResource resource = restService.getOperationByName( 'ResourceName' )
//resource = resource.getChildResourceByName( 'ChildResourceName' )
RestMethod method = resource.getRestMethodByName('MethodName')
method.setMethod(RestRequestInterface.HttpMethod.POST)
log.info method.getMethod()
Related Content
- 4 years ago
- 4 years ago
- 5 years ago
Recent Discussions
- 2 days ago