"Element not found" now is "warning", not "failure"?

Update Katalon to the latest version and now errors like “Element not found” are warnings but not failures and test case go on running. How to return this kind of problems back to error or stop test case on warnings, globally of course?

Could you provide the script where the failure happens as well as the log?

Very awfully sorry! I use FailureHandling.OPTIONAL in code.

np Alex12. Glad that you found the rootcause and have the solution for it.

I use STOP_ON_FAILURE setting but the error “Test object with id ‘Object Repository/’ does not exist” is still considered Warning, not Failure; and a test case goes on running.
Any suggestions?

Please share your entire script and error/ warning log

P.S - Make sure to check your project settings for what error handling you have as default

I have many lines of WebUI.verifyElementPresent(findTestObject('Page_admin/standings_table_header'), 0)
The object Page_admin/standings_table_header doesn’t exist.

The warning:
2019-11-11 20:22:59.936 WARN c.k.k.core.testobject.ObjectRepository - Test object with id 'Object Repository/Page_admin/standings_table_header' does not exist

2019-11-11 20:22:59.975 WARN c.k.k.core.testobject.ObjectRepository - Test object with id 'Object Repository/' does not exist

I use STOP_ON_FAILURE setting by default.
I expected the test to fail and turn red but actually the test had warning and went on and turned green.

I am having same issue with Katalon Studio 7.2.1.
Is there any idea how to get FAILURE instead of WARNING for Wait For Element Visible keyword?

This is some example:

‘Wait for object is visible (logo)’
WebUI.waitForElementVisible(findTestObject(‘wep_001_Login_Page/logo’), 5, FailureHandling.STOP_ON_FAILURE)

Execution log:
waitForElementVisible(findTestObject(“wep_001_Login_Page/logo”), 5, STOP_ON_FAILURE)
Start / End / Elapsed: 2020-02-10 11:15:36.700 / 2020-02-10 11:15:41.988 / 00:00:05.288
11:15:41.957 INFO Unable to find the element located by ‘By.xpath: //img[@name=‘isc_7main’]’. Please recheck the objects properties to make sure the desired element is located.
11:15:41.964 INFO [SMART_XPATH] Auto-trying out other XPath values in the test object.
11:15:41.974 INFO [SMART_XPATH] FAILED XPATH: ‘//img[@name=‘isc_7main’]’.
11:15:41.974 INFO [SMART_XPATH] No working XPath is found.
11:15:41.986 WARNING Web element with id: 'Object Repository/wep_001_Login_Page/logo’ located by ‘By.xpath: //img[@name=‘isc_7main’]’ not found

Project settings > Test Design > Test Case > Default Failure Handling for Test Step: STOP_ON_FAILURE


Anyone found solution for this thing ?