2.3- Mobile Testing

Mobile Testing — Appvance IQ documentation.

Mobile Testing

Mobile Designer is AIQ’s test design technology for native mobile applications. Its visual accessor approach reduces dependence on traditional Appium locators and provides a robust way to identify mobile UI elements.

AISG and automatic regression testing extend this approach with autonomous testing capabilities for mobile applications.

AIQ supports native mobile, mobile web, and hybrid applications on iOS and Android. Supported test types include functional, API, performance, and load testing.

Mobile Designer supports script recording and playback. The Click By Image capability can incorporate screenshots into mobile scripts, and AISG for mobile can automatically identify locators for use in those scripts.

Last updated: October 15, 2026

If you have feedback on this topic, contact documentation@appvance.ai.

Mobile Designer New Interface - Legacy Overview

A new Mobil Designer interface was added in the 5.2.0 release of AIQ. It aligns perfectly with modern editor capabilities offering a more flexible and intuitive user experience that makes testing tasks easier and more efficient. The new Mobile Designer user interface is similar to the new Web Designer user interface that was introduced in AIQ release 5.0.0.

See an introductory video showing the new Mobile Designer interface in use.

To access the Mobile Designer, from AIQ navigate to Home > Mobile Testing > Mobile Designer.

This is an example of the new Mobile Designer interface.

Overview of Mobile Designer Controls and Icons

Icon / Control Function

Repository pane. Displays the contents of your repository. You can sort and filter using various controls.

Repository / Quick Access toggle. Switches the File Manager pane between the repository and quick access views.

Filter. Allows you to filter the items displayed in the File Manager.

Sort by Name / Sort by Type. Sorts the contents of the File Manager pane by name or by type.

Refresh Repository. Refreshes the display of the File Manager pane.

Editing controls menu.

  • Save
  • Undo
  • Redo

Additional save and export options menu. Lets you

  • Save as
  • Export to JavaScript

File Manager toggle. Shows/hides the File Manager pane.

Console toggle. Shows/hides the Console

Mobile Device selection control. Controlled by the mobile configuration that you created for your test.

See Mobile Configuration for more information.

Test controls.

  • Record
  • Play
  • Skip Step
  • Pause
  • Stop

Open Test Options menu. See Mobile Designer Test Options Details for more information.

Menu bar for interacting with a Mobile Configuration file.

You can:

  • Select a configuration file
  • Make the file path relative
  • Preview the json configuration file

See Mobile Configuration for more information.


Last updated: September 18, 2024

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Mobile Designer Classic - Legacy Reference

Legacy reference

Mobile Designer Classic should be treated as legacy documentation. Keep this page only for teams maintaining older mobile testing assets. Current mobile testing guidance should use Scenario Editor and current AIQ mobile terminology.

When this page is useful

Current recommendation

  1. Create new mobile tests using current AIQ mobile testing workflows.
  2. Move useful migration guidance into active Mobile Testing or Scenario Editor pages.
  3. Remove obsolete screenshots, product names, and unsupported feature references.
  4. Archive or delete this page when no supported legacy use remains.

Last updated: October 7, 2026

Mobile Testing Configurations in AIQ

These are the three supported configurations for testing mobile apps with AIQ.

AIQ and Mobile Devices in the Cloud

AIQ in the Cloud with Local Mobile Devices

Everything on the Local Machine


Last updated: April 11, 2024

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Get Started with Android Testing in AIQ

Setup

Configure Environment Variables


Install and Setup Android Studio


Create Virtual Device (Android Emulator)

  1. Start Android Studio

  2. Click Configure

  3. Click AVD Manager

  4. Click Create Virtual Device

  5. Select any Profile

  6. Click Next

  7. Select Any System Image

  8. Click Next

    1. If button is greyed out, download any System Image

  9. Provide Name

  10. Click Finish


Configure your Appium Server Emulator or physical Android phone file

The Appium Server configuration file must be updated for your specific environment and Application. This is a JSON file that contains an array of objects. Each object corrresponds to a machine which has Appium running and the Emulator installed or physical Android phone connected. The required keys and values of each object are:

