Could you use Robot in your Steps in order to exercise the Swing
application?

[1]http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Robot.html

Brian


----- Original message -----
From: "Victor Moura" <[email protected]>
To: [email protected]
Date: Fri, 21 May 2010 11:25:03 -0300
Subject: [jbehave-user] JBehave and JVM
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

References

1. http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Robot.html
---
Brian Repko
LearnThinkCode, Inc.
email: [email protected]
phone: +1 612 229 6779

Reply via email to