Can't use variables in Web Service Request URL

Hi,

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”).
    KS_Error

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

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:

Hi

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