Help Articles
Reading OTP in an Android application
Here we will discuss how to get OTPs when creating a mobile test.
If you want to get an OTP from an SMS message, you will need to download and install the "Android SMS OTP Automation" addon located here: The addons bring you three new actions: 1. Getting OTP by regex. 2. Getting OTP by keywords. 3. Getting OTP by index. Here's an example of getting an OTP by keywords: First, create the step by finding the appropriate action.
After creating the step, you need to set the parameters. Here you can set the amount of time to wait for the SMS to be received by the mobile device and the words to exclude from it to get the OTP separated by commas. Each action has different parameters, and it's up to you to decide which one fits better for your test, so don't be afraid to experiment while.
Copy link