0% found this document useful (0 votes)
3 views64 pages

Factory Management System Unit Test

The document outlines a unit test for the Factory Management System under the Smart Factory project, detailing various test items and their results. It includes information about the document's creation and revision history, as well as a comprehensive checklist of functionalities to be tested, with indications of whether each test passed or failed. The tests cover aspects such as screen layout, input validation, user authority, and data export functions.
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)
3 views64 pages

Factory Management System Unit Test

The document outlines a unit test for the Factory Management System under the Smart Factory project, detailing various test items and their results. It includes information about the document's creation and revision history, as well as a comprehensive checklist of functionalities to be tested, with indications of whether each test passed or failed. The tests cover aspects such as screen layout, input validation, user authority, and data export functions.
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

IVS JOINT STOCK COMPANY

Asean Business Divison

Unit Test

Customer :

System Name :

Project Name :

Version :

Status :

System Released on :

Preserved in :

Created by :

Created on :

Last Revised by :

Last Revised on :

Copyright © 2013
IVS

Factory Management System

Smart Factory

1.0

Copyright © 2013
System Name Factory Management System Function ID Approved By
Project Name Smart Factory Function Name User Approved On
Document Name Unit test Created By LPBTan Revised By
Document ID Created On 09-09-2024 Revised On

Document History

Date Version Author Comments


9/9/2024 1.0 LPBTan Initial Creation

Tracking 3/64 IVS Project


Note

Tracking 4/64 IVS Project


System Name Factory Management System Function ID Approved By Note
Project Name Smart Factory Function Name User Approved On
Document Name Unit test Created By LPBTan Revised By
Document ID Created On 9/9/2024 Revised On

[User] Screen Search List Mode

List
Note
System Name Factory Management System Function ID 1st Tester Date
Project Name Smart Factory Function Name User 2nd Tester Date
Document Name Unit test Created By LPBTan 3rd Tester Date
Document ID Created On 09-09-2024 Note

Result
No. Test Item Detail Fields / Reference / Remark Target
1st 2nd
1 Basic item
1.1 Source has been described following development's standard reference [[Link]] ○
1.2 Source comment has been described following development's standard reference [[Link]] ○
2 Screen layout
2.1 The screen title is correct? ○

2.2 The screen layout is same as design? ○


2.3 Image of buttons are correct (Delete, Save, Back, Update, ...)? ○
2.4 Message block has been displayed correctly? ○
2.5 Error messages are displayed correctly? ○
2.6 All control (button, label...) have been layout correctly in compare to design? ○
2.7 Have any omitted word, incorrected word in label or title of all control (button, label) ○
2.8 Text field is left aligned ○
2.9 Number, Currency field is right aligned ○
2.10 Date, Time field is Center aligned ○
2.11 Currency field is under "xxx,[Link]" format #,#### ○
2.12 Tab index has been set correctly? Left to right, up to down ○
2.13 Format of displayed date is correct? yyyy/mm/dd ○
2.14 When click Enter key, Submit action is created? ○
2.15 Password is displayed by "*" (asterisk) ×
2.16 Confirm Password is displayed by "*" (asterisk) ×
2.17 Mandatory fields has red "(*)" at the beginning of field ×
2.18 Menu (status, sub menu list) has been set correctly? ○
2.19 Status of all textbox has been set correctly? Editable/Readonly/Hidden ○
2.20 Status of all button has been set correctly? Enable/Disable/Invisible ○
2.21 Status of all compobox has been set correctly? Editable/Readonly/Hidden ○
3 Search/List Screen
3.1 Number of displayed records is correct? ○

Common_00 7/64 IVS Project


3.2 Are the input value in search condition re-displayed? ○
3.3 If search result has data, number of records is correct ○

3.4 If search result has more than 100 row, do system show error message correctly and exit event? ○

3.5 Sort order are correct. ○


