How to Set Query Parameters in WebService Request

Hi there,

Here is the example you can follow:

'Add REST parameter using local variable from Variables tab'
RequestObject request = findTestObject('REST_CommentDetails')
request.getRestParameters().add(new TestObjectProperty('param1', ConditionType.EQUALS, GlobalVariable.param1))
request.getRestParameters().add(new TestObjectProperty('param2', ConditionType.EQUALS, GlobalVariable.param2))

'Send a REST request and returns its response'
def response = WS.sendRequest(request)

So you can use APIs to help you adding custom parameters usng Global Variables to the request object. Please refer to API page for more details.