cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Jemmy Module - Samples

To run any sample you should download Jemmy first.

Samples using GUIBrowser application

Run commands:
javac -classpath "jemmy_classes_location" "sample_name".java and
java -classpath "jemmy_classes_location" "sample_name"

All samples use the GUI browser application as an example of an application to be tested.

If it's unclear what the sample does, you can run the application:
java -classpath jemmy_classes_location org.netbeans.jemmy.explorer.GUIBrowser
and repeat the test manually.

WaitWindowSample.java - How to find a frame.

WaitDialogSample.java - How to find a dialog.

FindComponentsSample.java - How to find components.

ActionsSample.java - Shows some actions.

ResourceSample.java, resourcesample.txt - The way to keep string resources.

TableActionsSample.java - Some examples show how to use JTableOperator.

TreeActionsSample.java - Some examples show how to use JTreeOperator.

QueueUsingSample.java - Simple example shows how to treat the event queue from a test.

ModalDialogSample.java - What nonblocking methods are used for.

GrabImageAndXMLSample.java - Tools to help find the cause of a failure.

Sample in JUnit format

RunnerTest test actually tests junit.swingui.TestRunner class checking how it treats MyTest

To run :
1. Download junit.
2. Download jemmy.
3. Add junit.jar and jemmy.jar to classpath.
4. Compile MyTest.java and RunnerTest.java
5. Run java junit.textui.TestRunner RunnerTest.
Companion
Projects:
MySQL Database Server   GlassFish Community: an Open Source Application Server   Open Solaris  Open JDK: an Open SourceJDK   Mobile & Embedded Community     Sponsored by 
Sponsored by Sun Microsystems