-
Functional Flows
-
User enters the login page by entering the URL "<company>.scalekit.com/login
-
Validate if there is any existing login token
-
No
- Verify the URL "<company>.scalekit.com/login"
- Validate the Company Logo
- Validate the page as per the figma design "Company-name, logo, color etc)"
-
Yes
- User is directed to the app page
-
Validate user enters the URL of the application but no token exists or expired
- User is directed to login page of the scale kit tenant ie <company>.scalekit.com/login
-
User on ScaleKit login Page
-
Verify the login method
- Google
- User Email and Password
-
Login Method
-
Google
- Verify the user is directed to the login page of google
-
If session exists
- User will be asked to allow and other process
-
If no google exists
- User is asked to login in the google login page
-
On successful authentication
- User is directed to app
- Verify user google account is same as the company account
- Verify if other account, user is not allowed and proper error is thrown
- Verify if user account is active state
-
Password
- Verify the email id format should be @<company name>
- If user enters other account, it should throw 401
- Verify the password entered are hidden
- Verify when password is sent , its encypted
- Verify the capta is always shown in email pass login
-
Verify on functionality of capta
-
Substract, addtion etc
- Verify the correct result
- Verify if wrong result
- Verify if wrong capta is sent , no login api call is made by FE
-
Verify the response from the API if all above is correct
- 200 when login
- 400 when wrong creds
- On 400, it should not allow to login and shows the correct error on FE
- Verify if the login is success but the user is deactivated
- Verify for any state issue in the FE part
- Main Topic 3
-
Requirement
- * Given the following functional requirements, draft the test cases. Assign an priority of each of the test case with the right justification.
* Login
* A login page where users from a particular organization can login
* Its a multi-tenanted system and the url of the login page is like - <company>.scalekit.com/login
* The page will have the tenant specific details (Company-name, logo, color etc)
* Two types of login methods are available
* Login with email and password
* Login with Google
* Password based login will have a captcha field associated with it. It will have a number challenge where the user has to add/subtract the numbers in the captcha image and write the result in the field
* Successful login will take the user inside the app
* Logout
* Logging out will take the user out of the app and land them to the login page
* A session timeout will also do the same
* If multiple tabs of the app are opened in different tabs, logging out from one tabs should log out from all others
-
Logout
-
On button click
-
Verify logout api call is made for the user
- Verify the user is re directed to the same login page of the smae company
- Verify in Db if the token is set to expired
- Verify if the same user tries from a different tab , he is show the login page
- Verify the API has the user id and token that needs to be logout
-
On token expiration
- No activity expiration
- Time out expiry