Factory Management System Unit Test
Factory Management System Unit Test
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
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
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? ○
3.4 If search result has more than 100 row, do system show error message correctly and exit event? ○
7.1 In case at least 1 field is modified, a confirmation message (save or not save) is sho+D4+D66 ×
ult
Note
3rd
0 row
4 Copy Refresh all data in girdview
1 row
9 Export
Contents
10 Close
Search (Overview)
Expected result No. Common
User Name Full Name
Don’t display User on Ribbon 1.1 ○
2 Search
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]
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]
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]
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]
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
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
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
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!
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
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