3.6 Group by default is correct? ○
3.7 Group by options are correct? ○
3.8 The result grid can be sorted by clicking the header titles. ○
3.9 Width of columns can resize manually. ○
3.10 Height of rows (include Header row) can not resize manually ○
4 Input/Detail Screen
Preventing SQL injection attacks
4.1 When sql keyword is inputted, is displayed correctly? Input value is displayed as the original inp ×
Ex: " ' "; "--", "' ; DROP table M_XXXX;"
4.2 Combobox contains value correctly? ×
4.3 In controls to input character, is maxlength correctly set? = size of database field ×
4.4 Message type is suitable? "Error", "Warning", "Information", … ×
5 Authority
5.1 User, that do not have right to Add New in this function, can't register new data ○
5.2 User, that do not have right to Modify in this function, can't modify data ○
5.3 User, that do not have right to Delete in this function, can't delete data ○
5.4 User, that do not have right to View in this function, can't open the function ○
5.5 Menu list is correct with role of logined user? ○
6 Export function ( Export to file, print Document)
6.1 Output filename is correct with design? ○
6.2 Output data is correct ○
6.3 8.3.1 Output 0 record ○
6.4 8.3.1 Output 1 record ○
6.5 8.3.1 Output many records ○
6.6 Output order is correct ○
6.7 Format of output file is as the same as the template file ○
6.8 Edited data is not saved to the database ○
7 Common function

7.1 In case at least 1 field is modified, a confirmation message (save or not save) is sho+D4+D66 ×

7.2 When insert/update/delete data, a confirmation message is shown ○

Common_00 8/64 IVS Project


7.3 There is a message to indicate saved data correctly ×
7.4 Can save data correctly with mandatory fields input only ×
7.5 Can save data correctly with every fields input ×
7.6 On screen input data and DB data is matched ×
7.7 Saved data is displayed correctly ×
7.8 revised_id, deleted_id are correct ×
7.9 revised_date, deleted_date are correct ×
7.10 Is event log created correct? Insert into table TBL_LOG ×
7.11 When show/insert/update data, had been trimmed? Check each field ×
8 Additonal case: Maxlength
8.1 Operating Unit 50 ×
8.2 Customer 50 ×
8.3 User Name 50 ○
8.4 SO No. 50 ×
8.5 SO Date From 10 ×
8.6 SO Date To 10 ×
8.7 SO Status 11 ×
8.8 Currency 11 ×
8.9 Full Name 50 ○
8.10 Total Amount To 25.6 ×
8.11 No (Grid) ×
8.12 Operating Unit 50 ×
8.13 SO No. 50 ×
8.14 Customer Code 50 ×
8.15 Customer's PO No. 50 ×
8.16 SO Date 10 ×
8.17 SO Type 1 ×
8.18 Sales Staff 50 ×
8.19 ETD 10 ×
8.20 ETA 10 ×
8.21 Currency 11 ×
8.22 Total Amount 25.6 ×
8.23 Agent No 50 ×
8.24 SO Status 11 ×
8.25 Invoice Issued 50 ×

Common_00 9/64 IVS Project


8.26 Paid Invoice 150 ×
9 Additonal case: Control displays all characters when input full text
9.1 User Name displays all characters ○
9.2 Full Name displays all characters ○
9.3 Customer's PO No displays all characters ×
9.4 SO No. displays all characters ×
9.5 SO Date From displays all characters ×
9.6 SO Date To displays all characters ×
9.7 SO Status displays all characters ×
9.8 Currency displays all characters ×
9.9 Total Amount From displays all characters ×
9.10 Total Amount To displays all characters ×
9.11 No (Grid) displays all characters ×
9.12 Operating Unit displays all characters ×
9.13 SO No. displays all characters ×
9.14 Customer Code displays all characters ×
9.15 Customer's PO No. displays all characters ×
9.16 SO Date displays all characters ×
9.17 SO Type displays all characters ×
9.18 Sales Staff displays all characters ×
9.19 ETD displays all characters ×
9.20 ETA displays all characters ×
9.21 Currency displays all characters ×
9.22 Total Amount displays all characters ×
9.23 Agent No displays all characters ×
9.24 SO Status displays all characters ×
9.25 Invoice Issued displays all characters ×
9.26 Paid Invoice displays all characters ×
10 Additonal case: Format of displayed is correct?
10.1 User Name char ○
10.2 Full Name char ○
10.3 Customer's PO No char ×
10.4 SO No. char ○
10.5 SO Date From datetime ○
10.6 SO Date To datetime ○

