Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Jul 24, 2019 15:49

by Nato Vasilevski

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 executions 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.

Please do not forget to hit the “Like” button if you found what you have been searching for. Thank you in advance! 

Step-by-step guide


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

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

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

    1. jobName[0]

    2. jobNumber[0]

    3. startExecutionTime[0]     (in milliseconds) (You might need Epoch Converter - https://www.epochconverter.com/)
    4. endExecutionTime[0]       (in milliseconds) (You might need Epoch Converter - https://www.epochconverter.com/)
    5. tags[0]

  3. Headers

    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:


You are done!


What do you need to do if you spot something is wrong?

You can open a case here ( https://support.perfecto.io )


Happy testing!

https://developers.perfectomobile.com/display/TT/PDF+Download+after+Test+execution

https://developers.perfectomobile.com/display/PD/DigitalZoom+Reporting+Public+API

https://developers.perfectomobile.com/display/PD/API+for+External+Test+Information

https://developers.perfectomobile.com/display/TT/Single+Execution+ID+for+multiple+Tests+by+using+TestNG