Method Call statement allows you to call other methods provided by the built-in libraries of Katalon Studio.
Once a test step is added as any of the control statements, it is not allowed to change into another keyword.
In manual view
- Open a test case in Manual view. Click on the drop-down icon of the Add button, then choose Method Call Statements.
- To add a keyword under a statement, select that statement, then click Add . A test step is created under that statement.A test step representing a method call is added to the test case.
- Double-click on the Input cell to edit the called method.
- Save the test case when you're done.
In script view
The Script view of a test case allows you to programmatically define and handle method calls using Groovy or Java language.
WebUiBuiltInKeywords.openBrowser('', FailureHandling.STOP_ON_FAILURE) WebUiBuiltInKeywords.navigateToUrl(GlobalVariable.global_Gmail_Url, FailureHandling.STOP_ON_FAILURE) WebUiBuiltInKeywords.setText(ObjectRepository.findTestObject(null), 'varA'.toString(), FailureHandling.STOP_ON_FAILURE) Integer.notifyAll()