{
  “serverURL”: “http:/example.com:4723/wd/hub, URL in which Appium runs”,
  “proxyURL”: “http://example.com:9090, optional, URL in which Test Designer runs”,
  “capabilities”: {
    “platformVersion”: “9, Appium seems to automatically detect the version”,
    “udid”: “some identifier, must be in list of adb devices command”,
    “systemPort”: “8200 - 8299, to automate multiple Emulators or physical Android phones”,
    “deviceName”: “Android 1, can be whatever name”
  },
  “app”: “Absolute path to where .apk file is in local file system or URL of .apk file, needed if value for appPackage is empty and value for appActivity is empty”,
  “appPackage”: “Package of AUT, needed if value for app is empty, otherwise is optional if value for app is not empty”,
  “appActivity”: “Main Activity of AUT, needed if value for app is empty, otherwise is optional if value for app is not empty”
}

Download the android-emulator-physical.json file and open it in an editor.

Download here: android-emulator-physical.json

  1. Replace the udid value in the template with the Identifier number of the Emulator or physical Android phone after running adb devices command.

  2. Update the appPackage to match your Application’s Package.

  3. Update the appActivity to match your Application’s Main Activity.


Create Android AISG

  1. Open Terminal

  2. Enter appium and press Enter

  3. Start AIQ services if not already running

  4. Log into AIQ and go to AI Scripting > Create AISG

  5. Click Mobile
    If Mobile is disabled, request an updated AIQ license

  6. Select Android in the Platform box

  7. Select Package in the Source box

  8. Select Tags in the Scan Type box (SmartTags not yet supported for Mobile)

  9. Confirm Visual Hints are enabled

  10. Click Browse in the Appium Servers box.

  11. Select the Appium Server Simulator description file created earlier in the setup

  12. Click Next

  13. Proceed with the AISG creation

    1. Enter a name in Execution Name box

    2. Click Load a Dataset from CSV file and check the Datasets in the list or check Default and enter variables and values

    3. Click Create

  14. AISG starts the Application and begins discovering its elements

  15. As Inputs Found updates, map any Custom Actions until the desired end point is reached in the Application

  16. If proxyURL is not empty in Appium Server configuration file, Appvance certificate installed in Emulator or physical Android phone, Application is compiled to use Appvance certificate and proxy settings of Simulator or physical iPhone configured to point to value of proxyURL

    1. Click Requests tab to view captured Requests performed during AISG

    2. Download Requests Report

  17. If Validations Workbench file is supplied, click Validations tab to view successful and failed Validations

  18. Download scripts in JS format (DS not yet supported for Mobile) to run in JS Edit & Play or in a Scenario


Notes


Last updated: June 26, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Getting Started with iOS and AIQ

Requirements

  1. Mac OS X
    At this time Catalina 10.15.3 required. This is to evolve as Mac OS X evolves.
  2. iOS Simulator compatible App file
  3. AIQ Controller locally installed on Mac

Setup

Install and Setup Xcode

  1. Download, install and open Xcode for first time.
  2. Make sure to accept the End User License Agreement.
  3. Make sure to install additional components.
  4. To view installed Simulators or connected physical iPhones
    1. Open Xcode, select Window > Devices and Simulators
    2. Click Simulators and select any model
    3. Note the iOS version number, Identifier value and Model name for later use. These correspond to platformVersion, udid and deviceName capabilities.
      For example:
      H1JOiUVeIVS8Pu22-729846f1013b.png
  5. Sign into your Apple account (Required if test will use physical iPhones. Skip this step if test uses Simulators)
    1. Select Xcode > Preferences > Accounts
    2. Click +
    3. Select Apple ID and click Continue
    4. Enter your Apple ID (must be a paying Account so Team ID value is assigned to Membership) and follow prompts until account appears in Accounts list
      HOB9cQEtbgBXFpo1-e6a63609c393.png
  6. Create a new Xcode Project (This step is only to test connection between Mac and Simulator or physical iPhone. Can be skipped)
    1. Open Xcode > File > New > Project
    2. Select iOS > Single View App and click Next
    3. Enter a name in the Project Name box
    4. Select a Team
    5. Enter a name in the Organization Name box
    6. Enter com.<anything> in the Organization Identifier box (I used com.appvance)
      • Bundle identifier appears as com.appvance.ProductName
    7. Leave the remaining options as default
      QdSaRqsR4RI8gfZP-c751c52023bf.png
    8. Click Next
    9. Specify the location to save the Project and click Create
      umhGIFPbAMAwSleS-9f79124d16be.png
    10. Press Play and confirm the Application launches in the Simulator or physical iPhone and displays your Hello World! app. You can change the Simulator or physical iPhone by clicking on the device name.
      4xYQLdjo4gjqyKlf-a0ce856e7efd.png
    11. Drag and drop any iOS Application file (have .app extension) to install to the Simulator
    12. Confirm just installed Application runs successfully
    13. Press Command + Q to stop the Simulator
    14. Press Command + Q to close Xcode

