New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add interceptor support to Slim's MethodExecutor #724
Add interceptor support to Slim's MethodExecutor #724
Conversation
Hi Fried, 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). |
Add interceptor support to Slim's MethodExecutor
Adds the option for a Java Slim fixture to 'intercept' all calls made to it by Slim, by implementing
fitnesse.slim.fixtureInteraction.InteractionAwareFixture
.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