# 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.

- Combine mobile scripts with other Test Designer scripts.
- Use a fully data-driven testing approach.
- Integrate with DevOps CI/CD workflows and results reporting.
- Use supported cloud services, including BrowserStack, SauceLabs, Experitest, and AWS Device Farm.
- Measure screen timing with accuracy of approximately ±15 ms.

## Related mobile-testing topics

- [Mobile Designer - New User Interface Overview](https://docs.appvance.net/Content/AIQ/52MobileDesigner/MobilDesigner_NewUI_Main.htm)
- [Mobile Designer (Classic)](https://docs.appvance.net/books/mobile-testing/page/mobile-designer-classic)
- [Mobile Testing Configurations](https://docs.appvance.net/Content/AIQ/MobileTesting/Mobile%20Testing%20Configurations.htm)
- [Getting Started with Android and AIQ](https://docs.appvance.net/books/mobile-testing/page/getting-started-with-android-and-aiq)
- [Getting Started with iOS and AIQ](https://docs.appvance.net/books/mobile-testing/page/getting-started-with-ios-and-aiq)
- [AWS Device Farm Mobile Testing](https://docs.appvance.net/books/mobile-testing/page/aws-device-farm-mobile-testing)
- [Fallback Accessors for Mobile Testing](https://docs.appvance.net/books/mobile-testing/page/fallback-accessors-for-mobile-testing)
- [Mobile Record From Here](https://docs.appvance.net/books/mobile-testing/page/mobile-record-from-here)
- [Image Injection](https://docs.appvance.net/books/mobile-testing/page/image-injection)
- [Visual Accessors for Mobile Testing](https://docs.appvance.net/books/mobile-testing/page/visual-accessors-for-mobile-testing)
- [Self-Healing for Mobile Testing](https://docs.appvance.net/books/mobile-testing/page/self-healing-for-mobile-testing)
- [Sample Mobile Scripts](https://docs.appvance.net/books/mobile-testing/page/sample-mobile-scripts)
- [Generating Traffic from Mobile and Running a Performance Test](https://docs.appvance.net/books/mobile-testing/page/generating-traffic-from-mobile-and-running-a-performance-test)
- [Mobile Responsiveness Browser](https://docs.appvance.net/books/mobile-testing/page/mobile-responsiveness-browser)
- [Mobile Apps - Processing Requests](https://docs.appvance.net/books/mobile-testing/page/mobile-apps-processing-requests)
- [Drag](https://docs.appvance.net/books/mobile-testing/page/drag)
- [Zoom In and Zoom Out](https://docs.appvance.net/books/mobile-testing/page/zoom-in-and-zoom-out)
- [Geo Location](https://docs.appvance.net/books/mobile-testing/page/geo-location)

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.](https://iq.appvance.ai/aiq-mobile-designer-video-0)

To access the Mobile Designer, from AIQ navigate to **Home** &gt; **Mobile Testing** &gt; **Mobile Designer**.

This is an example of the new Mobile Designer interface.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/Jyj4eRKHuvdOyVAw-da79fe66840c.png)

### Overview of Mobile Designer Controls and Icons

 <table class="TableStyle-ParameterTable" id="bkmrk-icon-%2F-control-funct" style="width:100%;"> <col class="TableStyle-ParameterTable-Column-Column1" style="width:323px;"></col> <col class="TableStyle-ParameterTable-Column-Column2"></col> <thead> <tr class="TableStyle-ParameterTable-Head-Header1"> <th class="TableStyle-ParameterTable-HeadE-Column1-Header1">Icon / Control</th> <th class="TableStyle-ParameterTable-HeadD-Column2-Header1">Function</th> </tr> </thead> <tbody> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body"> ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/G5kPawRxvigf6DUI-88c8bbb1ca84.png) </td> <td class="TableStyle-ParameterTable-BodyD-Column2-Body">Repository pane. Displays the contents of your repository. You can sort and filter using various controls.

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body"> ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/uwW0usoqsjbIDG49-548cf2786c33.png) </td> <td class="TableStyle-ParameterTable-BodyD-Column2-Body">Repository / Quick Access toggle. Switches the File Manager pane between the repository and quick access views.

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body"> ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/WhL1VMV02O13cpLC-b0da657d57df.png) </td> <td class="TableStyle-ParameterTable-BodyD-Column2-Body">Filter. Allows you to filter the items displayed in the File Manager.

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body"> ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/edsd9vvna8tiLb1q-1e810b6d6336.png) </td> <td class="TableStyle-ParameterTable-BodyD-Column2-Body"> Sort by Name / Sort by Type. Sorts the contents of the File Manager pane by name or by type.

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body"> ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/T1TZu6MIcKJXBOjS-35193ffa6cb3.png) </td> <td class="TableStyle-ParameterTable-BodyD-Column2-Body">Refresh Repository. Refreshes the display of the File Manager pane.

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body"> ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/VGJ7N0pY6PmCxo7l-340be0591580.png) </td> <td class="TableStyle-ParameterTable-BodyD-Column2-Body">Editing controls menu.

- Save
- Undo
- Redo
 
 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body"> ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/vPDSHhiVgCGeZlRc-30e66e2419cc.png) </td> <td class="TableStyle-ParameterTable-BodyD-Column2-Body">Additional save and export options menu. Lets you

- Save as
- Export to JavaScript
 
 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body"> ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/MZHHU2epQ7796oFR-c2cfa8f2d375.png) </td> <td class="TableStyle-ParameterTable-BodyD-Column2-Body">File Manager toggle. Shows/hides the File Manager pane.

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body"> ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/X9Mt9autplC0eZ5N-06451a12b25d.png) </td> <td class="TableStyle-ParameterTable-BodyD-Column2-Body">Console toggle. Shows/hides the Console

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body"> ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/q5GOPg34CW88vU81-1cb7e0960ab9.png) </td> <td class="TableStyle-ParameterTable-BodyD-Column2-Body">Mobile Device selection control. Controlled by the mobile configuration that you created for your test.

See [Mobile Configuration for more information.](https://docs.appvance.net/Content/AIQ/AIQ52MobileDesigner/MobileDesigner_MobileConfigFile.htm)

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body"> ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/yKdXMDeMVbhgkyrA-3b726ab5c199.png) </td> <td class="TableStyle-ParameterTable-BodyD-Column2-Body">Test controls.

- Record
- Play
- Skip Step
- Pause
- Stop
 
 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body"> ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/Y3dYlXMH4k0qBlkq-d468a237417d.png) </td> <td class="TableStyle-ParameterTable-BodyD-Column2-Body">Open **Test Options** menu. See [Mobile Designer Test Options Details for more information.](https://docs.appvance.net/Content/AIQ/AIQ52MobileDesigner/MobileDesigner_TestOptions.htm)

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyB-Column1-Body"> ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/8FtUc08KOrZO4ERL-ab5a2944b290.png) </td> <td class="TableStyle-ParameterTable-BodyA-Column2-Body">Menu bar for interacting with a Mobile Configuration file.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/f33YYmfPlmMpQpnQ-692e798e481f.png)

You can:

- Select a configuration file
- Make the file path relative
- Preview the json configuration file
 
See [Mobile Configuration for more information.](https://docs.appvance.net/Content/AIQ/AIQ52MobileDesigner/MobileDesigner_MobileConfigFile.htm)

 </td> </tr> </tbody> </table>

<div id="bkmrk-last-updated%3A-septem">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">September 18, 2024</span>

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

</div>

# 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

- Understanding or migrating old Mobile Designer assets.
- Comparing legacy mobile locators, gestures, or recordings with current Scenario Editor tests.
- Temporarily supporting customers on older AIQ workflows.

## 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

<a id="bkmrk-" name="aanchor233"></a>These are the three supported configurations for testing mobile apps with AIQ.

### AIQ and Mobile Devices in the Cloud

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/GOpTboJAygRXi0ux-f119f52f9ddd.png)

- User connects their local session to the AIQ instance in the cloud.
- AIQ cloud instance is connected to a mobile cloud provider.
- Mobile cloud provider facilitates a connection to either an emulator or real device.
- User is only required to connect to their AIQ EC2 instance using a web browser.
 
### AIQ in the Cloud with Local Mobile Devices

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/cx2skIGrkDCVYPlA-c7f3904ef23e.png)

- User connects to AIQ in the cloud.
- User has local mobile devices and emulators.
- Local computer acts as a relay for the mobile data between the local session and the cloud.
 
### Everything on the Local Machine

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/NMbxgsjJWeN0BYre-ff480fc6a163.png)

- User installs and configures AIQ on their local machine.
- Local machine has mobile devices connected or running as emulators.
- Everything runs on the local computer.
 
<div id="bkmrk-last-updated%3A-april-">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">April 11, 2024</span>

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

</div>

# Get Started with Android Testing in AIQ

# Setup

## Configure Environment Variables

- Set JAVA\_HOME environment variable.
- Add JAVA\_HOME/bin to PATH environment variable.
 
---

## Install and Setup Android Studio

- Set ANDROID\_HOME environment variable.
- Add ANDROID\_HOME/platform-tools and ANDROID\_HOME/tools to PATH environment variable.
- Download and install Android SDK Platforms.
 
---

## 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:

<div id="bkmrk-copy-%7B%C2%A0%C2%A0%E2%80%9Cserverurl%E2%80%9D%3A" style="border-width:1px;"><div><div class="codeSnippet"><div class="codeSnippetBody">```
{<br></br>  “serverURL”: “http:/example.com:<span style="color:#008080;">4723</span>/wd/hub, URL <span style="color:#333333;font-weight:bold;">in</span> which Appium runs”,<br></br>  “proxyURL”: “http:<span style="color:#999988;font-style:italic;">//example.com:9090, optional, URL in which Test Designer runs”,</span><br></br>  “capabilities”: {<br></br>    “platformVersion”: “<span style="color:#008080;">9</span>, Appium seems to automatically detect the version”,<br></br>    “udid”: “some identifier, must be <span style="color:#333333;font-weight:bold;">in</span> list <span style="color:#333333;font-weight:bold;">of</span> adb devices command”,<br></br>    “systemPort”: “<span style="color:#008080;">8200</span> - <span style="color:#008080;">8299</span>, to automate multiple Emulators or physical Android phones”,<br></br>    “deviceName”: “Android <span style="color:#008080;">1</span>, can be whatever name”<br></br>  },<br></br>  “app”: “Absolute path to where .apk file is <span style="color:#333333;font-weight:bold;">in</span> local file system or URL <span style="color:#333333;font-weight:bold;">of</span> .apk file, needed <span style="color:#333333;font-weight:bold;">if</span> value <span style="color:#333333;font-weight:bold;">for</span> appPackage is empty and value <span style="color:#333333;font-weight:bold;">for</span> appActivity is empty”,<br></br>  “appPackage”: “Package <span style="color:#333333;font-weight:bold;">of</span> AUT, needed <span style="color:#333333;font-weight:bold;">if</span> value <span style="color:#333333;font-weight:bold;">for</span> app is empty, otherwise is optional <span style="color:#333333;font-weight:bold;">if</span> value <span style="color:#333333;font-weight:bold;">for</span> app is not empty”,<br></br>  “appActivity”: “Main Activity <span style="color:#333333;font-weight:bold;">of</span> AUT, needed <span style="color:#333333;font-weight:bold;">if</span> value <span style="color:#333333;font-weight:bold;">for</span> app is empty, otherwise is optional <span style="color:#333333;font-weight:bold;">if</span> value <span style="color:#333333;font-weight:bold;">for</span> app is not empty”<br></br>}
```

 </div> </div> </div> </div>Download the **android-emulator-physical.json** file and open it in an editor.

Download here: [android-emulator-physical.json](../../../Resources/Scripts/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**
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/4cft5rSmCzFmP41Q-39df2c89df7f.png)
3. Start **AIQ** services if not already running
4. Log into **AIQ** and go to **AI Scripting** &gt; **Create AISG**
5. Click **<a name="aanchor59"></a>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
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/hwSgUa3ytQHeJJjg-9c51c47079be.png)
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 &amp; Play or in a Scenario
 
---

# Notes

- To run tests in Emulators, these must be already running since Appium won’t start them up. If capability “avd”: “name of Emulator” is provided, Appium will start only this Emulator.
- If capability “app”: “absolute path or URL of .apk file” is provided, Appium will try to install Application if not installed.
- After connecting physical Android phone to computer, Trust this computer dialog may show, click Accept button and checkbox to remember setting.
- It is normal if Appium logs show many entries with ECONNRESET error.
- If Appium logs show ECONNREFUSED or socket hangup errors, remove AUT from memory, shutdown Emulator or disconnect physical Android phone, restart Appium, restart Emulator or reconnect physical Android phone.
 
<div id="bkmrk-last-updated%3A-june-2">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">June 26, 2023</span>

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

</div>

# 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** &gt; **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](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/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** &gt; **Preferences** &gt; **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](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/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** &gt; **File** &gt; **New** &gt; **Project**
    2. Select **iOS** &gt; **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.&lt;anything&gt;** 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](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/QdSaRqsR4RI8gfZP-c751c52023bf.png)
    8. Click **Next**
    9. Specify the location to save the Project and click **Create**  
        ![umhGIFPbAMAwSleS-9f79124d16be.png](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/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](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/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)"
    ```
    
    
    - More details about Homebrew and installation: [https://brew.sh/](https://brew.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
```

- More details about Appium installation: [https://appiumpro.com/editions/40](https://appiumpro.com/editions/40)

---

## 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:

- xcodeOrgId

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[ <u>developer.apple.com/account</u>](http://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.

- xcodeSigningId

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

- updatedWDABundleId

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](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/4cft5rSmCzFmP41Q-39df2c89df7f.png)
3. Start **AIQ** services if not already running
4. Log into **AIQ** and go to **AI Scripting** &gt; **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](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/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 &amp; Play or in a Scenario

---

# Notes

- Appium starts up the Simulator that matches provided platformVersion, udid and deviceName capabilities.
- If capability “app”: “absolute path or URL of .ipa or .app file” is provided, Appium will try to install Application if not installed. Generally, if file has .ipa extension, this means Application was compiled for ARM and will only work with physical iPhones. If file has .app extension, this means Application was compiled for x86 and will only work with Simulators.
- After connecting iPhone to computer, Trust this computer dialog may show, click Accept button.
- First time testing Application in physical iPhone will show Untrusted Developer dialog. Close dialog, go to Settings, tap General, tap Device Management and tap blue link to trust certificate.
- First time installing WDA takes a long time and is normal for Appium logs to freeze. Afterwards it will show many ECONNRESET messages, the capabilities and finally start the AUT.

---

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 testing of apps using a variety of available testing frameworks
 
- Remote access to devices onto which you can load, run and interact with apps in real-time
 
**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:

- Appium Java JUnit
 
- Appium Java TestNG
 
- Appium Python
 
- Calabash
 
- Instrumentation (JUnit, Espresso, Robotium, or any instrumentation-based tests)
 
- UI Automator
 
- Explorer
 
For iOS:

- Appium Java JUnit
 
- Appium Java TestNG
 
- Appium Python
 
- Calabash
 
- UI Automation
 
- XCTest (including KIF)
 
- XCTest UI
 
For Web Apps:

- Appium Java JUnit
 
- Appium Java TestNG
 
- Appium Python
 
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.

- Built-in: Explorer (Android)
 
- Built-in: Fuzz (Android and iOS)
 
- Appium Java JUnit
 
- Appium Java TestNG
 
- Appium Python
 
- Calabash
 
- Instrumentation
 
- UI Automator
 
**iOS Test Types**

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

- Built-in: Fuzz (Android and iOS)
 
- Appium Java JUnit
 
- Appium Java TestNG
 
- Appium Python
 
- Calabash
 
- UI Automation
 
- XCTest
 
- XCTest UI
 
**Web Application Test Types**

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

- Appium Java JUnit
 
- Appium Java TestNG
 
- Appium Python
 
**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
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/DgilAjsoOG3MX5lM-fbf1086d41d3.png)
2. Click Device Farm
3. The user would be navigated to the Projects page as shown below
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/FoKGIHad34GyxS1t-d1dd814c2daa.png)
4. Click New Project
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/uBAPzGL517r7iY7f-2ea9e74539f5.png)
5. Enter the Project Name and click Create Project and the user will be navigated to the Run page
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/TD0D92ckLyc1klT8-7a8536e7de22.png)
6. Now User has 2 options to choose from
 
- Automated Tests
 
- Remote access
 
**Automated Tests**

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

1. Click create a new run
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/AVhNtqNulg3g4mQt-14d22ad9154a.png)
2. User will be directed to a page to select either Native application or Web Application
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/FbieMD22iACOCW2V-d5ee50ed04a4.png)
3. Select Native application and upload the APK or IPA file depending on the OS
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/wHaLuxaAVq0dqHLK-364e2aee0d61.png)
4. The user will upload the file
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/Ig1bWVPJbayUjCE7-61df18c9498e.png)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
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/jHQc4wj3CCpcEqc9-4c15e746ac5f.png)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
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/mqtAYlynAQXqxjOa-944c065b71ee.png)Click Next
7. The user now will be presented to the Device state page
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/b7T2sPzrGK3pgsyr-d6eb997eaa2f.png)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
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/4EPYvqz42GMxh2Fz-a1107e0335b9.png)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
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/lt3brRlt6UcyoAEf-9655df4759df.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/lIpqKQDImbRd9Jsy-883ef27bc5c6.png)Once the user clicks on the completed test, it will be navigated to the results page
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/gd1DVLE8IcJhUJJn-7967b4c3b7fc.png)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
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/8mop9D9gjw1RpFs0-15f70cf9cbb9.png)
3. User will be presented with a page to indicate to the user that the device is being initialized in the back-end
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/G423kyIqPDHUjQ54-9aacc5cf58d9.png)
4. Device will be launched and users can perform actions as they would on a physical device
 
 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/Ga9TLwFK5rED0Xjl-029f331c9d6f.png)<div id="bkmrk-last-updated%3A-februa">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">February 16, 2024</span>

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

