create test case for the below requirements As an unregistered/ new user, I want to sign…
- User
create test case for the below requirements As an unregistered/ new user, I want to sign in to IHV app using mobile number so that I can generate OTP and access the features of the app Given unregistered/new user click on IHV app. And user should be able to see the logo of Optimal Oncology on the screen. And user should get navigated to the Sign in screen. And user should able to see logo of Optimal Oncology and the text below, "Enter your Mobile Number". with the title Sign in And user should be able to see text box with place holder "Mobile Number". And user should be able to input only numbers (0-9) in the text box. And user should able to see red error message below "Please enter a valid mobile number" if user count not equals to 10. User cannot enter any inputs other than numbers (alphabets, special characters are not allowed/enabled to be entered).
When user enter the mobile number and click on "GET OTP" button. Then user should receive 6 digit OTP to the entered mobile number. And user should get navigated to OTP verification screen.
And user should able to see logo of Optimal Oncology and the text below, "Welcome 9123456789" (Welcome username for existing user), "Enter the OTP sent to 9123456789" and a text box to enter OTP. And user should be able to enter OTP manually and click on "VERIFY & CONTINUE".
Scenario 1 When user enters correct OTP Then the user should get landed in "Personal Info" Screen if the user is a new user. User should land into home screen if the user is an existing user.
Scenario 2 When user enters incorrect OTP Then user should able to see red error message below "Enter valid OTP"
Scenario 3 Display below message after 30 sec if user didn’t enter OTP, "Didn’t receive OTP? Resend" with a snack bar message "Timed out". When "Resend" is clicked, display snack bar "OTP sent successfully"
Scenario 4 When user types the values and then deletes, display error message "Mobile number cannot be empty" for mobile field, "OTP cannot be empty" for OTP field
Scenario 5 GET OTP button should be enabled only when the mobile number field is entered with 10 digits. Until the count is 10, GET OTP is disabled, and a message to be displayed "Please enter a valid mobile number".
- Assistant
- User
go on with more test case for the above
- Assistant
Scenario 6 When user enters a mobile number that is already registered, the app should display an error message "Mobile number is already registered, please login instead" and give the user an option to go to the login screen.
Scenario 7 When the user enters an invalid mobile number (less than 10 digits or more than 10 digits), the app should display an error message "Please enter a valid 10-digit mobile number".
Scenario 8 When the user enters a non-numeric value in the mobile number field, the app should display an error message "Please enter a valid 10-digit mobile number".
Scenario 9 When the user clicks on the "GET OTP" button, the button should be disabled until the OTP is generated and displayed to the user.
Scenario 10 When the user clicks on the "GET OTP" button, the app should display a loading icon to indicate that the request is being processed.
Scenario 11 When the user enters an incorrect OTP more than 3 times, the app should display an error message "You have exceeded the maximum number of attempts, please try again after some time".
- User
create a java auotmation script for test case 1
- Assistant
Sure, here's an example Java automation script for Scenario 1:
java