dev_Capture a screenshot when an error occurs

Provode the ability to capture a screenshot when an error occurs (or a test fails). Something like is in SWT Bot.