0% found this document useful (0 votes)
5 views30 pages

Test Cases - Core Module

The document outlines test cases for a user management system, detailing the steps required to create, edit, and manage users and their roles. It includes various scenarios for validating user input, ensuring proper error handling, and verifying the functionality of user-related features. The document serves as a comprehensive guide for testing the core module of the user management system.

Uploaded by

naim.bsc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views30 pages

Test Cases - Core Module

The document outlines test cases for a user management system, detailing the steps required to create, edit, and manage users and their roles. It includes various scenarios for validating user input, ensuring proper error handling, and verifying the functionality of user-related features. The document serves as a comprehensive guide for testing the core module of the user management system.

Uploaded by

naim.bsc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 30

Scenario

Test Case ID Pre Condition


Desciption
You have to be assing with a
1 Open New User Modal
role "User menager"

Create New User - Personal


2 Open user modal
Data

Create New User - Personal


3 Open user modal
Data

Create New User - Personal


4 Open user modal
Data

Create New User - Personal


5 Open user modal
Data

Create New User - Personal


6 Open user modal
Data

Create New User - Personal


7 Open user modal
Data

Create New User - Personal


8 Open user modal
Data

Create New User - Personal


9 Open user modal
Data

Create New User - Personal


10 Open user modal
Data
Create New User - Personal
11 Open user modal
Data

Create New User - Personal


12 Open user modal
Data

Create New User - Personal


13 Open user modal
Data

Create New User - Personal


14 Open user modal
Data

Create New User - Personal


15 Open user modal
Data

Create New User - Personal


16 Open user modal
Data

Create New User - Personal


17 Open user modal
Data

Create New User - Personal


18 Open user modal
Data

19 Crate New User - Add Roles Open user modal


Open user modal and create
20 Crate New User - Add Roles
new user

Open user modal and create


21 Crate New User - Add Roles
new user

Open user modal and create


22 Crate New User - Add Roles
new user

Open user modal and create


23 Crate New User - Add Roles
new user

Open user modal and create


24 Crate New User - Add Roles
new user

Open user modal and create


25 Crate New User - Add Roles
new user

Open user modal and create


26 Crate New User - Add Roles
new user

Open user modal and create


27 Crate New User - Add Roles
new user

Open user modal and create


28 Crate New User - Add Roles
new user

Open user modal and create


29 Crate New User - Add Roles
new user

Open user modal and create


30 Crate New User - Add Roles
new user

Open user modal and create


31 Crate New User - Add Roles
new user

Open user modal and create


32 Crate New User - Add Roles
new user

Open user modal and create


33 Crate New User - Add Roles
new user

Open user modal and create


34 Crate New User - Add Roles
new user
Open user modal and create
35 Crate New User - Add Roles
new user

Open user modal and create


36 Crate New User - Add Roles
new user

Open user modal and create


37 Crate New User - Add Roles
new user

Open user modal and create


38 Crate New User - Add Roles
new user

Open user modal and create


39 Crate New User - Add Roles
new user

Open user modal and create


40 Crate New User - Add Roles
new user

Open user modal and create


41 Crate New User - Add Roles
new user

42 Crate New User - Add Roles Open user modal

Open user modal, create new


43 Crate New User - Scopes
user and assign role/s

Open user modal, create new


44 Crate New User - Scopes
user and assign role/s

Open user modal, create new


45 Crate New User - Scopes
user and assign role/s

Open user modal, create new


46 Crate New User - Scopes
user and assign role/s

Open user modal, create new


47 Crate New User - Scopes
user and assign role/s

Open user modal, create new


48 Crate New User - Scopes
user and assign role/s

Open user modal, create new


49 Crate New User - Scopes
user and assign role/s
Open user modal, create new
50 Crate New User - Scopes
user and assign role/s

Open user modal, create new


51 Crate New User - Scopes
user and assign role/s

Open user modal, create new


52 Crate New User - Scopes
user and assign role/s

Open user modal, create new


54 Crate New User - Scopes
user and assign role/s

Open user modal, create new


55 Crate New User - Scopes
user and assign role/s

Open user modal, create new


56 Crate New User - Scopes
user and assign role/s

Open user modal, create new


57 Crate New User - Scopes
user and assign role/s

Open user modal, create new


58 Crate New User - Scopes
user and assign role/s

59 Users Table Open user modal

60 Users Table Open user modal

61 Users Table Open user modal

62 Users Table Open user modal


63 Users Table Open user modal

64 Users Table Open user modal

65 Users Table Open user modal

66 Users Table Open user modal

67 Users Table Open user modal

