Download execution report using REST API call

If you want to be able to automate the process of downloading a report containing summarized list of your executions filtered by Job Name and their results (also called execution report) in PDF via REST API and if you have been wondering how to do it, this article is for you. For presentation purposes I have used Postman. Below in this article you can find more useful information in related articles.

Step-by-step guide

  1. The following HTTP GET command is used to download the execution report:

    https://<myCloud>.reporting.perfectomobile.com/export/api/v1/test-executions/pdf

  2. You add a Parameter with a value of your choice:

    Tip:

    You might need Epoch Converter: https://www.epochconverter.com/

    1. jobName[0]

    2. jobNumber[0]

    3. startExecutionTime[0]     (in milliseconds)

    4. endExecutionTime[0]       (in milliseconds) 

    5. tags[0]

  3. Add the following header parameters to the request:

    Name

    Value

    PERFECTO_AUTHORIZATION

    <Your personal security token>

  4. Run it and you should receive such result:

  5. Download the output as PDF:
  6. Open the file and there you will find all the desired result:

If you need more assistance, open a case with Perfecto Support.