Microsoft App Center Integration

This topic describes how to migrate your apps from Microsoft App Center to a Sauce Labs Data Center by creating a post-build script in Microsoft App Center.

NOTE: If you're looking for the Legacy RDC (TestObject) solution, see Legacy Platform App Center Integration.

What You'll Need#

Creating the Post-Build Script#

  1. Link your project source code to your App Center project.

  2. Create a script called and add it to your project source code repository.

  3. If you're testing a cross-platform application using a framework such as React Native, add the following environment variables: APP_NAME and BUILD_NAME. If you're building a single project (iOS or Android), skip to the last step.

    #!/usr/bin/env bash
    # You can find this name in the build logs of a previous project.
    # For now, we'll create an empty variable and change it based on the
    # project that's using this script.
  4. Set the correct app name based on the application platform.
    See full example on GitHub
  5. You can optionally set a console message to appear in your App Center logs.
    See full example on GitHub
  6. Add the following command to push to the Sauce Labs Data Center that contains your target real device you want to test on.

    • Push to US Data Center
      See full example on GitHub
    • Push to EU Data Center
      See full example on GitHub

Use the App Storage API to retrieve a specific build or obtain information regarding the build that ran during this operation.

Last updated on by Kim