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
1
vote
1 answer

Run Jemmy Drag n Drop test on server

I have some Jemmy DragnDrop junit tests. Below are some line of my code Point p1 = SwingUtilities.convertPoint(portletOper.getUIComponent().getBasicComponent(), new Point(0, 0),…
Nghia Tran
  • 11
  • 1
1
vote
2 answers

jemmy3 status of development

While I was searching for Swing UI-testing tools I came across Jemmy. The new version, Jemmy 3 has very promising lookup methods, according to this tutorial . On the other hand, I found no installation tutorial, no distribution jar either. I cloned…
Tamas Rev
  • 7,008
  • 5
  • 32
  • 49
0
votes
2 answers

Launching more than one test in jemmy

How to launch more than one test class in Jemmy http://java.net/projects/jemmy. I try to use such code but it doesn't work. It launches only one test. public class Controller { public static void main(String[] args) { try { …
0
votes
0 answers

MongoDb Ubuntu 22.04 AMD X64 failed core=dumped status=ILL

How to install mongoDb in linux AMD x64. Is it possible? I've tried install different versions of mongodb. Tried install with .deb file from official website. I tried all commands from different sources step-by-step. If it is possible please write…
0
votes
2 answers

Is there a framework that allow to test specific parameters of Swing elements?

I would like to test some specific parameters of Swing objects (for example: Was border for JLabel painted correctly or not?). Is it possible with current frameworks? I would like to use something like Jemmy or UISpec4J and not recording/playing…
MaXal
  • 841
  • 2
  • 8
  • 23
0
votes
0 answers

Launching .exe with Jemmy

I am new to Jemmy. The first thing I am struggling is launching my Installer.exe file. I have googled around and couldn't find answers. I need a basic steps to launch the app and hook with it so that I can interact with AWT controls on the dialogs…
0
votes
1 answer

How do I pass arguments to Main Application Class using Jemmy in JRuby?

I'm automating a Swing GUI application using JRuby and Jemmy library. The application takes arguments when launching. I was able to launch the application from command line by passing the arguments after the Main Class name. Is there a way to do the…
Praveen P.
  • 38
  • 4
0
votes
1 answer

Can't select JCheckBoxMenuItem, components in context not recognized

I've started working in robot framework's swing library, gui testing a java application in swing. I have to select the jcheckboxmenuitem "waveMenu" from a jpopupmenu "menu" on a jtextarea "showText". Running the keyword: Select From Popup Menu …
0
votes
1 answer

How to use Container in find operation in Jemmy library?

Can anyone give explanation and an example of Container usage? E.g. I am trying to find JProgressBar, and all the find method has Container as the first param.: JProgressBar pb = JProgressBarOperator.findJProgressBar([Container cont]); I supposed…
Ivan Gerasimenko
  • 2,381
  • 3
  • 30
  • 46
0
votes
1 answer

How to get colour, font of java table row/cell/text with Jemmy?

Need to check colour/font style of java table (text, background) in swing application cause style of row should depend on a column value. It is possible to get colour of font and background of selected (cell/row): mainTable.selectCell(0, 0); String…
Ivan Gerasimenko
  • 2,381
  • 3
  • 30
  • 46
0
votes
1 answer

Jemmy strucked at clickMouse() when notification dialog with progressbar are displayed

During autotest execution (jemmy lib is used to interact with Java GUI elements) address data is entered and button 'Search for address' is pressed. At some addresses notification dialog with progressbar are displayed. Tried to set differenet…
Ivan Gerasimenko
  • 2,381
  • 3
  • 30
  • 46
0
votes
0 answers

Jemmy: call JButtonOperator.pushNoBlock()

Jemmy question: Does pushNoBlock() method of the class JButtonOperator really call the corresponting jButtonActionPerformed method of JButton, or it is just the GUI - click, without running into jButtonActionPerformed? It seems, it does not go into…
J J
  • 146
  • 2
  • 11
0
votes
1 answer

ClassNotFoundException with Jemmy Examples

I m trying to launch the jemmy examples from https://jemmy.java.net/tutorial.html and keep getting the ClassNotFoundExeption about the test- class, what is given in org.netbeans.jemmy.Test.main(String params). For example, with enter code…
Smer5
  • 96
  • 9
0
votes
1 answer

Can automated GUI test cases written for project without entry point (without main class)?

I am working on a project where there is no necessity of having an entry point (without a main class). I have been thinking about implementing few GUI test cases using FEST or Jemmy (using NetBeans IDE). Is it possible to automate GUI tests without…
0
votes
1 answer

Solution to NB JUnit auto-closing program after 6 minutes

I'm using NB JUnit with JUnit 4, Jelly Tools, and Jemmy. I have a pretty standard setup in the suite() function, following the tutorials provided. public static Test suite() { // run tests with specific configuration …
Devin Hurd
  • 318
  • 2
  • 6