Skip to main content

Running Appium Tests In Bitrise CI


Bitrise offers a mobile CI/CD platform as a service (PaaS) to accelerate the automation of your software development projects. It provides different mobile-first features like exhaustive mobile stack coverage, store code anywhere in cloud or on-premise, and zero hardware setup that make building, testing, and deploying faster and easier.

Using LambdaTest with Bitrise, you can effortlessly perform Appium testing of your mobile apps on an online device farm of 3000+ real devices and OS versions.

Prerequisites


  1. Ensure you have access to LambdaTest real device cloud. If not, please contact sales.

  2. A Bitrise account.

  3. A GitHub / BitBucket / GitLab or other repository to connect with Bitrise.

Configuring The App Build In Bitrise CI


  1. Login to your Bitrise account.

  2. From Dashboard, click Add New App on web UI.

Image
  1. In the Choose Account section, select the privacy of your app and click Next.
Image
  1. Choose a source code provider (GitHub, BitBucket, GitLab or others).
Image
  1. You will be now asked to authenticate your source code provider with Bitrise.
Image

On successful authentication, you'll receive a confirmation message.

Image
  1. Now again click Next.
Image
  1. Select your repository from the version control system.
Image
  1. From the Setup repository access section, click No, auto-add SSH key to add your SSH keys.
Image
  1. Enter your branch name and click Next. Your app will be configured and this will take few minutes.
Image
  1. In Project build configuration:
  • Specify module and click Next.
Image
  • Specify variant and click Next.
Image
  1. A build information will show up. Click Confirm.
Image
  1. Choose and upload your App icon. Then click Choose Image and Proceed.
Image
  1. From the Webhook setup, register or skip Webhook registration. In this case, let's select Register a Webhook for me!
Image
  1. Now click on the message that says - We've kicked off your first test build for you!
Image

Your app build will now trigger and start running.

Generating The App URL


  1. Once your build process is completed, click Edit workflow.
Image
  1. Click + icon under Android Unit Test.
Image
  1. A search steps box will appear. Enter LambdaTest Upload and click LambdaTest Upload card.
Image
  1. In Input variables category:
  • Provide your App path.
Image
  • In LambdaTest username, click Select secret variable.
Image
  • Enter the key (it can be anything), your LambdaTest username and click Add new.
Image
  • In LambdaTest access key, click Select secret variable.
Image
  • Enter the key (it can be anything), your LambdaTest access key and click Add new.
Image
  • Provide an App name.
Image
  • Enter your Custom Id (optional).
Image
  1. After that, click Ctrl+S.
Image
  1. From the breadcrumb navigation, click on the Repo name.
Image
  1. A build will be shown that you just run. Click on the build.
Image

You'll be taken to the build interface as shown below.

Image
  1. Scroll down and click on three dots adjacent to the LambdaTest icon.
Image
  1. Scroll a bit more and you'll see an App URL.
Image

You're done! With this App URL, you can now perform Mobile App Automation. This app will also be available under Real Time Testing > Real Time > App Testing in the uploaded apps section.

Image