Home
Existing User Login
Brochure
Sign up for Risk-Free Trial
About Testcover.com
Frequently Asked Questions
Tutorial
->Definitions of Terms
->Need for the Service
->Submitting Requests
->Reading Results
->Configuration Example
->Constraints Example
->Calendar Example
->RDF/XML Example
Performance
Background
Partners
Subscription Prices
Promotion Activations
Student Subscriptions
Privacy Policy
Terms & Conditions
Contact Information
|
The Calendar Example below illustrates the use of the test case generator with error conditions.
This situation is different from the previous example which had impossible combinations to avoid.
Here there are combinations which need to be tested, but they reflect abnormal conditions.
These combinations lead to "rainy day" test cases which must be handled differently than "sunny day" cases.
Consider a calendar system which has three test factors with values as follows.
| Test Factor | Number of Values | Test Factor Values |
| 1. Month | 12 |
jan feb mar apr may jun jul aug sep oct nov dec |
| 2. Day | 7 |
1 10 28 29 30 31 32 |
| 3. Year | 3 | 2003 2004 2005 |
The tester plans to try several allowed dates, including first and last days of each month.
She also will try problem dates beyond the month boundaries (e.g. jan with 32)
to check that the system handles error cases correctly.
One error test case that could be generated is
This test case covers three combinations, one of which is jan with 2003.
If this is the only test case with the jan-2003 combination,
there could be a gap in exercising the normal operation of the calendar.
The tester knows that the calendar system behaves differently during error handling,
so she plans to cover the jan-2003 combination with a normal day (smaller than 32).
This is easily accomplished with two partitions, one for normal dates and one for months that are too long.
There are constraints among the factor values in both partitions due to the varying month lengths.
Thus both partitions have multiple blocks.
Any combination of values in a block is an allowed test case.
The request for this example is shown below.
Calendar Example
Month
Day
Year
#ok All good dates
jan feb mar apr may jun jul aug sep oct nov dec
1 10
2003 2004 2005
+ long month last day
jan mar may jul aug oct dec
31
2003 2004 2005
+ short month last day
apr jun sep nov
30
2003 2004 2005
+ feb last day
feb
28
2003 2005
+ leap day
feb
29
2004
#err Too long month
+ too long long month
jan mar may jul aug oct dec
32
2003
+ too long short month
apr jun sep nov
31
2004
+ feb too long, regular year
feb
29
2005
+ feb too long, leap year
feb
30
2004 |
The two results tables follow.
This example illustrates the use of Test Case ID prefixes (ok and err)
to distinguish between test cases from different partitions.
Optional partition comments also are shown.
Note that the jan-2003 combination is covered in both partition results.
#1. All good dates
Test Case ID | Month | Day | Year | Combo Countdown | |
| 12 Values | 6 Values | 3 Values | 126 |
| ok1 | jan | 1 | 2003 | 123 |
| ok2 | jan | 10 | 2004 | 120 |
| ok3 | feb | 10 | 2003 | 117 |
| ok4 | feb | 1 | 2005 | 114 |
| ok5 | mar | 1 | 2004 | 111 |
| ok6 | mar | 10 | 2005 | 108 |
| ok7 | may | 31 | 2005 | 105 |
| ok8 | aug | 31 | 2004 | 102 |
| ok9 | oct | 31 | 2003 | 99 |
| ok10 | nov | 30 | 2004 | 96 |
| ok11 | apr | 30 | 2005 | 93 |
| ok12 | jun | 30 | 2003 | 90 |
| ok13 | feb | 29 | 2004 | 87 |
| ok14 | apr | 1 | 2003 | 85 |
| ok15 | apr | 10 | 2004 | 83 |
| ok16 | may | 10 | 2003 | 81 |
| ok17 | jun | 1 | 2004 | 79 |
| ok18 | jun | 10 | 2005 | 77 |
| ok19 | jul | 1 | 2003 | 75 |
| ok20 | jul | 10 | 2004 | 73 |
| ok21 | aug | 10 | 2003 | 71 |
| ok22 | aug | 1 | 2005 | 69 |
| ok23 | sep | 10 | 2003 | 67 |
| ok24 | sep | 1 | 2004 | 65 |
| ok25 | oct | 10 | 2004 | 63 |
| ok26 | nov | 10 | 2003 | 61 |
| ok27 | nov | 1 | 2005 | 59 |
| ok28 | dec | 10 | 2003 | 57 |
| ok29 | dec | 1 | 2004 | 55 |
| ok30 | jul | 31 | 2005 | 53 |
| ok31 | dec | 31 | 2005 | 51 |
| ok32 | jan | 31 | 2005 | 49 |
| ok33 | mar | 31 | 2003 | 47 |
| ok34 | sep | 30 | 2005 | 45 |
| ok35 | feb | 28 | 2003 | 43 |
| ok36 | may | 10 | 2004 | 42 |
| ok37 | may | 1 | 2005 | 41 |
| ok38 | oct | 1 | 2003 | 40 |
| ok39 | oct | 10 | 2005 | 39 |
| ok40 | feb | 28 | 2005 | 38 |
#2. Too long month
Test Case ID | Month | Day | Year | Combo Countdown | |
| 12 Values | 4 Values | 3 Values | 96 |
| err1 | jan | 32 | 2003 | 93 |
| err2 | apr | 31 | 2004 | 90 |
| err3 | feb | 29 | 2005 | 87 |
| err4 | feb | 30 | 2004 | 84 |
| err5 | mar | 32 | 2003 | 82 |
| err6 | may | 32 | 2003 | 80 |
| err7 | jul | 32 | 2003 | 78 |
| err8 | aug | 32 | 2003 | 76 |
| err9 | oct | 32 | 2003 | 74 |
| err10 | dec | 32 | 2003 | 72 |
| err11 | jun | 31 | 2004 | 70 |
| err12 | sep | 31 | 2004 | 68 |
| err13 | nov | 31 | 2004 | 66 |
|