0% found this document useful (0 votes)
29 views41 pages

24 HE190483 Nguyễn Quang Vinh BlackBox

The document outlines a test case summary for two processes, JNAP014B and JNAP019B, detailing the number of normal, abnormal, and boundary test cases. It includes descriptions of various test cases, pre-conditions, procedures, expected outputs, and potential exceptions. A total of 25 test cases are summarized, with 4 normal, 16 abnormal, and 5 boundary cases.

Uploaded by

Nguyễn Vinh
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)
29 views41 pages

24 HE190483 Nguyễn Quang Vinh BlackBox

The document outlines a test case summary for two processes, JNAP014B and JNAP019B, detailing the number of normal, abnormal, and boundary test cases. It includes descriptions of various test cases, pre-conditions, procedures, expected outputs, and potential exceptions. A total of 25 test cases are summarized, with 4 normal, 16 abnormal, and 5 boundary cases.

Uploaded by

Nguyễn Vinh
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

TEST CASE SUMMARY

Category Count Percentage


Normal 4 16%
Abnormal 16 64%
Boundary 5 20%
TOTAL 25 100%
ID Test Case Description

JNAP014B-N001 Normal sales data creation process

JNAP014B-N002 Normal process without mail sending

JNAP014B-N003 Normal process after SQL execution error

JNAP014B-N004 Normal process with numeric string order


process

JNAP014B-A001 No corresponding record exists

JNAP014B-A002 Status update failure (processing by another


process)

JNAP014B-A003 Null yearMonthProcess

JNAP014B-A004 Null orderProcess

JNAP014B-A005 Null sendMailFlag

JNAP014B-A006 Empty string yearMonthProcess


JNAP014B-A007 Empty string orderProcess

JNAP014B-A008 Invalid format yearMonthProcess

JNAP014B-A009 Non-numeric orderProcess

JNAP014B-A010 Invalid sendMailFlag value

JNAP014B-A011 SQL file does not exist

JNAP014B-A012 Database connection error

JNAP014B-A013 tranJobListDao is null

JNAP014B-A014 Mail sending failure

JNAP014B-A015 SQL execution timeout

JNAP014B-A016 Status update failure after process


completion

JNAP014B-B001 Minimum year-month (YYYYMM)


JNAP014B-B002 Maximum year-month (YYYYMM)

JNAP014B-B003 Minimum order process value

JNAP014B-B004 Zero value for order process

JNAP014B-B005 Long string parameters


Pre-Condition

- Corresponding record exists in job list transaction


table
- Status is "Pending"
- salesdata.sql file exists
- Mail send flag = "1"
- Corresponding record exists in job list transaction
table
- Status is "Pending"
- salesdata.sql file exists
- Mail send flag = "0"
- Corresponding record exists in job list transaction
table
- Status is "Pending"
- salesdata.sql file exists (error occurs during
execution)
- Mail send flag = "1"

- Corresponding record exists in job list transaction


table
- Status is "Pending"
- salesdata.sql file exists
No Corresponding record exists in job list
transaction table

- Corresponding record exists in job list transaction


table
- Status is already "Running"

Parameters injected

Parameters injected

Parameters injected

Parameters injected
Parameters injected

Parameters injected

Parameters injected

Parameters injected

- Corresponding record exists in job list transaction


table
- Status is "Pending"
- salesdata.sql file does not exist
Database connection unavailable

tranJobListDao is null

- Corresponding record exists in job list transaction


table
- Status is "Pending"
- salesdata.sql file exists
- Mail server connection unavailable
- Corresponding record exists in job list transaction
table
- Status is "Pending"
- salesdata.sql contains long-running SQLs
- Corresponding record exists in job list transaction
table
- Status is "Pending"
- salesdata.sql executes successfully
- DB update fails after process completion
- Corresponding record exists in job list transaction
table
- Status is "Pending"
- Corresponding record exists in job list transaction
table
- Status is "Pending"

- Corresponding record exists in job list transaction


table
- Status is "Pending"

Parameters injected
Test Case Procedure

1. yearMonthProcess = "202312"
2. orderProcess = "001"
3. sendMailFlag = "1"
4. Execute execute() method
1. yearMonthProcess = "202312"
2. orderProcess = "002"
3. sendMailFlag = "0"
4. Execute execute() method

1. yearMonthProcess = "202312"
2. orderProcess = "003"
3. sendMailFlag = "1"
4. salesdata.sql execution fails
5. Execute execute() method

1. yearMonthProcess = "202401"
2. orderProcess = "999"
3. sendMailFlag = "0"
4. Execute execute() method
1. yearMonthProcess = "202399"
2. orderProcess = "999"
3. sendMailFlag = "1"
4. Execute execute() method
1. yearMonthProcess = "202312"
2. orderProcess = "001"
3. sendMailFlag = "1"
4. Execute execute() method
1. yearMonthProcess = null
2. orderProcess = "001"
3. sendMailFlag = "1"
4. Execute execute() method
1. yearMonthProcess = "202312"
2. orderProcess = null
3. sendMailFlag = "1"
4. Execute execute() method
1. yearMonthProcess = "202312"
2. orderProcess = "001"
3. sendMailFlag = null
4. Execute execute() method
1. yearMonthProcess = ""
2. orderProcess = "001"
3. sendMailFlag = "1"
4. Execute execute() method
1. yearMonthProcess = "202312"
2. orderProcess = ""
3. sendMailFlag = "1"
4. Execute execute() method
1. yearMonthProcess = "20231299"
2. orderProcess = "001"
3. sendMailFlag = "1"
4. Execute execute() method
1. yearMonthProcess = "202312"
2. orderProcess = "abc"
3. sendMailFlag = "1"
4. Execute execute() method
1. yearMonthProcess = "202312"
2. orderProcess = "001"
3. sendMailFlag = "2"
4. Execute execute() method
1. yearMonthProcess = "202312"
2. orderProcess = "001"
3. sendMailFlag = "1"
4. Execute execute() method
1. yearMonthProcess = "202312"
2. orderProcess = "001"
3. sendMailFlag = "1"
4. Execute execute() method
1. yearMonthProcess = "202312"
2. orderProcess = "001"
3. sendMailFlag = "1"
4. Execute execute() method
1. yearMonthProcess = "202312"
2. orderProcess = "001"
3. sendMailFlag = "1"
4. Execute execute() method

1. yearMonthProcess = "202312"
2. orderProcess = "001"
3. sendMailFlag = "1"
4. Execute execute() method
1. yearMonthProcess = "202312"
2. orderProcess = "001"
3. sendMailFlag = "1"
4. Execute execute() method

1. yearMonthProcess = "190001"
2. orderProcess = "001"
3. sendMailFlag = "1"
4. Execute execute() method
1. yearMonthProcess = "999912"
2. orderProcess = "001"
3. sendMailFlag = "1"
4. Execute execute() method
1. yearMonthProcess = "202312"
2. orderProcess = "1"
3. sendMailFlag = "0"
4. Execute execute() method
1. yearMonthProcess = "202312"
2. orderProcess = "0"
3. sendMailFlag = "1"
4. Execute execute() method
1. yearMonthProcess =
"20231212345678901234567890"
2. orderProcess = "12345678901234567890"
3. sendMailFlag = "1"
4. Execute execute() method
Expected Output Bug# System Test Environment

- Status updated to "Complete"


- Process completion date set to system date
- Success notification mail sent
- No exceptions Unit Test
- Status updated to "Complete" Unit Test
- Process completion date set to system date
- No mail sent
- No exceptions

- Status updated to "Error" Unit Test


- Error notification mail sent
- No exceptions

- Status updated to "Complete" Unit Test


- Process completion date set to system date
- No exceptions

BusinessLogicException Unit Test


MessageIds.JNAP_ERROR_THERE_IS_NO_CORRESP
ONDING_RECORD

BusinessLogicException Unit Test


MessageIds.JNAP_ERROR_CHANGE_STATUS_TO_RU
NNING

NullPointerException or Parameter validation error Unit Test

NullPointerException or Parameter validation error Unit Test

NullPointerException or Parameter validation error Unit Test

Parameter validation error or DB search error Unit Test


Parameter validation error or DB search error Unit Test

Date format validation error Unit Test

Numeric check validation error Unit Test

Value set validation error (allowed values: "0","1") Unit Test

FileNotFoundException or SQL execution error Unit Test

DatabaseConnectionException Unit Test

NullPointerException Unit Test

MailSendException (mail send error propagates Unit Test


exception)

SQLTimeoutException Unit Test

DatabaseUpdateException Unit Test

- Status updated to "Complete" Unit Test


- Process completion date set to system date
- Success notification mail sent
- Status updated to "Complete" Unit Test
- Process completion date set to system date
- Success notification mail sent

- Status updated to "Complete" Unit Test


- Process completion date set to system date
- No mail sent

- Order process zero passes numeric check Unit Test


- BusinessLogicException if no corresponding
record exists

Parameter length limit validation error Unit Test


Test Date Note

Basic normal flow


Normal flow with mail flag OFF

Normal error handling for SQL


error

Normal process with maximum


digits

Record existence check error

Exclusive control error

Null parameter

Null parameter

Null parameter

Empty string parameter


Empty string parameter

Invalid month specification

Non-numeric string

Out of range value

File existence error

DB connection failure

DI failure

Mail sending failure

SQL execution timeout

Update failure after process


completion

Minimum boundary value


Maximum boundary value

Minimum numeric boundary


value

Zero boundary value

String length boundary value


ID Test Case Description
JNAP019B-N001 Normal usage unmatch list processing

JNAP019B-N002 Normal process without mail

JNAP019B-N003 Normal process after SQL error

JNAP019B-N004 Normal process max digits

JNAP019B-A001 No corresponding record

JNAP019B-A002 Status update failure


JNAP019B-A003 Null yearMonthProcess

JNAP019B-A004 Null orderProcess

JNAP019B-A005 Null sendMailFlag

JNAP019B-A006 Empty yearMonthProcess

JNAP019B-A007 Empty orderProcess

JNAP019B-A008 Invalid yearMonthProcess


JNAP019B-A009 Non-numeric orderProcess

JNAP019B-A010 Invalid sendMailFlag

JNAP019B-A011 USAGEVAL.SQL not exist

JNAP019B-A012 DB connection error

JNAP019B-A013 tranJobListDao null

JNAP019B-A014 Mail sending failure


JNAP019B-A015 SQL timeout

JNAP019B-A016 Status update fail after completion

JNAP019B-B001 Min year-month

JNAP019B-B002 Max year-month

JNAP019B-B003 Min order process

JNAP019B-B004 Zero order process


JNAP019B-B005 Long string parameters

