• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JFCUnit

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am new to JFCunit and I am referring to the following link (LoginScreen example) and trying to set up my initial test case, but not able to proceed in the NamedComponentFinder whose finder object returns null for all the components in the container.
http://jfcunit.sourceforge.net


Please let me know if anyone has used this before and share some useful links or explain how the test cases mentioned in the above link works.

Thanks in advance!!
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd highly recommend using Jemmy instead of JFCUnit. Much easier to use.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ilja Preuss:
I'd highly recommend using Jemmy instead of JFCUnit. Much easier to use.


A friend of mine has been using UISpec4J and, coming from Jemmy and Abbot, seems to like it better than the others.
 
ram shyam
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!!
 
Opportunity is missed by most people because it is dressed in overalls and looks like work - Edison. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic