Mobile Automation in Test Suite

Mobile Automation in Test Suite

A new, highly requested activity to retrieve the Session Id of your Mobile Device Connection, to execute advanced commands, is now available. You can simply store the Session Id in a Variable and use it wherever needed. In addition, this can also be logged to identify the Mobile Device execution more easily in a Cloud environment.

Background

UiPath had the feature for Mobile Automation earlier as well. To see, how mobile automation works, you can check this page. Reference Link: Mobile Device Automation

Mobile Device Connection

You can get the activities under UiPath.Mobile.Automation.Activities pack. With this, you can create automation for your devices, running native or web applications. Establishes a connection to a mobile device and provides a scope for all subsequent activities.

Creating Mobile Automation Workflows

Prerequisites

  • Studio License
  • UiPath.MobileAutomation.Activities
  • Device Farm
  • Appium Server
  • Configured device and applications

Create Workflow Using Recorded Actions

Create a workflow in Mobile Device Manager by indicating your actions on-screen and recording the steps. After finishing recording your actions, you can import the whole set in Studio.

  1. Open Mobile Device Manager and start an application.

  2. Open the Recorded Actions panel on the right side to keep track of your executed actions.

  3. On the right side of the mobile device emulator, choose an individual or multiple actions from the Action Bar or interact with the device manually.

  4. Open Studio and select Do within a sequence.

  5. Navigate to Mobile Automation > Import Recorded Actions to add them to the sequence.
    Previously recorded actions in MDM are now part of your Studio workflow.

Create Workflow Using Studio

  1. Open Studio.

  2. Select a Mobile Testing project from the default templates.

  3. Configure project details, select C#/VB, and then click Create.

  4. Create a new test case and add a Sequence to your workflow.

  5. Add a Mobile Device Connection activity within the sequence.

  6. Click Select Connection Details and set your device and web application.

  7. Open Mobile Device Manager and start a web application.

  8. Add a Tap activity, click Indicate Target and select the hamburger button on the Amazon AWS page. This will open the target selection mode in Mobile Device Manager.

  9. Repeat step 8 and select Documentation from the dropdown.

  10. Run your file to see it in action in Mobile Device Manager. You can find a list of the mobile automation activities in Mobile Automation Activities Pack.

Get Session Identifier Activity

It retrieves the session ID of the current Mobile Device Manager Connection to route HTTP commands to Appium endpoints so you can perform custom actions. For e.g., you can use Appium Fingerprint to use the fingerprint.

You can use the WebAPI Activities Package to make HTTP requests by using the Get Session Identifier to build endpoint request.

image

By : @dimple.khurana