Ask a Question

How to disable URL encoding via groovy script?

Occasional Visitor

How to disable URL encoding via groovy script?

We are executing test cases in which we would like to pass special characters in our URLs to make sure our endpoints handle these scenarios gracefully.


We currently set the URL for each request as below, where requestData.getUrl() returns a URL with special characters in its endpoint:

// Set the endpoint
testStep.setPropertyValue("endpoint", requestData.getUrl())


The URL set would take the form of something similar to this: 



When making the request, we can see that SOAPUI is URL encoding the endpoint, so the request ends up looking more like this:



Is it possible via groovy scripting to disable URL encoding for this test request?

Super Contributor

It is possible to disable encoding of a template parameter value if you separate that resource path from the endpoint.

However Soap UI did not handle a test request when there was a $ symbol in the template parameter value and disable encoding. That might be a defect to avoid.

For custom encoding handling when setting a parameter value (the “Disable Encoding” setting)

Showing results for 
Search instead for 
Did you mean: