UISpec4J is an Open Source functional and unit testing framework for Swing-based Java applications, built on top of the JUnit test harness.
Questions tagged [uispec4j]
17 questions
3
votes
1 answer
UISpec4j, how to assert that a modal error dialog does not show?
I'm writing some functional tests for a Swing app with UISpec4j.
There are some fields to fill in, and a button for saving. Depending on the combination of fields filled in, there might be a modal error dialog displayed when the save button is…

Per
- 636
- 5
- 8
2
votes
0 answers
How to use UISpec4j
I have to automate a swing application.I created a sample swing application to know the functionality of the UISpec4j jar.I have written a small test to just enter the text in the text field and click the button.
The code that I wrote for testing is…

dithi
- 21
- 2
2
votes
1 answer
UISpec4J and external application
I am trying to launch an external application for testing using UISpec4J.
Here are the questions and their answers I referred so far:
How to automate a swing java web start application which runs clicking a link into a web application, which is…
user1578026
2
votes
1 answer
Unit testing issues with Javax Swing GUI application - suitable JDK 7 option?
I require to test an application which uses a Swing GUI interface. I have a client/server design and want to simulate client input (from the client's interface) and retrieve the server response.
So far I have looked into jfcUnit and UISpec4J for JDK…

user10941
- 31
- 3
1
vote
0 answers
UISpec4J tests clashes with other JUnit test cases
I have a bunch of JUnit test cases.
Recently, to test the GUI in my application I used UISpec4J APIs.
When I run the GUI tests alone there will be no problem.
But when I add the GUI tests to the test suite with holds the previous JUnit test cases,…

Athiruban
- 616
- 1
- 5
- 17
1
vote
2 answers
java.lang.UnsatisfiedLinkError when running uispec4j test case
I am getting the above error message (java.lang.UnsatisfiedLinkError) when running UISpec test case in Eclipse as well as IntelliJ.
I have sun/oracle JDK 1.7 installed.
The full report of the error is
> Exception in thread "main"…

Athiruban
- 616
- 1
- 5
- 17
1
vote
1 answer
ClassCastException using UISpec4j
I sometimes see the following stacktrace running tests built with UISpec4j
java.lang.ClassCastException: org.uispec4j.interception.toolkit.Empty$DummyGraphics2D cannot be cast to sun.java2d.SunGraphics2D
at…

Adam
- 35,919
- 9
- 100
- 137
1
vote
0 answers
UISpec4j for JNLP - Make window visible
I am trying to use UISpec4j and NetX to test JNLP. Got the solution from How to automate a swing java web start application which runs clicking a link into a web application, which is automated with Selenium WebDriver?
But I need to make the JNLP…

Prakash
- 11
- 1
1
vote
2 answers
UISpec4J - AbstractMethodError (UISpecToolkit.createKeyboardFocusManagerPeer)
I am building a simple Swing based Java application and would like to add some simple end-to-end tests. I have come across the UISpec4J library and imported it into my Maven project like this:
org.uispec4j
…

Dušan Rychnovský
- 11,699
- 8
- 41
- 65
1
vote
1 answer
UISpec4J Capturing modal dialog, before the trigger finish
I have some code where I'm showing up a dialog with two textboxes and two buttons (as OK, and Cancel, typical login window). The execution of the main code after the ".setVisible(true)" is conditioned to the values entered on that modal window.
The…

lqbweb
- 1,684
- 3
- 19
- 33
1
vote
1 answer
Default laf doesn't load
we run builds on server with solaris. After changing jre 1.6 to jre 1.7 the utility which run all tests start to throw an exception(sorry for my English):
[java] Exception in thread "main" java.lang.Error: Cannot load…

Maxim Ostrovsky
- 227
- 1
- 3
- 12
0
votes
1 answer
Getting all windows using UISpec4J
I am trying to use UISpec4J in order to automate a Java Swing application. After adapter setup:
setAdapter(new MainClassAdapter(Main.class, new String[0]));
I am trying to obtain the main window:
Window mainWindow = getMainWindow();
Instead of a…

Dmitry Bakaev
- 129
- 2
- 14
0
votes
1 answer
UISpec4J tests in Eclipse are not found
I am trying to run tests using the UISpec4J library, but Eclipse says it can not find them. I have tried restarting Eclipse, cleaning the project, etc.
The class gives no errors and I have followed the examples given on the website.
package…

Saffie
- 445
- 3
- 15
0
votes
1 answer
uispec4j testing application java
i have a little application, Phonebook, and i want test it.
i have some problem with uispec4j, i write this:
public class TestRubricaBlack extends UISpecTestCase{
@BeforeClass
public void setUp(){
setAdapter(new MainClassAdapter(Rubrica.class,…

Danilo C
- 5
- 3
0
votes
1 answer
Manually Dispatching a DocumentEvent for testing UI element validation code
I'm testing a Swing GUI application using the UISpec4J testing framework. I'm testing validation code on a JTextField, but the framework does not support focus-change events, as it runs the application in a headless fashion.
The text field has a…

Bassam
- 585
- 1
- 5
- 10