Integrate Testsigma with Bitrise CI


Bitrise is a CI tool specifically designed for mobile continuous integration and delivery system for iOS and Android native apps. Bitrise is an enterprise product and hence provides support for build executions on Linux and macOS as well.


Prerequisites

  • User needs a repository where the steps mentioned in a shell script file can be uploaded and updated.
  • To run a Test Plan created in Testsigma, update the filename/filepath of your shell script (e.g., bitrise.sh). Make sure this file exists in the repository linked to your app. Copy the shell script from this page into your bitrise.sh file and set the following properties:

    • TESTSIGMA_API_KEY
    • TESTSIGMA_TESTPLAN_ID
    • MAX_WAIT_TIME_FOR_SCRIPT_TO_EXIT

Steps to Follow

Step 1: Create Workspace

  1. After logging in, open the workspace dropdown in the top-left corner and click + Create Workspace. Create Workspace
  2. Enter a name for your new workspace and click Create. Create

Step 2: Setting Up a New Project with Bitrise CI

  1. Navigate to Dashboard from the left navigation bar, then click + New Project. Dashboard
  2. In the Choose how you want to get started dialog, select Start with Bitrise CI. Start with Bitrise CI
  3. Configure your app's privacy settings as needed, then click Next. Next
  4. Use the dropdown in the Provider field to select the required app, then click Connect account. Provide
Note:
  • Select your Git provider: GitHub, GitLab, or Bitbucket.
  • Authorize Bitrise to access your repositories.
  • Choose the repository that contains your bitrise.sh script.
  1. A new tab will open to authorize access — click Authorize to grant Bitrise access to GitHub. Authorize
  2. On the Install & Authorize Bitrise screen, click Install & Authorize. Install
  3. Browse and select the desired repository from GitHub, then click Next. Next
  4. From the Default Branch dropdown, choose the appropriate branch and click Next. Default
  5. Bitrise will now attempt to connect and verify the repository while configuring the app. This may take a few moments. Verify
Note:
  • If automatic configuration fails, select the Skip and configure manually radio button and click Proceed. View 1st build
  • Under the Configure your build section, open the Project Type dropdown and choose Other. Other
  1. Click View 1st Build. View 1st build

Step 3: Configure the Shell Script as Step

  1. On the Build #1 screen, click Edit Workflow. Edit workflow
  2. In the workflow editor, you can define a custom workflow and add the steps you need. You can also remove any auto-generated steps that aren't required.
  3. Click the + icon to add a new step. new step
  4. Search for Script Runner. Script Runner
  5. Expand the When to run section, enter ./bitrise.sh in the Script location field, set ./ in the Working directory (option) field, and leave all other fields at their default values, and click Save Changes. Configure
  6. Return to your project and click Start Build. Save Changes
  7. You can monitor progress in the build run section to view logs. Once all steps are complete, the build will be marked as passed or failed based on the outcome. Start Build