Rainforest supports testing native iOS applications in both VM environments and on real devices. The configuration for testing differs slightly for each Platform! This document will walk you through the setup for iOS app testing on a Virtual Machine.
Testing your native iOS App on a Virtual Machine
Set up your application file for testing:
- To test on an iOS VMs your app must be set up as a .app file
- You can generate this using the xcodebuild command:
xcodebuild ENABLE_BITCODE=NO -workspace YOUR_WORKSPACE -scheme YOUR_SCHEME -sdk iphonesimulator CONFIGURATION_BUILD_DIR="/tmp"
- NOTE: Be sure to Zip the file. Rainforest supports .zip , .tar and .gz.
- When you compile your .app bundle, make sure that it’s compiled for x86
- Host your app somewhere downloadable. Rainforest will automatically download and install your native iOS application for testing when you run a mobile test.
- Avoid links that redirect, require credentials, or limit access; the link should lead to a direct download.
- To set up your app for testing, simply add a link to your iOS .app file under ‘Apps’ in your site settings, and set the device type to ‘iOS’
Creating a new native iOS test
- To create a new test for your native iOS application, click New Test, then select ‘New Mobile Test’
- Click the dropdown, and select the URL for the .app file you wish to test
- Select the iOS VM from the Platforms section
- NOTE: As Rainforest will automatically download, install and start your application for testing, you cannot select non-iOS 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.