I’m trying to create dynamic URL in WS request. I want to avoid building URL in TC. I have few problems with this:
Slash “/” from “://” is cut by URL formatting. My input ${URLProtocol}://${URLHost}:${URLPort}/bla/bla, after saving TO URL is formated to: ${URLProtocol}:/${URLHost}:${URLPort}/bla/bla.
After this I have try: https://${URLHost}:${URLPort}/bla/bla, after saving dialog window is showing (without message, only title “Error”).
Thx @huynguyen KS 6.2.0.rc1 do not have this problem. This will not help me at the moment, because I do not have permission from the security department to use Katalon Studio 6.2.0. I will have to wait for a stable version and then I will try to get permission
Change the request line in coding as
def requestObject = findTestObject(‘API/APINAME’, [(‘Server’) : GlobalVariable.APIServer, (‘ServerName’) : ‘${Server}’]) as RequestObject