Missing method exception error


#1

Trying to verify that a Get record contains the correct value for a specific field and im constantly receiving this error. My other test cases work fine and verify as expected. Not sure why this isnt working. Not sure if it has anything to do with the end node being a different name to the db name but from what im aware that shouldnt have an affect because its an Api Entity.

WS.verifyElementPropertyValue(response, 'AddressDetail[0].Line1', '29 The Harrage')

Error -

  .verifyElementPropertyValue(response, AddressDetail[0].Line1, 29 The Harrage)
    2019-05-09 10:20:58.670 ERROR c.k.k.core.main.WSVerificationExecutor   - ? Verification FAILED.
    Reason:
    groovy.lang.MissingMethodException: No signature of method: java.lang.Boolean.positive() is applicable for argument types: () values: []
    Possible solutions: notify()
    	at WSVerification1557393657790.run(WSVerification1557393657790:20)
    	at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
    	at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
    	at com.kms.katalon.core.main.WSVerificationExecutor.runScript(WSVerificationExecutor.java:146)
    	at com.kms.katalon.core.main.WSVerificationExecutor.doExecute(WSVerificationExecutor.java:140)
    	at com.kms.katalon.core.main.WSVerificationExecutor.processExecutionPhase(WSVerificationExecutor.java:123)
    	at com.kms.katalon.core.main.WSVerificationExecutor.accessMainPhase(WSVerificationExecutor.java:115)
    	at com.kms.katalon.core.main.WSVerificationExecutor.execute(WSVerificationExecutor.java:103)
    	at com.kms.katalon.core.main.TestCaseMain.runWSVerificationScript(TestCaseMain.java:127)
    	at com.kms.katalon.core.main.TestCaseMain$runWSVerificationScript$0.call(Unknown Source)
    	at TempTestCase1557393655828.run(TempTestCase1557393655828.groovy:21)

    2019-05-09 10:20:58.682 INFO  c.k.k.core.main.WSVerificationExecutor   - END Verification

#2

Issue fixed - just a syntax issue in my script that i didnt see at first :slight_smile: