KEMBAR78
Exercise Lab1.2 | PDF | Applied Mathematics | Computing
0% found this document useful (0 votes)
202 views12 pages

Exercise Lab1.2

The document describes test cases to test a program that calculates the next calendar date given inputs for the month, day and year. 25 test cases are proposed to cover boundary values including invalid dates like Feb 29 in a non-leap year, last days of months with 30 and 31 days, and years outside the valid range from 1900-3000. The test cases will validate the program's handling of edge cases.

Uploaded by

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

Exercise Lab1.2

The document describes test cases to test a program that calculates the next calendar date given inputs for the month, day and year. 25 test cases are proposed to cover boundary values including invalid dates like Feb 29 in a non-leap year, last days of months with 30 and 31 days, and years outside the valid range from 1900-3000. The test cases will validate the program's handling of edge cases.

Uploaded by

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

Project Name: Exercise 1

Module Name: NextDay Problem


Date: 14-09-2023

Next Date program takes 3 inputs representing the month, day, and year between
1/1/1900 and 12/31/3000 and calculates the next calendar date. The program
already has a function for inputting integers only.Let’s design a set of test cases
using Robustness Boundary Value Analysis.

STUDENT SOLUTIONS
Test Case# Test Summary

TC001 Test for the case: Day = 0

TC002 Test for the case: Day = -1

TC003 Test for the case: Day = 32

TC004 Test for the case: Day =33

TC005 Test for the case: Day = 1 of Feb/N.L


TC006 Test for the case: Day = 2 of Feb/N.L

TC007 Test for the case: Day = 27 of Feb/N.L

TC008 Test for the case: Day = 28 of Feb/N.L

TC009 Test for the case: Day = 29 of Feb/N.L

TC010 Test for the case: Day = 1 of Feb/L

TC011 Test for the case: Day = 2 of Feb/L

TC012 Test for the case: Day = 28 of Feb/L

TC013 Test for the case: Day = 29 of Feb/L

TC014 Test for the case: Day = 30 of Feb

Test for the case: Day = 1 of month have


TC015
31days
Test for the case: Day = 2 of month have
TC016
31days

Test for the case: Day = 30 of month have


TC017
31days

Test for the case: Day =31 of month have


TC018
31days

Test for the case: Day = 1 of month have


TC019
30days

Test for the case: Day = 2 of month have


TC020
30days

Test for the case: Day = 30 of month have


TC021
30days

Test for the case: Day = 31 of month have


TC022
30days

TC023 Test for the case: year=1899

TC024 Test for the case: year=1898

TC025 Test for the case: year=3001


TC026 Test for the case: year=3002
Student ID:
Student Fullname

uts representing the month, day, and year between


calculates the next calendar date. The program
tting integers only.Let’s design a set of test cases
alue Analysis.

Test Steps Test Data


1. Run the program
2. Input required fields: Month,Day,Year. Year = 2003 ; Month=02;
3. Click "Next Date" button! Day=0

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2003 ; Month=02;
3. Click "Next Date" button! Day= -1

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2003 ; Month=02;
3. Click "Next Date" button! Day=32

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2003 ; Month=02;
3. Click "Next Date" button! Day=33

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2003 ; Month=02;
3. Click "Next Date" button! Day=1
1. Run the program
2. Input required fields: Month,Day,Year. Year = 2003 ; Month=02;
3. Click "Next Date" button! Day=02

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2003 ; Month=02;
3. Click "Next Date" button! Day=27

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2003 ; Month=02;
3. Click "Next Date" button! Day=28

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2003 ; Month=02;
3. Click "Next Date" button! Day=29

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2004 ; Month=02;
3. Click "Next Date" button! Day=01

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2004 ; Month=02;
3. Click "Next Date" button! Day=02

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2004 ; Month=02;
3. Click "Next Date" button! Day=27

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2004 ; Month=02;
3. Click "Next Date" button! Day=

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2004 ; Month=02;
3. Click "Next Date" button! Day=30

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2003 ; Month=01;
3. Click "Next Date" button! Day=1
1. Run the program
2. Input required fields: Month,Day,Year. Year = 2003 ; Month=01;
3. Click "Next Date" button! Day=02

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2003 ; Month=01;
3. Click "Next Date" button! Day=30

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2003 ; Month=01;
3. Click "Next Date" button! Day=38

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2003 ; Month=04;
3. Click "Next Date" button! Day=1

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2003 ; Month=04;
3. Click "Next Date" button! Day=2

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2003 ; Month=04;
3. Click "Next Date" button! Day=30

1. Run the program


2. Input required fields: Month,Day,Year. Year = 2003 ; Month=04;
3. Click "Next Date" button! Day=31

1. Run the program


2. Input required fields: Month,Day,Year. Year = 1899 ; Month=04;
3. Click "Next Date" button! Day=01

1. Run the program


2. Input required fields: Month,Day,Year. Year = 1898 ; Month=04;
3. Click "Next Date" button! Day=02

1. Run the program


2. Input required fields: Month,Day,Year. Year = 3001 ; Month=04;
3. Click "Next Date" button! Day=03
1. Run the program
2. Input required fields: Month,Day,Year. Year = 3002 ; Month=04;
3. Click "Next Date" button! Day=04
27211243628
pham tien hung

Expected Result

input error

input error

input error

input error

the box "next date" result


02/02/2003
the box "next date" result
03/02/2004

the box "next date" result


28/02/2005

the box "next date" result


01/03/2006

input error

the box "next date" result


02/02/2006

the box "next date" result


03/02/2007

the box "next date" result


29/02/2004

the box "next date" result


01/03/2004

input error

the box "next date" result


02/01/2007
the box "next date" result
03/01/2007

the box "next date" result


31/01/2007

the box "next date" result


01/02/2007

the box "next date" result


02/04/2008

the box "next date" result


03/04/2009

the box "next date" result


01/05/2010

input error

input error

input error

input error
input error

You might also like