Service Virtualization

 View Only
  • 1.  Filter for latest suite run details in LISA Invoke API

    Posted Jul 21, 2020 11:49 AM
    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
    ------------------------------


  • 2.  RE: Filter for latest suite run details in LISA Invoke API
    Best Answer

    Posted Jul 22, 2020 09:25 AM
    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
    ------------------------------



  • 3.  RE: Filter for latest suite run details in LISA Invoke API

    Posted Jul 30, 2020 06:57 AM
    How do I know what SuiteId to filter for without knowing where the latest run is in the response array? I don't think there is a way for doing this currently as per the response on my support case, which I had raised for the same query.

    Thanks for your help!

    ------------------------------
    Thanks,
    Rahul Dutta
    SV-IHG-TCS-India
    ------------------------------



  • 4.  RE: Filter for latest suite run details in LISA Invoke API

    Posted Jul 30, 2020 07:40 AM
    Yes, OOB there is no such feature available in API to retrieve such details. 

    Thanks for the update.

    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------