Install Homebrew

  1. Open Terminal
  2. Run the following command
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Appium Pre-requisites and Install

  1. Open Terminal
  2. Run the following commands in the order listed below


brew update
brew install libimobiledevice
brew install ios-deploy
brew install carthage
brew install appium



Configure your Appium Server Simulator configuration file

The Appium Server Simulator configuration file must be updated for your specific environment and Application. This is a JSON file that contains an array of objects. Each object corrresponds to a machine which has Appium running and the Simulator installed. The required keys and values of each object are:


{
  “serverURL”: “http:/example.com:4723/wd/hub, URL in which Appium runs”,
  “proxyURL”: “http://example.com:9090, optional, URL in which Test Designer runs”,
  “capabilities”: {
    “platformVersion”: “13.1, must correspond to one of installed Simulators”,
    “udid”: “some identifier, must correspond to one of installed Simulators”,
    “wdaLocalPort”: “8100 - 8199, to automate multiple Simulators or physical iPhones”,
    “deviceName”: “iPhone 8, must correspond to one of installed Simulators”
  },
  “app”: “Absolute path to where .app file is in local file system or URL of .app file, needed if value for bundleId is empty”,
  “bundleId”: “Bundle ID of AUT, needed if value for app is empty, otherwise is optional if value for app is not empty”
}


0. Download the ios-simulator.json file and open it in an editor


  1. Update the platformVersion to match the version of the Simulator.
  2. Replace the udid value in the template with the Identifier number noted during the Xcode setup.
  3. Update the bundleId to match your Application’s bundleId.
    How to find the Bundle ID?
    1. Right-click .ipa file and select Show Package Contents
    2. Look for a file ending in .plist
    3. Open the located file with a text editor
    4. Locate the Bundle ID, often a key containing the string BundleID or BundleIdentifier
    5. Locate a string tag similar to com.companyname.Appname
    6. Rename the configuration file to an app-specific name and save
      Save it someplace you’ll remember, for example with AIQ assets.

Configure your Appium Server physical iPhone configuration file

The Appium Server Simulator configuration file must be updated for your specific environment and Application. This is a JSON file that contains an array of objects. Each object corrresponds to a machine which has Appium running and the physical iPhone connected. For iOS physical devices 3 additional capabilities are needed:

String representing Apple developer team identifier. The Team ID is a unique 10-character string generated by Apple that is assigned to your team. You can find your Team ID using your developer account. Sign in to developer.apple.com/account, and click Membership in the sidebar. Your Team ID appears in the Membership Information section under the team name. You can also find your Team ID listed under the "Organizational Unit" field in your iPhone Developer certificate by opening Keychain Access app, click My Certificates in Category section and clicking appropriate certificate to show its details.

String representing a signing certificate. This is usually just ‘iPhone Developer’ without quotes.

String representing Bundle ID to update WDA before building and launching on real devices. This is usually just ‘com.facebook.WebDriverAgentRunner’ without quotes.


The required keys and values of each object are:


{
  “serverURL”: “http:/example.com:4723/wd/hub, URL in which Appium runs”,
  “proxyURL”: “http://example.com:9090, optional, URL in which Test Designer runs”,
  “capabilities”: {
    “platformVersion”: “13.1, must correspond to one of connected physical iPhones”,
    “udid”: “some identifier, must correspond to one of connected physical iPhones”
    “wdaLocalPort”: “8100 - 8199, to automate multiple Simulators or physical iPhones”,
    “deviceName”: “iPhone 8, can be whatever name”,
    “xcodeOrgId”: “Team ID”,
    “xcodeSigningId”: “iPhone Developer”,
    “updatedWDABundleId”: “com.facebook.WebDriverAgentRunner”
  },
  “app”: “Absolute path to where .ipa file is in local file system or URL of .ipa file, needed if value for bundleId is empty”,
  “bundleId”: “Bundle ID of AUT, needed if value for app is empty, otherwise is optional if value for app is not empty”
}


0. Download the ios-physical.json file and open it in an editor


  1. Update the platformVersion to match the version of the physical iPhone.
  2. Replace the udid value in the template with the Identifier number noted during the Xcode setup.
  3. Update the bundleId to match your Application’s bundleId.
    How to find the Bundle ID?
    1. Right-click .ipa file and select Show Package Contents
    2. Look for a file ending in .plist
    3. Open the located file with a text editor
    4. Locate the Bundle ID, often a key containing the string BundleID or BundleIdentifier
    5. Locate a string tag similar to com.companyname.Appname
    6. Rename the configuration file to an app-specific name and save
      Save it someplace you’ll remember, for example with AIQ assets.

