Forum Discussion

Smarterbear's avatar
Smarterbear
New Contributor
8 years ago

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!

6 Replies

  • Smarterbear's avatar
    Smarterbear
    New Contributor

    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!

    • LauraKennedy's avatar
      LauraKennedy
      Staff

      Hello,

       

      What product version are you working on ?

       

      How was this assertion added/created. I am assuming this is a script assertion ?

       

      Did this assertion ever work for you?

       

      Thanks,

      Laura Kennedy

       

      • Smarterbear's avatar
        Smarterbear
        New Contributor

        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 just give that error message.

         

        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"))