68 Users Table Open user modal

69 Users Table Open user modal

70 Users Table Open user modal

71 Users Table Open user modal

72 Users Table Open user modal

73 Users Table Open user modal

74 Users Table Open user modal

75 Users Table Open user modal

76 Users Table Open user modal


77 Users Table Open user modal

78 Users Table Open user modal

79 Users Table Open user modal

80 Edit User Open user modal

81 Edit User Open user modal

82 Edit User Open user modal

83 Edit User Open user modal

84 Edit User Open user modal

85 Edit User Open user modal

86 Edit User Open user modal

87 Users Table Open user modal


88 Users Table Open user modal

89

90

91

92

93

94

95
Test Case
Project Name IncludeMee
Module Name Core Module

Testing User Managment

Created By Naim

Created Date 4/23/2025

Steps to Execute Expected Result


1 - Click on "Settings" in Navbar 2 - Should open modal with Personal data form
Click on "User Managment" tile 3- visible with "Roles" and "Scopes" accordion
Click on button "New" disabled

Should show mandatory fields colored red with


1 - Click on button "Save" with emtpy form
messgae "This field is required"

1 - Fill up fields with space and click on "Save" Should show four mandatory fields (email;
button username; first name; last name)

It should show error and text where it says "@"


1 - Enter email without "@"
should be included

1 - Enter "a@b" as email value It should show invalid format

1 - Enter valid email example: It should show email as valid, but (username, first
"[email protected]" name, last name) fields shown as requierd

It should show "email" and "username" are valid


1 - Enter valid email and username minimum 1
but should show "first name" and "last name" as
character
requierd

It should show "email","username" and "first


1 - Enter valid email, username and first name
name" are valid but should show "last name" as
minimum 1 character
requierd

1 - Enter valid email, username, first name and


It should create new user
last name minimum 1 character

1 - Enter email that has been already connected


It should show error that email already exist
to user
1 - Enter valid email, first name and last name but It should show error where "username" already
username that has already in database exist

1 - Click on "Employee Reference" magnifying


It should open modal with list of employees
glass button
1 - Select employee from employee modal 2
- Add new user name 3
It should show error that user with this employee
- Click Save 4-
reference is already created
Select same employee and assign different user
name and click save

Should have fields "Employee Reference",


"Email", "First Name" and "Last Name" filled in
1 - Select employee from employee modal 2
with employee data. "User name" should be
- Click "Select"
blank. Fields "Email", "First Name" and "Last
Name" should be disabled.

1 - Select employee from employee modal 2


- Click "Select" 3-
Should show error that "Employee Reference"
Change employee reference with non existing
with that number doesnt exist
employee reference number (eg: 10000000)
4 - Click "Save"

1 - Select employee from employee modal 2


- Click "Select" 3-
Should show error that "Employee Reference" is
Add letters to employee reference (eg: "10abc")
not valid
4 - Click "Save"

1 - Select employee from employee modal 2


- Click "Select" 3- Shouldn't be possible to interact with "Employee
Add letters to employee reference (eg: "10abc") Reference" or change it at all

1 - Select employee from employee modal 2


- Click "Select" 3- Should create new user with selected employee
Enter value for "User Name" 4- data
Click "Save"

Should expend accordion "Roles" and minimize


1 - Fill user form with valid data accordion "Personal Data". List of all existing roles
2 - Click button "Save" on a personal data should be visible, "Modlul filter" should be set at
form "All" and nothing on "Roles" list shouldnt be
preselected
Select "Accident Managment" from "Modules List should show only "Accident Managment"
Filter" related roles

Select "Core Module" from "Modules Filter" List should show only "Core Module" related roles

List should show only "Ergo Screening" related


Select "Ergo Screening" from "Modules Filter"
roles

Select "Job-Lab" from "Modules Filter" List should show only "Job-Lab" related roles

Select "Noisse&Hazard Measures" from "Modules List should show only "Noisse&Hazard Measures"
Filter" related roles

Select "OIM" from "Modules Filter" List should show only "OIM" related roles

List should show only "Risk Assessment" related


Select "Risk Assessment" from "Modules Filter"
roles

List should show only "Skill Screening" related


Select "Skill Screening" from "Modules Filter"
roles

Select "SOB" from "Modules Filter" List should show only "SOB" related roles

Select "Workplace Configurator" from "Modules List should show only "Workplace Configurator"
Filter" related roles

Click on column "ID" to sort roles ascending List should show Role IDs in ascending order

Click on column "ID" to sort roles descending List should show Role IDs in descending order

Click on column "Name" to sort roles ascending List should show Role names in ascending order