Create iOS AISG

  1. Open Terminal
  2. Enter appium and press Enter
    4cft5rSmCzFmP41Q-39df2c89df7f.png
  3. Start AIQ services if not already running
  4. Log into AIQ and go to AI Scripting > Create AISG
  5. Click Mobile
    If Mobile is disabled, request an updated AIQ license
  6. Select iOS in the Platform box
  7. Select Bundle Id in the Source box
  8. Select Tags in the Scan Type box (SmartTags not yet supported for Mobile)
  9. Confirm Visual Hints are enabled
  10. Click Browse in the Appium Servers box
  11. Select the Appium Server Simulator description file created earlier in the setup
    MHj4an1rwVDSrutp-f96819ec8804.png
  12. Click Next
  13. Proceed with the AISG creation as you would with any other AISG
    1. Enter a name in Execution Name box
    2. Click Load a Dataset from CSV file and check the file in the list or check Default and enter variables and values
    3. Click Create
  14. The Simulator launches, starts the Application and begins walking through the Application
  15. As Inputs Found updates, map any Custom Actions until reach the desired end point in the Application
  16. Download scripts in JS format (DS not yet supported for Mobile) to run in JS Edit & Play or in a Scenario

Notes


Last updated: October 16, 2026

AWS Device Farm Mobile Testing

What Is AWS Device Farm?

Device Farm is an app testing service that enables you to test and interact with your Android, iOS, and Web apps on real, physical phones and tablets that are hosted by Amazon Web Services (AWS). There are two main ways to use Device Farm:

Automated App Testing

Device Farm allows you to upload your tests or use built-in, script-free compatibility tests. Because testing is automatically performed in parallel, tests on multiple devices begin in minutes.

A test report containing high-level results, low-level logs, pixel-to-pixel screenshots, and performance data is updated as tests are completed.

Device Farm supports testing of native and hybrid Android, iOS, and Fire OS apps, including those created with PhoneGap, Titanium, Xamarin, Unity, and other frameworks. It supports remote access to Android apps for interactive testing.

Supported Test Types and Built-in Tests

Device Farm currently provides support for the following test types:

For Android:

For iOS:

For Web Apps:

If you do not have your tests, you can use a built-in fuzz test. For more information, see Built-in: Fuzz (Android and iOS).

Remote Access Interaction

Remote access allows you to swipe, gesture, and interact with a device through your web browser in real-time. There are several situations where real-time interaction with a device is useful. For example, customer service representatives can guide customers through how to use or set up their devices. They can also walk customers through how to use apps running on a specific device. You can install apps on a device running in a remote-access session and then reproduce customer problems or reported bugs.

During a remote access session, Device Farm collects details about actions that take place as you interact with the device. Logs with these details and video capture of the session are produced at the end of the session for your review.

Initially, a limited number of Android and Fire OS devices are supported for remote access. However, the list of devices will grow during the beta period and as new devices enter the market.

Test Types in AWS Device Farm

AWS Device Farm provides many different built-in and custom test types for Android, iOS, and Web applications. Built-in tests enable you to test your apps without writing scripts. Custom tests allow you to test specific flows and business logic within your app. For more information, see Working with Test Types in AWS Device Farm.

Android Test Types

Device Farm provides the following built-in and custom test types for Android devices.

iOS Test Types

Device Farm provides the following built-in and custom test types for iOS devices.

Web Application Test Types

Device Farm provides the following custom test types for Web applications.

Working with AWS Device Farm

  1. Log in to the AWS console using valid credentials and the user should be able to see the Home page of AWS as shown below

  2. Click Device Farm

  3. The user would be navigated to the Projects page as shown below

  4. Click New Project

  5. Enter the Project Name and click Create Project and the user will be navigated to the Run page

  6. Now User has 2 options to choose from

Automated Tests