Common_00 10/64 IVS Project


10.7 SO Status char ○
10.8 Currency char ○
10.9 Total Amount From number ○
10.10 Total Amount To number ○
10.11 No (Grid) char ○
10.12 Operating Unit char ○
10.13 SO No. char ○
10.14 Customer Code char ○
10.15 Customer's PO No. char ○
10.16 SO Date datetime ○
10.17 SO Type char ○
10.18 Sales Staff char ○
10.19 ETD datetime ○
10.20 ETA datetime ○
10.21 Currency char ○
10.22 Total Amount number ○
10.23 Agent No char ○
10.24 SO Status char ○
10.25 Invoice Issued char ○
10.26 Paid Invoice char ○
11 Additonal case: When input full text, the string is saved to DB correctly
11.1 Operating Unit ×
11.2 Customer ×
11.3 Customer's PO No ×
11.4 SO No. ×
11.5 SO Date From ×
11.6 SO Date To ×
11.7 SO Status ×
11.8 Currency ×
11.9 Total Amount From ×
11.10 Total Amount To ×
11.11 No (Grid) ×
11.12 Operating Unit ×
11.13 SO No. ×
11.14 Customer Code ×

Common_00 11/64 IVS Project


11.15 Customer's PO No. ×
11.16 SO Date ×
11.17 SO Type ×
11.18 Sales Staff ×
11.19 ETD ×
11.20 ETA ×
11.21 Currency ×
11.22 Total Amount ×
11.23 Agent No ×
11.24 SO Status ×
11.25 Invoice Issued ×
11.26 Paid Invoice ×
12 Additonal case: Alignment
12.1 User Name Left ○
12.2 Full Name Left ○
12.3 Customer's PO No Left ○
12.4 SO No. Left ○
12.5 SO Date From Center ○
12.6 SO Date To Center ○
12.7 SO Status Left ○
12.8 Currency Left ○
12.9 Total Amount From Right ○
12.10 Total Amount To Right ○
12.11 No (Grid) Center ○
12.12 Operating Unit Left ○
12.13 SO No. Left ○
12.14 Customer Code Left ○
12.15 Customer's PO No. Left ○
12.16 SO Date Center ○
12.17 SO Type Left ○
12.18 Sales Staff Left ○
12.19 ETD Center ○
12.20 ETA Center ○
12.21 Currency Left ○
12.22 Total Amount Right ○

Common_00 12/64 IVS Project


12.23 Agent No Left ○
12.24 SO Status Left ○
12.25 Invoice Issued Left ○
12.26 Paid Invoice Left ○

Common_00 13/64 IVS Project


Result 0/99
Result 0/99
Result 0/99

ult
Note
3rd

Common_00 14/64 IVS Project


Common_00 15/64 IVS Project
Common_00 16/64 IVS Project
Common_00 17/64 IVS Project
Common_00 18/64 IVS Project
Common_00 19/64 IVS Project
Common_00 20/64 IVS Project
UTP_outline-00
In Case Sub case

Don’t permission on this screen


1 Load
Have permission on this screen
2 Tab Index
All fields are blank

Data is existed in database


Search by input fileds
3 Search

Data isn’t existed in database

0 row
4 Copy Refresh all data in girdview
1 row

6 Add Open screen 01 (Mode = Add)


Refresh all data in girdview
0 row
7 Edit
1 row
0 row
8 Delete
1 row Haven't reference
File type xlsx

9 Export
Contents

10 Close
Search (Overview)
Expected result No. Common
User Name Full Name
Don’t display User on Ribbon 1.1 ○

Display User on Ribbon 1.2 ○


Left to Right, Top to Bottom 2.1 1 2
3.1 ○
3.2 ○
Show data result
3.3 ○
3.4 ○ ○
3.5 ○
3.6 ○
3.7 ○ ○
Error Message 4.1 ○
Show Form Edit 4.2 ○

Show [User] screen Add 6.1 ○

Error Message 7.1 ○


Show Form Edit 7.2 ○
Error Message 8.1 ○
Deleted Successfully 8.2 ○
Export successfully 9.1 ○
9.2 ○
Export successfully 9.3 o
9.4 o ○

[Search] screen is closed 10.1 ○


