verifyElementChecked fails the testcase

Using the below code to check whether checkbox is checked. Have continue on failure option as argument in the function. When checkbox is not checked testcase completes with failure. ** I want the testcase as passed** when checkbox is not checked how can i do it? I dont want to use the verifyElementnotchecked function.

retVal=WebUI.verifyElementChecked(findTestObject('Object Repository/admin/coupons/Page/coupon_onetime_checkbox_d'),0, FailureHandling.CONTINUE_ON_FAILURE)

Try this:

if (!retVal){
    KeywordUtil.markPassed('Test is passed!')

Tried KeywordUtil.markPassed(‘Test is passed!’) but its still the testcase is failing. It exits the testcase & doesnt continue running after this function.

Can you please share your test case with us?

Thanks for your help. Figured it out. You need to pass the third argument as FailureHandling.OPTIONAL so that it reports as warning but testcase is successful