Set fingerprint command

Injects the authentication reply for a fingerprint check performed by the application. The command should be activated by the automation script at the point that the target application presents a "popup" indicating that the application is trying to retrieve information from the fingerprint reader.

The application must have been installed with sensor instrumention enabled.

To use this command, one of the two application identifiers is required. For information on retrieving the application identifier, see Application identifier.

Important: It is mandatory to set a passcode for an iOS device prior to configuring the device for Touch ID. Disabling the passcode after configuring the Touch ID will result in failure when attempting to use the fingerprint injection.
Restriction: Perfecto does not support devices running iOS 15 or later that are locked with a passcode. On such devices, Perfecto's sensor instrumentation simulates the device's behavior as if it was locked with a passcode, allowing for sensor authentication testing.

Parameters

Name Type Possible values Description

Device ID*

String

 

The device for this command. By default, this is the device under test (DUT).

Application name

String

 

The application name as it is displayed on the screen.

Application identifier

String

 

The identifier of the application.

Authentication result

String

Success | Fail

The authentication result returned by the check fingerprint procedure.

Error type

String

Auth Failed | User Cancel | User Fallback | System Cancel | Lock Out

The Error type that is used when the authentication result is false to indicate the reason why the authentication failed, where:

  • Auth Failed indicates that the fingerprint was not recognized.

  • User Cancel indicates that the user canceled the authentication.

  • User Fallback indicates that user wishes to supply a fallback authentication, for example a password.

  • System Cancel indicates that the system canceled the authentication.

  • Lock Out indicates multiple failures and application should lock the account.

Comment

String

 

Adds a comment to the script

On-fail Result*

Condition

Ignore | Break | Continue | Abort | Catch

The behavior when the command fails.

* Mandatory parameter