System Name Factory Management System Function ID 1st Tester Date Result 0/42
Project Name Smart Factory Function Name User 2nd Tester Date Result 0/20
Document Name Unit test Created By LPBTan 3rd Tester Date Result 0/20
Document ID Created On 09-09-2024 Note

Test Screen Result


No. Pre-Requisites Expected result Target Note
1st 2nd 3rd Evidence
1 Load

1. Prepare a user account without right


on [User] screen View - [User] button don’t display on Ribbon.
1.1 Click System -> User -> Search ○
2. Prepare data as sheet [DataTest- - You can not acces to [User] Sceen'
Prerequisite-00]

- [User] button display on Ribbon


- You can access to [User] screen.
1. Prepare a user account with full right
Show all controls in [User] screen and enable status:
on [User] screen
1.2 Click System -> User -> Search + Gridview is empty. ○
2. Prepare data as sheet [DataTest-
+ There are 8 buttons: [Search], [Copy], [Add], [Edit],
Prerequisite-00]
[Delete], [Refresh], [Export], [Close].

2 Search

1. Prepare a user account with full right


on [User] screen Search - Show a message box "2 row(s) found!"
2.1 Click System -> User -> Search ○
2. Prepare data as sheet [DataTest- - The result is as sheet [Expected Data- 00] No.1.
Prerequisite-00]

Click System -> User -> Search


1. Input value :
+ [User Name] = "lpbtan" - Show a message box "1 row(s) found!"
2.2 (same as above) 2. Click [Search] button or press [Enter] key - The overview result is as sheet [Expected Data- 00] ○
No.2.

Click System -> User -> Search


1. Input value : - Show a message box "1 row(s) found!"
2.3 (same as above) + [Full Name] = "Lam Phuc Bao Tan" - The overview result is as sheet [Expected Data- 00] ○
2. Click [Search] button or press [Enter] key No.3.

Click System -> User -> Search


1. Input value :
+ [Full Name] = "Lam Phuc Bao Tan"
+ [User Name] = "lpbtan" - Show a message box "1 row(s) found!"
2.4 (same as above) 2. Click [Search] button or press [Enter] key - The overview result is as sheet [Expected Data- 00] ○
No.2.

Click System -> User -> Search


1. Input value :
+ [Full Name] = "Lam Phuc Bao Tan" - Show a message box "0 row(s) found!"
2.5 (same as above) + [User Name] = "admin" - The overview result is as sheet [Expected Data- 00] ○
2. Click [Search] button or press [Enter] key No.4.

4 Copy
Click System -> User -> Search
1. Prepare a user account with full right 1. Do nothing
on [User] screen Search 2. Click button [Copy]
4.1 Show error message [ERR005]: "No row selected" ○
2. Prepare data as sheet [DataTest-
Prerequisite-00]

Click System -> User -> Search


1. Click button [Search] [User] Copy screen is opened
2. Select one row on Grid 1. All fields load data of selected row
3. Click button [Copy] 2. Field [Profile] ="Lam Phuc Bao Tan"
3. Field [Full name] ="Lam Phuc Bao Tan"
4.2 (same as above) 4. Field [User Code] = "" ○
5. Field [Password] = ""
6. Field [Check All] = ""
7. Field [User Group] = "admin"
8. Field [Status] = "Active"

5 Revise version
Click System -> User -> Search
1. Click button [Search]
1. Prepare a user account with full right 2. Don't select row on grid
on [Sale Quotation] screen Search 3. Click button [Revise version]
5.1 Show error message [ERR005]: "No row selected" ○
2. Prepare data as sheet [DataTest-
Prerequisite-00]

Click System -> User -> Search 1. [Revise version] screen is opened
1. Click button [Search] 2. All fields load data of selected row and increase
5.2 (same as above) 2. Select 1 row on grid ○
Version.
3. Click button [Revise version]
6 Add
Click System -> User -> Search
Click [Add] button control
1. Prepare a user account with full right Show [User] screen Add with full control on this screen.
on [User] screen Search + All fields are empty
6.1 ○
2. Prepare data as sheet [DataTest- + Other buttons are enabled
Prerequisite-00] + Textbox Status is Active

