Export Test Data

Important

Visual Studio App Center is scheduled for retirement on March 31, 2025. While you can continue to use Visual Studio App Center until it is fully retired, there are several recommended alternatives that you may consider migrating to.

Learn more about support timelines and alternatives.

Overview

This document covers the scenario where an App Center Test customer has a client whose data is on the same account. If this client requests their data be exported, App Center Test has APIs to satisfy this request. All the APIs detailed are public and documented in App Center Swagger. For more information about App Center GDPR, visit GDPR: Managing Your Data.

Export Test Data for a client

When a client requires exporting their test reports, you may service this request using the following process:

  1. Generate an API token.

  2. Call the App Center Test API to acquire a list of all the test runs IDs owned by the client requesting deletion. You'll need the app name, and the owner (user or organization) name.

    GET /v0.1/apps/{owner_name}/{app_name}/test_runs
    
    GET https://appcenter.ms/api/v0.1/apps/CompanyOrg1/AndroidApp1/test_runs
    
  3. For each of the app IDs gathered in the previous step, make the following API call to export the data. This call returns all the files that have been uploaded for this app. The categories below for app test data.

    GET /v0.1/apps/{owner_name}/{app_name}/test/export
    
    GET https://appcenter.ms/api/v0.1/apps/CompanyOrg1/AndroidApp1/test/export
    

    Test Export API subcalls

    GET /v0.1/apps/{owner_name}/{app_name}/test/export/testRuns
    
    GET /v0.1/apps/{owner_name}/{app_name}/test/export/pipelineTests
    
    GET /v0.1/apps/{owner_name}/{app_name}/test/export/hashFiles
    
    GET /v0.1/apps/{owner_name}/{app_name}/test/export/fileSetFiles
    
  4. Aggregate all of the exported data to a file, send to customer.