Android

Testing your Android App’s UI with Espresso

Testing your Android App’s UI with Espresso

Android is one of the most used mobile operating systems in the market with an estimated market share of approximately 84.82%. Millions of apps loom in the Android OS, for various tasks and it’s a shame that only a small percentage of the apps have a well-developed user interface (UI), which is flexible and adaptable to various mobile sizes. For an average user, they want their apps to look good and do well. However, if you are an app developer there will be a monstrous problem for you, Android is open source and it comes in all sorts of mobile phones with all sorts of screen sizes. Android developers have taught of this problem and have introduced a new automated testing framework to test the UI of your app called Espresso.

Continue reading “Testing your Android App’s UI with Espresso”

Share
Installing Linux on an Android Phone

Installing Linux on an Android Phone

As a web developer, being able to run a Linux distro alongside your pre-existing mobile OS on your android phone is a very enticing offer. With a fully functional Linux program in your pocket at all times, you can begin to utilize your phone for various processes including powering a LAMP server and turning the device into a portable network, troubleshooting tool, and pen-testing device.

Continue reading “Installing Linux on an Android Phone”

Share

A step-by-step tutorial for continuous integration with Jenkins on a Red Hat Mobile Native Android application: Part 2

In part one of our series, we established the process around creating an Android application using Red Hat’s Mobile Application Platform and adding unit tests. Now, we’ll walk through how to use Jenkins for continuous integration on this app.

Pre-requisites for this tutorial

  1. RHMAP Instances
  2. Jenkins installed on Fedora
  3. Android Studio setup on a development machine.

The following are the topics covered in today’s post:

  1. Setup Jenkins to run Android Unit Test
  2. Install Jenkins plugins
  3. Install Android SDK and Tools
  4. Setup SSH on RHMAP and Jenkins
  5. Create an Android Emulator from command line
  6. Create a Jenkins project to run Android Unit Tests

Setup Jenkins to run Android Unit Test

This tutorial assumes Jenkins and git tools are installed on a Fedora machine.

Install Jenkins plugins

We need to install all the plugins needed to run Android build. From the Jenkins portal go to Manage Jenkins → Manage plugins→ Available and select the following

  1. Android Emulator Plugin
  2. Git plugin
  3. Gradle Plugin

Click Install without restart.

Continue reading “A step-by-step tutorial for continuous integration with Jenkins on a Red Hat Mobile Native Android application: Part 2”

Share