Contributions
assertion failed
Hi all, What does this error mean? Assertion failed: assert cleanseData(dataType, dbField, respField) == respField | | | | | | 2012 VARCHAR 2012 null | null false error at line: 210 Line 210 says: compareField("VARCHAR",JDBCResponse.getNodeValue("/Results/ResultSet/Row/IDLA_CCYY"), rawResponse.getNodeValue("/s:Envelope/s:Body/NonLtdBusinessData/Identification/LastUpdated/CCYY")) We've checked the X paths and they are correct, we also checked the field codes we are comparing to and they are correct too. It seems that if the response sends a value, the assertion fails, while if there is no value Thanks all!2.2KViews0likes6Comments- 2.2KViews0likes1Comment
Re: assertion failed
Hi Laura, Thanks for taking the time to look into this! Hereby my replies: What product version are you working on ? SoapUI 5.2.1 How was this assertion added/created. I am assuming this is a script assertion ? Yes Did this assertion ever work for you? We've got many and some do work,other justgive that errormessage. One that works: compareField("VARCHAR",JDBCResponse.getNodeValue("/Results/ResultSet/Row/IDFA1_DLLNG_CD"), rawResponse.getNodeValue("/s:Envelope/s:Body/NonLtdBusinessData/Identification/Fax/DiallingCode")) The one that errors out: compareField("VARCHAR",JDBCResponse.getNodeValue("/Results/ResultSet/Row/IDLA_CCYY"), rawResponse.getNodeValue("/s:Envelope/s:Body/NonLtdBusinessData/Identification/LastUpdated/CCYY"))2.2KViews0likes3CommentsRe: assertion failed
Hi all, What does this error mean? Assertion failed: assert cleanseData(dataType, dbField, respField) == respField | | | | | | 2012 VARCHAR 2012 null | null false error at line: 210 Line 210 says: compareField("VARCHAR",JDBCResponse.getNodeValue("/Results/ResultSet/Row/IDLA_CCYY"), rawResponse.getNodeValue("/s:Envelope/s:Body/NonLtdBusinessData/Identification/LastUpdated/CCYY")) We've checke dthe X paths and they are correct, we also checked the field codes we are comparing to and they are correct too. Hopefully someone might know : Thanks all!2.2KViews0likes5Comments