Fingerprint authentication simulation
Mobile Center's fingerprint simulation feature lets you simulate fingerprint authentication on mobile devices.
About fingerprint authentication
Fingerprints are often used for security authentication on mobile devices. Apps may utilize fingerprint authentication to secure sensitive features such as sign-on, payments, and so forth.
If the device you are testing is not physically available, you will be unable to authenticate with a fingerprint during your test. Mobile Center’s Fingerprint Simulation feature, simulates the entering of a fingerprint on the device’s screen.
When you run an app that prompts you for fingerprint authentication, Mobile Center opens the Simulation Authentication dialog box. This dialog box lets you select an authentication result: Success, Failure, or Cancel.
Prepare for fingerprint simulation
To prepare for fingerprint authentication simulation:
- On Android, make sure you have enabled fingerprint authentication for the device, in the device settings.
- Create a packaged version of the app that utilizes fingerprint authentication.
- Upload the packaged app to Mobile Center. For details, see View, upload, and manage apps.
Perform the simulation in idle mode
You can simulate fingerprint authentication in idle mode from the Mobile Center lab or from within UFT.
From the Mobile Center lab's remote device view
From UFTs' Open Application in Mobile Center dialog box
- In the DEVICES page, click on the device that you want to test.
- Click Install an App in the Device Interactions section.
- In the APPLICATIONS page, select the app that you uploaded. Make sure to select Use packaged version.
- Click Install in the bottom right corner of the page. This installs and launches the app.
- Click the Open Application in Mobile Center button on the UFT toolbar.
- Browse to or select the app upon which you want to perform simulation. Make sure to select the packaged version of the app.
- Enable the Install application and Restart application options.
- Click OK.
- Begin interacting with the device. Navigate to the screen in the app that requires fingerprint authentication.
Wait for Mobile Center to open the Simulate Authentication dialog box.
- Select an authentication result: Success, Failure, or Cancel.
- For Failure or Cancel, select a reason.
- Click OK. A status bar in the lower section of the Mobile Center window, indicates if the simulation succeeded. A successful simulation is when it recognizes your specified result: Success, Failure, or Cancel.
- To add more simulations, refresh or re-navigate to the page in your app that requires fingerprint authentication, and repeat the above steps.
When your app requires fingerprint authentication, Mobile Center opens the Simulation Authentication dialog box. This dialog box lets you select an authentication result: Success, Failure, or Cancel.
For Failure and Cancel, you specify a reason for the result.
- Too many failed attempts
- Fingerprint was not recognized
- Fingerprint not registered (iOS only)
- Finger moving too fast (Android only)
- Fingerprint sensor is dirty (Android only)
- Canceled by the user (on Android, OS version 8.1 or higher is required)
- Canceled by the system
If you are running the app from a testing tool or using a REST API call, Mobile Center generates a response indicating the reason that you specified for the failure or cancellation.
When working with fingerprint simulation, the fingerprint authentication dialog box may not trigger on certain Samsung Note devices, due to the unique location of the touch sensor.
To check if there is a touch sensor on your device, run the Android SDK's custom application call isHardwareDetected(). If a touch sensor is present, and the Fingerprint Authentication dialog box is not triggered, this indicates that the device is not supported. Instead, you will be prompted for a password.
The touch sensor on Samsung Note 4 devices is not detected through the Android SDK API call isHardwareDetected. If your custom app requires
isHardwareDetected=truein order to trigger fingerprint authentication, the fingerprint authentication will not be triggered and the Fingerprint Simulation dialog box will not open in the remote view.
- Fingerprint authentication is implemented by developers in different ways. As a result, the behavior of apps may vary when you set the response to Failure.