Testing native mobile apps on Android

Micro Focus Expert
Micro Focus Expert
1 0 3,714

Silk Test 17.0 or later provides the ability to test native mobile apps on Android. This video introduces this functionality.


Micro Focus recommends setting the quality of the video to high definition (HD), because otherwise the video might not display correctly.

You can view additional Silk Test videos on YouTube.


 The increasing number of different screen sizes and Android versions that are available makes it harder every day for organizations to deliver their Android apps with confidence.

How can you ensure that your app runs on all relevant phones and tablets, given the vast number of combinations of Android versions, devices, and screen sizes that you need to support?

 Automating your testing can help. The higher the percentage of testing that is performed with quick and reliable automation, the easier you can claim support for additional combinations of devices, platforms, and screen sizes.








 Silk Test 17.0 includes built-in support for testing native and web applications on Android and iOS, both on physical devices and on emulators/simulators, thus helping organizations to deliver great apps with confidence.

 In this blog post we are going to walk you through a simple workflow with Android.


 To test a native mobile app on Android, make sure you have access to the binary file of the app, which means the APK  file. If you have access to the source code of your app, just compile the app without any modifications and you are ready to test the app with Silk Test. There are many ways of accessing the APK file, even if you do not have direct access to the code of the app. For example, you could pull the app directly from a device or you could install the app from Google Play.

 To perform the steps that are described below, you can use our InsuranceMobile sample application.

 To prepare for testing, connect your Android device to the local machine and make sure that you have the appropriate drivers for the device installed.

Setting up the test

To start testing, create a new project in Silk4J or Silk4NET, or a new visual test or .NET script in the Silk Test Workbench. If you want to use Silk Test Classic, create a new test script and click Configure Application in the workflow bar.

In the Select Application dialog, switch to the Mobile tab and select the device that you want to test on.


Browse to the location of the APK file and click OK to continue.

Recording the test

 You can now start to record your test script. The mobile recorder enables you to record actions remotely on the device and displays the recorded actions in the side bar.



When replaying the test, you can either use the device that you have used for recording, or any other locally connected device. In addition, if you use the Device Lab feature, you can even test on remote devices:



In this blog post, we've seen how easy it is to create automated tests for Android apps using Silk Test 17.0. But Silk Test can do much more for you: For example, you can record and replay tests for iOS applications just as easily. If you work in a distributed environment with a large team, you can even leverage the device lab capabilities built into Silk Test 17.0 to share your devices across the team.
Furthermore, Silk Tests cross-browser testing capabilities enable you to run tests for your mobile web application on the standard mobile browsers as well.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.