Course outline
Test estimation calculator
An optimistic, a likely and a pessimistic time per task: the expected total, and how far from it the real time may land.
Every test plan needs an estimate, and every estimate is wrong; the question is by how much. A single number hides the risk in a task. Three numbers (the time if all goes well, the likely time, and the time if things go badly) show it, and add up to a total you can defend.
Write each task with its three times. The tool gives each task its expected time, the total, and the range the real total will most likely fall in. It uses the three-point (PERT) formula taught in most test management courses.
Use the tool
One task per line: "Task: optimistic, most likely, pessimistic", all in the same unit.
| Task | Optimistic | Most likely | Pessimistic | Expected | Deviation |
|---|---|---|---|---|---|
| Read the SRS and write the test plan | 4 | 6 | 10 | 6.33 | 1 |
| Write test cases for coupons and checkout | 6 | 8 | 14 | 8.67 | 1.33 |
| Prepare test data and accounts | 2 | 3 | 6 | 3.33 | 0.67 |
| Run the tests, first round | 8 | 12 | 20 | 12.67 | 2 |
| Report bugs and retest the fixes | 4 | 6 | 12 | 6.67 | 1.33 |
- Expected total
- 37.67
- Deviation
- 3
- Likely range (about 68%)
- 34.67 to 40.67
- Almost sure (about 95%)
- 31.67 to 43.67
How the method works
For each task, the expected time is (optimistic + 4 × most likely + pessimistic) / 6: the likely time counts four times as much as either extreme. The deviation, (pessimistic − optimistic) / 6, says how uncertain the task is.
For the whole plan, the expected times add up, but the deviations do not: their squares (the variances) add up, and the total deviation is the square root of that sum. About 68% of the time the real total falls within one deviation of the expected total, and about 95% of the time within two.
- One task per line: "Task: optimistic, most likely, pessimistic", in hours or days (the same unit throughout).
- Ask the person who will do the work for the three times; their pessimistic time says the most.
- Plan with the expected total, and agree with the team which end of the range to commit to.
A worked example on Cedar Books
Testing release 2.4 of Cedar Books (the release the templates describe) splits into five tasks, estimated in hours:
| Task | Optimistic | Most likely | Pessimistic | Expected | Deviation |
|---|---|---|---|---|---|
| Read the SRS and write the test plan | 4 | 6 | 10 | 6.33 | 1 |
| Write test cases for coupons and checkout | 6 | 8 | 14 | 8.67 | 1.33 |
| Prepare test data and accounts | 2 | 3 | 6 | 3.33 | 0.67 |
| Run the tests, first round | 8 | 12 | 20 | 12.67 | 2 |
| Report bugs and retest the fixes | 4 | 6 | 12 | 6.67 | 1.33 |
- Expected total
- 37.67
- Deviation
- 3
- Likely range (about 68%)
- 34.67 to 40.67
- Almost sure (about 95%)
- 31.67 to 43.67
The release needs about 38 hours of testing. One deviation either side gives the likely range; the 95% range is the one to quote when a deadline is fixed. The run of the tests carries the most uncertainty, so start it early.