Step-by-Step Procedure on Connecting Real iOS & Android Devices from Cloud to Appium Studio:
This tutorial is a part of our Appium Studio hands-on training series.
- Ensure that neither Samsung Kies nor HTC Sync is installed on your system.
- Only use the proper, original cables for each device.
- Only use backports from a desktop.
- Disconnect devices using the USB cable, not the device port, as the number of times a USB port can be connected or disconnected is limited.
- Do not use USB V3.0 ports.
- We recommend Plugable USB 2.0 7 as a USB hub
- Ensure iTunes is up to date.
Connect an iOS Device to Appium Studio
iOS applications and device springboards can both be fully controlled with Appium Studio. Control of the springboard gives you control over: device settings, non-instrumented applications (SMS, Contacts, Dialer, etc…), launch and kill applications and application life-cycles.
Here is a video tutorial:
Note: If you do not need to control the device springboard and simply wish to test your application, Option B below provides a one-step connectivity plan.
For Testing and Springboard access to your iOS device:
- Close Appium Studio so USB drivers can update and install iTunes.
- Connect the device to be tested to your computer via USB.
Step 2:Run Appium Studio, navigate to Device Manager, click “Add Device,” and select “iOS Device.”
Step 3: There will be a dialog box that open. Click the checkbox labeled “Full Control.”
Step 4: Click “Configure Profile” on the announcement prompt that appears.
Step 5: The next dialog prompt will show you all your configured provision profiles and their associated devices:
Step 6: Click “Import,” and a new window will open.
Select one of the following options to continue:
Step 7: Select your initially connected device in the Device Manager, then click “Edit Device.”
Step 8: A dialog box will be displayed.
Verify the following:
- That the type of the device is correct.
- That the host featured is USB.
- That the ‘Full Control' checkbox is selected.
Note: If a profile is already configured to the device, then the checkbox will be enabled by default.
Step 9: Click OK.
Now the device will be available on the Device List and labeled “Ready.”
Step 10: Click “Open Device” to open the Device Reflection on your screen.
Connect an Android Device to Appium Studio
- Your machine should have your devices’ USB drivers installed.
- USB drivers are unique to each manufacturer. Use the following link to view websites for OEMs (Original Equipment Manufacturers) to download the appropriate drivers.
- There should be multiple serial numbers for multiple devices, otherwise, only one device will be identified. Generally, serial numbers are unique, but there are special cases in which two devices might have same one (for example: 123456).
- Any device connected should have “USB debugging” enabled if it is an option.
Enable USB Debugging
On version 4 or lower devices, USB debugging can be enabled by going to Settings => Applications => Development and enabling USB debugging there.
With version 4.2 or higher, follow these steps instead:
- Settings > About Phone > Build number > Tap it 7 times to become developer.
- Settings > Developer Options > USB Debugging.
After connecting the USB cable, an “Allow USB debugging” dialog box will pop up. Click “OK.”
Add the device to Appium Studio
1. Navigate to Appium Studio’s “Device” tab.
Click “Add Device” and select “Android.”
In the case that there are no Android devices detected, USB driver links will be provided.
Repeat Step 1 after the appropriate USB driver has been downloaded.
The serial number of your Android device should then appear in a pop-up window.
You should then be able to choose the device orientation:
Give the device a name and click “OK.”
The “Device” list will then be populated with the selected device.
Select your device and click “Open Device,” ensuring that the device status changes from “Ready” to “Open.”
The device reflection will then appear.
Our upcoming tutorial will explain more about the role of Emulators and Simulators in Appium Studio.