< Introduction to
FIT | Testing with FIT >
This is only the HTML version of the original WiKi-based tutorial.
You should download it from here to experience the real thing.
There are mandatory breaks, made up by the employer and the workers' council.
(Sounds weird to you? Well, come over to good old Germany, it's quite common here in bigger companies.)
These mandatory breaks depend on the working time:
If the employee has not made an appropriate break, the system will automatically subtract the mandatory break. Recorded breaks will be taken into account. Special attention must be paid to the logic at time limits: If the difference of recorded time and time limit is less than the mandatory break, only this difference will be subtracted. Meaning the working time will never be less than these time limits.
< Introduction to FIT | Testing with FIT >
[.FrontPage] [.RecentChanges]
This is only the HTML version of the original WiKi-based tutorial.
You should download it from here to experience the real thing.
The Problem Domain
Our example domain is a time recording system based on a check clock. Every time a worker comes or leaves she has to register at the check clock, which creates an entry in the time recording system. At the end of the month the working time to be paid is calculated by the system.There are mandatory breaks, made up by the employer and the workers' council.
(Sounds weird to you? Well, come over to good old Germany, it's quite common here in bigger companies.)
These mandatory breaks depend on the working time:
- More than 6 hours of work: 1/2 hour mandatory break
- More than 9 hours of work: 3/4 hour mandatory break
If the employee has not made an appropriate break, the system will automatically subtract the mandatory break. Recorded breaks will be taken into account. Special attention must be paid to the logic at time limits: If the difference of recorded time and time limit is less than the mandatory break, only this difference will be subtracted. Meaning the working time will never be less than these time limits.
Example
The recorded time is 6.25 hours. The limit here is 6 hours; the mandatory break is 0.5 hours. Now we can not simply subtract the mandatory break, since the resulting working time would be less than 6 hours. Instead the time will be cut to 6 hours. If the recorded time is more than 6.5 hours, half an hour will be subtracted.Terms used
The following table gives a definition of the terms used:| Recorded time | The time recorded by the system |
| Working time | The working time to be paid calculated by the system (mandatory breaks are subtracted) |
| Recorded break | The break recorded by the system, which is the time between a leaving and a comming time of two subsequent records at day X |
| Mandatory break | The mandatory break based on the recorded working time |
< Introduction to FIT | Testing with FIT >
[.FrontPage] [.RecentChanges]