Solved
Forum Discussion
nmrao
Champion Level 3
Was it a number or string? Just because, they are padded with zeros.
bmcim123
7 years agoOccasional Contributor
It is an integer. For other API calls I will also need to need to assert on strings (whether they are being returned in ascending/descending order). In other words, I need a solution for both. Thanks.
- nmrao7 years agoChampion Level 3Ok, thank you for clarifying. What is the other field / property name?
- bmcim1237 years agoOccasional Contributor
Other field names include:-
FileName string
Status string
UploadedBy string
PurchaseDate date-time
Currency String- nmrao7 years agoChampion Level 3Based on the script given, you should be able adopt the script for all these properties.
Just pass required value to "getPropertyValues".
- nmrao7 years agoChampion Level 3Here you go:
https://github.com/nmrao/soapUIGroovyScripts/blob/master/groovy/json/ArePropertyValuesInOrder.groovy