CXin
13 years agoFrequent Contributor
How to verify if the value in response is sort by descending
Hello,
Here is the case we want to see if a node value in response is order by descending. I was trying to figure that out but failed.
Anyone here can help me out? Thanks.
The sample output like below and we want to add an assertion to verify if "create_date" is order by descending
<ads>
<ad>
<create_date>value1</create_date>
</ad>
...
<ad>
<create_date>value1</create_date>
</ad>
...
</ads>
Thanks in advance!
Sophie
Here is the case we want to see if a node value in response is order by descending. I was trying to figure that out but failed.
Anyone here can help me out? Thanks.
The sample output like below and we want to add an assertion to verify if "create_date" is order by descending
<ads>
<ad>
<create_date>value1</create_date>
</ad>
...
<ad>
<create_date>value1</create_date>
</ad>
...
</ads>
Thanks in advance!

Sophie