The script in the example documentation given below does not append query parameters.
After creating a request object like below, and sending the request, the URL DOES NOT contain the query parameters. Can some please take a look?
Expected URL: http://jsonplaceholder.typicode.com/comments?postId=1&id=1
Actual URL: http://jsonplaceholder.typicode.com/comments
Script:
def requestObject = builder
.withRestRequestMethod("GET")
.withRestUrl("http://jsonplaceholder.typicode.com/comments")
.withRestParameters([
new TestObjectProperty("postId", ConditionType.EQUALS, "1"),
new TestObjectProperty("id", ConditionType.EQUALS, "1")
])
.withHttpHeaders([
new TestObjectProperty("Content-Type", ConditionType.EQUALS, "application/json")
])
.build()
Script example taken is taken from below link, and Katalon version tried is 7.1.2
https://docs.katalon.com/katalon-studio/docs/web-services-builder.html