Is it possible to run mobile automation with around four physical devices connected simultaneously, executing automation in unattended mode with multiple robots similar to normal unattended solution? If yes, what are the prerequisites, and are there any alternative solutions?"
You will need to setup Appium servers/instances locally for each physical phone. More Appium servers/instances can be run on the same Windows/Mac machine. Phones will have to be connected via USB (or WiFi might also be possible) to the machines, in order to allow communication.
Test Suite - Introduction, the automation should be parameterised to target a specific device.
A possible architecture might be:
- Orchestrator folder that contains all unattended robots.
Create an asset MobileDeviceConnectionDetails with value per robot that allows targeting a specific mobile device.
I aim to set up this automation in a manner similar to traditional unattended solutions, where multiple robots can be configured and executed on the same server.
Here are my challenges and questions:
1. Running Multiple Robots Simultaneously:
- How can I run four robots simultaneously for this mobile automation?
- Do I need to use four separate laptops, each with its own Appium server and Android Studio setup?
- Device and Server Setup:
- Does this mean each mobile device must be connected to an individual laptop to run the solution?
- How can I connect and manage four physical mobile devices on a single server while ensuring all robots and devices operate effectively?
- What is the best way to configure Appium servers for multiple robots and physical mobile devices?
- Resource Requirements:
- To achieve four simultaneous users, how many servers or laptops will be required?
Hello @rparobot ,
For every execution a UiPath robot is required. In order to run 4 executions in parallel, you would need 4 different UiPath robots. Those could be hosted on a physical machine, VM or in our cloud.
Thos UiPath robots, on execution, will talk to a Appium Server, which itself can be hosted on the robot machine or a different one, or just be the endpoint from a Cloud Provider such as Sauce Labs.
Running parallel Appium commands on the same Appium server is possible but has limitations and specific requirements. Here’s how you can do it and what you need to consider:
1. Parallel Tests on Different Devices
- Supported: Appium allows running parallel tests on multiple devices (real or emulated) connected to the same server. Each device requires a unique session.
- How:
- Start the Appium server with multiple ports for each session. For example, use different port numbers for each device (e.g.,
4723
,4724
, etc.). - Pass device-specific capabilities (like
udid
for Android orplatformVersion
for iOS) to target specific devices.
- Start the Appium server with multiple ports for each session. For example, use different port numbers for each device (e.g.,