What is OTP? OTP is an abbreviation of one time password. OTP is used for the verification of mobile numbers or emails. Mostly OTP is widely worldwide used for registration and the transfer of payments.
How it Works? OTP one time password is generated and sent to the user on mobile number or on email address. User adds the OTP code and verifies itself.
Why use OTP?
- OTP is used to verify the user.
- OTP reduce the chances of fraud by sending OTP on the mobile number to the user on a physical device.
- Easy and Instant user registration and login.
- Secure payments
Test Case and Scenarios For OTP code Verification
- Verify for verification valid and correct OTP is generated or not.
- Verify OTP code should be valid only for one time or not.
- Verify the count for the OTP code generated should not be more than required.
- Test the count for the OTP code generated should not be less than required.
- Verify OTP code sent to the user successfully or not within time or not.
- Verify and confirm the time duration in which the user received the OTP generated code sent on email.
- Check the time duration for the OTP generated code received by the user on mobile.
- Verify OTP code fetched by the application from the message by default or user add manually. It depends on the requirements.
- Verify by adding the valid OTP application must accept the code successfully.
- Confirm a correct info message is shown or not in case if the user adds a valid OTP code.
- Verify a proper error message should be shown in case if the user adds an invalid OTP code.
- Verify OTP code should expire after the time allowed by the application or software.
- Verify application should not accept the OTP code once expired.
- Verify the user can request a new OTP code by clicking on the link or button resend code.
- Verify on again request on clicking on the Resend link OTP code should be sent to the user successfully or not.
- Verify the user should be temporarily blocked or not in case if it requests for new OTP code again and again.
- Verify the limit set for OTP code to resend multiple times or not. (For example maximum five attempts allowed per user)
- Verify OTP code is case sensitive or not.
- Verify OTP code is only numeric or alphanumeric.