Binary Statements
A Binary statement represents a dual expression consisting of two single expressions (variables, strings, numbers, methods...) and an operator, for example: +, -, *, <, <=, !, etc.). For more details about using operators in Groovy, refer to this Groovy documentation: Operators.
Note:
Once a test step is added as any of the control statements, it is not allowed to change into another keyword.
In manual view​
In script view​
In Script view​
The Script view of a test case allows you to programmatically define and handle binary statements using Groovy or Java languages.
For example :
-
To assign a value to a test object
myText = 'Welcome to Katalon Studio'
-
To assign a test object to a variable
myObject = findTestObject('my object') WebUI.setText(myObject, 'Welcome to Katalon Studio') WebUI.verifyTextPresent('Welcome to Katalon Studio', false)