Click on column "Name" to sort roles descending List should show Role names in descending order

Dont select any roles "Save" button should be disabled


Select one or more roles "Save" button should be enabled

Select "Select all" checkbox It should select all roles

Click on table row It should select current role

Select one or more roles and click on button


It should assing role/s to that user
"Save"

Select checkbox to select all roles and click on


It should assing all roles to that user
button "Save"

1 - Select any module from "Modlule Filter"


dropdown 2- Selected roles from the selected module should
Click on checkbox to select all roles 3- be assigned.
Click "Save" button

1 - Select any module from "Modlule Filter"


dropdown 2- After selecting "All" from "Module filter" it should
Click on checkbox to select all roles 3- display only roles from previously selected modul
Select "All" from "Module Filter" 4- as checked. It should assign roles to user
Click button "Save"

1 - Without creating user, click on roles accordion


It should be warning/error that user hasn't been
2 - Select one
selected/created, and it shouldn't be possible to
or more roles 3 - Click button
open "Roles" without previously creating a user
"Save"

Without selecting any module and org. unit try to Button "Save" should be disabled if any module
click on button "Save" and org. Unit isnt selected

Select any module from dropdown then click on


Button "Save" should be disabled
button "Save"

Select any org. unit then click on button "Save" Button "Save" should be disabled

Without selecting module you shouldnt be able to


Dont select any module from dropdown
interact with Scopes units

Pop-up should appear asking if we want to select


1 - Select any org. Unit
all sub departments

1 - Select any org. Unit 2 - Selected org unit and all its sub departments
Click "Yes" on pop-up should be selected

1 - Select any org. Unit 2 - Selected org unit should be selected while sub
Click "No" on pop-up departments remain unselected
1 - Select any org unit and click yes on pop-up to
select sub departments Selected org unit should be selected with its sub
2 - Select any module from dropdown departments
3 - Click expand on org unit

1 - Select any org unit and click yes on pop-up to


select sub departments
Selected org unit and its sub departments should
2 - Select any module from dropdown
reset on any module change
3 - Change module value
from dropdown

1 - Select any org unit and click yes on pop-up to


select sub departments
Org unit tree should reset and "Save" button
2 - Select any module from dropdown
should be disabled
3 - Change module value
from dropdown few times

If org unit has sub department, expand button


should be visible. Expand button shouldnt be
visible if org unit has no sub department

Org unit tree should expand/colaps when clicking


Click on expand/colaps button on org unit
on button, while icon should change accordingly

Click on search bar and fill up field with space Search functionality shouldnt be triggered

If there are any results, tree should expand to


Click on search bar and search for specific value
each result and first result should be highlighted

If there are any results they will be shown and first


1 - Click on search bar and search for specific
one be highlighted. Clicking on arrow
value 2-
next/previous it should find and highlight the
Use navigation arrows to find next/previous result
next/previous result

All checkboxes from users on that page should be


Click on "select all" checkbox
selected.

Should show a downward arrow next to the ID


Click on column "ID" to sort Users ID from lowest
column and sort users from lowest to highest
to highest
number

Should show a upward arrow next to the ID


Click on column "ID" to sort Users ID from highest
column and sort users from highest to lowest
to lowest
number

Should show a upward arrow next to the "User"


Click on column "Username" to sort users
column. Should sort all users alphabetically from
alphabetically A-Z
A-Z
Should show a upward arrow next to the "User"
Click on column "Username" to sort users
column. Should sort all users alphabetically from
alphabetically Z-A
Z-A

Should show a upward arrow next to the "Email"


Click on column "Email" to sort emails
column. Should sort all emails alphabetically from
alphabetically A-Z
A-Z

Should show a upward arrow next to the "Email"


Click on column "Email" to sort emails
column. Should sort all emails alphabetically from
alphabetically Z-A
Z-A

Should show a upward arrow next to the "First


Click on column "First Namel" to sort first names
Name" column. Should sort all first names
alphabetically A-Z
alphabetically from A-Z

Should show a upward arrow next to the "First


Click on column "First Name" to sort first names
Name" column. Should sort all first names
alphabetically Z-A
alphabetically from Z-A

Should show a upward arrow next to the "Last


Click on column "Last Name" to sort last names
Name" column. Should sort all last names
alphabetically A-Z
alphabetically from A-Z

Should show a upward arrow next to the "Last


Click on column "Last Name" to sort last names
Name" column. Should sort all last names
alphabetically Z-A
alphabetically from Z-A

Click on column "Status" to sort by active/inactive Should be able to click on status and sort users
users who are active/inactive