7 Edit
Click System -> User -> Search
1. Prepare a user account with full right 1. Do nothing
on [User] screen Search 2. Click button [Edit]
7.1 Show error message [ERR005] "No row selected" ○
2. Prepare data as sheet [DataTest-
Prerequisite-00]

Click System -> User -> Search


1. Click button [Search]
2. Select row : [User] Edit screen is opened
+ [User ID]="lpbtan" 1. Load all data of the selected row match to each fields
7.2 (same as above) ○
3. Click button [Edit] 2. Field [User Code] & [Profile] is read-only.
3. Field [Password] need to be re-fill

8 Delete
Click System -> User -> Search
1. Prepare a user account with full right - Click[ Delete] button
on [User] screen Search
8.1 Show error message [ERR001] "No row selected" ○
2. Prepare data as sheet [DataTest-
Prerequisite-00]

Click System -> User -> Search


- Click [Search] button
- Select 1 row and this row's data don't be used to other - Show a message confirm:" Do you want to delete?"
screen. - Choose [Yes] option
8.2 (same as above) - Click [Delete] button -> Choose [Yes] option ○
-> Show a message box:"Deleted successfully"

Click System -> User -> Search


- Click [Search] button
- Select n rows and this row's data don't be used to other
screen. - Show a message confirm:" Do you want to delete?"
- Click [Delete] button -> Choose [Yes] option - Choose [Yes] option
8.2 (same as above) ○
-> Show a message box:"Deleted successfully"

Click System -> User -> Search


- Click [Search] button
- Select 1 row and this row's data is used to other screen.
- Click [Delete] button -> Choose [No] option - Show a message confirm:" Do you want to delete?"
8.3 (same as above) - Choose [No] option ○
-> The system will return [Search] screen.

Click System -> User -> Search


- Click [Search] button - Show a message confirm:" Do you want to delete?"
- Select data and this data is used in the other scren.. - Choose [Yes] option
8.4 (same as above) - Click [Delete] button ○
-> Show a message box:"Deleted successfully"

10 Refresh
Click System -> User -> Search
1. Prepare a user account with full right - Click [Refresh] button
on [User] screen Search - Show a message box "2 row(s) found!"
10.1 ○
2. Prepare data as sheet [DataTest- - The result is as sheet [Expected Data- 00] No.1.
Prerequisite-00]

11 Export
Click System -> User -> Search
- Click [Search] button
1. Export data to file excel (.xls).
1. Prepare a user account with full right - Click button [Export]
- Click [xls] 2. Result overview in file excel (.xls) as sheet [Expected
on [User] screen Search
11.1 Data- 00] No.1. ○
2. Prepare data as sheet [DataTest-
2.1. Result detail in file excel (.xls) as sheet [Expected
Prerequisite-00]
Data- 00] No.3.

12 Close
Click System -> User -> Search
- Click [Close] button
1. Prepare a user account with full right
on [User] screen Search
12.1 - The [User] screen Search is closed ○
2. Prepare data as sheet [DataTest-
Prerequisite-00]

UTP-00 23/64 IVS Project


1 Search
No. User ID Fullname Status
1 lpbtan Lam Phuc Bao Tan Active
2 admin Administrator Active
No.
1
No. User ID Fullname Status
1 lpbtan Lam Phuc Bao Tan Active
2 admin Administrator Active
2
No. User ID Fullname Status
1 lpbtan Lam Phuc Bao Tan Active

3
No. User ID Fullname Status
1 lpbtan Lam Phuc Bao Tan Active

4
No. Operating Unit SO No Customer Code
System Name Factory Management System Function ID
Project Name Smart Factory Function Name User
Document Name Unit test Created By LPBTan
Document ID Created On 9/9/2024

[User] Add screen


Approved By Note
Approved On
Revised By
Revised On
ote
System Name Factory Management System Function ID 1st Tester Date
Project Name Smart Factory Function Name User 2nd Tester Date
Document Name Unit test Created By LPBTan 3rd Tester Date
Document ID Created On 9/9/2024 Note

