Tag
ui-testing
2 notes.
Test fingerprint login in the Android emulator from the command line
The Android emulator's fingerprint sensor is a console command: adb emu finger touch 1. Getting to the point where that command does anything takes a PIN, a trip through the enrollment wizard and a wait for the sensor to start listening. All of it can be scripted, including a screenshot of a prompt that adb screencap returns as a black frame.
Test Face ID in the iOS Simulator from the command line
The Simulator's Features menu has three Face ID items: Enrolled, Matching Face and Non-matching Face. All three are notifications you can post with simctl, so a script can enroll a face, wait for the prompt and answer it. The one thing the simulator will not do is enforce biometric access control on a Keychain item.