Step by step instructions on how to run automated tests in Device Farm

  1. Click create a new run

  2. User will be directed to a page to select either Native application or Web Application

  3. Select Native application and upload the APK or IPA file depending on the OS

  4. The user will upload the file

    Device farm will give us details about the package and the activity name. It also gives information on the Target SDK, Version code, and Version name.

    The user clicks on Next Step

  5. The user will be presented with Configure page where the user has to select the test type

    AWS provides 2 built-in options for testing i.e Explorer and Fuzz. Rest needs to be developed by the User.

    I will be selecting the Explorer option to test the application. Once that is selected click the Next step

  6. The user will be navigated to the Select Devices page

    This page will inform the user of the device which is compatible with the apk file or ipa file. Users can also create their device pool using the “Create a new device Pool” option

    Click Next

  7. The user now will be presented to the Device state page

    User can change settings like wifi, Blue-tooth, etc.

    Click Next

  8. Review and start the Run page

    The user has to select the minutes carefully since if the time given by the user is less than the actual run then only partial results will be available to the user

    Once the above setting is done user clicks on confirm and runs the button

  9. The user will be presented to the Run page with a scheduled test in Progress

    Once the user clicks on the completed test, it will be navigated to the results page

    Where the user can check the video recording, Suites that were run, screenshots, and also the logs needed for debugging.

Remote Access

This feature allows the user to interact with the actual device which is launched in AWS

Steps to Start a new session are given below

  1. Click Start new session button on the Remote access page. Users will be presented with a page to select the device name, Platform, and OS

  2. Select the device and click the “Confirm and Start Run” button

  3. User will be presented with a page to indicate to the user that the device is being initialized in the back-end

  4. Device will be launched and users can perform actions as they would on a physical device


Last updated: February 16, 2024

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Fallback Accessors for Mobile Testing

The Fallback Accessor option was been added for playback in the Mobile Testing IDE in the 4.9.5 release of AIQ.

You can enable the Fallback Accessors option so that AIQ keeps test running if an accessor fails or has changed, by automatically choosing other available accessors.

Enabling Fallback Accessors

Use the Scripts menu in the Mobile Testing IDE to access the Fallback Accessors option. By default the option is not turned on.

Playback Log

The playback log will indicate when a fallback accessor is not located and when a fallback accessor is located.

About Visual Accessors and Fallback


Last updated: April 11, 2024

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Mobile Record From Here

The Record from Here option is available in the Mobile Designer. Record From Here is a debugging option that you can use to add more steps to existing test scripts.

This option was added in the AIQ 4.9.3 release. Previously, this option was only available in the Web Designer IDE.

To use the Record from Here option:

  1. Open a test script.
  2. Select a step within the script.
  3. Right-click and select Record From Here.
    6xbbe3eZ6r2bLSCb-52cb6559a363.png
  4. Select the browser.
  5. The script will playback up to this point, and you will be able to continue to record adding additional steps into your scripts.

Last updated: October 16, 2026

Use Image Injection in AIQ Mobile Testing

The Set Camera Image function allows you to set an image to be used when triggering the camera during a test. For example, you could use this to inject a QR code into your test script.

Compatibility Summary

Service

iOS

Android

Requirements

Device

Simulator

Device

Simulator

On Premises

Not supported

Not supported

Not supported

Supported

Update emulator settings.

Sauce Labs

Supported

Not supported

Supported

Not supported

Add capability: sauceLabsImageInjectionEnabled: true

BrowserStack

Supported

Not supported

Supported

Not supported

Add capability: enableCameraImageInjection: true

LambdaTest

Supported

Not supported

Supported

Not supported

Add capability: enableImageInjection: true

On-Premises

Available for Android emulators only when running AIQ locally.

When running AIQ on an EC2 we don’t have access to JAVA_HOME environmental variable nor the local file system, hence we can’t override the emulator settings.

Android Emulator Setup

  1. From Android Studio open the Device Manager.

  2. Click the Edit button for the emulator that you want to use.

  3. In the Virtual Device Configuration window, click Show Advanced Settings.

  4. In the Camera section select VirtualScene from the drop down.

  5. Click Finish.

Sauce Labs

Available for Android and iOS physical devices only. There’s support for native apps only.

The config file’s capabilities need to include the following field:

"sauceLabsImageInjectionEnabled": "true"

Sauce Labs' App Config

  1. Login into your Sauce Labs account.

  2. Go to App Management.

  3. Click the Settings button for the app you want to use.

  4. Turn the Image Injection switch on.

Supported APIs

Android System Camera

For Android devices, there are multiple ways to capture an image, as described in the Android Camera API developer documentation. AIQ supports the following:

iOS System Camera

For iOS devices, the camera can be configured with different outputs. AIQ supports the following:

Sauce Labs documentation is available here.

BrowserStack

The config file’s capabilities need to include the following field:

"browserstack.enableCameraImageInjection": "true"

Supported APIs

Camera image injection is supported for the following Camera APIs. Check with your app development team to get more details about the Camera APIs your app uses.

OS

OS version

Supported APIs

iOS