Result
No. Test Item Detail Fields / Reference / Remark Target
1st 2nd
1 Basic item
1.1 Source has been described following development's standard reference [[Link]] ○
1.2 Source comment has been described following development's standard reference [[Link]] ○
2 Screen layout
2.1 The screen title is correct? ○
2.2 The screen layout is same as design? ○
2.3 Image of buttons are correct (Delete, Save, Back, Update, ...)? ○
2.4 Message block has been displayed correctly? ○
2.5 Error messages are displayed correctly? ○
2.6 All control (button, label...) have been layout correctly in compare to design? ○
2.7 Have any omitted word, incorrected word in label or title of all control (button, label) ○
2.8 Text field is left aligned ○
2.9 Number, Currency field is right aligned ○
2.10 Date, Time field is right aligned ○
Currency = VND: #,###
2.11 Currency field is under "xxx,[Link]" format Currency = USD: #,### ○
Currency = JPY: #,###
2.12 Tab index has been set correctly? Left to right, up to down ○
2.13 Format of displayed date is correct? yyyy/mm/dd ○
2.14 When click Enter key, Submit action is created? ○
2.15 Password is displayed by "*" (asterisk) ○
2.16 Confirm Password is displayed by "*" (asterisk) ○
2.17 Mandatory fields has red "(*)" at the beginning of field ○
2.18 Menu (status, sub menu list) has been set correctly? ○
2.19 Status of all textbox has been set correctly? Editable/Readonly/Hidden ○
2.20 Status of all button has been set correctly? Enable/Disable/Invisible ○
2.21 Status of all compobox has been set correctly? Editable/Readonly/Hidden ○
3 Search/List Screen
3.1 Number of displayed records is correct? ×
3.2 Are the input value in search condition re-displayed? ×
3.3 If search result has data, number of records is correct ×
3.4 If search result has more than 100 row, do system show error message correctly and exit event? ×
3.5 Sort order are correct. ×
3.6 Group by default is correct? ×
3.7 Group by options are correct? ×
3.8 The result grid can be sorted by clicking the header titles. ×
3.9 Width of columns can resize manually. ×
3.10 Height of rows (include Header row) can not resize manually ×
4 Input/DetailSQL
Preventing Screen
injection attacks
4.1 When sql keyword is inputted, is displayed correctly? Input value is displayed as the original inp ○
4.2 Ex: " ' "; "--",contains
Combobox "' ; DROP table
value M_XXXX;"
correctly? ○
4.3 In controls to input character, is maxlength correctly set? = size of database field ○
4.4 Message type is suitable? "Error", "Warning", "Information", … ○
5 Authority
5.1 User, that do not have right to Add New in this function, can't register new data ○
5.2 User, that do not have right to Modify in this function, can't modify data ○
5.3 User, that do not have right to Delete in this function, can't delete data ○
5.4 User, that do not have right to View in this function, can't open the function ○
5.5 Menu list is correct with role of logined user? ○
6 Export function ( Export to file, print Document)
6.1 Output filename is correct with design? ○
6.2 Output data is correct ○
6.3 8.3.1 Output 0 record ○
6.4 8.3.1 Output 1 record ○
6.5 8.3.1 Output many records ○
6.6 Output order is correct ○
6.7 Format of output file is as the same as the template file ○
6.8 Edited data is not saved to the database ○
7 Common function
7.1 In case at least 1 field is modified, a confirmation message (save or not save) is shown ○
7.2 When insert/update/delete data, a confirmation message is shown ○
7.3 There is a message to indicate saved data correctly ○
7.4 Can save data correctly with mandatory fields input only ○
7.5 Can save data correctly with every fields input ○
7.6 On screen input data and DB data is matched ○
7.7 Saved data is displayed correctly ○
7.8 revised_id, deleted_id are correct ○
7.9 revised_date, deleted_date are correct ○
7.10 Is event log created correct? ○
7.11 When show/insert/update data, had been trimmed? Check each field ○
8 Additonal case: Maxlength
8.1 User Code 50 ○
8.2 Profile 50 ○
8.3 Password 50 ○
8.4 Full name 50 ○
9 Additonal case: Control displays all characters when input full text
9.1 User Code displays all characters ○
9.2 Profile displays all characters ○
9.3 Password displays all characters ○
9.4 Full name displays all characters ○
10 Additonal case: Format of displayed is correct?
10.1 User Code char ○
10.2 Profile char ○
10.3 Password char ○
10.4 Full name char ○
11 Additonal case: When input full text, the string is saved to DB correctly
11.1 User Code ○
11.2 Profile ○
11.3 Password ○
11.4 Full name ○
12 Additonal case: Alignment
12.1 User Code Left ○
12.2 Profile Left ○
12.3 Password Left ○
12.4 Full name Left ○
Result 0/71
Result 0/71
Result 0/71