SUMMARY
Normal: 4 (16%)
Abnormal: 16 (64%)
Boundary: 5 (20%)
TOTAL: 25 (100%)
JNAP019B (Usage Unmatch List Processin

Pre-Condition
Record exists, Status='Pending', USAGEVAL.SQL
exists, Mail flag='1'

Record exists, Status='Pending', USAGEVAL.SQL


exists, Mail flag='0'

Record exists, Status='Pending', USAGEVAL.SQL


error, Mail flag='1'

Record exists, Status='Pending', USAGEVAL.SQL


exists

No record in job list table

Record exists, Status='Running'


Parameters injected

Parameters injected

Parameters injected

Parameters injected

Parameters injected

Parameters injected
Parameters injected

Parameters injected

Record exists, Status='Pending', USAGEVAL.SQL


missing

DB connection unavailable

tranJobListDao is null

Record exists, Status='Pending', USAGEVAL.SQL


exists, Mail server down
Record exists, Status='Pending', USAGEVAL.SQL
long-running

Record exists, Status='Pending', USAGEVAL.SQL


success, DB update fails

Record exists, Status='Pending'

Record exists, Status='Pending'

Record exists, Status='Pending'

Parameters injected
Parameters injected
P019B (Usage Unmatch List Processing) - Black Box Test Cases

Test Case Procedure


1. yearMonthProcess='202312' 2. orderProcess='001' 3.
sendMailFlag='1' 4. Execute method

1. yearMonthProcess='202312' 2. orderProcess='002' 3.
sendMailFlag='0' 4. Execute method

1. yearMonthProcess='202312' 2. orderProcess='003' 3.
sendMailFlag='1' 4. SQL fails 5. Execute method

1. yearMonthProcess='202401' 2. orderProcess='999' 3.
sendMailFlag='0' 4. Execute method

1. yearMonthProcess='202399' 2. orderProcess='999' 3.
sendMailFlag='1' 4. Execute method

1. yearMonthProcess='202312' 2. orderProcess='001' 3.
sendMailFlag='1' 4. Execute method
1. yearMonthProcess=null 2. orderProcess='001' 3.
sendMailFlag='1' 4. Execute method

1. yearMonthProcess='202312' 2. orderProcess=null 3.
sendMailFlag='1' 4. Execute method

1. yearMonthProcess='202312' 2. orderProcess='001' 3.
sendMailFlag=null 4. Execute method

1. yearMonthProcess='' 2. orderProcess='001' 3.
sendMailFlag='1' 4. Execute method

1. yearMonthProcess='202312' 2. orderProcess='' 3.
sendMailFlag='1' 4. Execute method

1. yearMonthProcess='20231299' 2. orderProcess='001'
3. sendMailFlag='1' 4. Execute method
1. yearMonthProcess='202312' 2. orderProcess='abc' 3.
sendMailFlag='1' 4. Execute method

1. yearMonthProcess='202312' 2. orderProcess='001' 3.
sendMailFlag='2' 4. Execute method

1. yearMonthProcess='202312' 2. orderProcess='001' 3.
sendMailFlag='1' 4. Execute method

1. yearMonthProcess='202312' 2. orderProcess='001' 3.
sendMailFlag='1' 4. Execute method

1. yearMonthProcess='202312' 2. orderProcess='001' 3.
sendMailFlag='1' 4. Execute method

1. yearMonthProcess='202312' 2. orderProcess='001' 3.
sendMailFlag='1' 4. Execute method
1. yearMonthProcess='202312' 2. orderProcess='001' 3.
sendMailFlag='1' 4. Execute method

1. yearMonthProcess='202312' 2. orderProcess='001' 3.
sendMailFlag='1' 4. Execute method

1. yearMonthProcess='190001' 2. orderProcess='001' 3.
sendMailFlag='1' 4. Execute method

1. yearMonthProcess='999912' 2. orderProcess='001' 3.
sendMailFlag='1' 4. Execute method

1. yearMonthProcess='202312' 2. orderProcess='1' 3.
sendMailFlag='0' 4. Execute method

1. yearMonthProcess='202312' 2. orderProcess='0' 3.
sendMailFlag='1' 4. Execute method
1. yearMonthProcess='202312123456789' 2.
orderProcess='123456789' 3. sendMailFlag='1' 4.
Execute method
ing) - Black Box Test Cases

Expected Output Bug#


Status='Complete', Success mail sent, No exceptions

Status='Complete', No mail sent, No exceptions

Status='Error', Error mail sent, No exceptions

Status='Complete', No exceptions

BusinessLogicException
JNAP_ERROR_THERE_IS_NO_CORRESPONDING_RECORD

BusinessLogicException
JNAP_ERROR_CHANGE_STATUS_TO_RUNNING
NullPointerException or Parameter validation error

NullPointerException or Parameter validation error

NullPointerException or Parameter validation error

Parameter validation error or DB search error

Parameter validation error or DB search error

Date format validation error


Numeric check validation error

Value set validation error (allowed: '0','1')

FileNotFoundException or SQL execution error

DatabaseConnectionException

NullPointerException

MailSendException
SQLTimeoutException

DatabaseUpdateException

Status='Complete', Success mail sent

Status='Complete', Success mail sent

Status='Complete', No mail sent

Zero passes numeric check, BusinessLogicException if no


record
Parameter length limit validation error
System Test
Environment Test Date Note
Unit Test Basic normal flow

Unit Test Normal flow mail OFF

Unit Test Normal error handling

Unit Test Normal max digits

Unit Test Record check error

Unit Test Exclusive control error


Unit Test Null parameter

Unit Test Null parameter

Unit Test Null parameter

Unit Test Empty parameter

Unit Test Empty parameter

Unit Test Invalid month


Unit Test Non-numeric

Unit Test Out of range

Unit Test File not found

Unit Test DB connection fail

Unit Test DI failure

Unit Test Mail failure


Unit Test SQL timeout

Unit Test Update fail after completion

Unit Test Min boundary

Unit Test Max boundary

Unit Test Min numeric boundary

Unit Test Zero boundary


Unit Test String length boundary

You might also like