This document will walk you through the setup for Android app testing on a Rainforest Virtual Machine that runs real Android OS.
Rainforest supports testing native Android phone and tablet applications in both portrait and landscape orientation.
Testing your native Android application
- Rainforest will automatically download and install your native Android application for testing. To set up your app for testing, simply add a link to your Android APK under ‘Apps’ in your site settings, and select the device type.
- NOTE: When you compile your .apk file, make sure that it’s compiled for x86
- Avoid links that redirect, require credentials, or limit access; the link should lead to a direct download.
- For existing tests: If you have installation instructions for your Android test, you should remove them for your current test cases.
Creating a new native android test
- To create a new test for your native android application, click New Test, then select ‘New mobile test’
- To set the app you wish to test, click the dropdown, and select the URL for the .apk file you wish to test
- Select the VMs you wish to test from the Platforms section
- NOTE: As Rainforest will automatically download, install and start your application for testing, you cannot select non-android VMs for this test.
Can I reuse my existing web tests?
Native mobile app and web application tests are separated in the Rainforest interface, since they cannot share a starting URL.
- The URL for a web browser test serves as a direction for the testers
- The URL for a native app test is a source, where Rainforest will access and install your native application
NOTE: You cannot duplicate an existing test and repurpose it for a different test type, but in many cases, you can (and should!) reuse the work that you have already done.
- If you have tests already in place, and your mobile version is similar to your desktop application you can simply copy the appropriate steps from within a web test to a new test for your mobile application.