- Getting Started
- Studio
- Orchestrator
- Testing robots
- Test Manager
- CI/CD Integrations
Test Suite User Guide
Local iOS devices
To set up a local device to work with the Mobile Automation activities, you need to run a local instance of Appium, and have the necessary tools to automate iOS devices.
There are two types of local iOS devices that you can automate:
- Physical - a physical iOS device that you can connect to your local machine, through a USB cable.
- Emulator - an emulator for an iOS device that's stored locally.
The list below describes the most used commands for setting up Appium in the context of Mobile Device Automation (recommended for Appium 2.0):
xcrun simctl list
- List available devices, device types, runtimes, or device pairs.xcrun simctl list devices
- lists the available devices.xcrun simctl list devicetypes
- lists the device types.xcrun simctl list runtimes
- lists the runtimes.xcrun simctl list runtimes
- lists the device pairs.
IPA
file to a URL that is anonymously accessible by the Appium server (e.g. Blob storage).
Installing applications from the Play Store or App Store is not possible, except if you manually automate these applications to install your specific application.
APP
extension and you want to upload the app to a public URL, you will need to create a folder named Payload
, place the APP
inside it, archive the Payload
folder and change the extension to IPA
instead of ZIP
.
Additionally, ensure that the application that you are trying to automate is compiled for the target architecture (simulator or physical device).
appium driver install xcuitest
.
- We recommend using Appium 2.0 with Mobile Automation version 22.10 or higher.
-
Install Appium 2.0 if you want to test your mobile automations on a iOS Physical Device.
- Open Xcode and allow it to install any additional components it may require. Close it once you see the splash screen.
-
Start the Appium server, using the following command:
appium --port 8001 --default-capabilities "{\"appium:systemPort\":9001}" --relaxed-security
.
Hybrid automation works by default for iOS devices, provided that you are not attempting to automate an app built for production. When automating production apps, WKWebView hosted content will not be automatable, though any web content hosted in an SFSafariViewController can be automated in production apps as well. For more information, see SFSafariViewController.