Run device automation through Mobile Device Manager without ever touching the device. To quickly understand how to automate a mobile project, set up Mobile Device Manager (MDM), and then create and run a workflow on a cloud device.
Step 1: Prepare The Test Automation Framework.
Step 2: Create a Mobile Testing Project
Step 3: Configure Mobile Device Manager
Step 4: Start the Application
Step 5: Record Actions
Step 6: Create and Run Mobile Automation
- Studio Pro license.
- UiPath.MobileAutomation.Activities. For more information, see Managing Packages. Alternatively, you can use the Mobile Testing Project default template, as this will install the activity package for you.
- Device farm
- Appium endpoint
Prepare your test automation framework through Node.js and Appium.
- Download and install Node.js.
- Open Node.js command prompt and run the following command to install Appium:
npm install -g appium
- For more information on Appium configuration, see Appium Getting Started.
- To prepare your environment for local devices, see Local Devices.
Create a mobile testing project in Studio.
- Open Studio.
- Select a Mobile Testing Project from the default templates.
- Configure project details and then click Create.
- Create a new test case or start with the default one located in Projects, under .tmh.
To prepare your test environment, open Studio and navigate to Mobile Automation > Mobile Device Manager to launch MDM.
The Mobile Device Manager button is added to the ribbon after you install UiPath.MobileAutomation.Activities, or if you open a Mobile Testing Project template.
Add your first cloud device to MDM.
- In the left navigation panel go to Devices.
- Click Add a new device.
- Configure your device as follows:
- Name - Enter a name to identify your device in the Devices tab.
- Appium URL - Enter the Appium server where your device is hosted.
- Platform - Click the field to select Android or iOS from the dropdown.
- Device Name - Enter the device name.
- Platform Version - Add the version number of your Android OS.
- Additional Desired Capabilities (Optional) - Add specific capabilities to customize your automation session. For more information, see Appium Desired Capabilities.
- Set Geo Location (Optional) - Set your device location to test applications that use Location Services to generate location data.
- Click Save & Close to add your device.
Your device is added to the Devices list. To add a local device, see Local Devices.
Add an application to be used by your device.
- In the left navigation panel go to Applications.
- Click Add a new application and enter a name for your application.
- Select App and configure the following Android settings:
- Click Save & Close to add your application.
You can now start your mobile device emulator.
- In the Welcome tab, click Start an application.
- Select a device and an application by choosing the ones you have just created.
- Click Connect.
It may take a while to establish a connection due to multiple connection layers and distance to your device farm.
Record your actions using the interaction bar, right next to your mobile device emulator. Through this, you can indicate your actions on-screen. Alternatively, you can design your workflow in Studio.
- Open the Recorded Actions panel on the right side to keep track of your executed actions.
- On the right side of the mobile device emulator, click the Android Home button.
- Click the Google search bar on the emulator screen and then click No Thanks to dismiss the overlay if needed.
- Double click on the search bar to send text and type in "Uipath Test Suite".
- Select Press Enter key after sending text and then click Send text.
Open Studio to import your recorded actions and run your mobile automation.
- Open Studio and add a Mobile Device Connection activity to your sequence.
- Click Select Connection Details and select your device and application.
- Select Do within the sequence.
- Navigate to Mobile Automation > Import Recorded Actions to add them to the sequence.
- Navigate to Debug File > Run File.
A new connection is established to the emulated mobile device to execute your actions in real-time.
To learn more about creating workflows for your mobile automation tests, understanding device interaction, and debugging, see the following topics:
Updated 26 days ago