iOS 13 and above

didFinishPickingMediaWithInfo API of UIImagePickerController iOS SDK class for capturing an image. For more details, please check Apple documentation.

AVCapturePhoto iOS SDK class for receiving captured photos from AVCapturePhotoOutput API. For more details, please check Apple Documentation.

jpegStillImageNSDataRepresentation of AVCaptureStillImageOutput iOS SDK class. For more details, please check Apple documentation.

Android

Android 6 and above

android.hardware.camera.PreviewCallback API for API level 1-20

android.hardware.camera2.CameraManager, android.hardware.camera2.CameraDevice, android.hardware.camera2.CameraCharacteristics, android.hardware.camera2.CameraCaptureSession, android.hardware.camera2.CaptureRequest, android.media.ImageReader APIs for API level >=21

Camera Intent API

Browser Stack full documentation here.

LambdaTest

The config file’s capabilities need to include the following field:

"enableImageInjection": "true"

LambdaTest App Setup

1. Login to your LambdaTest account.

2. Go to App Testing under Real Devices.

3. Hover the Settings icon and toggle the Image Injection switch on.

Supported APIs

Below given is the list of Camera APIs which are supported by LambdaTest Image Injection tool. Please ensure that your app uses these APIs only to enable Image Injection.

OS

Devices

Supported APIs

iOS

iOS 13 and higher

didFinishPickingMediaWithInfo API of UIImagePickerController iOS SDK class for capturing an image. For details, please check Apple documentation.

AVCapturePhoto iOS SDK class for receiving captured photos from AVCapturePhotoOutput API. For details, please check Apple Documentation.

Android

Android 9 and higher

CameraX API is used. For details, please check CameraX Documentation

Camera API is used. For details, please check this link.

Camera2 API is used. For details, please check this link.

ACTION_IMAGE_CAPTURE is standard Intent action that can be sent to have the camera application capture an image and return it. For details please check this link.

LambdaTest full documentation here.


Last updated: October 01, 2024

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Use Visual Accessors for Mobile Testing

Using visual accessors for mobile testing is new functionality that was in AIQ 4.9.0.

Further updates to the functionality have been made in AIQ 4.9.4. See Visual Accessors for Mobile Testing Enhancements for information on these functional changes.

The ability to use visual accessors has been added to the Mobile Test Designer. Visual accessors allow Mobile Designer to incorporate images into your test scripts. SmartTags Workbench and Mobile Blueprint have been enhanced so that images are defined as SmartTags and can be added to a Mobile Blueprint. This new functionality is available for both Android and iOS mobile devices.

Mobile Designer enables script recording and playback, a simpler approach to mobile test design than traditional mobile scripting. Using visual accessors allows Mobile Designer to incorporate screenshots into scripts.

Visual accessors are available for both Android and iOS mobile applications.

See the attached guides for the specific platforms for information on how the image-matching algorithm works, recommendations for getting the best results when using this feature, as well as information about setting up and configuring this new functionality.

Android Guide

iOS Guide


Last updated: August 14, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Mobile Self-Healing Support in AIQ

Self-healing creates a repository of accessors for each step in the test script. If an accessor changes permanently, AIQ will recommend substitutes based on what it has learned from previous executions of the test script and replace the accessor in the script automatically.

While the script is being self-healed, the IDE will highlight the steps that have been changed as part of the self-healing process.

The ability to self-heal a script for Mobile Testing was added in the 4.9.5 release of AIQ. Previously, this option was only available for Web Testing.

Enabling Self-Healing

You can invoke the self-healing function by right clicking inside a step in the test script, selecting SelfHeal Script and then choose the browser.

About Self-Healing


Last updated: July 24, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Sample Mobile Testing Scenarios

Android

var $serverURL = "http://localhost:4723/wd/hub";
var $platformName = "Android";
var $platformVersion = "9";
var $capabilities = {};
$capabilities.udid = "emulator-5554";
$capabilities.deviceName = "Android Device 1";
$capabilities.systemPort = "8201";
setServerURL($serverURL);
setClientType($platformName);
setCapability("platformVersion", $platformVersion);
setCapability("appPackage", "com.airwatch.androidagent");
setCapability("appActivity", "com.airwatch.agent.ui.activity.SplashActivity");
setCapabilities($capabilities);
start();
setValue(byId("com.airwatch.androidagent:id/hub_edit_text"), '');
click(byId("com.airwatch.androidagent:id/hub_button"));
click(byId('com.android.packageinstaller:id/permission_allow_button'));
wait(5000);
click(byXPath("//android.widget.Button[@resource-id='userStoreFormSubmit']"));
setValue(byXPath("//android.widget.EditText[@resource-id='username']"), '');
setValue(byXPath("//android.widget.EditText[@resource-id='password']"), '');
click(byXPath("//android.widget.Button[@resource-id='signIn']"));
click(byId('com.airwatch.androidagent:id/gdpr_accept_button'));
close();

