Forum Discussion
Hi
I can only sort on one property at a time, so one API call per sort, example API calls, sort by TransactionId Ascending/sort by DocumentId Descending etc etc. I am assuming I change the userList (as per your script) accordingly?
Can I ask you to add a few brief comments to the script so that I understand it better, if you have the time. Thank-you so very much.
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
Related Content
Recent Discussions
- 13 hours agodipsthorat
- 17 hours agoisbiat
- 21 hours agoLea
- 2 days agoarmygrad