Hi Rahul,
You can try retrieving the value of suiteRunId from the api response using jsonpath (something as below) . This runID could be used used to retrieve details of specific execution.
$._embedded.Suites[0].suiteRunId
Thanks.
------------------------------
Regards,
Vaibhav Jain
Capgemini
------------------------------
Original Message:
Sent: 07-21-2020 11:49 AM
From: Rahul Dutta
Subject: Filter for latest suite run details in LISA Invoke API
Hi,
I am trying to get the latest suite run report based on the suite name. When I use Retrieve Suite Reports, it gives all the reports from the suite runs in the specified time range. Is it possible to get the latest run report only? or can we sort the response arrays based on the 'LastExecuted' element?
The issue is - there are multiple response arrays and I am not sure which array to filter from in order to get the latest run results.
Thank you!
------------------------------
Thanks,
Rahul Dutta
SV-IHG-TCS-India
------------------------------