Login User
- As a user, I should be able to login.
Login URL
RESTAPI
Validation
- Validate entered mobile number with the database and return error.
- Validate entered phone number is in the length of 10 digit.
- Restict the input field to number.
- Sent OTP only if above all condition matches else return respective error.
Positive Test Cases for OTP
- Successful OTP generation and delivery via SMS.
- Accurate validation of a correctly entered OTP.
- Seamless integration with multi-factor authentication processes.
- Time-sensitive expiration of OTPs.
- Efficient handling of concurrent OTP requests.
- Reliable OTP delivery through email.
- Appropriate response to valid OTP input in various applications.
- Successful OTP validation with minimal user latency.
- Proper functioning of OTPs across different devices.
- Error-free OTP generation for diverse user accounts.
- Smooth integration with third-party OTP authenticator apps.
- Testing OTP resend option for the same transaction action.
- Testing system response to rapid consecutive OTP requests.
Negative Test Cases for OTP
- Invalid OTP entry resulting in rejection.
- Excessive attempts leading to temporary account lockout.
- OTP verification failure for expired codes.
- Unsuccessful OTP delivery due to network issues.
- Incorrect input handling with alphanumeric OTPs.
- Testing the system’s response to delayed OTP delivery.
- Security validation for tampered or manipulated OTPs.
- Testing the system’s response to receiving duplicate OTPs.
- Handling scenarios where OTPs are not delivered or received.
Response
{
"data": {
"id": "91eee3b0-9dec-4859-b607-c8868bd16bc7",
"createdAt": "2024-03-31T03:49:12.524Z",
"updatedAt": "2024-06-20T18:00:37.703Z",
"name": "Jayasurya",
"email": "surya@technocis.in",
"phone": "9500659698",
"alternatePhone": "",
"whatsapp": "9500659698",
"roles": [
{
"id": "800d3474-2e69-4259-96f6-3630721798d6",
"createdAt": "2024-03-30T13:37:48.621Z",
"updatedAt": "2024-03-30T13:37:48.621Z",
"title": "Customer",
"key": "CUSTOMER",
"description": "Customer Role",
"active": true,
"default": true,
"permissions": ["USER_CREATE"]
},
{
"id": "03973864-c648-4aad-8bf4-35e8badafef0",
"createdAt": "2024-03-30T13:37:48.618Z",
"updatedAt": "2024-03-30T13:37:48.619Z",
"title": "Super Admin",
"key": "SUPER_ADMIN",
"description": "Super Admin Role",
"active": true,
"default": false,
"permissions": ["USER_CREATE"]
},
{
"id": "184bf547-fc11-48b5-8084-a7fb80cc578c",
"createdAt": "2024-03-30T13:37:48.620Z",
"updatedAt": "2024-03-30T13:37:48.620Z",
"title": "Admin",
"key": "ADMIN",
"description": "Admin Role",
"active": true,
"default": false,
"permissions": ["USER_CREATE"]
}
]
},
"message": "ok"
}
Payload
{ "phone": "9500659698" }