Result
Note
2nd 3rd
UTP_outline-01

Authori
In Case Sub case Expected result No.
ze

Mode = Add 1.1 ○


1 Load Load default data
Mode = Edit 1.2 ○

All values in fields is


2 Clear 2.1 ○
empty

Set blank all 3.1 ○


3.2 ○
3.3 ○
3.4 ○
3.5 ○
3.6 ○
Show a validation 3.7 ○
3 Mode=Add message 3.8 ○
Validation
3.9 ○
3,10 ○
3,11 ○
3,12 ○
3,13 ○
3,14 ○
Save successfully 3,15 ○
Save 4.1 ○
4.2 ○
4.3 ○
4.4 ○
4.5 ○
4.6 ○
Show a validation 4.7 ○
message 4.8 ○
4 Mode=Edit Validation
4.9 ○
4,10 ○
4.11 ○
4.12 ○
4.13 ○
4.14 ○

Update successfully 4.15 ○

Don't change Value Screen is closed 5.1 ○

5 Close
5 Close Show confirm
Don't save 5.2 ○
Change value message
Save Update successfully 5.3 ○
Comm
User Code Profile Password Full Name Check All User Group Status
on










○ ○
○ ○ ○
○ ○ ○ ○
○ ○ ○ ○ ○
○ ○ ○ ○ ○ ○
○ ○ ○ ○ ○ ○ ○
○ ○ ○ ○ ○ ○ ○








○ ○
○ ○ ○
○ ○ ○ ○
○ ○ ○ ○ ○
○ ○ ○ ○ ○ ○
○ ○ ○ ○ ○ ○ ○

○ ○ ○ ○ ○ ○ ○



System Name Factory Management SystemFunction ID 1st Tester Date
Project Name Smart Factory Function Name User 2nd Tester Date
Document Name Unit test Created By LPBTan 3rd Tester Date
Document ID Created On 9/9/2024 Note

Test Screen Result


No. Pre-Requisites Expected result Target 1st 2nd 3rd
1 Load
- Click System -> User
- Click [Add] button - Show the [Add] screen
1. Prepare a user account with full
+ All field are empty
right on [User] screen
1.1 + [Status] is Active ○
2. Prepare data as sheet [DataTest-
There are 4 button:[Save], [Save and Next], [Clear],
Prerequisite-01]
[Close]

- Click System -> User


- Click [Search] button - Show the [Edit] screen
Select one row on Gridview + [User Code] & [Profile] is disable
1.2 Continue above case - Click [Edit] button ○
There are 4 button: [Save], [Save and Next], [Clear],
[Close]

4 Clear
- Click System -> User
1. Prepare a user account with full - Click [Add] button
right on [User] screen - Click [Clear] button
4.1 All fields are empty. ○
2. Prepare data as sheet [DataTest-
Prerequisite-01]

5 Save
- Click System -> User
- Click [Add] button 1. Show message:
[User Code] must be filled in!
1. Prepare a user account with full - Click [Save] button
[Profile] must be filled in!
right on [User] screen
5.1 [Full Name] must be filled in! ○
2. Prepare data as sheet [DataTest-
[User Group] must be filled in!
Prerequisite-01]
[Password] must be filled in!

- Click System -> User


- Click [Add] button
+ [User Code] = "lpbtan" 1. Show message:
- Click [Save] button [Profile] must be filled in!
5.2 Continue above case [Full Name] must be filled in! ○
[User Group] must be filled in!
[Password] must be filled in!

- Click System -> User


- Click [Add] button
+ [Profile] = "Lam Phuc Bao Tan" 1. Show message:
Autofill: [User Group] must be filled in!
5.3 Continue above case + [User Code] = "lpbtan" ○
[Password] must be filled in!
+ [Full Name] = "Lam Phuc Bao Tan"
- Click [Save] button