</div>

# 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.

- If Fallback Accessors are enabled, AIQ will try one time for each accessor. If an accessor fails then it will scroll down and again try again each accessor one time and scroll until it reaches the end of the page or reaches maximum number scrolls.   
    The scrolling logic will scroll up to ten times, depending on what it locates. If it is not locating elements, it will stop before it reaches ten. If it is locating elements, it will continue until ten.
- If Fallback Accessors disabled, playback will function as it currently does. Tests may fail if an accessor fails or has changed.
 
### 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.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/6GPqLU61md6hqGkP-55fb9948a3ea.png)

### Playback Log

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

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/FwwJz0gwYn6KVMF4-82888b670fd7.png)

### About Visual Accessors and Fallback

- An accessor is a string that when evaluate finds a browser object.
- Every accessor has a fallback attribute which mean they will be used as fallback if the global fallback option is enabled.
- Image accessor are a byImg JS string in the AIQ engine.
- Target is the main accessor, the first element, and only visible in the script UI target is always fallback enabled.
- Other accessors are called fallback targets and could be used for fallback only if their fallback attribute is enabled.
- An accessor matches a browser object if, when evaluated it finds the same browser object.
 
<div id="bkmrk-last-updated%3A-april-">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">April 11, 2024</span>

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

</div>

