A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Ticket URL | Daily Finance Management System | ||||||||||||||||||||||||
2 | Tested By | Mashrur Safir | ||||||||||||||||||||||||
3 | Test Result (Passed/Failed/Not executed) | 16/16 | ||||||||||||||||||||||||
4 | ||||||||||||||||||||||||||
5 | Test Case Id | Module/ Test Scenario | Test Case Title | Prerequsites | Expected Result | Steps/Actions | Test Data | Actual Result | Status | Remarks | ||||||||||||||||
6 | TC01 | User Registration | User Registeriation and assertion of success via toast notification | User is on the home page | Toast Message: User Registered Successfully | 1. Click on the Register button. 2. Fill the register form with valid Gmail and other fields. 3. Click the register button | FirstName: Romana LastName: Parisian Email: shabab.ahmed2000sa+4144@gmail.com PhoneNumber: 01235721989 Address: Apt. 062 29992 Sauer Pike, South Loycechester, WA 20828-3362 Gender: Male Dynamic Gmail address was used. Rest of the values were fake generated. | As expected | Passed | Email was stored in users.json for reuse in future flows | ||||||||||||||||
7 | TC02 | Email Verification | Via Gmail API, it is verified that confirmation email is received. | User Registration was successful. | Email body: Welcome to our platform! We're excited to have you onboard. | 1. Get the Gmail token from google auth playground. 2. Fetch the email List and get the last mail ID 3. Extract snippet of that mail ID and verify | Gmail token from Google auth playground. Store it in config.properties in resources | As expected | Passed | Email ID was saved in config.properties for fetching the email body of this email. | ||||||||||||||||
8 | TC03 | Reset Password | Attemp to resert password via an un registered email | User is on the Reset page | Your email is not registered | 1. Click on Reset it here . 2. Enter an unregistered email address 3. Click SEND RESET LINK. | EMAIL: shabab.ahmed2000sa@gmail.com | As expected | Passed | - | ||||||||||||||||
9 | TC04 | Reset Password | Attemp to reset password with missign domain | User is on the Reset page | Please enter a part following '@'. 'shabab.ahmed2000sa@' is incomplete. | 1. Click on Reset it here . 2. Enter an email address without the domain. 3. Click SEND RESET LINK. | shabab.ahmed2000sa@ | As expected | Passed | - | ||||||||||||||||
10 | TC05 | Reset Password | Attempt to reset password by missing "@" | User is on the Reset page | Please include an '@' in the email address. 'shabab.ahmed2000sagmail.com is missing an '@'. | 1. Click on Reset it here. 2. Enter an email address without "@". 3. Click SEND RESET LINK. | shabab.ahmed2000sagmail.com | As expected | Passed | - | ||||||||||||||||
11 | TC06 | Reset Password | Attempt to reset password with the valid registered Gmail address | User is on the Reset page | Password reset link sent to your email | 1. Click on Reset it here . 2. Enter the registered gmail. 3. Click SEND RESET LINK. | shabab.ahmed2000sa+4144@gmail.com | As expected | Passed | Email sent. The valid email was sent from users.json file. The email was from the last json object of the json array. | ||||||||||||||||
12 | TC07 | Reset Password | Reset password via the reset link sent in gmail. | Gmail API token alive. User received the password reset mail with the link. | Password reset successfully | 1. Fetch last email ID using Gmail API 2. Extract reset link from this ID 3. Open link in browser 4. Enter and confirm new password 5. Submit | admin | As expected | Passed | Password was also updated in users.json file | ||||||||||||||||
13 | TC08 | User Login | login using updated password | Password reset was successful | User logs in. Dashboard accessible. | 1. Navigate to Daily Finance Management System 2. Enter email and the updated password. 3. Click LOGIN button. | Email: shabab.ahmed2000sa+4144@gmail.com Password: admin | As expected | Passed | The email ID and password was fetched from users.json | ||||||||||||||||
14 | TC09 | Adding cost item | Adding an item with all the fields | User is logged in | Success alert appears: "Product added successfully" | 1. Click "Add Cost" button. 2. Fill Item Name, Amount and Remarks. 3. Click Submit button. | Item Name: all_items Amount: 1000 Remarks: all item | As expected | Passed | - | ||||||||||||||||
15 | TC10 | Adding cost item | Adding an item with mandatory fields | User is logged in | Success alert appears: "Product added successfully" | 1. Click "Add Cost" button. 2. Fill Item Name, Amount. 3. Click Submit button. | Item Name: mandatory_items Amount: 1000 | As expected | Passed | - | ||||||||||||||||
16 | TC11 | Item Verification | Asserting that both the items added appear in the item list | Both the items were added | Both the items should be listed in the User Daily Costs if searched | 1. Navigate to user dashboard. 2. Search for "all_items". 3. Search for "mandatory_items". | all_items mandatory_items | As expected | Passed | - | ||||||||||||||||
17 | TC12 | User Profile Update | Update the Gmail address from the user profile section | User is logged in | Success alert appears: "User updated successfully" | 1. Navigate to user profile by clicking user menu. 2. Click edit. 3. Update Gmail. 4. Click UPDATE button. 5. Accept the success alert. | shabab.ahmed2000sa+4145@gmail.com | As expected | Passed | This update was also done in users.json | ||||||||||||||||
18 | TC13 | User Authentication | Attempt login via the old Gmail address | Gmail was updated. | "Invalid email or password" | 1. Enter the old email. 2. Enter password. 3. Click LOGIN button. | shabab.ahmed2000sa+4144@gmail.com | As expected | Passed | This old email was kept in a variable before updating the email in users.json file | ||||||||||||||||
19 | TC14 | User Authentication | Attempt login via the updated Gmail address | Gmail was updated. | User logs in. Dashboard accessible. | 1. Enter updated email. 2. Enter password. 3. Click LOGIN button. | shabab.ahmed2000sa+4145@gmail.com | As expected | Passed | The email ID and password was fetched from users.json | ||||||||||||||||
20 | TC15 | User Search (from admin panel) | Login as admin and assert that the updated Gmail existis in the dashboard table. | Gmail was updated. | Updated email appears after searching in the search box of the dashboard table. | 1. Login with admin credentials passed securely from terminal. 2. Search using the updated gmail. 3. Match the row that appears with that of the updated gmail. | Email: admin@test.com Password: admin123 Updated Gmail: shabab.ahmed2000sa+4145@gmail.com | As expected | Passed | System.getProperty() was used to read the admin credentials from CLI. | ||||||||||||||||
21 | TC16 | Data Scraping | Being logged in as admin, scrape user table data and write it to a text file | Admin is logged in. | All the user data from the table is written to webTable.txt | 1. Log in using authToken and authTokenData injected into browser via setAuth() function in Utils. 2. Read the table. 3. write it to the text file. | authToken authTokenData | As expected | Passed | The auth token and auth token data were stored while first admin login in the localStorage.json file. Later in the second login, these data were fetched and injectedted into browser. | ||||||||||||||||
22 | ||||||||||||||||||||||||||
23 | ||||||||||||||||||||||||||
24 | ||||||||||||||||||||||||||
25 | ||||||||||||||||||||||||||
26 | ||||||||||||||||||||||||||
27 | ||||||||||||||||||||||||||
28 | ||||||||||||||||||||||||||
29 | ||||||||||||||||||||||||||
30 | ||||||||||||||||||||||||||
31 | ||||||||||||||||||||||||||
32 | ||||||||||||||||||||||||||
33 | ||||||||||||||||||||||||||
34 | ||||||||||||||||||||||||||
35 | ||||||||||||||||||||||||||
36 | ||||||||||||||||||||||||||
37 | ||||||||||||||||||||||||||
38 | ||||||||||||||||||||||||||
39 | ||||||||||||||||||||||||||
40 | ||||||||||||||||||||||||||
41 | ||||||||||||||||||||||||||
42 | ||||||||||||||||||||||||||
43 | ||||||||||||||||||||||||||
44 | ||||||||||||||||||||||||||
45 | ||||||||||||||||||||||||||
46 | ||||||||||||||||||||||||||
47 | ||||||||||||||||||||||||||
48 | ||||||||||||||||||||||||||
49 | ||||||||||||||||||||||||||
50 | ||||||||||||||||||||||||||
51 | ||||||||||||||||||||||||||
52 | ||||||||||||||||||||||||||
53 | ||||||||||||||||||||||||||
54 | ||||||||||||||||||||||||||
55 | ||||||||||||||||||||||||||
56 | ||||||||||||||||||||||||||
57 | ||||||||||||||||||||||||||
58 | ||||||||||||||||||||||||||
59 | ||||||||||||||||||||||||||
60 | ||||||||||||||||||||||||||
61 | ||||||||||||||||||||||||||
62 | ||||||||||||||||||||||||||
63 | ||||||||||||||||||||||||||
64 | ||||||||||||||||||||||||||
65 | ||||||||||||||||||||||||||
66 | ||||||||||||||||||||||||||
67 | ||||||||||||||||||||||||||
68 | ||||||||||||||||||||||||||
69 | ||||||||||||||||||||||||||
70 | ||||||||||||||||||||||||||
71 | ||||||||||||||||||||||||||
72 | ||||||||||||||||||||||||||
73 | ||||||||||||||||||||||||||
74 | ||||||||||||||||||||||||||
75 | ||||||||||||||||||||||||||
76 | ||||||||||||||||||||||||||
77 | ||||||||||||||||||||||||||
78 | ||||||||||||||||||||||||||
79 | ||||||||||||||||||||||||||
80 | ||||||||||||||||||||||||||
81 | ||||||||||||||||||||||||||
82 | ||||||||||||||||||||||||||
83 | ||||||||||||||||||||||||||
84 | ||||||||||||||||||||||||||
85 | ||||||||||||||||||||||||||
86 | ||||||||||||||||||||||||||
87 | ||||||||||||||||||||||||||
88 | ||||||||||||||||||||||||||
89 | ||||||||||||||||||||||||||
90 | ||||||||||||||||||||||||||
91 | ||||||||||||||||||||||||||
92 | ||||||||||||||||||||||||||
93 | ||||||||||||||||||||||||||
94 | ||||||||||||||||||||||||||
95 | ||||||||||||||||||||||||||
96 | ||||||||||||||||||||||||||
97 | ||||||||||||||||||||||||||
98 | ||||||||||||||||||||||||||
99 | ||||||||||||||||||||||||||
100 |