Skip to content

Commit d2157cf

Browse files
AnshulAnshul
authored andcommitted
Java AI Project
1 parent f148e86 commit d2157cf

19 files changed

Lines changed: 1893 additions & 0 deletions

.DS_Store

2 KB
Binary file not shown.
6 KB
Binary file not shown.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"testCaseName": "Verify Upcoming Anniversaries panel on Buzz in OrangeHRM Demo",
3+
"description": "Open the OrangeHRM demo site, log in, navigate to the Buzz section, verify the 'Upcoming Anniversaries' panel is visible, and print the list of people with upcoming anniversaries.",
4+
"steps": [
5+
{
6+
"stepNumber": 1,
7+
"action": "Navigate to URL",
8+
"target": "https://opensource-demo.orangehrmlive.com/",
9+
"inputs": {
10+
"url": "https://opensource-demo.orangehrmlive.com/"
11+
},
12+
"expected": "OrangeHRM login page is displayed with username and password fields visible."
13+
},
14+
{
15+
"stepNumber": 2,
16+
"action": "Enter text",
17+
"target": "Username input field (name='username')",
18+
"inputs": {
19+
"text": "Admin"
20+
},
21+
"expected": "Username field contains the text 'Admin'."
22+
},
23+
{
24+
"stepNumber": 3,
25+
"action": "Enter text (secure)",
26+
"target": "Password input field (name='password')",
27+
"inputs": {
28+
"text": "admin123"
29+
},
30+
"expected": "Password field is populated (masked) without validation errors."
31+
},
32+
{
33+
"stepNumber": 4,
34+
"action": "Click",
35+
"target": "Login button (type='submit')",
36+
"expected": "User is logged in and the Dashboard/Home page is displayed; left navigation menu is visible and contains the 'Buzz' menu item."
37+
},
38+
{
39+
"stepNumber": 5,
40+
"action": "Click",
41+
"target": "Left navigation menu item with visible text 'Buzz'",
42+
"expected": "Buzz page loads successfully. Buzz page header or content specific to Buzz is visible."
43+
},
44+
{
45+
"stepNumber": 6,
46+
"action": "Verify visibility",
47+
"target": "Panel with header/title text 'Upcoming Anniversaries' on the Buzz page",
48+
"expected": "'Upcoming Anniversaries' panel is present in the DOM and visible to the user."
49+
},
50+
{
51+
"stepNumber": 7,
52+
"action": "Extract and print list items",
53+
"target": "Employee name elements within the 'Upcoming Anniversaries' panel (e.g., list items under the panel)",
54+
"expected": "The names of people with upcoming anniversaries are captured and printed to the test logs. If no entries are present, print 'No upcoming anniversaries'."
55+
}
56+
]
57+
}
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
{
2+
"testCases": [
3+
{
4+
"testCaseName": "Verify Upcoming Anniversaries panel is visible on Buzz after valid login",
5+
"description": "Open OrangeHRM demo site, log in with valid credentials, navigate to Buzz, verify the 'Upcoming Anniversaries' panel is displayed, and print the list of people shown.",
6+
"steps": [
7+
{
8+
"stepNumber": 1,
9+
"action": "Open URL in a browser",
10+
"target": "https://opensource-demo.orangehrmlive.com/",
11+
"inputValues": null,
12+
"expectedValidations": [
13+
"Login page is displayed",
14+
"Username and Password input fields are visible",
15+
"Login button is visible"
16+
]
17+
},
18+
{
19+
"stepNumber": 2,
20+
"action": "Enter username",
21+
"target": "Login page - Username field",
22+
"inputValues": {
23+
"username": "Admin"
24+
},
25+
"expectedValidations": [
26+
"Username field contains 'Admin'"
27+
]
28+
},
29+
{
30+
"stepNumber": 3,
31+
"action": "Enter password",
32+
"target": "Login page - Password field",
33+
"inputValues": {
34+
"password": "admin123"
35+
},
36+
"expectedValidations": [
37+
"Password field is populated (masked)"
38+
]
39+
},
40+
{
41+
"stepNumber": 4,
42+
"action": "Click the Login button",
43+
"target": "Login page - Login button",
44+
"inputValues": null,
45+
"expectedValidations": [
46+
"User is authenticated and navigated to the application (e.g., Dashboard/Home)",
47+
"Main navigation sidebar is visible",
48+
"'Buzz' menu item is present"
49+
]
50+
},
51+
{
52+
"stepNumber": 5,
53+
"action": "Navigate to Buzz",
54+
"target": "Main navigation - 'Buzz' menu item",
55+
"inputValues": null,
56+
"expectedValidations": [
57+
"Buzz page loads successfully",
58+
"Buzz page header or identifier is visible"
59+
]
60+
},
61+
{
62+
"stepNumber": 6,
63+
"action": "Verify the 'Upcoming Anniversaries' panel visibility",
64+
"target": "Buzz page - 'Upcoming Anniversaries' panel",
65+
"inputValues": null,
66+
"expectedValidations": [
67+
"'Upcoming Anniversaries' panel is present in the Buzz page layout",
68+
"Panel title text equals 'Upcoming Anniversaries'",
69+
"Panel is visible (not collapsed or hidden)"
70+
]
71+
},
72+
{
73+
"stepNumber": 7,
74+
"action": "Capture and print the list of people with upcoming anniversaries",
75+
"target": "Buzz page - 'Upcoming Anniversaries' panel - list items (names)",
76+
"inputValues": null,
77+
"expectedValidations": [
78+
"All displayed names within the 'Upcoming Anniversaries' panel are retrieved",
79+
"Names are printed/logged in the test output in display order",
80+
"If no names are present, print/log 'No upcoming anniversaries'"
81+
]
82+
}
83+
]
84+
},
85+
{
86+
"testCaseName": "Negative - Invalid login prevents access to Buzz and Upcoming Anniversaries panel",
87+
"description": "Attempt to log in with invalid credentials and verify that access to Buzz (and the 'Upcoming Anniversaries' panel) is not granted.",
88+
"steps": [
89+
{
90+
"stepNumber": 1,
91+
"action": "Open URL in a browser",
92+
"target": "https://opensource-demo.orangehrmlive.com/",
93+
"inputValues": null,
94+
"expectedValidations": [
95+
"Login page is displayed",
96+
"Username and Password input fields are visible",
97+
"Login button is visible"
98+
]
99+
},
100+
{
101+
"stepNumber": 2,
102+
"action": "Enter username",
103+
"target": "Login page - Username field",
104+
"inputValues": {
105+
"username": "Admin"
106+
},
107+
"expectedValidations": [
108+
"Username field contains 'Admin'"
109+
]
110+
},
111+
{
112+
"stepNumber": 3,
113+
"action": "Enter invalid password",
114+
"target": "Login page - Password field",
115+
"inputValues": {
116+
"password": "wrongpass"
117+
},
118+
"expectedValidations": [
119+
"Password field is populated (masked)"
120+
]
121+
},
122+
{
123+
"stepNumber": 4,
124+
"action": "Click the Login button",
125+
"target": "Login page - Login button",
126+
"inputValues": null,
127+
"expectedValidations": [
128+
"Login remains on the Login page",
129+
"Error message 'Invalid credentials' is displayed",
130+
"Main navigation sidebar is not available"
131+
]
132+
},
133+
{
134+
"stepNumber": 5,
135+
"action": "Verify Buzz and 'Upcoming Anniversaries' are not accessible",
136+
"target": "Application navigation and content area",
137+
"inputValues": null,
138+
"expectedValidations": [
139+
"'Buzz' menu item is not accessible when not authenticated",
140+
"'Upcoming Anniversaries' panel is not displayed",
141+
"User cannot navigate to the Buzz page without a valid session"
142+
]
143+
}
144+
]
145+
}
146+
]
147+
}

0 commit comments

Comments
 (0)