Automate user authentication in Perfecto

You can use face or fingerprint recognition to authenticate a user on Android and iOS cloud devices in Perfecto.

Use the Module Use Perfecto biometrics authentication to specify parameters for user authentication on Perfecto cloud devices.

This Module is part of the Standard subset. You can find it under Standard modules->TBox XEngines->Mobile.

To authenticate a user on a Perfecto cloud device, follow the steps below:

  1. Specify the test configuration parameters to establish a connection with the device.

  2. Add the Open Mobile App TestStep and specify the application name for Perfecto.

  3. Add TestSteps that navigate to the place in you application where you want to trigger user authentication.

  4. Drag and drop the Use Perfecto biometrics authentication Module onto your TestCase.

  5. For the Application ID ModuleAttribute, enter the ID of an application that you opened with the Open Mobile App TestStep:

    • For Android applications, enter the PackageName.

    • For iOS applications, enter the BundleID.

  6. For the Authentication positive ModuleAttribute, enter the value True if you want to trigger positive authentication or False if you want to trigger negative, that is, failed, authentication.

  7. Optionally, for the Error type ModuleAttribute, select the type of error that you want to trigger by negative authentication.

    The table below lists the possible types of errors that you can trigger.

Type of error

Description

authFailed

This error occurs when the authentication is failed.

Example: You provide a different fingerprint than the one that is configured.

userFallback

This error occurs when the authentication method you use is not available.

Example: You try to authenticate yourself via a fingerprint, but the available method on your device is only password authentication.

userCancel

This error occurs when you cancel the authentication.

systemCancel

This error occurs when the system cancels the authentication.

lockout

This error occurs when the authentication is failed multiple times and the system locks your user account.

In this example, you perform the following actions:

  • You open the mobile application with the Module Open Mobile App.

  • In the Use Perfecto biometrics authentication TestStep, you set the ModuleAtrribute Authentication positive to False, because you want to trigger failed authentication. You select userFallback in the Error type ModuleAttribute, because you want to trigger an error caused by using an authentication method that is not configured on the device.

Use Perfecto biometrics authentication Module in a TestCase