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¶
-
CreateUserPassKyc()- Creates a
SsnQrVerifiedAdvisorUserby default. This user will pass KYC without needing to upload customer documents. - Other types of user creation are also available:
NoSsnOnlineUserSsnOnlineUserNoSsnQrVerifiedAdvisorUserNoSsnAdvisorAssistedUserSsnAdvisorAssistedUser
- Creates a
-
CreateUserPassKyc(CreatedUserTypes.SsnOnlineUser, usState: **)- Creates an
online userwho has passed KYC in a specific state.
- Creates an
-
CreateUserPassKyc(advisorUserId: ****)- Creates a user who has passed KYC under a specific advisor.
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.
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¶
-
CreateAndApproveAdvisor()- Creates an
advisor.
- Creates an
-
CreateAdvisorAndClient()- Creates an
advisor's userwho has not passed KYC.
- Creates an
-
AddClientForExistingAdvisor()- Adds a
clientunder a specific advisor.
- Adds a
User Regression Test Contract¶
-
UserSetUpAndSignIn(msisdn, email, password)- Creates an
online userwho has not passed KYC.
- Creates an
-
BankUserLoginWithMsisdn()- Logs in a user using their
msisdnandpassword(pwd is 7629 by default).
- Logs in a user using their
-
UserLoginWithUserId()- Logs in a user using their
userIdandpassword.
- Logs in a user using their