Questions tagged [jemmy]

Jemmy is a set of libraries and tools to test UI applications (mostly Java-based: Swing, AWT, SWT, JavaFX)

Jemmy is a set of libraries and tools to test UI applications (mostly Java-based: Swing, AWT, SWT, JavaFX; but it's being extended to native right now).

Jemmy site is here: http://jemmy.java.net/

Jemmy provides capabilites to work with UI elements and controls in high-level terms: e.g. not clicking on TextField and enter text, but use Lookup to find required field by various criteria, and work with provided interfaces for each entity -- like Selectable, Editable, etc. Also Jemmy provides methods to correctly work with UI threads, which requires special attention in UI testing. Another remarkable feature is images support. Jemmy allows to safely create screenshots, compare them with various comparators and calculate images diffs.

Latest addition is JemmyFX which covers JavaFX. It is a part of OpenJFX (open-sourced part of JavaFX): http://hg.openjdk.java.net/openjfx/2.1/master/tests/ or for javafx 8.0: http://hg.openjdk.java.net/openjfx/8/master/tests/

31 questions
16
votes
3 answers

Testing java web start application using jemmy

I need to create some gui tests using Jemmy but I have no idea how to launch it with javaws application. In tutorials/examples/etc is something like that: new ClassReference("org.netbeans.jemmy.explorer.GUIBrowser") …
mlethys
  • 436
  • 9
  • 29
6
votes
1 answer

How to start using Jemmy 3?

I would like to use Jemmy v3 for GUI testing but I can't find any manual or user guide or even an examples of using it. I've found documentation only for Jemmy v2 and it looks like the library was completely rewritten and redesigned. In Jemmy v2 I…
MaXal
  • 841
  • 2
  • 8
  • 23
6
votes
1 answer

Testing multiple JavaFX components using JemmyFX

I am working on a fairly large project which includes a set of custom JavaFX components. For each custom component which is meant to be reused, I have started to write a set of automated tests using JemmyFX and JUnit. During development, I run these…
Hans
  • 2,448
  • 2
  • 24
  • 30
3
votes
0 answers

TestNg cannot proceed to next test method when one Jemmy test is completed

I am using Jemmy in TestNg to test a Java swing application But when my first test method completes execution, my application closes down and in eclipse console the execution is stopped but in TestNg runs tab the test run is not completed but it…
Jay
  • 31
  • 2
3
votes
1 answer

Cannot Build JemmyFX

I'm trying to create a Maven project that includes all the Jemmy modules (Jemmy Core, Glass Image, Glass Robot, JemmyFx and JemmyFX browser) because when I tried to build following these instructions here it fails telling me that the JAR files are…
D-Dᴙum
  • 7,689
  • 8
  • 58
  • 97
3
votes
2 answers

Jemmy drag and drop blocks until mouse manually moved

I have a TableView with four rows and I try to test that my drag and drop implementation works. I have the following test: TableViewDock table = ...; //the four rows, using the first cell for the DnD TableCellItemDock[] rows = {new…
assylias
  • 321,522
  • 82
  • 660
  • 783
2
votes
1 answer

Running swing with UI being invisible

I work on a swing based application and we use jemmy to write automated tests for the application. The problem is that we have a lot of tests and running them takes a lot of time. One of the bottleneck is that the test brings up the UI and then…
2
votes
3 answers

How to write Jemmy unit tests?

I'm searching for a good tool for writing regression tests for our Java Swing GUI. I found jemmy2 and I'm really satisfied with it. There is one little drawback though: As the jemmy examples show, I have to write each test class as an…
Tamas Rev
  • 7,008
  • 5
  • 32
  • 49
1
vote
2 answers

how do I test app exit with jemmy

I use Jemmy for Java GUI testing. Is it possible to test closing application? Currently I simulate a click on the exit button (causing System.exit(0)) and the test fails: junit.framework.AssertionFailedError: Forked Java VM exited abnormally.…
anagaf
  • 2,120
  • 1
  • 18
  • 15
1
vote
0 answers

Jemmy FX test not working when GUI is minimized or system locked

I have created a simple JAVA FX application and trying to test the application using JEMMYFX. Using scene dock to get the current scene and trying to get the GUI Components but it is working only when the user is not disturbed and it is failed when…
1
vote
1 answer

Is there any maximum limit for ActionProducer.MaxActionTime in Jemmy lib?

As it is described on http://wiki.netbeans.org/Jemmy_Operators_Environment default time for ActionProducer.MaxActionTime is 10000 ms. I need to increase it to 120000 ms and use next…
Ivan Gerasimenko
  • 2,381
  • 3
  • 30
  • 46
1
vote
0 answers

How to use JemmyFX from Jython?

I am exploring the possibility of using JemmyFX from Jython by attempting to port tests/bigapps/EnsembleTest to Jython. But, I have encountered an obstacle. I expect to be able to replace this Java code: TextInputControlDock searchField = new…
davidrmcharles
  • 1,923
  • 2
  • 20
  • 33
1
vote
1 answer

How to get started with Jemmy v2

I want to learn how to test Java Swing user-interfaces and would like to try Jemmy v2. When trying to follow the instructions on http://jemmy.java.net/tutorial.html I ran into trouble. I created a new project currently consisting of only the…
Nico
  • 15
  • 1
  • 5
1
vote
1 answer

JemmmyFX in Event mode

I want to use JemmyFx for testing JavaFx applications. In Jemmyv2, we were able to start Jemmy in either event or robot-mode. However, it seems that only Robot mode is available in Jemmy3. I tried looking into the source code, especially that of…
1
vote
2 answers

Text representation of the content of a TableView

For testing purposes (using JemmyFX), I want to check that the content of a TableView is appropriately formatted. For example: one column is of type Double and a cell factory has been applied to show the number as a percent: 20%. How can I verify…
assylias
  • 321,522
  • 82
  • 660
  • 783
1
2 3