Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rajendrapenumalli/479c64fbdb69a507f2dbcf572ee0df42 to your computer and use it in GitHub Desktop.

Select an option

Save rajendrapenumalli/479c64fbdb69a507f2dbcf572ee0df42 to your computer and use it in GitHub Desktop.
Adding HTTP Delete Request using Groovy In SOAPUI
import static com.eviware.soapui.impl.wsdl.teststeps.registry.HttpRequestStepFactory.HTTPREQUEST_TYPE
//Provide the http request endpoint in the below
def endpoint = 'http://google.com'
//Valid http method GET | PUT | POST | DELETE etc
def method = 'DELETE'
def stepName = 'httpRequestStep7'
def tc=testRunner.testCase
//Adds http request step to given test case assumes tc is valid object of TestCase
tc.addTestStep(HTTPREQUEST_TYPE , stepName, endpoint, method)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment