SWT Lab4
SWT Lab4
1. Overview
- In the template, Unit test cases are based on functions. Each sheet presents test cases for one function.
- Cover: General information of the project and Unit Test cases
- FunctionList: The list of Classes and Functions in the document.
+ To control that the number of Unit TC meets customer's requirement or the norm, user should fill value for
'Normal number of Test cases/KLOC'.
+ Click on Function link to open the related Test cases of the function.
Note: You should create new Function sheet before creating the link
- Test Report: provive the overview results of Functions Unit test: Test coverage, Test successful coverage
(Summary, for normal/abnormal/boundary cases)
Note: Should check the formula of "Sub Total" if you add more functions
2. Content
- To verify thatin Test of
number function sheet
Unit TC meets customer's requirement or not. User has to fill number LOC of tested function and fil
2.1 Combination
number of testitem
test cases/KLOC' cases.
in FunctionList sheet, which is required by customer or normal value. The number of lacked TC
test cases' item.
- If the number of Unit TC does not meet the requirement, creator should explain the reasons.
- If the number of 'Normal number test cases/KLOC' item in FunctionList sheet is not recorded, the number in 'Lack of test ca
Record of change
Effective Date Version Change Item *A,D,M Change description
Add all functions of FPT Cinema that need to
24/02/2024 1.0 Function list A
unit test
25/02/2024 1.1 Functions from 1 to 15 A Add results of unit test of functions from 1 to 1
28/02/2024 1.0 Functions from 16 to 24 A Add results of unit test of functions from 16 to
Functions from 25 to
29/02/2024 1.0 A Add results of unit test of functions from 25 to
29
01/03/2024 1.0 loadTicket D Delete function load ticket from FunctionList
02/03/2024 1.0 Function30, Function31 A Add results of unit test of functions 30 and 31
03/03/2024 1.0 Test Report A Add results of unit test of all functions
ToanHM
ToanHM
26/02/2024
Reference
FunctionList
Functions from 1 to 15
Function 10
Functions from 16 to 24
FunctionList
Function30, Function31
Functions from 1 to 31
15%
22% 26% N
Passed A
Failed B
Untested
78%
59%
Requirement Function
No Class Name Function Name Sheet Name
Name Code(Optional)
1 FilmDAO getFilmsById Function1 Function1
2 FilmDAO insertFilm Function2 Function2
3 FilmDAO getFilmByTitle Function3 Function3
4 FilmDAO updateFilm Function4 Function4
5 AccountDAO getAccByUsername Function5 Function5
6 AccountDAO insertAccount Function6 Function6
7 AccountDAO updateAccount Function7 Function7
8 AccountDAO getAccountById Function8 Function8
9 AccountDAO deleteAccountById Function9 Function9
10 AccountDAO updatePasswordByUsernameAndPhoneNumber Function10 Function10
11 AccountDAO checkLogin Function11 Function11
12 AccountDAO checkExisted Function12 Function12
13 RoomDAO getRoomById Function13 Function13
14 RoomDAO insertRoom Function14 Function14
15 RoomDAO updateRoom Function15 Function15
16 RoomDAO deleteRoomById Function16 Function16
17 RoomDAO listRoomAvailableByStartHour Function17 Function17
18 TicketDAO insertTicket Function18 Function18
19 TicketDAO removeTicket Function19 Function19
20 TicketDAO isRecordExist Function20 Function20
21 TicketDAO getListHistoriesByAccountId Function21 Function21
TomEE
Description Pre-Condition
UTCID01
UTCID02
UTCID03
UTCID04
Condition Precondition
Can connect with server
ID
10 O
-2,147,483,648 O
3,000,000,000 O
[Film{id=10, title=CHIẾM ĐOẠT, category=Tâm lý, tình "1" O
Confirm cảm,
Returnlength=100, description=Kể về người vợ của một gia
đình thượng lưu thuê cô bảo mẫu “trong mơ” để chăm sóc
con trai mình. Nhưng cô không ngờ rằng, phía sau sự trong
sáng, tinh khiết kia, cô bảo mẫu luôn che giấu âm mưu
nhằm phá hoại hạnh phúc gia đình và khiến cuộc sống của O
cô thay đổi mãi mãi., ageLimit=15, director=Thắng Vũ,
actors=Miu Lê, Lãnh Thanh, Karik, Phương Anh Đào,...,
warningText=Khuyến cáo: ., publishTime=2023-11-24,
origin=Việt Nam, imageUrl=10.jpg, [] O
Exception
image_backgroundUrl=null, status=1}]
java.lang.RuntimeException: Uncompilable code - integer
O
number too large
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
Condition Precondition
Can connect with server
title
"" O
"Hella" O O O O O
"ashd@#$%ff*" O
category
"" O
"Sci-fi" O O O O O
"&Sci-fi@%" O
length
126 O O O O O
-10 O
300 O
description
"A thief who steals corporate secrets through the use of
dream-sharing technology is given the inverse task of planting O O O O O
an idea into the mind of a CEO."
"" O
"@#$szfa" O
age_limit
18 O O O O O
-10 O
19 O
director
"Christopher Nolan" O O O O O O
ooooooooooooooooooooooooooooooooooooooooooooooooooo" O
""
actor
"Leonardo DiCaprio, Joseph Gordon-Levitt" O O O O O O
ooooooooooooooooooooooooooooooooooooooooooooooooooo" O
""
warning_text
"Contains scenes of sci-fi violence and action." O O O O O O
"@#$@#%" O
""
publish_time
"2023-11-20" O O O O O O O
"202"
"AD@"
origin
Confirm Return
TRUE O O O O O
FALSE O O
Exception
Log message
Error at insertFilm Conversion failed when converting date
and/or time from character string.
Error at insertFilm String or binary data would be truncated in
table 'PRJ301_SE1762_FA23.dbo.film_he176151', column O
'director'.
Error at insertFilm String or binary data would be truncated in
table 'PRJ301_SE1762_FA23.dbo.film_he176151', column O
'actor'.
Error at insertFilm String or binary data would be truncated in
table 'PRJ301_SE1762_FA23.dbo.film_he176151', column
'origin'.
Error at insertFilm String or binary data would be truncated in
table 'PRJ301_SE1762_FA23.dbo.film_he176151', column
'img'.
Error at insertFilm String or binary data would be truncated in
table 'PRJ301_SE1762_FA23.dbo.film_he176151', column
'img_background'.
Result Type(N : Normal, A : Abnormal, B : Boundary) N A A A A A B
Passed/Failed P F F P P F F
0 0 0 0 0 0 0
2 2 2 2 2 2 2
Executed Date / / / / / / /
2 2 2 2 2 2 2
6 6 6 6 6 6 6
insertFilm
ToanHM
-4.8
UTCID09
UTCID10
UTCID11
UTCID12
UTCID13
UTCID14
UTCID15
UTCID16
UTCID17
UTCID18
O O O O O O O O O O O
O O O O O O O O O O O
O O O O O O O O O O O
O O O O O O O O O O O
O O O O O O O O O O O
O O O O O O O O O O
O O O O O O O O O O
O O O O O O O O O O
O O O O O O O O O
O
O
O O O O O O O O O
O
O
O O O O O O O O O
O
O
O O O O O O O O O
O
O
O O O O O O
O O O O O
O O
A N A A N A A A A A B
F P P P P P F P P F F
0 0 0 0 0 0 0 0 0 0 0
2 2 2 2 2 2 2 2 2 2 2
/ / / / / / / / / / /
2 2 2 2 2 2 2 2 2 2 2
6 6 6 6 6 6 6 6 6 6 6
UTCID01
UTCID02
UTCID02
UTCID02
UTCID02
Condition Precondition
Can connect with server
title
"CHIẾM ĐOẠT" O
"@#$@#$" O
"" O
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk" O
[Film{id=10, title=CHIẾM ĐOẠT, category=Tâm lý,
123 O
tình cảm, length=100, description=Kể về người vợ của
một gia đình thượng lưu thuê cô bảo mẫu “trong mơ”
Confirm Return
để chăm sóc con trai mình. Nhưng cô không ngờ rằng,
phía sau sự trong sáng, tinh khiết kia, cô bảo mẫu
luôn che giấu âm mưu nhằm phá hoại hạnh phúc gia
[Film{id=1, title=ĐẤT RỪNG PHƯƠNG NAM O
đình và khiến cuộc sống của cô thay đổi mãi mãi.,
, category=Tâm lý, tình cảm
ageLimit=15, director=Thắng Vũ, actors=Miu Lê, Lãnh
o dõi thêm hành trình bé An đi tìm cha khắp nam kỳ lục tỉnh cùng các người bạn
Thanh, Karik, Phương Anh Đào,...,
, ageLimit=13, director=Nguyễn Quang Dũng
warningText=Khuyến cáo: ., publishTime=2023-11-24, O
Huỳnh Hạo Khang, Mai Tài Phến, Công Ninh, Hứa Vĩ Văn, Tuyền Mập, Tuấn Trần.
origin=Việt Nam, imageUrl=10.jpg,
ƯỢC PHỔ BIẾN ĐẾN NGƯỜI XEM DƯỚI 13 TUỔI VÀ CÓ NGƯỜI BẢO HỘ ĐI KÈM
image_backgroundUrl=null, status=1}]
, publishTime=2023-10-20, origin=Việt Nam, imageUrl=1.jpg
, image_backgroundUrl=datrungphuongnam2.jpg [] O O
Exception , status=0}]
Exception in thread "main"
java.lang.RuntimeException: Uncompilable code -
O
incompatible types: int cannot be converted to
java.lang.String
Log message
D
F
Defect ID 0
0
9
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
Condition Precondition
Can connect with server
id
25 O O O O O O O
1
-10
title
"" O
"Hella" O O O O O
"ashd@#$%ff*" O
category
"" O
"Sci-fi" O O O O O
"&Sci-fi@%" O
length
56 O O O O O
-10 O
2,147,483,647 O
description
en the inverse task of planting an idea into the mind of a CEO." O O O O O
"" O
"@#$szfa" O
age_limit
18 O O O O O
-10 O
2,147,483,647 O
director
"Christopher Nolan" O O O O O O
"Leooooooooooooooooooooooooooooooooooooooooooooooooo
ooooooooooooooooooooooooooooooooooooooooooooooooooo" O
ooooooooooooooooooooooooooooooooooooooooooooooooooo ""
ooooooooooooooooooooooooooooooooooooooooooooooooooo
actor
ooooooooooooooooooooooooooooooooooooooooooooooooooo
"Leonardo DiCaprio, Joseph Gordon-Levitt"
ooooooooooooooooooooooooooooooooooooooooooooooooooo O O O O O O
ooooooooooooooooooooooooooooooooooooooooooooooooooo O
ooooooooooooooooooooooooooooooooooooooooooooooooooo ""
ooooooooooooooooooooooooooooooooooooooooooooooooooo
warning_text
ooooooooooooooooooooooooooooooooooooooooooooooooooo
"Contains scenes of sci-fi violence and action."
ooooooooooooooooooooooooooooooooooooooooooooooooooo O O O O O O
"!!!!!"
ooooooooooooooooooooo" O
""
publish_time
"2023-11-20" O O O O O O O
"2023"
Log message
Error at updateFilm Conversion failed when converting date
and/or time from character string.
Error at updateFilm String or binary data would be truncated in
table 'PRJ301_SE1762_FA23.dbo.film_he176151', column O
'director'.
Error at updateFilm String or binary data would be truncated in
table 'PRJ301_SE1762_FA23.dbo.film_he176151', column O
'actor'.
Error at updateFilm String or binary data would be truncated in
table 'PRJ301_SE1762_FA23.dbo.film_he176151', column
'origin'.
Error at updateFilm String or binary data would be truncated in
table 'PRJ301_SE1762_FA23.dbo.film_he176151', column 'img'.
D D D D
F F F F
0 0 0 0
Defect ID
0 0 0 0
1 1 1 1
0 1 2 3
UTCID09
UTCID10
UTCID11
UTCID12
UTCID13
UTCID14
UTCID15
UTCID16
UTCID17
UTCID18
UTCID19
UTCID20
O O O O O O O O O O O
O
O
O O O O O O O O O O O O O
O O O O O O O O O O O O O
O O O O O O O O O O O O O
O O O O O O O O O O O O O
O O O O O O O O O O O O O
O O O O O O O O O O O O
O O O O O O O O O O O O
O O O O O O O O O O O O
O O O O O O O O O O O
O
O O O O O O O O O O O
O
O
O O O O O O O O O O O
O
O
O O O O O O O O O O O
O
O
O O O O O O O O O O O
O
O
O O O O O O O
O O O O O O
O O
A N A A N A A A A A B B A
F P P P P P F P P F F P P
0 0 0 0 0 0 0 0 0 0 0 0 0
2 2 2 2 2 2 2 2 2 2 2 2 2
/ / / / / / / / / / / / /
2 2 2 2 2 2 2 2 2 2 2 2 2
8 8 8 8 8 8 8 8 8 8 8 8 8
D D D D
F F F F
0 0 0 0
0 0 0 0
1 1 1 1
4 5 6 7
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
Condition Precondition
Can connect with server
username
"admin" O
"" O
"hello@@@" O
ynewyehappynewyehappynewye" O
"happynewyehappynewyehappynewyehappynewyehappynewye1" O
1234
Confirm Return
Account{account_id=1, username=admin, password=123,
first_name=Pham, last_name=Phong, email=phong@123,
phone_number=0123456789, role_id=0} O
null O O O O
Exception
Exception in thread "main" java.lang.RuntimeException:
Uncompilable code - incompatible types: int cannot be converted
to java.lang.String
Log message
Get account successful! O
Cannot get account! O O O O
Result Type(N : Normal, A : Abnormal, B : Boundary) N A A B A
Passed/Failed P P P P P
Executed Date 0 0 0 0 0
2 2 2 2 2
/ / / / /
2 2 2 2 2
4 4 4 4 4
Defect ID
P
0
2
/
2
4
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
UTCID08
Condition Precondition
Can connect with server
username
"pp137" O O O O O
"@@!$@!%#%" O
"happynewyehappynewyehappynewyehappynewyehappynewye1" O
123 O
password
"123" O O O O O
"@@!$@!%#%" O
"hellohellohellohellohellohellohellohellohellohellohellohello1" O
1234 O
firstname
"Phạm" O O O O O
"@@!$@!%#%" O
"hellohellohellohellohellohellohellohellohellohellohellohello1" O
1234 O
fastname
"Phong" O O O O O O O
"@@!$@!%#%"
"hellohellohellohellohellohellohellohellohellohellohellohello1"
1234 O
email
"[email protected]" O O O O O O O
"@@!$@!%#%"
"hellohellohellohellohellohellohellohellohellohellohellohello1"
1234 O
phonenumber
"0987563385" O O O O O O O O
"!@$!$@!@$"
"hellohellohellohellohellohellohellohello1"
Confirm Return
TRUE O O O O
FALSE O O O
Exception
Exception in thread "main"
java.lang.RuntimeException: Uncompilable code -
incompatible types: int cannot be converted to
O
java.lang.String
Log message
Insert account successful! O O O O
Cannot insert account! O O O
Result Type(N : Normal, A : Abnormal, B : Boundary) N A A A A A A A
Passed/Failed P F P P F P F P
Executed Date 0 0 0 0 0 0 0 0
2 2 2 2 2 2 2 2
/ / / / / / / /
2 2 2 2 2 2 2 2
6 6 6 6 6 6 6 6
Defect ID D D D
F F F
0 0 0
0 0 0
1 1 2
8 9 0
nsertAccount
ToanHM
-1.328
UTCID10
UTCID11
UTCID12
UTCID13
UTCID14
O O O O O O
O O O O O O
O O O O O O
O O O O
O
O
O O O O
O
O
O O O O
O
O
O O O
O O O
A A A A A A
F P F P F P
0 0 0 0 0 0
2 2 2 2 2 2
/ / / / / /
2 2 2 2 2 2
6 6 6 6 6 6
D D D
F F F
0 0 0
0 0 0
2 2 2
1 2 3
Function Code Function7 Function Name updateA
Created By ToanHM Executed By ToanHM
Lines of code 24 Lack of test cases -1.3
Test requirement
Passed Failed Untested N/A/B
8 6 0 2 11
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
UTCID08
Condition Precondition
Can connect with server
id 2 O O O O O
-10 O
-2147483648 O
-3000000000 O
password
"123%#" O O O O O O
"hellohellohellohellohellohellohellohellohellohellohellohello1" O
1234 O
firstname
"Phạmm" O O O O
"@@!$@!%#%" O
"hellohellohellohellohellohellohellohellohellohellohellohello1" O
1234 O
lastname
"Phongg" O O O O O O O
"@@!$@!%#%"
"hellohellohellohellohellohellohellohellohellohellohellohello1"
1234 O
email
"[email protected]" O O O O O O O
"@@!$@!%#%"
"hellohellohellohellohellohellohellohellohellohellohellohello1"
1234 O
phonenumber
"0987563389" O O O O O O O O
"!@$!$@!@$"
"hellohellohellohellohellohellohellohello1"
Confirm Return
TRUE O O O O
FALSE O O
Exception
Exception
Exception in
in thread
thread "main"
"main" java.lang.RuntimeException:
java.lang.RuntimeException:
Uncompilable code - integer number
Uncompilable code - incompatible toocannot
types: int large be O
converted to java.lang.String O
Log message
Update account successful! O O O O
Cannot update account! O O
Result Type(N : Normal, A : Abnormal, B : Boundary) N N B A A A A A
Passed/Failed P F F P P P F P
Executed Date 0 0 0 0 0 0 0 0
Defect ID 2 2 2 2 2 2 2 2
/ / / / / / / /
D D D
2 2 2 2 2 2 2 2
F F F
6 6 6 6 6 6 6 6
0 0 0
0 0 0
2 2 2
6 7 8
updateAccount
oanHM
-1.328
UTCID10
UTCID11
UTCID12
UTCID13
UTCID14
O O O O O O
O O O O O O
O O O O O O
O O O O
O
O
O O O O
O
O
O O O O
O
O
O O O
O O O
O O O
O O O
A A A A A A
F P F P F P
0 0 0 0 0 0
2 2 2 2 2 2
/ / / / / /
D D D
2 2 2 2 2 2
F F F
6 6 6 6 6 6
0 0 0
0 0 0
2 3 3
9 0 1
Function Code Function11 Function Name
Created By ToanHM Executed By
Lines of code 9 Lack of test cases
Test requirement
Passed Failed Untested
8 0 0
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
Condition Precondition
Can connect with server
username
"admin" O
"" O
"hello@@@" O
minadminadminadminadmin" O
123 O
password
"123" O O O O O
""
"hello@@@@1231413####@!
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
123
aaaaaaaaaxxxx"
Confirm Return
TRUE O
FALSE O O O
java.lang.RuntimeException: Uncompilable code -
Exception
incompatible types: int cannot be converted to
java.lang.String O
Log message
Get account successful! O
Cannot get account! O O O
Result Type(N : Normal, A : Abnormal, B : Boundary) N A A B A
Passed/Failed P P P P P
Executed Date 0 0 0 0 0
2 2 2 2 2
/ / / / /
2 2 2 2 2
7 7 7 7 7
Defect ID
UTCID07
UTCID08
O O O
O
O
O
O O
A A A
P P P
0 0 0
2 2 2
/ / /
2 2 2
7 7 7
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
Condition Precondition
Can connect with server
id
49 O
-10 O
2,147,483,647 O
3,000,000,000 O
"hello@@3" O
null O
Confirm Return
T O O O
F
Exception
Defect ID
D D
F F
0 0
0 0
3 3
5 6
deleteAccountById
46.8
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
Condition Precondition
Can connect with server
id
10 O
-10 O
2,147,483,647 O
3,000,000,000 O
"testtt" O
null O
Confirm Return
hong, email=phong@123, phone_number=0987563385, role_id=1} O
null O O
Exception
Exception in thread "main"
java.lang.RuntimeException: Uncompilable code -
integer number too large O
Exception in thread "main"
java.lang.RuntimeException: Uncompilable code -
incompatible types: java.lang.String cannot be
O
converted
Exception to int
in thread "main"
java.lang.RuntimeException: Uncompilable code -
incompatible types: <nulltype> cannot be converted to
O
int
Log message
Get account successful! O
Cannot get account! O O
Result Passed/Failed N N B A A A
P P P P P P
Executed Date 0 0 0 0 0 0
2 2 2 2 2 2
/ / / / / /
2 2 2 2 2 2
6 6 6 6 6 6
Defect ID
getAccountById
10.368
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
UTCID08
Condition Precondition
Can connect with server
username
"minhsan" O O O O O
"happynewyehappynewyehappynewyehappynewye
happynewyre" O
"" O
"happynewyehappynewyehappynewyehappynewye
happynewye" O
phonenumber
"11111222225" O O O O O O
"!!$@!@!@#@#!" O
"" O
newpassword
"minh123" O O O O O O
"" O
123 O
Confirm Return
T O
F O O O O O O
Exception
Exception in thread "main"
java.lang.RuntimeException: Uncompilable code -
incompatible types: java.lang.String cannot be
converted to int O
Log message
Update account successful! O
No account found or update failed. O O O O O O
Result Type(N : Normal, A : Abnormal, B : Boundary) A A N B N A A A
Passed/Failed P P P P P P F P
Executed Date 0 0 0 0 0 0 0 0
2 2 2 2 2 2 2 2
/ / / / / / / /
2 2 2 2 2 2 2 2
6 6 6 6 6 6 6 6
Defect ID
atePasswordByUsernameAndPhoneNumber
3.088
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
Condition Precondition
Can connect with server
Have to load account before test
username
"admin" O
"" O
"Duck" O
"!@#!#!@#" O
123 O
Confirm Return
FALSE O O O
TRUE O
Exception
Exception in thread "main"
java.lang.RuntimeException: Uncompilable code -
O
incompatible types: int cannot be converted to
java.lang.String
Log message
Defect ID
8.2
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
Condition Precondition
Can connect with server
ID
1 O
2147483647 O
-3000000000 O
null O
"aaa" O
-100
Confirm Return
Room{id=1, name=Room A, capacity=30} O
null O
Exception
Exception in thread "main" java.lang.RuntimeException:
Uncompilable code - integer number too large O
Exception in thread "main" java.lang.RuntimeException:
Uncompilable code - incompatible types: java.lang.String cannot be converted to int O
Exception in thread "main" java.lang.RuntimeException:
Uncompilable code - incompatible types: <nulltype> cannot be converted to int O
Log message
Defect ID
getRoomById
ToanHM
s 4.56
N
P
0
3
/
0
1
Function Code Function14 Function Name
Created By ToanHM Executed By
Lines of code 13 Lack of test cases
Test requirement
Passed Failed Untested
11 0 0
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
Condition Precondition
Can connect with server
Name
"RoomA" O O O O O
1
null
Capacity
null O
1 O
"agsga" O
2147483647 O
-3000000000 O
Confirm Return
TRUE O O
FALSE
Exception
Exception in thread "main" java.lang.RuntimeException:
Uncompilable code - incompatible types: java.lang.String cannot be converted to int O
"Exception in thread ""main"" java.lang.RuntimeException:
Uncompilable code - integer number too large" O
Exception in thread "main" java.lang.RuntimeException:
Uncompilable code - incompatible types: int cannot be converted to java.lang.String
Exception in thread "main" java.lang.RuntimeException:
Uncompilable code - incompatible types: <nulltype> cannot be converted to int O
Log message
UTCID07
UTCID08
UTCID09
UTCID10
UTCID11
O
O O O O O
O O
O
O
O
O
O O
A A N A B A
P P P P P P
0 0 0 0 0 0
3 3 3 3 3 3
/ / / / / /
0 0 0 0 0 0
1 1 1 1 1 1
Function Code Function15 Function Name
Created By ToanHM Executed By
Lines of code 14 Lack of test cases
Test requirement <Brief description about requirements which are tested in this function>
Passed Failed Untested
12 0 0
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
Condition Precondition
Can connect with server
ID null O
1 O O O O
"room"
2147483647
-100
Name
"RoomA" O O O O
1
null O
Capacity
null O
1 O O O
"agsga" O
2147483647
-100
-3000000000
Confirm Return
TRUE O O
FALSE
Exception
UTCID07
UTCID08
UTCID09
UTCID10
UTCID11
UTCID12
O O O
O
O O
O
O O O O O O
O
O O O O
O
O
O
O O
O O
N A N A B A A
P P P P P P P
0 0 0 0 0 0 0
3 3 3 3 3 3 3
/ / / / / / /
0 0 0 0 0 0 0
1 1 1 1 1 1 1
Function Code Function17 Function Name listRoomAvailableBy
Created By ToanHM Executed By ToanHM
Lines of code 23 Lack of test cases
Test requirement Allow users to insert film into database
Passed Failed Untested N/A/B
7 5 0 5
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
Condition Precondition
Can connect with server
startHour
null O
"09:00:00" O O O O O O
"00:00:00"
"abc"
"-01:00:00"
120
length
120 O O
2147483647 O
-3000000000 O
null O
"aaa" O
-100 O
Confirm Return
[] O O O
Exception
Exception in thread "main" java.lang.RuntimeException:
Uncompilable code - integer number too large
O
Exception in thread "main" java.lang.RuntimeException:
Uncompilable code - incompatible types: <nulltype> cannot be
converted to int
O O
Exception in thread "main" java.lang.RuntimeException:
Uncompilable code - incompatible types: java.lang.String cannot be
converted to int O
Exception in thread "main" java.lang.RuntimeException:
Uncompilable code - incompatible types: int cannot be converted to
java.lang.String
Log message
UTCID09
UTCID10
UTCID11
UTCID12
O O
O
O
O
O O O
O O
O O
B N N A B
F F P P P
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
Condition Precondition
Can connect with server O O O O O O
ID
1 O
2147483647 O
-3000000000 O
null O
"aaa" O
-100 O
Confirm Return
TRUE
FALSE O O O
Exception
Exception in thread "main" java.lang.RuntimeException:
Uncompilable code - integer number too large O
Exception in thread "main" java.lang.RuntimeException:
Uncompilable code - incompatible types: <nulltype> cannot be converted to int O
Exception in thread "main" java.lang.RuntimeException:
Uncompilable code - incompatible types: java.lang.String cannot be converted to int O
Log message
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
Condition Precondition
Can connect with server
accountId
1 O O O O
2,147,483,647 O
3,000,000,000 O
seatId
"1" O O O O
"abc" O
"1,2,3,4" O
ticketFilmId
"1" O O O O O
"abc" O
""
status
1 O O O O O O
2,147,483,647
3,000,000,000
Confirm Return
1 O
0 O O
4 O
Exception
Exception in thread "main" java.lang.RuntimeException:
Uncompilable code - integer number too large O
Exception in thread "main"
java.lang.RuntimeException: Uncompilable code -
incompatible types: int cannot be converted to
java.lang.String
Log message
Error at insertTicket: The INSERT statement conflicted
with the FOREIGN KEY constraint O
Error at insertTicket: Conversion failed when
converting the nvarchar value 'abc' to data type int. O O
Result Type(N : Normal, A : Abnormal, B : Boundary) N B A N N N
Passed/Failed P F P P P P
0 0 0 0 0 0
3 3 3 3 3 3
Executed Date / / / / / /
0 0 0 0 0 0
1 1 1 1 1 1
UTCID08
UTCID09
O O O
O O O
O O
O
O
O
O
O
N A A
P F P
0 0 0
3 3 3
/ / /
0 0 0
1 1 1
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
Condition Precondition
Can connect with server
accountId
2 O O O O O
-2,147,483,648 O
3,000,000,000 O
seatId
"1" O O O O O
"abc" O
1 O
ticketFilmId
"1" O O O O O
"abc" O
"" O
Confirm Return
2 O
0 O O O O
Exception
UTCID01
UTCID02
UTCID03
UTCID04
UTCID05
UTCID06
UTCID07
Condition Precondition
Can connect with server
accountId
2 O O O O O
-2,147,483,648 O
3,000,000,000 O
seatId
"1" O O O O
"2" O
"abc" O
1 O
ticketFilmId
"1" O O O O O O
"" O
Confirm Return
TRUE O
FALSE O O O O
Exception
Exception in thread "main" java.lang.RuntimeException:
Uncompilable code - integer number too large O
Uncompilable code - incompatible types: int cannot
be converted to java.lang.String O
Log message
Conversion failed when converting the nvarchar
value 'abc' to data type int. O
Result Type(N : Normal, A : Abnormal, B : Boundary) N N B A N A N
Passed/Failed P P P P P P P
Executed Date
0 0 0 0 0 0 0
3 3 3 3 3 3 3
/ / / / / / /
0 0 0 0 0 0 0
1 1 1 1 1 1 1
Defect ID
UTCID01
UTCID02
UTCID03
UTCID04
Condition Precondition
Can connect with server
accountId
19 O
1 O
-2,147,483,648 O
2,147,483,647 O
3,000,000,000
Confirm Return
Exception
Log message
A
P
0
3
/
0
1