How to use Kobiton with CircleCI?

Reading Time : 3 min read
Kobiton with CircleCI integration dashboard showing automated mobile testing workflow

CircleCI Overview

CircleCI – Our mission is to empower technology-driven organizations to do their best work. We want to make engineering teams more productive through intelligent automation.

CircleCI provides enterprise-class support and services, with the flexibility of a startup. We work where you work: Linux, macOS, Android, and Windows – SaaS or behind your firewall.

Prerequisites for Running Your First Build

  • Some basic knowledge of Git.
  • A GitHub account, of which you are logged into. We will use GitHub for this guide but you can follow the equivalent processes for Bitbucket if required.
  • An account on CircleCI.
  • Some basic terminal or  bash knowledge and prior experience using the command line is helpful.
  • Navigate to GitHub and fork Kobiton repository.

Setting up CircleCI

If you have not yet, create an account on CircleCI by navigating to the signup page and clicking on Sign Up with GitHub.

  1. Navigate to the CircleCI Project Page.
  2. If you are part of any organization, you will need to select the organization you wish to work under in order to set up your repository with CircleCI.
  3. Once on the Project page, find the project you are using, in our case CircleCI , and click Set Up Project.
  4. On the following screen, choose a language from the dropdown to get a pre-populated config.yml file with suggested best-practices for your project. For this example, because we have a CircleCI repository, we will use the Node configuration example at the bottom of the list.
CircleCI Projects page displaying a repository list with a Set Up Project button, allowing users to configure and start continuous integration for a project.
CircleCI project setup page displaying a Node.js configuration template, build settings, and the Start Building button for continuous integration setup.

5. Click Start Building and follow the prompt to add your config to a new branch and start your first pipeline.

6. Click Add Manually button

CircleCI setup dialog showing configuration being added to a GitHub repository with a new branch and commit summary before creating the first pipeline.
Screenshot of a CircleCI setup prompt asking whether a .circleci/config.yml file has been added to the project. The dialog explains that the configuration file must be placed in a .circleci folder at the repository root before building. Two buttons are shown at the bottom: Download config.yml and Start Building.

7. You will be taken to the Pipelines page where you can view your newly running build.

Digging Into Your First PipelinE

You should see your pipeline start to run automatically—and failed! So, what just happened? Click on the read FAILED button on your pipeline to investigate the following parts of the run:

CircleCI jobs dashboard showing a failed build for the "master" branch, including workflow status, build details, and recent job activity.
  • Let’s investigate the steps of our job why it is failed. The first job is failed because we are missing some variables to run test with Kobiton Cloud.
CircleCI build details page showing a failed automated test job, with console logs indicating missing Kobiton environment variables required for test execution.
  • Now we will add two missing variables to the job.
Screenshot of the CircleCI project settings page displaying the Environment Variables section. The page lists two configured variables, KOBITON_API_KEY and KOBITON_USERNAME, with their values partially masked for security. Buttons for “Import Variables” and “Add Variable” are visible at the top right, while the left sidebar contains project settings and notification options.
  • Then rerun the job again. Hurray, the job is run successfully.
Screenshot of the Kobiton web portal displaying a mobile testing or automation management interface. The screen shows configuration options, test execution controls, and device or application management settings within the Kobiton platform. The interface is used to manage mobile testing workflows, configure automation sessions, and monitor test execution across real devices in the cloud.

Test Results on Kobiton portal

  • Now you can access https://portal.kobiton.com/sessions to get your test results.
  • Screenshot showing the Kobiton mobile testing platform interface with device selection and test execution options for mobile app testing across real devices.
  • We can see the session overview for the latest test session.
  • The HTTP Commands details are also included in the test result.
  • The video is also captured and uploaded.
  • The log report includes device log and Appium log as well.

Interested in Learning More?

Subscribe today to stay informed and get regular updates from Kobiton

Ready to accelerate delivery of
your mobile apps?

Request a Demo