# 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](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/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.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/4Ab1NHGaoPXfXsJA-87fa8a0b3417.png)

### Compatibility Summary

<div id="bkmrk-service-ios-android-"> <table class="TableStyle-ParameterTable"> <colgroup> <col></col> <col></col> <col></col> <col></col> <col></col> <col></col> </colgroup> <tbody> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body" rowspan="2" style="background-color:#d3d3d3;">Service

 </td> <td class="TableStyle-ParameterTable-BodyE-Column2-Body" colspan="2" style="background-color:#d3d3d3;">iOS

 </td> <td class="TableStyle-ParameterTable-BodyE-Column2-Body" colspan="2" style="background-color:#d3d3d3;">Android

 </td> <td class="TableStyle-ParameterTable-BodyD-Column2-Body" rowspan="2" style="background-color:#d3d3d3;">Requirements

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column2-Body" style="background-color:#d3d3d3;">Device

 </td> <td class="TableStyle-ParameterTable-BodyE-Column1-Body" style="background-color:#d3d3d3;">Simulator

 </td> <td class="TableStyle-ParameterTable-BodyE-Column2-Body" style="background-color:#d3d3d3;">Device

 </td> <td class="TableStyle-ParameterTable-BodyE-Column1-Body" style="background-color:#d3d3d3;">Simulator

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body">On Premises

 </td> <td class="TableStyle-ParameterTable-BodyE-Column2-Body">Not supported

 </td> <td class="TableStyle-ParameterTable-BodyE-Column1-Body">Not supported

 </td> <td class="TableStyle-ParameterTable-BodyE-Column2-Body">Not supported

 </td> <td class="TableStyle-ParameterTable-BodyE-Column1-Body">Supported

 </td> <td class="TableStyle-ParameterTable-BodyD-Column2-Body">Update emulator settings.

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body">Sauce Labs

 </td> <td class="TableStyle-ParameterTable-BodyE-Column2-Body">Supported

 </td> <td class="TableStyle-ParameterTable-BodyE-Column1-Body">Not supported

 </td> <td class="TableStyle-ParameterTable-BodyE-Column2-Body">Supported

 </td> <td class="TableStyle-ParameterTable-BodyE-Column1-Body">Not supported

 </td> <td class="TableStyle-ParameterTable-BodyD-Column2-Body">Add capability: sauceLabsImageInjectionEnabled: true

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body">BrowserStack

 </td> <td class="TableStyle-ParameterTable-BodyE-Column2-Body">Supported

 </td> <td class="TableStyle-ParameterTable-BodyE-Column1-Body">Not supported

 </td> <td class="TableStyle-ParameterTable-BodyE-Column2-Body">Supported

 </td> <td class="TableStyle-ParameterTable-BodyE-Column1-Body">Not supported

 </td> <td class="TableStyle-ParameterTable-BodyD-Column2-Body">Add capability: enableCameraImageInjection: true

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyB-Column1-Body">LambdaTest

 </td> <td class="TableStyle-ParameterTable-BodyB-Column2-Body">Supported

 </td> <td class="TableStyle-ParameterTable-BodyB-Column1-Body">Not supported

 </td> <td class="TableStyle-ParameterTable-BodyB-Column2-Body">Supported

 </td> <td class="TableStyle-ParameterTable-BodyB-Column1-Body">Not supported

 </td> <td class="TableStyle-ParameterTable-BodyA-Column2-Body">Add capability: enableImageInjection: true

 </td> </tr> </tbody> </table>

 </div>### 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.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/fgnG9wzcTiJVSlJ9-590d80817c91.png)
