Hi,
I am hitting a problem with Narrative.
You see, we use to have a parent test class that would basically provide the same service that an actor do. So, I've now created actors that have those capabilities, and my test classes do not inherit from this parent class anymore.
One problem I have is the setting up of the tool and, especially the tear down.
You see, an actor needs to start things on the tool (the grid in my case). I can solve this by doing so at the first action. Not great, but it works for now as I only have one such action.
However, I also need to shutdown the grid, so that it is cleaned up for the next test. And I do not see a clean way of doing so.
One option I see is implement an @After method in my test class that would delegate to a tearDown() method in the actor. But there is no reason for this actor to be the one used in the last test (I have 2 actors in this test class), so I'd have to test for which actor has been used. Pretty ugly.
It seems to me that one idea in Narrative is that the environment ("tool") is attached to the actor. That breaks the setUp() / tearDown() paradigm we are used to under JUnit.
Thoughts?
Thanks,
Eric