Skip to content

Regression Tests User Creation Methods

User Creation Methods in Regression Test Contracts

We have several user creation methods available across different regression test contracts. These methods can be used during regression testing to create and manage users with various states of KYC (Know Your Customer) verification.

KYC Regression Test Contract

  1. CreateUserPassKyc()

    • Creates a SsnQrVerifiedAdvisorUser by default. This user will pass KYC without needing to upload customer documents.
    • Other types of user creation are also available:
      • NoSsnOnlineUser
      • SsnOnlineUser
      • NoSsnQrVerifiedAdvisorUser
      • NoSsnAdvisorAssistedUser
      • SsnAdvisorAssistedUser
  2. CreateUserPassKyc(CreatedUserTypes.SsnOnlineUser, usState: **)

    • Creates an online user who has passed KYC in a specific state.
  3. CreateUserPassKyc(advisorUserId: ****)

    • Creates a user who has passed KYC under a specific advisor.
  4. CreateUserPassKyc(skipAlloy: false)
    • Creates a user who has passed KYC through Alloy. By default it is skip the Alloy process to avoid unstable test environment.
  5. CreateUserPassKyc(ledgerType: ledgerType.Lithic)
    • Creates a Lithic user who has passed KYC. By default the ledger type is Galileo user now.

SaleTool Regression Test Contract

  1. CreateAndApproveAdvisor()

    • Creates an advisor.
  2. CreateAdvisorAndClient()

    • Creates an advisor's user who has not passed KYC.
  3. AddClientForExistingAdvisor()

    • Adds a client under a specific advisor.

User Regression Test Contract

  1. UserSetUpAndSignIn(msisdn, email, password)

    • Creates an online user who has not passed KYC.
  2. BankUserLoginWithMsisdn()

    • Logs in a user using their msisdn and password(pwd is 7629 by default).
  3. UserLoginWithUserId()

    • Logs in a user using their userId and password.