iOS

var $serverURL = "http://localhost:4723/wd/hub";
var $platformName = "iOS";
//SIMULATOR Configuration
var $capabilities = {
    "platformVersion": "13.3",
    "udid": "Simulator Identifier",
    "wdaLocalPort": "8100",
    "deviceName": "iPhone 11 Pro"
};
//PHYSICAL DEVICE Configuration
var $capabilitiesPhysicalDev = {
    "platformVersion": "13.1",
    "udid": "iPhone Identifier",
    "wdaLocalPort": "8101",
    "deviceName": "iPhone Device",
    "xcodeOrgId": "Team ID",
    "xcodeSigningId": "iPhone Developer",
    "updatedWDABundleId": "com.facebook.WebDriverAgentRunner"
};
setServerURL($serverURL);
setClientType($platformName);
setCapability("bundleId", "com.arns.ArnsSTG");
setCapabilities($capabilitiesPhysicalDev);
start();
log(getSource());
click(byId("keypad.input.1"));
click(byId("keypad.input.2"));
click(byId("keypad.input.3"));
click(byId("keypad.input.4"));
wait(15000);
log(getAllElements());
click(byId("action_feed.card.cta"));
close();

Last updated: June 26, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Generate Mobile Traffic for Performance Testing

Appium Andriod and Appium IOS can be used to test your mobile applications.

You might have had a question, how could we make use of this to generate some traffic so we could also run performance/load tests on your mobile applications using the browser or the native mobile applications.

This article would provide you with the steps to generate the traffic from Traffic and then create a test scenario to run as performance tests. This article applies to both Appium IOS and Appium Android and there would be some changes that will be discussed in the below steps.


Last updated: June 26, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Test Mobile Responsiveness in a Browser

Appvance IQ supports the use of a Mobile Toggle device which is a feature of the Google Chrome browser launched from Google Developer tools.

The updated Device Mode that will be available from Chrome 49 or later is an integral part of the now-mobile-first Dev Tools and extends the main Dev Tools bar.

Right-click from your Chrome browser and select Inspect and toggle the Device mode button to turn Device mode on or off.

When Device Mode is on, the icon is blue, When it's off, the icon is grey.

Responsive mode

Appvance IQ uses Device mode on using the Responsive Mode as your default work mode. It is used during the active development of your site and app and resizes the view-port often to create a freely responsive design that adapts to even unknown and future device types.

Appvance IQ test designer supports a wide range of chrome responsive modes.

How to use in Appvance IQ

  1. Once logged in go to Test Designer IDE under Record

  2. Click File > New

  3. Under Record drop-down, you should notice Responsive > with the list of devices to choose from

  4. Select Responsive > preferred device from the list, Google Chrome should open in mobile responsive mode for recording based on the device chosen

  5. You will notice that the browser would be rendered in a mobile mode based on the chosen device just like how the app would open on any mobile device

  6. You could perform all the actions that are required to create a script in Test Designer

  7. If there are any complex steps that require some scripting, you could make use of Test Designer JS Edit & Play under Build to create JS and playback in Record mode

  8. These scripts can be re-purposed as Functional or Performance tests from Scenario Editor. The below example shows how to create a performance test using a Mobile browser

Creating your first mobile Performance Scenario

  1. Open a browser, navigate to your Appvance IQ URL, and log in using your credentials

  2. Select the Build option

  3. Scenario Editor appears

  4. Select File > New

  5. From the Info tab, click Please select a Test Type box and select Performance Test

  6. From the Test Management tab, select one of the Options from Completion Type for example Total Duration, Provide the Total Duration in Minutes

  7. From the Test Cases tab, click Add a Test Case Execution

  8. Enter a name for the test case in the Test Case Name box

  9. Enter a name for the script in the Script Name box

  10. Click the Script Type box and select Appvance Designer Script 3.0

  11. Click Browse (to the right of the Resource box)

  12. The Open window appears

  13. Select the Appvance Designer Script 3.0 (file extension .ds) created in the prior Getting Started Guide, and click Open

  14. The selected file appears in the Resource box

  15. Click the Browser box and select the browser as MOBILE to use for playback

  16. Click Save

  17. The test case appears in the Iteration 1 list.

  18. If necessary provide the Number of Users, you want to run the performance test in that duration.

  19. Select File > Save

  20. The Save window appears, displaying the Appvance Designer controller file system; not the local machine

  21. Browse to the desired directory, enter a name for the scenario in the File-Name box, and click Save

  22. To playback, click Play Scenario

  23. The scenario execution status launches in a new tab, and a new browser window opens, using the browser indicated in the scenario configuration, which executes the specified Appvance Designer script.

  24. When the Status displays Execution is done, click Test case(s) Executions

  25. Select the first result in the Test case(s) Executions list

  26. The output details, errors, requests & responses display on the corresponding tabs

  27. Click the Output tab (left set of tabs, below Live Reports) to view additional reports pertaining to this scenario execution