- Click System -> User


- Click [Add] button 1. Show message:
+ [Password] = "12345" [User Code] must be filled in!
- Click [Save] button [Profile] must be filled in!
5.4 Continue above case ○
[Full Name] must be filled in!
[User Group] must be filled in!

- Click System -> User


- Click [Add] button 1. Show message:
+ [Full Name] ="Lam Phuc Bao Tan" [User Code] must be filled in!
- Click [Save] button [Profile] must be filled in!
5.5 Continue above case ○
[User Group] must be filled in!
[Password] must be filled in!

- Click System -> User


- Click [Add] button
+ [User Code] = "lpbtan" 1. Show message:
+ [Profile] = "Lam Phuc Bao Tan" [Full Name] must be filled in!
5.6 Continue above case - Click [Save] button [User Group] must be filled in! ○
[Password] must be filled in!

- Click System -> User


- Click [Add] button
+ [User Code] = "lpbtan" 1. Show message:
+ [Profile] = "Lam Phuc Bao Tan" [Full Name] must be filled in!
5.7 Continue above case + [Password] = "123456" [User Group] must be filled in! ○
- Click [Save] button

- Click System -> User


- Click [Add] button
+ [User Code] = "lpbtan" 1. Show message:
+ [Profile] = "Lam Phuc Bao Tan" [User Group] must be filled in!
5.8 Continue above case + [Password] = "123456" ○
+ [Full Name] = "Lam Phuc Bao Tan"
- Click [Save] button

- Click System -> User


- Click [Add] button
+ [User Code] = "lpbtan" 1. Show message:
+ [Profile] = "Lam Phuc Bao Tan" "Do you want to Save?" -> No
5.9 Continue above case + [Password] = "123456" Return to Add form ○
+ [Full Name] = "Lam Phuc Bao Tan"
+ [User Group] = "admin"
- Click [Save] button

- Click System -> User


- Click [Add] button
+ [User Code] = "lpbtan" 1. Show message:
+ [Profile] = "Lam Phuc Bao Tan" "Do you want to Save?" -> Yes
5.10 Continue above case + [Password] = "123456" Show message: "Save succesfully" ○
+ [Full Name] = "Lam Phuc Bao Tan"
+ [User Group] = "admin"
- Click [Save] button
6 Close
1. Click System -> User -> Search
1. Prepare a user account with full 2. Click [Search] button
right on [User] screen 3. DBClick 1 row in gridview
6.1 Close the form ○
2. Prepare data as sheet [DataTest- 4. Click [Close] button
Prerequisite-01]

1. Click System -> User -> Search 1. The system show message "The information changes.
2. Click [Search] button Do you want to save before exit?"
3. Click 1 row in gridview 2. The system show message "Data has been
4. Click Edit successfully updated."
6.2 Continue above case ○
5. Click [Close] button 3. Result as sheet [Expected Data-01] No.2
4. [User] screen is closed
+ Reload Girdview, the selected data row is updated on
gird
1. Click System -> User -> Search
2. Click [Search] button
3. Click 1 row in gridview
4. Click Edit
5. Click [Close] button Show a message: "Do you want to save?"
6.3 Continue above case ○
+ The system will be closed and don't save any value.
Result 0/16
Result 0/16
Result 0/16

Evidence Note
1 Users

User Code Profile Password Fuill name

lpbtan LPBT - Lam Phuc Bao Tan 123456 Lam Phuc Bao Tan

2
User Code Profile Password Fuill name
lpbtan LPBT - Lam Phuc Bao Tan abcd123 Lam Phuc Bao Tan
Check All User Group Status

Check check "admin" Active

Check All User Group Status


Check check "admin" Active
No. General
1 User Code Profile Password Fuill name
lpbtan LPBT - Lam Phuc Bao Tan 123456 Lam Phuc Bao Tan

2 User Code Profile Password Fuill name


lpbtan LPBT - Lam Phuc Bao Tan abcd123 Lam Phuc Bao Tan
Check All User Group Status
Check check "admin" Active

Check All User Group Status


Check check "admin" Active

You might also like