Forum Discussion
Hi,
I can't tell you exactly why they decided to force the HTTP Test Request window to force the URL to lowercase, but to work around this I have sometimes used a property expansion (see http://www.soapui.org/scripting---properties/property-expansion.html) to set the URL e.g.
Try setting the "Request URL" like https://www.google.co.uk/?search=${x}#q=${x}
(or you can also set the whole URL to an expression e.g. ${x} to have full control)
Then to set the value of x, you could set it (in the context) in a Groovy TestStep before the HTTP TestStep e.g.
context["x"]="TeSt"
Running the TestCase containing the two TestSteps will make an HTTP request with a mixed case URL e.g. look in the HTTP Log tab and you'll see:
Mon Apr 20 11:57:49 BST 2015:DEBUG:>> "GET /?search=TeSt#q=TeSt HTTP/1.1[\r][\n]"
Alternatively you could set the value of x from a Global property or system poperty, then not use the Groovy TestStep.
Hope this helps,
Cheers,
Rupert
Related Content
- 2 years ago
- 3 years ago
Recent Discussions
- 11 days ago