2.3- Mobile Testing
Mobile Testing — Appvance IQ documentation.
- Mobile Testing
- Mobile Designer New Interface - Legacy Overview
- Mobile Designer Classic - Legacy Reference
- Mobile Testing Configurations in AIQ
- Get Started with Android Testing in AIQ
- Getting Started with iOS and AIQ
- AWS Device Farm Mobile Testing
- Fallback Accessors for Mobile Testing
- Mobile Record From Here
- Use Image Injection in AIQ Mobile Testing
- Use Visual Accessors for Mobile Testing
- Mobile Self-Healing Support in AIQ
- Sample Mobile Testing Scenarios
- Generate Mobile Traffic for Performance Testing
- Test Mobile Responsiveness in a Browser
- Mobile Apps - Processing Requests
- Use Drag Gestures in Mobile Tests
- Use Pinch Zoom Gestures in Mobile Tests
- Geo Location
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
- Mobile Designer (Classic)
- Mobile Testing Configurations
- Getting Started with Android and AIQ
- Getting Started with iOS and AIQ
- AWS Device Farm Mobile Testing
- Fallback Accessors for Mobile Testing
- Mobile Record From Here
- Image Injection
- Visual Accessors for Mobile Testing
- Self-Healing for Mobile Testing
- Sample Mobile Scripts
- Generating Traffic from Mobile and Running a Performance Test
- Mobile Responsiveness Browser
- Mobile Apps - Processing Requests
- Drag
- Zoom In and Zoom Out
- 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.
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.
|
|
|
Additional save and export options menu. Lets you
|
|
|
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. |
|
|
Test controls.
|
|
|
Open Test Options menu. See Mobile Designer Test Options Details for more information. |
|
|
Menu bar for interacting with a Mobile Configuration file.
You can:
|
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
- 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
- Create new mobile tests using current AIQ mobile testing workflows.
- Move useful migration guidance into active Mobile Testing or Scenario Editor pages.
- Remove obsolete screenshots, product names, and unsupported feature references.
- 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
-
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
-
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
-
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.
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
-
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)
-
Start Android Studio
-
Click Configure
-
Click AVD Manager
-
Click Create Virtual Device
-
Select any Profile
-
Click Next
-
Select Any System Image
-
Click Next
-
If button is greyed out, download any System Image
-
-
Provide Name
-
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
-
Replace the udid value in the template with the Identifier number of the Emulator or physical Android phone after running adb devices command.
-
Update the appPackage to match your Application’s Package.
-
Update the appActivity to match your Application’s Main Activity.
Create Android AISG
-
Open Terminal
-
Enter appium and press Enter
-
Start AIQ services if not already running
-
Log into AIQ and go to AI Scripting > Create AISG
-
Click Mobile
If Mobile is disabled, request an updated AIQ license -
Select Android in the Platform box
-
Select Package in the Source box
-
Select Tags in the Scan Type box (SmartTags not yet supported for Mobile)
-
Confirm Visual Hints are enabled
-
Click Browse in the Appium Servers box.
-
Select the Appium Server Simulator description file created earlier in the setup
-
Click Next
-
Proceed with the AISG creation
-
Enter a name in Execution Name box
-
Click Load a Dataset from CSV file and check the Datasets in the list or check Default and enter variables and values
-
Click Create
-
-
AISG starts the Application and begins discovering its elements
-
As Inputs Found updates, map any Custom Actions until the desired end point is reached in the Application
-
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
-
Click Requests tab to view captured Requests performed during AISG
-
Download Requests Report
-
-
If Validations Workbench file is supplied, click Validations tab to view successful and failed Validations
-
Download scripts in JS format (DS not yet supported for Mobile) to run in JS Edit & 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.
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
- Mac OS X
At this time Catalina 10.15.3 required. This is to evolve as Mac OS X evolves. - iOS Simulator compatible App file
- AIQ Controller locally installed on Mac
Setup
Install and Setup Xcode
- Download, install and open Xcode for first time.
- Make sure to accept the End User License Agreement.
- Make sure to install additional components.
- To view installed Simulators or connected physical iPhones
- Open Xcode, select Window > Devices and Simulators
- Click Simulators and select any model
- Note the iOS version number, Identifier value and Model name for later use. These correspond to platformVersion, udid and deviceName capabilities.
For example:
- Sign into your Apple account (Required if test will use physical iPhones. Skip this step if test uses Simulators)
- Select Xcode > Preferences > Accounts
- Click +
- Select Apple ID and click Continue
- 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
- Create a new Xcode Project (This step is only to test connection between Mac and Simulator or physical iPhone. Can be skipped)
- Open Xcode > File > New > Project
- Select iOS > Single View App and click Next
- Enter a name in the Project Name box
- Select a Team
- Enter a name in the Organization Name box
- Enter com.<anything> in the Organization Identifier box (I used com.appvance)
- Bundle identifier appears as com.appvance.ProductName
- Leave the remaining options as default
- Click Next
- Specify the location to save the Project and click Create
- 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.
- Drag and drop any iOS Application file (have .app extension) to install to the Simulator
- Confirm just installed Application runs successfully
- Press Command + Q to stop the Simulator
- Press Command + Q to close Xcode
Install Homebrew
- Open Terminal
- 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/
Appium Pre-requisites and Install
- Open Terminal
- 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
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
- Update the platformVersion to match the version of the Simulator.
- Replace the udid value in the template with the Identifier number noted during the Xcode setup.
- Update the bundleId to match your Application’s bundleId.
How to find the Bundle ID?- Right-click .ipa file and select Show Package Contents
- Look for a file ending in .plist
- Open the located file with a text editor
- Locate the Bundle ID, often a key containing the string BundleID or BundleIdentifier
- Locate a string tag similar to com.companyname.Appname
- 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 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
- Update the platformVersion to match the version of the physical iPhone.
- Replace the udid value in the template with the Identifier number noted during the Xcode setup.
- Update the bundleId to match your Application’s bundleId.
How to find the Bundle ID?- Right-click .ipa file and select Show Package Contents
- Look for a file ending in .plist
- Open the located file with a text editor
- Locate the Bundle ID, often a key containing the string BundleID or BundleIdentifier
- Locate a string tag similar to com.companyname.Appname
- 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
- Open Terminal
- Enter appium and press Enter
- Start AIQ services if not already running
- Log into AIQ and go to AI Scripting > Create AISG
- Click Mobile
If Mobile is disabled, request an updated AIQ license - Select iOS in the Platform box
- Select Bundle Id in the Source box
- Select Tags in the Scan Type box (SmartTags not yet supported for Mobile)
- Confirm Visual Hints are enabled
- Click Browse in the Appium Servers box
- Select the Appium Server Simulator description file created earlier in the setup
- Click Next
- Proceed with the AISG creation as you would with any other AISG
- Enter a name in Execution Name box
- Click Load a Dataset from CSV file and check the file in the list or check Default and enter variables and values
- Click Create
- The Simulator launches, starts the Application and begins walking through the Application
- As Inputs Found updates, map any Custom Actions until reach the desired end point in the Application
- Download scripts in JS format (DS not yet supported for Mobile) to run in JS Edit & 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
-
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
-
Click Device Farm
-
The user would be navigated to the Projects page as shown below
-
Click New Project
-
Enter the Project Name and click Create Project and the user will be navigated to the Run page
-
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
-
Click create a new run
-
User will be directed to a page to select either Native application or Web Application
-
Select Native application and upload the APK or IPA file depending on the OS
-
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
-
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
-
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
-
The user now will be presented to the Device state page
User can change settings like wifi, Blue-tooth, etc.
Click Next
-
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
-
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
-
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
-
Select the device and click the “Confirm and Start Run” button
-
User will be presented with a page to indicate to the user that the device is being initialized in the back-end
-
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.
-
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
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
-
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.
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:
- Open a test script.
- Select a step within the script.
- Right-click and select Record From Here.
- Select the browser.
- 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
-
From Android Studio open the Device Manager.
-
Click the Edit button for the emulator that you want to use.
-
In the Virtual Device Configuration window, click Show Advanced Settings.
-
In the Camera section select VirtualScene from the drop down.
-
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
-
Login into your Sauce Labs account.
-
Go to App Management.
-
Click the Settings button for the app you want to use.
-
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:
-
ACTION_IMAGE_CAPTUREOpens the system camera and notifies the calling app when the image is taken. -
camera2 API: Everything is configured and handled from within the app.
-
cameraX: Leverages the capabilities of
camera2, but uses a simpler, use case-based approach that is lifecycle-aware. -
Camera API (deprecated): partially supported. As with
camera2, everything is handled in the app itself. QR Code readers often useCamera#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. -
AVCaptureVideoDataOutput: for capturing video frames and processing them. The frames are received via AVCaptureVideoDataOutputSampleBufferDelegate and the method captureOutput:didOutputSampleBuffer:fromConnection:. -
AVCaptureMetadataOutputfor reading QR-Codes. The QR Codes are passed to the app viacaptureOutput:didOutputMetadataObjects:fromConnection:. We are detecting theAVMetadataMachineReadableCodeObjectand QR Codes are part of that.
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
-
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.
-
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.
-
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
-
Appvance certificate can be found in the location: \aiq_distribution\sahi\
File: appvance.cer
-
On IOS Emulator: You just need to open your emulator and drag and drop the file on the emulator. Once done, Go to Settings > General > Certificate Trust Settings and enable Appvance 256 as seen in the below image.
-
On your Andriod Emulator, again drag and drop the appvance certificate
-
Then go to Settings > Security > Install from SD Card > You will find the appvance.cer file located there, double click the file
-
It asks for a security pattern where you can give any pattern
-
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
-
You will notice the certificate installed under 'Trusted credentials'
-
-
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 > go to settings > Click wi-fi > There shall be a default network called AndriodWifi, hold on that > Click Modify network > Click Advanced search drop-down > 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.
Click Save.
-
Setting up Traffic: From AIQ, go to Record > 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'
-
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 > Go to the Autocorrelation tab > 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.
-
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
-
Open the autocorrelated scenario
-
Go to the Info tab and change the scenario type to be a performance test
-
Under test management, you could mention different iterations depending on the requirement
-
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
-
You could go to locations and define the test nodes where you want to distribute to run these tests
-
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
-
You can click the user assigned button and assign users to different locations
-
You can go to the store tab of Scenario Builder to see all the correlations added
-
Click File > 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
-
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
-
Once logged in go to Test Designer IDE under Record
-
Click File > New
-
Under Record drop-down, you should notice Responsive > with the list of devices to choose from
-
Select Responsive > preferred device from the list, Google Chrome should open in mobile responsive mode for recording based on the device chosen
-
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
-
You could perform all the actions that are required to create a script in Test Designer
-
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
-
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
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
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
- 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
- Confirm the target element, device profile, orientation, and expected start/end position.
- Run the drag with conservative timing and verify the application state after the gesture.
- 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.
This was added in the AIQ 5.0.0 release.
Zoom In
-
In the Device tab, select a region.
-
Right click and select Zoom In.
-
Adjust the slider as needed and click Zoom In.
-
The Zoom In action is performed and recorded.
Zoom Out
-
In the Device tab, select a region.
-
Right click and select Zoom Out.
-
Adjust the slider as needed and click Zoom Out.
-
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