Hi Victor,
How are you starting jbehave and your app ?
Did you try to get your app started and stopped in a jbehave steps
methods?
"Given that my swing app is running ok"...
"When user clicks on close buttons"...
Or you could use @BeforeStory @AfterStory to do so....
Cheers
Cristiano Gavião
Victor Moura escreveu:
Hi,
I'm trying to write acceptance tests using JBehave with Jemmy to
control and verify the state of Swing components.
The problem I'm having is simple. After a scenario is finished I need
to close the application in order to clear everything that remains in
the background, like Singletons. This is done so that when the next
scenario runs, he gets a clean environment with no previous objects in
memory.
The thing is, I can't just simply close the application, because when
I do that, I'm closing the JVM (and JBehave) with it.
So, is there something I can do like running two separate JVMs or some
mechanism that enables me to close my application and still keep
JBehave running?
Thanks
--
Victor Moura Cortez
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email