Is there a way to attach a FEST test to a previously started Application instead of starting the application from the test?
I'm asking this because Squish for example can do this. I couldn't find anything similar for FEST.
This question comes from the point of view of an application that takes a lot to login. I know for running the tests I can just login once in BeforeClass or when I run the tests from Ant/Maven but I think it would be really nice to be able to attach to an Application, especially when debugging a test.
I thought of creating a lib that does this through some kind of communication, RMI for example. Have an empty test that just starts your application and waits for a connection and the actual test that connects and sends all the commands. The problem I see is that there are too many things that need to be proxied and probably a lot of Objects that cannot be serialized and need workarounds.
Any opinions on this?
First of all you should use AssertJ Swing; FEST is outdated and not maintained anymore. But since AssertJ Swing shares a similar syntax, the transition will be easy.
Unfortunately there is no (afais) way to do that easily..
Since a Robot is created with either an existing or a new component hierarchy it gives you a hint that at least the application and the test should run in the same JVM. I think this is not what you're looking for?