Skip to main content

SIM Support On Public Real Devices

SIM & eSIM support enables testing of SMS-driven use cases on real mobile devices, such as OTP verification and two-factor authentication workflows. By automating SIM interactions, teams can validate SMS handling, verify phone numbers, and confirm secure onboarding processes without relying on physical test phones.

SMS-based authentication is one of the most widely used security and identity verification methods. Automating these flows ensures consistent validation, reduces manual effort, and helps uncover edge cases early in the testing cycle.

With LambdaTest, you can automate SIM and eSIM scenarios on Real Devices. From requesting SIM-enabled devices to retrieving phone numbers and polling incoming SMS for OTP validation, LambdaTest provides an end-to-end setup for testing SMS-driven features in your automation suite.

To enable this for your organization, contact us via 24×7 chat support or email support@lambdatest.com.


Use Cases

  • OTP & Two-Factor authentication: Automate SMS receipt and validation to test secure login or sign-up workflows.
  • Phone Number Retrieval: Programmatically fetch the device’s number at runtime to trigger verification flows.
  • SMS Interrupt Testing: Inject incoming SMS messages during a test session to validate in-app handling of message interrupts.
  • Messaging Workflows: Verify outbound and inbound SMS flows as part of automated Appium tests.

Supported Countries & SIM Availability

LambdaTest provides SIM and eSIM-enabled devices across specific countries, allowing you to test SMS-driven workflows under real carrier conditions. The availability of physical SIMs or eSIMs varies by region and carrier, ensuring your automation scripts can validate authentication flows, messaging, and phone number handling in environments that closely resemble real-world usage.

CountryCarriersSIM Type Availability
IrelandThreePhysical SIM / eSIM (iOS only)
IndiaAirtel, Jio, VodafonePhysical SIM
USAT-Mobile, Verizon, AT&TPhysical SIM / eSIM (iOS only)

Capabilities

When automating SIM or eSIM scenarios on real devices, you can customize your test session using specific capabilities. These capabilities allow you to request SIM-enabled devices and define preferences such as region, carrier, or eSIM usage. The table below summarizes the key capabilities available for your automation scripts.

CapabilityTypeDefaultDescription
enableSimBooleanfalseProvision a SIM-enabled device. Must be set to True to request SIM support.
simOptionsObjectNoneDefine SIM preferences such as region, carrier, or eSIM request. These parameters are nested inside simOptions.

simOptions Configurations

ConfigurationTypeExampleDescription
regionString"IND", "USA" ,"IRL"ISO country code for SIM region.
carrierString["airtel"] or ["jio","vodafone"]Select preferred carrier(s).
esimBooleantrueRequest an eSIM-enabled device (iOS only).
info

Region and carrier values are case-sensitive. Make sure to enter them exactly as shown in the example above.


SIM support Workflow in Automation Test

Step 1: Add SIM Capabilities

To enable SIM & eSIM support, include the following capability in your automation session as highlighted in the Capabilities:

iOS(.ipa)
 desired_caps = {
'platformName': 'iOS',
'platformVersion': '16.0',
'deviceName': 'iPhone 14',
'app': 'YOUR_APP_ID',
'enableSim': True,
'simOptions': {
'region': 'IND',
'carrier': ['airtel', 'vodafone'],
'esim': True
}
}

Step 2: Retrieve SIM Properties at Runtime

driver.execute_script(
"lambda_executor: { \"action\": \"deviceInfo\", \"arguments\": { \"deviceProperties\": [\"simOptions\"] } }"
)

Sample Response:

{
"simOptions": {
"phoneNumber": "+15555551234",
"region": "USA",
"esim": true,
"carrier": "TMobile"
}
}

Step 3: Validate SMS Workflows

  • Trigger an SMS to the device using your backend/system.
  • Poll and read incoming SMS messages via Appium script.
  • Extract OTP codes or verification text to validate end-to-end flow

Session Validation & Error Handling

If SIM-enabled devices matching your preferences are unavailable, sessions may fail with errors such as:

  • No match: There’s no device that fits the SIM settings you selected (for example, region or eSIM options). Try changing your preferences or broadening your criteria.
  • Busy devices: All devices that match your settings are currently in use. You can either wait for one to become available or pick a different device

Supported Devices

DeviceOS Version
Samsung Galaxy S25 UltraAndroid 15
Samsung Galaxy S25Android 15
Samsung Galaxy S24Android 14
Samsung Galaxy S23Android 13
Google Pixel 9Android 15
Google Pixel 7Android 13
Google Pixel 6Android 12
iPhone 16 ProiOS 18
iPhone 15 ProiOS 17
iPhone 14iOS 16
iPhone 14 ProiOS 16
iPhone 13iOS 15
iPhone 13 MiniiOS 15

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

Book Demo

Help and Support

Related Articles