3. In the **Virtual Device Configuration** window, click **Show Advanced Settings**.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/6SgJ09xmgfMLDh3H-9bcd2613a03d.png)
4. In the **Camera** section select **VirtualScene** from the drop down.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/A6bFz37837PpvqXl-e3b0b104a803.png)
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:

<div id="bkmrk-%22saucelabsimageinjec"><div>```
"sauceLabsImageInjectionEnabled": "true"
```

 </div> </div>### 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.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/Fd1UluOs2XPjpZaQ-731ba526389a.png)
 
### Supported APIs

#### Android System Camera

For Android devices, there are multiple ways to capture an image, as described in the [Android Camera API](https://developer.android.com/guide/topics/media/camera) developer documentation. AIQ supports the following:

- `ACTION_IMAGE_CAPTURE` Opens the system camera and notifies the calling app when the image is taken.
- [camera2 API](https://developer.android.com/reference/android/hardware/camera2/package-summary): Everything is configured and handled from within the app.
- [cameraX](https://developer.android.com/training/camerax): Leverages the capabilities of `camera2`, but uses a simpler, use case-based approach that is lifecycle-aware.
- [Camera API (deprecated)](https://developer.android.com/reference/android/hardware/Camera): partially supported. As with `camera2`, everything is handled in the app itself. QR Code readers often use `Camera#setPreviewCallback`. We pass the injected image to this method, but the rest of this deprecated API is not supported. UI Elements will not likely display the injected image.
 
#### iOS System Camera

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

- `AVCapturePhotoOutput`: for capturing still images. The results are received via the AVCapturePhotoCaptureDelegateand the method captureOutput:didFinishProcessingPhoto:error: The other methods in this delegate are either deprecated or handle live photos, which we don't support.
- `AVCaptureVideoDataOutpu`t: for capturing video frames and processing them. The frames are received via AVCaptureVideoDataOutputSampleBufferDelegate and the method captureOutput:didOutputSampleBuffer:fromConnection:.
- `AVCaptureMetadataOutput`for reading QR-Codes. The QR Codes are passed to the app via `captureOutput:didOutputMetadataObjects:fromConnection:`. We are detecting the `AVMetadataMachineReadableCodeObject` and QR Codes are part of that.
 
Sauce Labs documentation is available [here](https://docs.saucelabs.com/mobile-apps/features/camera-image-injection/).

### BrowserStack

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

<div id="bkmrk-%22browserstack.enable"><div>```
"browserstack.enableCameraImageInjection": "true"
```

 </div> </div>#### 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.

<div id="bkmrk-os-os-version-suppor"> <table class="TableStyle-ParameterTable"> <colgroup> <col></col> <col></col> <col></col> </colgroup> <tbody> <tr class="TableStyle-ParameterTable-Body-Body"> <th class="TableStyle-ParameterTable-BodyE-Column1-Body" style="background-color:#dcdcdc;">OS

 </th> <th class="TableStyle-ParameterTable-BodyE-Column2-Body" style="background-color:#dcdcdc;">OS version

 </th> <th class="TableStyle-ParameterTable-BodyD-Column1-Body" style="background-color:#dcdcdc;">Supported APIs

 </th> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body">iOS

 </td> <td class="TableStyle-ParameterTable-BodyE-Column2-Body">iOS 13 and above

 </td> <td class="TableStyle-ParameterTable-BodyD-Column1-Body">didFinishPickingMediaWithInfo API of UIImagePickerController iOS SDK class for capturing an image. For more details, please check [Apple documentation](https://developer.apple.com/documentation/uikit/uiimagepickercontrollerdelegate/1619126-imagepickercontroller).

AVCapturePhoto iOS SDK class for receiving captured photos from AVCapturePhotoOutput API. For more details, please check [Apple Documentation](https://developer.apple.com/documentation/avfoundation/avcapturephoto).

jpegStillImageNSDataRepresentation of AVCaptureStillImageOutput iOS SDK class. For more details, please check [Apple documentation](https://developer.apple.com/documentation/avfoundation/avcapturestillimageoutput).

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyB-Column1-Body">Android

 </td> <td class="TableStyle-ParameterTable-BodyB-Column2-Body">Android 6 and above

 </td> <td class="TableStyle-ParameterTable-BodyA-Column1-Body">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 &gt;=21

Camera Intent API

 </td> </tr> </tbody> </table>

 </div>Browser Stack full documentation [here](https://www.browserstack.com/docs/app-automate/appium/advanced-features/camera-image-injection#upload-image-camera%7D).

### LambdaTest

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

<div id="bkmrk-%22enableimageinjectio"><div>```
"enableImageInjection": "true"
```

 </div> </div>#### 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.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/WpjQtvhCLrSO69zL-d13140f9ce45.png)#### 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.

<div id="bkmrk-os-devices-supported"> <table class="TableStyle-ParameterTable"> <colgroup> <col></col> <col></col> <col></col> </colgroup> <tbody> <tr class="TableStyle-ParameterTable-Body-Body"> <th class="TableStyle-ParameterTable-BodyE-Column1-Body" style="background-color:#dcdcdc;">OS

 </th> <th class="TableStyle-ParameterTable-BodyE-Column2-Body" style="background-color:#dcdcdc;">Devices

 </th> <th class="TableStyle-ParameterTable-BodyD-Column1-Body" style="background-color:#dcdcdc;">Supported APIs

 </th> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body">iOS

 </td> <td class="TableStyle-ParameterTable-BodyE-Column2-Body">iOS 13 and higher

 </td> <td class="TableStyle-ParameterTable-BodyD-Column1-Body">didFinishPickingMediaWithInfo API of UIImagePickerController iOS SDK class for capturing an image. For details, please check [Apple documentation](https://developer.apple.com/documentation/uikit/uiimagepickercontrollerdelegate/1619126-imagepickercontroller).

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body"> </td> <td class="TableStyle-ParameterTable-BodyE-Column2-Body"> </td> <td class="TableStyle-ParameterTable-BodyD-Column1-Body">AVCapturePhoto iOS SDK class for receiving captured photos from AVCapturePhotoOutput API. For details, please check [Apple Documentation](https://developer.apple.com/documentation/avfoundation/avcapturephoto).

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body">Android

 </td> <td class="TableStyle-ParameterTable-BodyE-Column2-Body">Android 9 and higher

 </td> <td class="TableStyle-ParameterTable-BodyD-Column1-Body">CameraX API is used. For details, please check [CameraX Documentation](https://developer.android.com/training/camerax)

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body"> </td> <td class="TableStyle-ParameterTable-BodyE-Column2-Body"> </td> <td class="TableStyle-ParameterTable-BodyD-Column1-Body">Camera API is used. For details, please check [this link](https://developer.android.com/training/camera-deprecated).

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyE-Column1-Body"> </td> <td class="TableStyle-ParameterTable-BodyE-Column2-Body"> </td> <td class="TableStyle-ParameterTable-BodyD-Column1-Body">Camera2 API is used. For details, please check [this link](https://developer.android.com/training/camera2).

 </td> </tr> <tr class="TableStyle-ParameterTable-Body-Body"> <td class="TableStyle-ParameterTable-BodyB-Column1-Body"> </td> <td class="TableStyle-ParameterTable-BodyB-Column2-Body"> </td> <td class="TableStyle-ParameterTable-BodyA-Column1-Body">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](https://developer.android.com/reference/android/provider/MediaStore).

 </td> </tr> </tbody> </table>

 </div>LambdaTest full documentation [here](https://www.lambdatest.com/support/docs/camera-image-injection/).

<div id="bkmrk-last-updated%3A-octobe">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">October 01, 2024</span>

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

</div>

# 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.](https://docs.appvance.net/Content/AIQ/MobileTesting/VisualAccessorsMobile/Mobile_VA494Enhance.htm)

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**

- [Visual Accessors for Android Guide](../../../Resources/PDF%20Attachments/Visual%20Accessors%20for%20Android.pdf)
 
**iOS Guide**

- [Visual Accessors for iOS Guide](../../../Resources/PDF%20Attachments/Visual%20Accessors%20for%20iOS.pdf)
 
<div id="bkmrk-last-updated%3A-august">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">August 14, 2023</span>

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

</div>

# 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.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/Fz9oMUPnrUFo72cU-a72094da328b.png)

## About Self-Healing

- Self-healing can be run without fallback, however it is not recommended.
- Self-healing plays the script back once.
- If the target is valid, it is maintained as the target.
- If the target is invalid, it is moved to fallback accessors with its fallback attribute enabled and the first fallback accessor found is moved to target.
- If an accessor fallback attribute is enabled but invalid during the self-heal run, its fallback attribute will be disabled.
- If an accessor is fallback is disabled and invalid during the self-heal run, it will be deleted.
- If an accessor is fallback disabled but valid during the self- heal run, its fallback attribute will be enabled.
- A newly found accessor will be added using the standard approach. Fallback is enabled for all except:
    
    
    - index and byXY, due to the brittleness,
    - images as they are resource intensive targets.
 
<div id="bkmrk-last-updated%3A-july-2">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">July 24, 2023</span>

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

</div>

# Sample Mobile Testing Scenarios

## Android

<div class="codeSnippet" id="bkmrk-copy-var-%24serverurl-"><div class="codeSnippetBody">```
<span style="color:#333333;font-weight:bold;">var</span> $serverURL = <span style="color:#dd1144;">"http://localhost:4723/wd/hub"</span>;<br></br><span style="color:#333333;font-weight:bold;">var</span> $platformName = <span style="color:#dd1144;">"Android"</span>;<br></br><span style="color:#333333;font-weight:bold;">var</span> $platformVersion = <span style="color:#dd1144;">"9"</span>;<br></br><span style="color:#333333;font-weight:bold;">var</span> $capabilities = {};<br></br>$capabilities.udid = <span style="color:#dd1144;">"emulator-5554"</span>;<br></br>$capabilities.deviceName = <span style="color:#dd1144;">"Android Device 1"</span>;<br></br>$capabilities.systemPort = <span style="color:#dd1144;">"8201"</span>;<br></br>setServerURL($serverURL);<br></br>setClientType($platformName);<br></br>setCapability(<span style="color:#dd1144;">"platformVersion"</span>, $platformVersion);<br></br>setCapability(<span style="color:#dd1144;">"appPackage"</span>, <span style="color:#dd1144;">"com.airwatch.androidagent"</span>);<br></br>setCapability(<span style="color:#dd1144;">"appActivity"</span>, <span style="color:#dd1144;">"com.airwatch.agent.ui.activity.SplashActivity"</span>);<br></br>setCapabilities($capabilities);<br></br>start();<br></br>setValue(byId(<span style="color:#dd1144;">"com.airwatch.androidagent:id/hub_edit_text"</span>), <span style="color:#dd1144;">''</span>);<br></br>click(byId(<span style="color:#dd1144;">"com.airwatch.androidagent:id/hub_button"</span>));<br></br>click(byId(<span style="color:#dd1144;">'com.android.packageinstaller:id/permission_allow_button'</span>));<br></br>wait(<span style="color:#008080;">5000</span>);<br></br>click(byXPath(<span style="color:#dd1144;">"//android.widget.Button[@resource-id='userStoreFormSubmit']"</span>));<br></br>setValue(byXPath(<span style="color:#dd1144;">"//android.widget.EditText[@resource-id='username']"</span>), <span style="color:#dd1144;">''</span>);<br></br>setValue(byXPath(<span style="color:#dd1144;">"//android.widget.EditText[@resource-id='password']"</span>), <span style="color:#dd1144;">''</span>);<br></br>click(byXPath(<span style="color:#dd1144;">"//android.widget.Button[@resource-id='signIn']"</span>));<br></br>click(byId(<span style="color:#dd1144;">'com.airwatch.androidagent:id/gdpr_accept_button'</span>));<br></br>close();
```

 </div> </div>## iOS

<div class="codeSnippet" id="bkmrk-copy-var-%24serverurl--1"><div class="codeSnippetBody">```
<span style="color:#333333;font-weight:bold;">var</span> $serverURL = <span style="color:#dd1144;">"http://localhost:4723/wd/hub"</span>;<br></br><span style="color:#333333;font-weight:bold;">var</span> $platformName = <span style="color:#dd1144;">"iOS"</span>;<br></br><span style="color:#999988;font-style:italic;">//SIMULATOR Configuration</span><br></br><span style="color:#333333;font-weight:bold;">var</span> $capabilities = {<br></br>    <span style="color:#dd1144;">"platformVersion"</span>: <span style="color:#dd1144;">"13.3"</span>,<br></br>    <span style="color:#dd1144;">"udid"</span>: <span style="color:#dd1144;">"Simulator Identifier"</span>,<br></br>    <span style="color:#dd1144;">"wdaLocalPort"</span>: <span style="color:#dd1144;">"8100"</span>,<br></br>    <span style="color:#dd1144;">"deviceName"</span>: <span style="color:#dd1144;">"iPhone 11 Pro"</span><br></br>};<br></br><span style="color:#999988;font-style:italic;">//PHYSICAL DEVICE Configuration</span><br></br><span style="color:#333333;font-weight:bold;">var</span> $capabilitiesPhysicalDev = {<br></br>    <span style="color:#dd1144;">"platformVersion"</span>: <span style="color:#dd1144;">"13.1"</span>,<br></br>    <span style="color:#dd1144;">"udid"</span>: <span style="color:#dd1144;">"iPhone Identifier"</span>,<br></br>    <span style="color:#dd1144;">"wdaLocalPort"</span>: <span style="color:#dd1144;">"8101"</span>,<br></br>    <span style="color:#dd1144;">"deviceName"</span>: <span style="color:#dd1144;">"iPhone Device"</span>,<br></br>    <span style="color:#dd1144;">"xcodeOrgId"</span>: <span style="color:#dd1144;">"Team ID"</span>,<br></br>    <span style="color:#dd1144;">"xcodeSigningId"</span>: <span style="color:#dd1144;">"iPhone Developer"</span>,<br></br>    <span style="color:#dd1144;">"updatedWDABundleId"</span>: <span style="color:#dd1144;">"com.facebook.WebDriverAgentRunner"</span><br></br>};<br></br>setServerURL($serverURL);<br></br>setClientType($platformName);<br></br>setCapability(<span style="color:#dd1144;">"bundleId"</span>, <span style="color:#dd1144;">"com.arns.ArnsSTG"</span>);<br></br>setCapabilities($capabilitiesPhysicalDev);<br></br>start();<br></br>log(getSource());<br></br>click(byId(<span style="color:#dd1144;">"keypad.input.1"</span>));<br></br>click(byId(<span style="color:#dd1144;">"keypad.input.2"</span>));<br></br>click(byId(<span style="color:#dd1144;">"keypad.input.3"</span>));<br></br>click(byId(<span style="color:#dd1144;">"keypad.input.4"</span>));<br></br>wait(<span style="color:#008080;">15000</span>);<br></br>log(getAllElements());<br></br>click(byId(<span style="color:#dd1144;">"action_feed.card.cta"</span>));<br></br>close();
```

 </div> </div><div id="bkmrk-last-updated%3A-june-2">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">June 26, 2023</span>

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

</div>

# 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.

- We need to have a working script from Appium Android/Appium IOS that either opens the browser and performs your steps or the script could be working on a native application as well. You can refer few sections from 'Mobile testing in Appvance IQ' to create these scripts.
- If you are working with HTTPS, it is required to install the Appvance certificate on the emulator
    
    
    1. Appvance certificate can be found in the location: \\aiq\_distribution\\sahi\\
        
        File: appvance.cer
    2. On IOS Emulator: You just need to open your emulator and drag and drop the file on the emulator. Once done, Go to Settings &gt; General &gt; Certificate Trust Settings and enable Appvance 256 as seen in the below image.
        
         ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/L9wFL4Y5uE42c4Sm-d9bd1563879b.png)
    3. On your Andriod Emulator, again drag and drop the appvance certificate
    4. Then go to Settings &gt; Security &gt; Install from SD Card &gt; You will find the appvance.cer file located there, double click the file
    5. It asks for a security pattern where you can give any pattern
    6. It will ask for the certificate name, you can name it as 'appvance'. Click OK. Provide the same pattern that you provided to install the certificate
    7. You will notice the certificate installed under 'Trusted credentials'
        
         ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/QVkuOH2Er5arNWyb-7b06f969b414.png)
- Make sure your script is running fine standalone, either in Net-beans or Eclipse and the results are successful
- Create a functional test scenario with AIQ, Run the scenario to see the successful results. Refer to Appium Scenario run in Appvance IQ for detailed steps on how to create an Appvance AIQ test scenario.
    
    Now it's time to generate some HTTP traffic using AIQ's HTTP Proxy and the scenario we just ran above.
- Setting up proxy for the emulator.
    
    Open your Emulator &gt; go to settings &gt; Click wi-fi &gt; There shall be a default network called AndriodWifi, hold on that &gt; Click Modify network &gt; Click Advanced search drop-down &gt; Select Manual as the Proxy.
    
    Provide Proxy to be the IP address of the machine where the Appium is installed and provide port to be 9095.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/GxfX0skM5QEdkvfw-8ce4dce0dc0c.png)Click Save.
- Setting up Traffic: From AIQ, go to Record &gt; Traffic, Provide the step name, Provide the port to be '9095', the same port we set it up on the emulator. Click Start Proxy and you will notice Proxy status as 'Running'
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/Z00htQH30dwuyKMP-374bd58d4203.png)
- Now we have done all the required setups, it is required to re-run the functional test scenario that we created in step 4. By simply re-running the functional test scenario, AIQ will run the test scenario and since the emulator and Traffic are configured to use the proxy and the port, Traffic will start to capture all the traffic.
    
    Open the functional test scenario that you already have and simply click play.
    
    Go back to Traffic UI and click Refresh to see all the traffic that is captured.
- Once the scenario is played back successfully, come back to Traffic UI under Record and click the Save button to save the HAR script that Traffic captured.
- It is now time to auto-correlate the script that we created.
    
    Create a functional test scenario, go to the test-case panel, browse the HAR script that we just generated. Save and play the scenario.
    
    Once the playback is complete on the controller window &gt; Go to the Autocorrelation tab &gt; Click the 'Start Autocorrelation' button. Autocorrelation could take a while and AIQ will list out all the possible autocorrelation, you can Accept all the correlations and then provide the path to save the autocorrelated scenario.
- ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/AeqqIjLRMdzhOh3G-8ed860b96e52.png)Now we have an autocorrelated scenario that had captured all the traffic of the app under test, we could create a performance scenario with both the autocorrelated HAR script and the Android script
    
    
    1. Open the autocorrelated scenario
    2. Go to the Info tab and change the scenario type to be a performance test
    3. Under test management, you could mention different iterations depending on the requirement
    4. Go to the Test Case tab, there would be already an autocorrelated HAR test case, create another test case for the Appium, mention the XML/class as required
        
         ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/9KB0zNAcDz0UOToX-0173cb337f20.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/3t0IPLUbybygPKEc-d19aaf7b6daa.png)
    5. You could go to locations and define the test nodes where you want to distribute to run these tests
    6. Come back to the Test Case panel, for the Appium android tests, you could choose to run 1 emulator in a location in parallel and along with that we have the HAR script that generates traffic of 100 users as seen in the above screen-shot in the test-case definition
    7. You can click the user assigned button and assign users to different locations
        
         ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/xYKtAN5UF0ZVBjUQ-6b33b096e3cd.png)
    8. You can go to the store tab of Scenario Builder to see all the correlations added
        
         ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/WMYq3kvDHNhfsJn2-6997ebfd8c36.png)
    9. Click File &gt; Save and save the scene as a performance test and click Play for the performance scenario to begin execution, check the controller and the results page to see the results of the test execution
        
         ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/fK6H0BShffdsEvFx-7b42da63d485.png)
 
 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/DLPqqO89Jm29NnKK-3b9ca97c87a7.png)<div id="bkmrk-last-updated%3A-june-2">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">June 26, 2023</span>

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

</div>

# 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.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/VQM4Jx9UGYtkspYH-eeb75d476711.png)When Device Mode is on, the icon is blue, When it's off, the icon is grey.

**<u>Responsive mode</u>**

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.

**<u>How to use in Appvance IQ</u>**

1. Once logged in go to Test Designer IDE under Record
2. Click File &gt; New
3. Under Record drop-down, you should notice Responsive &gt; with the list of devices to choose from
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/494ew52LdMReSIsc-e474f8b43065.png)
4. Select Responsive &gt; preferred device from the list, Google Chrome should open in mobile responsive mode for recording based on the device chosen
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/NVWzNJYV7ZjvfD7y-57a2f72284d5.png)
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 &amp; Play under Build to create JS and playback in Record mode
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/5Z86cj2XjratLuCK-9552113c8c80.png)
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
 
