Forum Discussion
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
5 years agoOccasional Contributor
i tried this too.. but it's giving error. It says, "java.lang.AssertionError: both list are not matching"
- nmrao5 years agoChampion Level 3Have 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.- _lauren115 years agoOccasional Contributor
Sir, i then converted list 1 response into decimal form. And then applied assert, which is now working
- HimanshuTayal5 years agoCommunity Hero
_lauren11 : As i can see in your question's screenshot, you are converting into String, so try to covert into List.
Hope this will work.
Related Content
- 6 years ago
- 2 years ago
- 7 years ago
Recent Discussions
- 15 years ago