In Manual view, "${GlobalVariable.Hostname}" is presented wrongly

In my Test Case’s Script view I have a Groovy String with interpolation by placeholder ${ … } as follows:

WebUI.navigateToUrl("http://${GlobalVariable.Hostname}/")


This works just fine. No problem.

But in the corresponding Manual view, I found the Input to Navigate To Url is presented as:

http://$GlobalVariable.Hostname/


Well, I doubt it. Enclosing braces { } vanished. To be double-quoted or not to be double-quoted, that is the question.

Problem here is that the ${ … } syntax is not well documented as part of ‘Input’ value in the Manual view. People who are not familiar with Groovy programming would not understand what ${…} means.

More importantly, I suppose that people who depends on the Test Case’s Manual view (who does not use Script view) would find it difficult to understand how to make his/her Test Case refer to the GlobalVariables. How to use GlobalVariable from the Manual view? This question is not well answered by the Katalon documentations such as:

  1. https://docs.katalon.com/display/KD/Variable+Types
  2. https://docs.katalon.com/display/KD/Test+Case+Manual+View

ReferenceToGlobalVariableFromGroovyStringInScriptView.png

ReferenceToGlobalVariableFromGroovyStringInManualView.png

2 Likes