Last updated: June 26, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Mobile Apps - Processing Requests

Android Emulator and Physical Device:

This is regarding capturing all the HTTPS requests of the application and finding issues (slow requests and failing requests) from our AI technology, we need help from the dev team in compiling the application with the appvance certificate and Network security configuration XML file to be added to App's manifest XML File.

Reason for this: (We are bound to follow Android's security policies)

Since the introduction of Nougat (API 24) to Android, a number of changes were introduced to how Android handles trusted certificate authorities (CAs). Before, one only needs to install the self-signed SSL .cer file in the emulator/device Security Settings. Then the app will just simply be able to access your secure endpoints (HTTPS) using the global device settings.

The complete blog is here

There are only 3 steps to follow - For the first one, click here to download the pem file, the dev team should do the next 2 steps and send us the apk file.

IOS Simulator and Real Devices:

For Simulator, .app is required.

For Real Device testing, .ipa is required.

We will need access to TestFlight or other invitations in order to test the builds if the dev team compiles the app and uploads them on TestFlight to get the different app build versions to download and install/test the versions.

For Real Devices testing, the app should comply with the UDID of the device that will be used for testing to listen to all the requests and responses.

For instance, if we need to test on iPhones 8, 10, and 11, the UDIDs of those devices should be registered and complied with for us to download and install on those physical devices.

The reason for that is due to Apple’s policies on app distribution for testing, according to the below

Apple Help Xcode

Developer Apple Xcode

Is it compulsory to have UDIDs registered?

if we want to provide our device UDIDs and trust the client (even though we can’t think of any possible harm)

but we believe that the simplest and easiest way to deal with this (in order to avoid having the client register our iPhone’s UDID) is to use TestFlight

The customer simply provides us the link (hopefully it does not expire) and we can test their app without them having to register our UDIDs.


Last updated: October 15, 2026

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Prerequisites and validation

Coordinate certificate installation and network-security configuration with the mobile development team. Validate capture on both an emulator and a physical device when both are supported, and confirm that requests, failures, and slow responses are visible before interpreting AIQ analysis results.

Use Drag Gestures in Mobile Tests

Use this article when a mobile test needs to perform a drag gesture on a device or mobile browser viewport.

What changed in this article

Validation workflow

  1. Confirm the target element, device profile, orientation, and expected start/end position.
  2. Run the drag with conservative timing and verify the application state after the gesture.
  3. Replay on the same target profile and adjust only after reviewing screenshots or video evidence.

Review note: This page now documents drag as a mobile gesture with reproducibility checks.


Last updated: October 5, 2026

If you have feedback on this topic, contact documentation@appvance.ai.

Use Pinch Zoom Gestures in Mobile Tests

You can perform Zoom In and Zoom Out functions. These function mirrors users performing the pinch and zoom gestures. The following example shows this function in Google Maps.

MobileDesignerZoomIcon.jpg

This was added in the AIQ 5.0.0 release.

Zoom In

  1. In the Device tab, select a region.

  2. Right click and select Zoom In.

  3. Adjust the slider as needed and click Zoom In.

  4. The Zoom In action is performed and recorded.

Zoom Out

  1. In the Device tab, select a region.

  2. Right click and select Zoom Out.

  3. Adjust the slider as needed and click Zoom Out.

  4. The Zoom Out action is performed and recorded.


Last updated: January 30, 2024

If you have any feedback on this topic, please contact us at documentation@appvance.ai

Geo Location

You can use Geo Location for iOS and Android phones with Browser Stack, SauceLabs, and On Premise testing. The Geo Location format is latitude and longitude in decimal format.


Last updated: September 17, 2024

If you have any feedback on this topic, please contact us at documentation@appvance.ai