Forum Discussion
Hi
I am having difficulties trying to get the script to work
Here is the JSON RESPONSE for my API. I need to verify the fileName property is in ascending order and in a separate test/assertion descending order
ASCENDING ORDER:-
"results": [
{
"trackingEntryId": 752,
"documentId": 741,
"fileId": 731,
"fileName": "1000rows.xlsx",
"status": "Success",
"uploadedBy": "Smith, Will",
"uploadedDate": "2017-06-28T15:58:33.3463573",
"transactions": 1000
},
{
"trackingEntryId": 753,
"documentId": 742,
"fileId": 732,
"fileName": "700rows.xlsx",
"status": "Success",
"uploadedBy": "Smith, Will",
"uploadedDate": "2017-06-28T16:02:00.7279932",
"transactions": 700
},
{
"trackingEntryId": 643,
"documentId": 632,
"fileId": 623,
"fileName": "a73afef9-6af3-46f6-8084-059614bd523e.xlsx",
"status": "Success",
"uploadedBy": "Sinatra, Frank",
"uploadedDate": "2017-06-27T09:26:32.0337874",
"transactions": 1
},
*Can you add comments to your script as i am unsure of where you are getting the values from/cannot get the script to work.
THANKS