Is it possible to use variables in Web Service URL?

Hi there,

Regard to your question: Katalon Studio didn’t support from test object view. However, you are freely to do this in test script using ‘setRestUrl’ function, e.g:

RequestObject request = findTestObject('REST_CommentDetails')

'Change Rest URL'
request.setRestUrl(GlobalVariable.katalonUrl + "/path/to/something")

'Send a REST request after its URL has been changed'
def response = WS.sendRequest(request)

There are also lots of APIs to support you changing request / response object in test script. Please refer to these APIs docs:

http://api-docs.katalon.com/studio/v4.5.0/api/com.kms.katalon.core/com/kms/katalon/core/testobject/RequestObject.html

http://api-docs.katalon.com/studio/v4.5.0/api/com.kms.katalon.core/com/kms/katalon/core/testobject/ResponseObject.html