I have a tricky one here.
We have this huge Desktop-like WebStart application in our company and now we are trying to create automated tests for it. Since our applications GUI is not fully implemented using Swing or AWT we have trouble to test it using tools like JUnit, Jelly, UISpec4J and friends, because we can't interact with some objects like Tracks and Curves. We need to use something like Selenium, only for Swing.
The problem is that to start an automated test in Costello you need a JFrame class with a main method. But what we have is a WebStart app that starts like this:
$ javaws app.jnlp
Is there a way to load this program into a JFrame programatically ?! Something like this.
public class JNLPWindowLoaded extends JFrame{
public JNLPWindowLoaded(String jnlpPath){
//start the app here and load it into this class
}
public static void main(String args[]){
new JNLPWindowLoaded("/home/kirill/test.jnlp");
}
}
Please give me some light over here!