Can't use variables in Web Service Request URL


Katalon Studio 5.10.1

I’m trying to create dynamic URL in WS request. I want to avoid building URL in TC. I have few problems with this:

  1. 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.
  2. After this I have try: https://${URLHost}:${URLPort}/bla/bla, after saving dialog window is showing (without message, only title “Error”).

Hi @Igi_PL,
Please update to latest version 6.1.0 and check again.

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 :frowning:


Change the request line in coding as
def requestObject = findTestObject(‘API/APINAME’, [(‘Server’) : GlobalVariable.APIServer, (‘ServerName’) : ‘${Server}’]) as RequestObject

This worked for me in version 5.8.0

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.