1 - Click on "Status" filter dropdown 2 - Should sort and show only users with active
Choose "Active" status

1 - Click on "Status" filter dropdown 2 - Should sort and show only users with inactive
Choose "Inactive" status

Click on "Filter" button to show "Status" filter


dropdown. Button should be active when is It should show "Status" dropdown
selcted

Click on "Filter" button to hide "Status" filter


dropdown. Button should deactivated when it's It should hide "Status" dropdown
selcted

Click on "Items per page" selector and choose 10 It should display exactly 10 users in the list

Click on "Items per page" selector and choose 20 It should display exactly 20 users in the list
Click on "Items per page" selector and choose 30 It should display exactly 30 users in the list

Should open users personal data with "Email" and


Click on button "Show" next to the user
"Employee reference" fields disabled

Click on "Type to search" and fill field with space Search functionality shouldnt be triggered

1 - Click on button "Show" next to the user with


"Employee Reference" 2-
Edit "Username" 3- It should update "Username"
Click button "Save" 4-
Close the modal

1 - Click on button "Show" next to the user with


"Employee Reference" 2-
Edit "First Name" 3- It should update "First Name"
Click button "Save" 4-
Close the modal

1 - Click on button "Show" next to the user with


"Employee Reference" 2-
Edit "Last Name" 3- It should update "Last Name"
Click button "Save" 4-
Close the modal

1 - Click on button "Show" next to the user with


no "Employee Reference" 2
- Edit "Username" 3 - It should update "Username"
Click button "Save" 4-
Close the modal

1 - Click on button "Show" next to the user with


no "Employee Reference" 2
- Edit "First Name" 3 - It should update "First Name"
Click button "Save" 4-
Close the modal

1 - Click on button "Show" next to the user with


no "Employee Reference" 2
- Edit "Last Name" 3 - It should update "Last Name"
Click button "Save" 4-
Close the modal

1 - Click on button "Show" next to the user


2 - Remove the "Username", "First Name" and It should show that fields are mandatory. Saving
"Last Name" values 3 - shhouldn't be possible
Click button "Save"

Click on "Type to search" and enter "0" It should show results containing "0"
Search functionality is triggered and it shows
Click on "Type to search" and enter any character results containing that character or it doesnt show
except "0" any results if any user doesnt contain that
character
Actual Result Status
It opens modal with Personal data visible but
accordions buttons "Roles" and "Scope" are
SUGGESTION
enabled. You can interact with them even though
you shouldn't.

It shows mandatory fields that are requierd PASS

It shows only email as mandatory FAIL

It shows error and correct text PASS

Email field doesnt show any error but toast


FAIL
message with text "validation error" is visible

It show everything as expected PASS

It show everything as expected PASS

It show everything as expected PASS

It saves successfully, everything works as it


PASS
should

It creates new user despite same email has been


FAIL
already in database
Only toast message with text "validation error"
FAIL
shows, no additional info

It does everything as it should PASS

Only toast message with text "validation error"


FAIL
shows, no additional info

It show everything as expected PASS

Only toast message with text "validation error"


FAIL
shows, no additional info

Doesnt show any error, continue to create new


FAIL
user

It does allow to change "Employee Reference" SUGGESTION

It does everything as it should PASS

It does everything as it should PASS


It does everything as it should PASS

It does everything as it should PASS

It's not showing anything in the list nor theres


FAIL
message that roles doesnt exist

It does everything as it should PASS

It's not showing anything in the list nor theres


FAIL
message that roles doesnt exist

It does everything as it should PASS

It's not showing anything in the list nor theres


FAIL
message that roles doesnt exist

It does everything as it should PASS

It does everything as it should PASS

It does everything as it should PASS

Order in the list is not changing FAIL

Order in the list is not changing FAIL

Order in the list is not changing FAIL

Order in the list is not changing FAIL

"Save" button is disabled PASS


"Save" button is enabled PASS

All roles are selected PASS

Role that's been clicked is not selected SUGGESTION

Role/s has been assing and success message


PASS
was shown "Updated Successfully"

Roles has been assing and success message


PASS
was shown "Updated Successfully"

Roles has been assing and success message


PASS
was shown "Updated Successfully"

Roles has been assing and success message


PASS
was shown "Updated Successfully"

Nothing happends, I click on "Save" button and it


FAIL
just keeps spinning. No warning/error message

"Save" button is disabled PASS

"Save" button is disabled PASS

"Save" button is disabled PASS

You can interact with scopes units before


SUGGESTION
selecting module which can cause confusion

Pop-up appears with correct message PASS

Everything works as it should PASS

