Add interceptor support to Slim's MethodExecutor #724
Adds the option for a Java Slim fixture to 'intercept' all calls made to it by Slim, by implementing
This allows a fixture to implement some generic behavior without having to add it to all of its methods invoked by Slim.
Examples of such behavior:
Personally I have 2 specific wishes I hope to implement based on this. I'm hoping to extend my Selenium based fixture so that
sounds like a nice feature which helps to reduce the amout of glue code
An example which adds a screenshot or an image to the test results would
I'll try to get around to writing the wiki page.
The screenshot functionality I use, have in mind, adds a Selenium dependency which I fear will be a bit too much to have in FitNesse itself. Adding screenshots is quite a powerful feature in my experience. I already have it in my BrowserTest fixture (invoked as
I have exception handling that takes a screenshot currently implemented with a custom 'fixture interaction' (https://github.com/fhoeben/hsac-fitnesse-fixtures/blob/master/src/main/java/nl/hsac/fitnesse/fixture/slim/web/BrowserTest.java), but this change will make it easier to implement and will remove the need for this customer fixture interaction (and the need to configure it in the wiki using a slim.flags variable).