For AI agents and LLMs: a machine-readable index is available at llms.txt. A plain-Markdown version of any documentation page is available by appending .md to its URL.
Skip to main content

Device Passcode in App Automation on Real Devices

Real Device

For certain use cases, you may need to perform tests on devices that are passcode-protected. Apps handling sensitive data (for example, banking apps, enterprise apps, or apps distributed through MDM) often enforce device passcodes for enhanced security.

TestMu AI’s Device Passcode in Automation enables you to run such automated tests seamlessly on real devices.

Plus Plan Feature

This feature is available exclusively with the Real Device Plus Automation Cloud Plan.

To unlock this feature, purchase or upgrade to the required plan. If you need assistance, please contact your TestMu AI support representative, reach out to our [24×7 Chat Support], or email us at support@testmuai.com.


Use Cases

  • Validate apps requiring a system passcode prompt before login or secure workflows.
  • Ensure authentication flows function correctly when the device is protected by a passcode.
  • Automate enterprise test cases where passcodes are enforced by MDM policies.

Supported Platforms

PlatformVersion
iOS14 and above
Android11 and above

Default Passcode

  • iOS: 123456
  • Android: 1234

Capability to Enable Passcode

Use the enablePasscode capability to configure passcode-protected devices during automation testing.

CapabilityTypeDefaultDescription
enablePasscodeBooleanfalseEnable passcode devices for running tests. Use true to start the session with a system passcode configured.
{
"platformName": "ios",
"deviceName": "iPhone 16",
"platformVersion": "18",
"isRealMobile": True,
"enablePasscode": True
}
note
  • Passcode entry screens are not visible in the stream for security reasons. You may see a blank screen briefly during automation.
  • Enabling passcode for iOS Devices may increase the setup time of your test by 25–30 seconds compared to regular sessions.

Test across 3000+ combinations of browsers, real devices & OS.

×
Schedule Your Personal Demo
Book Demo

Help and Support

Related Articles