Page tree
Skip to end of metadata
Go to start of metadata

Description


Simulates different authentication responses on applications that request a user fingerprint authentication.

iOS - Command to set the desired response type for later authentication requests.

Android - Command to set the desired response type for later authentication requests. 

  • Since version 20.5, for Android, it is recommended to execute the command before an authentication request dialog is displayed
  • Until 20.5, this was not supported and the command should have been executed after a request dialog is displayed.

Note

  • Supported only on devices that allow TouchID
  • The Launched Application needs to be Instrumented Only.

Parameters

NameValueDescription
Reply

iOS -

  • MockFullGUI
  • Success
  • StopMock
  • AuthenticationFailedError
  • UserCancelError
  • UserFallbackError
  • SystemCancelError
  • PasscodeNotSetError

Android -

  • CLEAR_MOCK
  • AUTHENTICATION_SUCCEEDED
  • AUTHENTICATION_FAILED
  • ERROR_CANCELED
  • ERROR_HW_UNAVAILABLE
  • ERROR_LOCKOUT
  • ERROR_NO_SPACE
  • ERROR_UNABLE_TO_PROCESS
  • ERROR_VENDOR_BASE
  • FP_ACQUIRED_GOOD
  • FP_ACQUIRED_PARTIAL


The reply type to mock
DelayTime in MillisecondsDelay after authentication request dialog is open

Usage

Set Experitest Url

Please make sure you replace <EXPERITEST_URL> with the appropriate URL in the sample code below.

SetAuthenticationReply
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<EXPERITEST_URL>"), dc);
seetest = new SeeTestClient(driver);

// deviceid here should be if of an iOS device.
dc.setCapability(MobileCapabilityType.UDID, "deviceid");
     
...
...
 
//Sets Auth Reply as Success.
seetest.SetAuthenticationReply("Success", 0);
  • No labels