Software Quality Assurance and Testing: (Please don\'t give any coding answer) M
ID: 3787154 • Letter: S
Question
Software Quality Assurance and Testing: (Please don't give any coding answer)
Many applications include a date-field widget where users can enter a date in the form MM/DD/YYYY, representing a two-digit month, two-digit day, and four-digit year. Your boss decided to write their own date-field widget, so now you have to test it. The date-field widget is designed to accept only valid dates while rejecting all invalid dates. You can assume that the validation check is only done when the field is fully-populated with eight numeric digits (0-9), and that you only have to test against the Gregorian calendar.
Was anything unclear about this problem? For any assumptions that you make, state what was unclear, your assumption, and why you believe your assumption is reasonable.
Again, use equivalence classes to analyze this problem, writing your answer as a table with multiple columns. Ensure that your table tests boundary and interior values, but try not to include excessive tests. Write in your own language!!!!!
Explanation / Answer
Assumptions:
Test Case
Output
Analysis
25/25/2025
Invalid month
MM can take value from 01 to 12. If MM converted into Integer is greater than 12, error is thrown right away
00/30/2017
Invalid month
MM can take value from 01 to 12. If MM converted into Integer is lesser than 1, error is thrown right away
11/31/2017
November does not have 31days
While coding it is entered that which month has how many day and the months are recognized by machine as per their index number. Like in this case index 11 is recognised as the month of November
01/11/1992
Correct date
The date is perfectly correct
01/01/2004
Correct date
The date is perfectly correct
01/31/2009
Correct date
The date is perfectly correct
01/25/9999
Invalid year
As we are comparing with the Gregorian calendar the entered can’t cross the certain range.
02/29/2011
February does not have 29 days in 2011
February is specially handled in the code as : If the YYYY converted into integer is a multiple 400 and then 4 if not millennium then the month index 2 that is February is allowed to have 29 day
01/45/2023
Invalid Day
DD can take values from 01 to 31. If DD converted into Integer is greater than 31, error is thrown right away
12/00/2025
Invalid Day
DD can take values from 01 to 31. If DD converted into Integer is lesser than 01, error is thrown right away
Test Case
Output
Analysis
25/25/2025
Invalid month
MM can take value from 01 to 12. If MM converted into Integer is greater than 12, error is thrown right away
00/30/2017
Invalid month
MM can take value from 01 to 12. If MM converted into Integer is lesser than 1, error is thrown right away
11/31/2017
November does not have 31days
While coding it is entered that which month has how many day and the months are recognized by machine as per their index number. Like in this case index 11 is recognised as the month of November
01/11/1992
Correct date
The date is perfectly correct
01/01/2004
Correct date
The date is perfectly correct
01/31/2009
Correct date
The date is perfectly correct
01/25/9999
Invalid year
As we are comparing with the Gregorian calendar the entered can’t cross the certain range.
02/29/2011
February does not have 29 days in 2011
February is specially handled in the code as : If the YYYY converted into integer is a multiple 400 and then 4 if not millennium then the month index 2 that is February is allowed to have 29 day
01/45/2023
Invalid Day
DD can take values from 01 to 31. If DD converted into Integer is greater than 31, error is thrown right away
12/00/2025
Invalid Day
DD can take values from 01 to 31. If DD converted into Integer is lesser than 01, error is thrown right away
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.