Everything works as it should PASS


When I click expand on org unit, parent org unit
gets unselected while sub departments stays FAIL
selected

Only parent org unit deselect while its sub


SUGGESTION
departments stay selected

Org unites gets deselected but "Save" button


FAIL
remain enabled

Everything works as it should PASS

Everything works as it should PASS

Search functionality was trigger by empty space FAIL

Everything works as it should PASS

Everything works as it should PASS

All checkboxes from users are selected. PASS

Everything works as it should PASS

Everything works as it should PASS

Everything works as it should PASS


Everything works as it should PASS

Everything works as it should PASS

Everything works as it should PASS

Everything works as it should PASS

Everything works as it should PASS

Everything works as it should PASS

Everything works as it should PASS

SUGGESTION

Everything works as it should PASS

Everything works as it should PASS

Everything works as it should PASS

Everything works as it should PASS

The number of users displayed correctly matches


PASS
the selection

The number of users displayed correctly matches


PASS
the selection
The number of users displayed correctly matches
PASS
the selection

It works like it should PASS

Error message "Request failed with status code


FAIL
422" is shown

Username was updated PASS

First name wasn't updated even tho message


FAIL
"Update Successfully" was shown

Last name wasn't updated even tho message


FAIL
"Update Successfully" was shown

"Username" was updated PASS

"First Name" was updated PASS

"Last Name" was updated PASS

It shows that fields are mandatory PASS

Search functionality is triggered but in the table


FAIL
nothing changed
Everything works as it should PASS
Misc (Comments)

Form register empty space as string value. This shouldn't be the


case, field with empty space should also shown as mandatory

Toast message was shown with text "Validation Error" which


wasn't very detail enough
Toast message was shown with text "Validation Error" which
wasn't very detail enough

Toast message was shown with text "Validation Error" which


wasn't very detail enough

While I was increasing "Employee Reference" number, it was


setting employs data to form fields, if that number was valid
reference. When the number got too big and couldnt find
employee, data from the last valid employee was still filled in the
form and the fields were still disabled.

When I added letters to "Employee Reference" fields that were


disabled, became enabled. Also new saved user had "NaN" as
"Employee Reference"

It doesnt make sense for "Employee Reference" to be editable.


Becouse user could accidentally add numbers or letters to ruin
"Employee Reference".
ROLE_ACCIDENT_MANAGEMENT_SETTINGS_MANAGER
ROLE_ACCIDENT_MANAGEMENT_USER
ROLE_ACCIDENT_MANAGEMENT_HEALTH_AND_SAFETY_OFFICER
ROLE_ACCIDENT_MANAGEMENT_DATA_MANAGER
ROLE_ACCIDENT_MANAGEMENT_EMPLOYEE_REPRESENTATIVE

ROLE_CORE_MODULE_EMPLOYEE_MANAGER
ROLE_CORE_MODULE_HEALTH_INSURANCE_PROVIDER_MANAGER
ROLE_CORE_MODULE_ORG_UNIT_MANAGER
ROLE_CORE_MODULE_ROLE_MANAGER
ROLE_CORE_MODULE_SETTINGS_MANAGER
ROLE_CORE_MODULE_USER_MANAGER

ROLE_JOB_LAB_MANAGER
ROLE_JOB_LAB_SETTINGS_MANAGER
ROLE_JOB_LAB_DATA_MANAGER

ROLE_OPERATIONAL_INTEGRATION_MANAGEMENT_DATA_MANAGER
ROLE_OPERATIONAL_INTEGRATION_MANAGEMENT_MANAGER
ROLE_OPERATIONAL_INTEGRATION_MANAGEMENT_SETTINGS_MANAGER

ROLE_SKILL_SCREENING_DATA_MANAGER
ROLE_SKILL_SCREENING_MANAGER

ROLE_SOCIAL_COUNSELING_DATA_MANAGER
ROLE_SOCIAL_COUNSELING_MANAGER SOB
ROLE_SOCIAL_COUNSELING_SETTINGS_MANAGER

ROLE_WORKPLACE_CONFIGURATOR_DATA_MANAGER
ROLE_WORKPLACE_CONFIGURATOR_MANAGER
ROLE_WORKPLACE_CONFIGURATOR_SCREENING_MANAGER
It should probably be implemented becouse it has hover effect
Even tho scopes are deselected it stills send list of previous
selected org units
Username changed but did not show the change in the table until
after refreshing the page

Username changed but did not show the change in the table until
after refreshing the page

Username changed but did not show the change in the table until
after refreshing the page

Username changed but did not show the change in the table until
after refreshing the page

You might also like