Read More

This entry is the second part of our Appium setup guide. In the first part we told you how to set up Xcode and Android SDK. Let’s move on:

Application for testing

You should remember certain app file specifications:
for iOS real device testing: *.app file build for ARM process architecture.
for iOS simulator testing: *.app file build for x86 process architecture.
for Android simulator or real device testing: *.apk.

Notice: The *.app file extracted from the *.ipa file can’t be tested on real device because it contains some sort of security.

How to Set Up Appium for Testing:

iOS:

1. Add ”App Path” and check the checkbox near it
2. If you use a simulator:
2.1.1 Select a device and check the checkbox in front of “Force Device”
2.1.2 Select a “Platform Version”
2.1.3 Check the checkbox in from of “Show Simulator Log”
If you use a real device:
2.2.1 Select a checkbox in front of UDID
2.2.2 In “UDID” field enter devices UDID (device UDID number could be opened in
iTunes/device page/Tap the “Serial number” field)
2.2.3 Uncheck the “Force Device” checkbox if it is checked

iOS settings
3. Launch the “Appium” app
4. Verify if all settings are corrected by taping the “Doctor” button
5. If all is correct tap the “Inspector” button to start recording the test.

Android:

1. Add ”App Path” and check the checkbox near it
2. Check checkboxes and select a package in fron of:
2.1 Package
2.2 Wait for Package
2.3 Launch Activity
2.4 Wait for Activity
3. Capabilities:
3.1 Select “Platform Name” – “Android”
3.2 Select “Automation Name” – “Appium”
3.3 Select “Platform Version” API 17+
4. Launch Device:
4.1 Check the checkbox in from of “Device Ready Timeout”
4.2 Set up “60” seconds to “Device Ready Timeout”
5. Using:
5.1 Emulator:
5.1.1 Check the checkbox in front of “Launch AVD” (the emulator device should already be created)
5.1.2 In capabilities – “Platform Version” select the AVD selected API (Android version)
5.2. Real Device:
5.2.1 Check the checkbox in front of “Device Name”
5.2.2 Fill the “Device Name” field with device name which can be get from “Android File Transfer” application
5.2.3 Check the checkbox in front of “Language”
5.2.4 Select devices language

Android settings
6. Launch the “Appium” app
7. Verify if all settings are corrected by taping the “Doctor” button
8. If all is correct tap the “Inspector” button to start recording the test.