Forum Discussion

8 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    def list1 = [1299, 3099]
    def list2 = [1299.0, 3099.0]
    assert list1 == list2, 'both lists are not matching'

    Have you tried as above?

    • _lauren11's avatar
      _lauren11
      Occasional Contributor

      i tried this too.. but it's giving error. It says, "java.lang.AssertionError: both list are not matching"

      • nmrao's avatar
        nmrao
        Champion Level 3
        Have you tried exactly above code and you getting the assertion fail? Only getting error for your data only?
        May be you want to provide your both samples of XML data.
  • nmrao's avatar
    nmrao
    Champion Level 3
    what happened to this? No update after the replies to the issue?
    • _lauren11's avatar
      _lauren11
      Occasional Contributor

      I replied in my previous comment that, i then converted list 1 response into decimal form., as list 2 was already in decimal kind of notation. After that, I applied assert. 🙂

       

      Regards..!