Skip to content

Files

Latest commit

 

History

History
199 lines (122 loc) · 9.56 KB

bitrise-integration.md

File metadata and controls

199 lines (122 loc) · 9.56 KB
id title hide_title sidebar_label description keywords url site_name slug
appium-bitrise
How to integrate your Appium tests with Bitrise
true
Bitrise Integration (Appium)
Integrate LambdaTest with Bitrise CI to get started with Appium app automation across a wide range of real Android and iOS devices.
lambdatest bitrise
bitrise with lambdatest
manual app testing bitrise
appium testing with bitrise ci
appium bitrise
app testing with bitrise
app automation bitrise
LambdaTest
bitrise-integration/
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify({ "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.lambdatest.com" },{ "@type": "ListItem", "position": 2, "name": "Support", "item": "https://www.lambdatest.com/support/docs/" },{ "@type": "ListItem", "position": 3, "name": "Running Appium Tests In Bitrise CI", "item": "https://www.lambdatest.com/support/docs/bitrise-integration/" }] }) }} ></script>

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.

<img loading="lazy" src={require('../assets/images/bitrise-integration/newapp.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. In the Choose Account section, select the privacy of your app and click Next.

<img loading="lazy" src={require('../assets/images/bitrise-integration/next.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. Choose a source code provider (GitHub, BitBucket, GitLab or others).

<img loading="lazy" src={require('../assets/images/bitrise-integration/vcs.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. You will be now asked to authenticate your source code provider with Bitrise.

<img loading="lazy" src={require('../assets/images/bitrise-integration/authorize-bitrise.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

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

<img loading="lazy" src={require('../assets/images/bitrise-integration/cta.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. Now again click Next.

<img loading="lazy" src={require('../assets/images/bitrise-integration/nextafter.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. Select your repository from the version control system.

<img loading="lazy" src={require('../assets/images/bitrise-integration/chooserepo.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. From the Setup repository access section, click No, auto-add SSH key to add your SSH keys.

<img loading="lazy" src={require('../assets/images/bitrise-integration/auto-SSH.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. Enter your branch name and click Next. Your app will be configured and this will take few minutes.

<img loading="lazy" src={require('../assets/images/bitrise-integration/next2.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. In Project build configuration:
  • Specify module and click Next.

<img loading="lazy" src={require('../assets/images/bitrise-integration/module.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  • Specify variant and click Next.

<img loading="lazy" src={require('../assets/images/bitrise-integration/variant.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. A build information will show up. Click Confirm.

<img loading="lazy" src={require('../assets/images/bitrise-integration/confirmandroid.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. Choose and upload your App icon. Then click Choose Image and Proceed.

<img loading="lazy" src={require('../assets/images/bitrise-integration/appicon.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. From the Webhook setup, register or skip Webhook registration. In this case, let's select Register a Webhook for me!

<img loading="lazy" src={require('../assets/images/bitrise-integration/webhook.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. Now click on the message that says - We've kicked off your first test build for you!

<img loading="lazy" src={require('../assets/images/bitrise-integration/cta-2.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

Your app build will now trigger and start running.

Generating The App URL


  1. Once your build process is completed, click Edit workflow.

<img loading="lazy" src={require('../assets/images/bitrise-integration/edit-workflow.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. Click + icon under Android Unit Test.

<img loading="lazy" src={require('../assets/images/bitrise-integration/android-unit.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. A search steps box will appear. Enter LambdaTest Upload and click LambdaTest Upload card.

<img loading="lazy" src={require('../assets/images/bitrise-integration/lt-upload.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. In Input variables category:
  • Provide your App path.

<img loading="lazy" src={require('../assets/images/bitrise-integration/apppath.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  • In LambdaTest username, click Select secret variable.

<img loading="lazy" src={require('../assets/images/bitrise-integration/keyuservar.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  • Enter the key (it can be anything), your LambdaTest username and click Add new.

<img loading="lazy" src={require('../assets/images/bitrise-integration/username.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  • In LambdaTest access key, click Select secret variable.

<img loading="lazy" src={require('../assets/images/bitrise-integration/keysecvar.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  • Enter the key (it can be anything), your LambdaTest access key and click Add new.

<img loading="lazy" src={require('../assets/images/bitrise-integration/key.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  • Provide an App name.

<img loading="lazy" src={require('../assets/images/bitrise-integration/app-name.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  • Enter your Custom Id (optional).

<img loading="lazy" src={require('../assets/images/bitrise-integration/customid.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. After that, click Ctrl+S.

<img loading="lazy" src={require('../assets/images/bitrise-integration/ctrls.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. From the breadcrumb navigation, click on the Repo name.

<img loading="lazy" src={require('../assets/images/bitrise-integration/path.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. A build will be shown that you just run. Click on the build.

<img loading="lazy" src={require('../assets/images/bitrise-integration/clickbuild.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

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

<img loading="lazy" src={require('../assets/images/bitrise-integration/builddashboard.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. Scroll down and click on three dots adjacent to the LambdaTest icon.

<img loading="lazy" src={require('../assets/images/bitrise-integration/threedots.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

  1. Scroll a bit more and you'll see an App URL.

<img loading="lazy" src={require('../assets/images/bitrise-integration/appurl.webp').default} alt="Image" width="1444" height="703" className="doc_img"/>

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.

<img loading="lazy" src={require('../assets/images/bitrise-integration/realtime.webp').default} alt="Image" width="521" height="431" className="doc_img"/>