**<u>Creating your first mobile Performance Scenario</u>**

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 &gt; 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
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/ZIuuh9w0pUaQhjAD-98e625f4ac64.png)
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 &gt; 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 &amp; 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
 
<div id="bkmrk-last-updated%3A-june-2">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">June 26, 2023</span>

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

</div>

# Mobile Apps - Processing Requests

<u>**Android Emulator and Physical Device:**</u>

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](https://medium.com/@johnmarktagle/using-self-signed-ssl-in-android-nougat-6d59593a3b6f)

There are only 3 steps to follow - For the first one, click [here](https://appvance-qa.s3-us-west-2.amazonaws.com/naveen/userguides/certificate/appvance.pem) to download the pem file, the dev team should do the next 2 steps and send us the apk file.

<u>**IOS Simulator and Real Devices:**</u>

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](https://help.apple.com/xcode/mac/current/#/dev7ccaf4d3c)

[Developer Apple Xcode](https://developer.apple.com/documentation/xcode/distributing_your_app_for_beta_testing_and_releases)

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](https://developer.apple.com/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

- Expanded the one-word title into a mobile testing gesture article.
- Added checks for start/end coordinates, element state, viewport size, device orientation, timing, scroll interference, and replay stability.
- Clarified when to prefer a native locator or action before relying on coordinate-style drag behavior.

## 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](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/phpgeICdhE1eMhSe-retry-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**.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/FREWCCN0bFiJGFFd-6a2cc1c0f1d8.png)
3. Adjust the slider as needed and click **Zoom In**.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/MPUSyJzdUb11TmoC-0fd2438c79f3.png)
4. The **Zoom In** action is performed and recorded.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/ED6e0vZKaSLl7OWB-71d03e1ab46e.png)
 
### Zoom Out

1. In the **Device** tab, select a region.
2. Right click and select **Zoom Out**.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/Vy3rPNN0xiHrJM6l-2ca761843ed2.png)
3. Adjust the slider as needed and click **Zoom Out**.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/gsIZ5kcd344EoUG4-4adbe119ce31.png)
4. The **Zoom Out** action is performed and recorded.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/49oUWGHBuYFqD62P-3285b002127c.png)
 
<div id="bkmrk-last-updated%3A-januar">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">January 30, 2024</span>

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

</div>

# 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.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/tNneWA6bD1n34JTH-b3695289cd86.png)

<div id="bkmrk-last-updated%3A-septem">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">September 17, 2024</span>

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

</div>