Hi,
Thanks for your reply.
I tried using Jemmy and again got struck up in the same point when I used JFCUnit, i.e, after opening the window to be tested, the control does not get into the find component logic.
Following is the code I had used -
=============================================================
import org.netbeans.jemmy.*;
import org.netbeans.jemmy.explorer.*;
import org.netbeans.jemmy.operators.*;
import com.telcotec.sagui.*;
public class JemmyDemo implements Scenario {
/**
* @param args
*/
public static void main(
String[] args) {
String[] params = {"JemmyDemo"};
org.netbeans.jemmy.Test.main(params);
}
public int runIt(Object param) {
try{
new ClassReference(<fully qualified class name of the login window>
.startApplication();
JFrameOperator mainFrame = new JFrameOperator("Log In");
new JButtonOperator(mainFrame, "Log In");
}
catch (Exception e)
{
e.printStackTrace();
return 1;
}
return 0;
}
}
====================================================================
Once the application is started and the login window is visible, the main frame is not identified within the default time limit specified and hence the test failed. Could you please let me know where I am going wrong in the above test case code?
Thanks in advance!!