Test « Development « Java Swing Q&A





1. What is the best testing tool for Swing-based applications?    stackoverflow.com

While we try to set up as many unit tests as time allows for our applications, I always find the amount of UI-level tests lacking. There are many options out there, ...

2. Automated tests for Java Swing GUIs    stackoverflow.com

What options are there for building automated tests for GUIs written in Java Swing? I'd like to test some GUIs which have been written using the NetBeans Swing GUI Builder, ...

3. How to test Netbeans 6.7 Plugin?    stackoverflow.com

I created a simple netbeans plugin (see this tutorial) and now i wanna test e.g. the Actionlistener. But how can this be done ? to be more specific

  • what test frameworks suit ...

4. AutoIt for Java    stackoverflow.com

I need to automate UI testing of a software that my module is plugged in. I do not have an access to code of the host so I need something like ...

5. which is the best java gui testing tool?    stackoverflow.com

I'm looking for a java gui testing tool in which tests can be created by recording my gui actions (buttons pressed, windows closed, etc.) A scripting mechanism for writing tests is ...

6. Resources with sample questions for testing knowledge about Java (collections, swing, etc)    stackoverflow.com

I need sites that provide a lot of sample questions about collections and generics and swing and etc. I have checked a lot but I couldn't find those sites. Can you ...

7. Unit testing a Swing component    stackoverflow.com

I am writing a TotalCommander-like application. I have a separate component for file list, and a model for it. Model support listeners and issues a notification for events like CurrentDirChanged etc. ...

8. Suppressing Swing Visibility    stackoverflow.com

I've been given a bunch of messy code and a short time limit (no surprises there) to write some tests for it. I have written tests! They are good tests. Unfortunately, instantiating ...

9. NetBeans Platform Application: How to create test environment for first automated end-to-end test through GUI?    stackoverflow.com

How to write first end-to-end automated test for NetBeans Platform Application on Java (not just capture & replay) which suppose run the application and test if click on the Main Menu ...





10. .NET GUI testing with JSystem    stackoverflow.com

Does somebody know a free tool, which can be easily integrated with jsystem to test .net based windows GUIs?

11. Has anybody used SIKULI for testing their GUI-based apps?    stackoverflow.com

SIKULI seems to have an enormous amount of potential. Has anybody tried to use this as a tool for testing? Or would it be better suited for automating actions ...

12. Performance Testing Swing application    stackoverflow.com

We have a Java Swing application which is basically a two tier application - An UI layer which connects to a database and which does some heavy-lifting across both the layers. ...

13. how to make gui test without displaying in FEST-SWING    stackoverflow.com

Hi guys In my final project,we are using FEST for gui testing, we have been persuaded fest is powerfull,but displaying of frames everytime is very waste of time ,Also we are ...

14. java gui testing    stackoverflow.com

in the java test I have :

package Tester.GUI.api
public class Test1{-----}
in the ".bat" :
<path to java> -classpath<all jar defined in the classpath separated by ";"> org.junit.runner.JUnitCore Tester.GUI.api.Test1
when I launch th ...

15. Unit testing framework for a Swing UI    stackoverflow.com

Testing UI is difficult. What do you think is the best unit testing framework for Swing?

16. Automated UAT/functional tests on Swing applications without source code    stackoverflow.com

Our team is now working on a big Swing application. Our job basically focuses on writing extensions to the existing framework. A typical job would be adding a new panel/ or ...





17. unit test for Java Swing application    stackoverflow.com

I'm looking to Unit Test a Swing application and was wondeing what would eb the best(easiest) approach to achieve this objective with almost full line coverage. If it matters, I'm using ...

18. Do Acceptance Testing of GUI actually show it when testing?    stackoverflow.com

When doing Acceptance Testings to the GUI, do tests to the GUI actually show the GUI (in a fraction of a second, I suppose) or are they just mock implementations? I'm ...

19. Java/Swing FEST test fails absurdly    stackoverflow.com

I have a test that sometimes fails on the requireSelected() call, and I can't figure out why.

public void testSimple() {
  JRadioButtonFixture fixture = getFixture();
  fixture.check();
  fixture.requireSelected().requireVisible();
}
I tried changing ...

20. Strategy for naming swing components    stackoverflow.com

In our Swing application, we are using an automated testing tool in QA (Qf-Test) that works better when the swing components are named. (calling Component.setName). Although their automatic name assignments work ...

21. Does WindowTester work for AWT UIs?    stackoverflow.com

I've just come across WindowTester, a JUnit GUI testing framework for "Swing, SWT and GWT". From reading the documentation, I can't work out if it also supports AWT. ...

22. Are there any good frameworks for automated testing of AWT GUIs?    stackoverflow.com

Are there any good frameworks for automated testing of AWT GUIs? Integration with JUnit would be a plus.

23. Griffon integration test or script that displays a griffon View    stackoverflow.com

When I create plane java Swing components like dialog boxes etc, it is very easy to make a unit test to display the Dialog. Basically, I can just create an ...

24. When is the right time to call robot.cleanUp()    stackoverflow.com

I'm using JUnit and FEST for Swing integration testing of our app that I start and stop, multiple times in the test case. Should @after include a call to robot.cleanUp()?

25. running java swing fest test when computer is locked    stackoverflow.com

Can the FEST-Swing (mentioned here) test still work if the computer is locked? I did a test, and it didn't work. I think the Swing doesn't paint ...

26. What is a good GUI tester?    stackoverflow.com

We need a tool to test a set of fairly complex Java applications. The applications are mostly independent client programs or applets communicating with a servlet or apache server at a ...

27. Please comment on a proposed application tester servlet    stackoverflow.com

While I am waiting on answers to set up a testing system, I'd like to hear your comments on a new architecture. Here goes, with a little background: I have had the ...

28. Multiple JUnit tests using FEST    stackoverflow.com

I've written several JUnit test methods to test my Java Swing GUI (using FEST). My class is in the following format:

public class Tests
{

    @BeforeClass
    public ...

29. FEST JUnit-Swing testing noobQ: how to test a main class?    stackoverflow.com

Despite reading the tutorial here, I cant seem to understand how to make FEST work with my application. I have a Swing application in a big class witht a main ...

30. Automated GUI Testing    stackoverflow.com

I am writing a Java Desktop Application (SWING) using Netbeans IDE 6.9. I want to do automated GUI testing. All I know about testing is JUnit tests which won't apply for ...

31. Eclipse & old awt application testing    stackoverflow.com

I have an old AWT/swing application. It was originally built on NetBeans, but I was told that 'stuff' was taken out. We now use Eclipse. I've gotten the ...

32. Use marathon as GUI test     stackoverflow.com

I use marathon for testing GUI and run it with own UI and work properly with this UI. I need to run it without own UI for example by shell ...

33. Swing UI Testing Library Comparisons: FEST, WindowTester Pro, etc    stackoverflow.com

I'm not trying duplicate questions such as this one: Unit testing framework for a Swing UI What I'd like to know is, does anyone have any good comparisons for the various Swing ...

34. Are there any sample GUI and FEST code that might help in understanding the framework?    stackoverflow.com

I have been reading a lot and looking at the code to understand how FEST works. Unforunately I could'n find that many sample code online other than: fest.codehaus.org/Getting+Started http://www.javaworld.com/javaworld/jw-07-2007/jw-07-fest.html http://www.slideshare.net/Softwarecentral/easy-gui-testing-with-fest If ...

35. Is there a framework that allow to test specific parameters of Swing elements?    stackoverflow.com

I would like to test some specific parameters of Swing objects (for example: Was border for JLabel painted correct or not?). Is it possible with current frameworks? I would like to ...

36. Is there some framework for testing GUI based on AWT?    stackoverflow.com

There is a lot of frameworks support testing Java GUI based on Swing but I can't find any open-source framework supporting AWT GUI testing. The framework should support script writing (not ...

37. How to start using Jemmy 3?    stackoverflow.com

I would like to use Jemmy v3 for GUI testing but I can't find any manual or user guide or even examples of using. I've found them only for Jemmy v2 ...

38. Spurious warnings when taking screen snapshots with FEST-Swing and JUnit    stackoverflow.com

I've asked about this on the FEST users mailing list but not got any response so I wonder if anyone here can help. I'm using FEST to test ...

39. how do I test app exit with jemmy    stackoverflow.com

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 ...

40. Using Abbot to test Netbeans project GUI    stackoverflow.com

I'm trying to use Abbot to produce a test script for my GUI in netbeans, but I don't know why it keeps displaying error with my Main class's main() method (ClassNotFoundException). All ...

41. Where can I find info about test gui in Seam?    community.jboss.org

Hi everybody, Im looking for some information or examples about how to test an gui in seam. I have searching arround on google but can't find anything. I hope someone can ...

42. Automation of GUI tests help (Jemmy)    forums.netbeans.org

Hi, I need to automate my GUI tests. I am using Jemmy. The same tests are written in swing, swt and rcp. 1) I could automate a test in swing. What ...

43. How to setup environment for first end-to-end test through GUI?    forums.netbeans.org

Code: ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.netbeans.paintapp.paint.PaintTest org.apache.maven.surefire.booter.SurefireExecutionException: org/netbeans/insane/scanner/Filter; nested exception is java.la ng.NoClassDefFoundError: org/netbeans/insane/scanner/Filter java.lang.NoClassDefFoundError: org/netbeans/insane/scanner/Filter at java.lang.Class.getDeclaredMethods0(Native ...

44. How to conditionalize GUI tests using Netbeans/Maven vs maven with CLI    forums.netbeans.org

I'd like to have a single project pom but have my GUI tests always run when I'm invoking JUnit on Netbeans (i.e. Run->Test File), but have them conditional (on an environment ...

45. [platform-dev] GUI testing    forums.netbeans.org

Hello, I'm wondering how NB IDE (as the primary user of NB platfomr) tests its UI? One simple test I'd like to test is fo instance that the application gets to the main window (launches), among many common ones (eg. click on all menu items and see if an exceptions is thrown). -- Regards, K. Gabriele --- unchanged since 20/9/10 --- ...

46. RCP dependency problem when launch GUI tests in Hudson CI    forums.netbeans.org

Hi everybody, I am a beginer with Hudson. I am facing a problem since 3 days and i still don't find any solutions. Well, I am developing a Netbeans RCP application and I work with the following environment : * Netbeans 7.0 * ant 1.8.1 * Version management tool : SVN (I dont know the version) * Hudson 2.1 running under ...

47. test    coderanch.com

48. automated GUI testing tools    coderanch.com

49. Unit testing for Swing App    coderanch.com

51. Method testing (timing in milliseconds)    coderanch.com

52. GUI Testing using marathon    coderanch.com

53. swing testing tools    coderanch.com

54. Minimum JDK version to test the codes in Desktop Java Live    coderanch.com

Hi Scott, I am starting a new thread, since I feel that this question might be useful for those who are interested in your book and it is essential to know this. I just would like to know which JDK version should be used to compile and run the codes available in the book. For the safe side, we could use ...

55. a message will appear after testing    coderanch.com

56. QFTestJUI Testing tool    coderanch.com

57. offline tests    coderanch.com

About the test, say, you take a IQ test offline. So you download something on your system and disconnect the internet and then start taking the test. It would have an option to resume later, and would note your start time and the time you hit resume later button. After some hours, you again open and hit resume. The time is ...

58. GUI Testing    coderanch.com

Hi. I'm trying to figure out a good way to test my UI. Specifically, I want to be able to do things like "5 seconds after I press this button, check that this panel turned black". Can anyone suggest a tool for doing such types of tests? My goal is to write as little code as possible because the people performing ...

61. GUI for Rational Test tool    coderanch.com

62. UI testing    coderanch.com

With JNI and the Windows' native call EnumWindows you can, but it's not a pleasant road to take. There's a reason I rewrote the application I used that call in into C#. If you know the window's location and you can use the Robot class to press on its title bar to activate it.

63. How should I test GUIs using Eclipse?    coderanch.com

Hello everyone, I'm learning how to use eclipse for Java programming. I want to make a GUI, and I'm trying to follow test-driven development, so I wrote a method to test a method that builds a GUI. Then I wrote a method to build a simple GUI. When I run the test method, should it actually make the GUI so I ...

64. A Framework for building/testing components    java-forums.org

Some recent posts have had problems organizing the outline of a program. To add yet another option, I'll include below the sort of framework I use for building/testing JComponents. Each source file has its own main() method and an enclosed class called TestFrame. The main method creates an instance of the JComponent and then an instance of TestFrame displaying that JComponent. ...

65. Performance Testing Tools    java-forums.org

66. Help with this Java test GUI?    java-forums.org

I am making a test for a geocache where if the user gets all the answers correct it outputs coordinates. I am trying to figure out how to make a little window where the question is displayed and there is a place to write your answer, nothing fancy. Here is the test: Java Code: import java.awt.*; import javax.swing.*; import java.util.Scanner; public ...

68. Testing an app with a GUI element    forums.oracle.com

69. open source project to automate tests cases for a gui based java app.?    forums.oracle.com

Presumably you mean GUI and not web. I have used AutoIt to drive GUI window applications. [http://www.autoitscript.com/autoit3/] Seemed pretty easy when I used it. It had a recorder. On windows I believe you can also use "script host" and the newer powershell but I have used those. You could also look at the java Robot class or whatever it is called. ...

70. Test Swing Application with SwingUnit    forums.oracle.com

71. Unit test Swing    forums.oracle.com

72. GUI Testing Issue    forums.oracle.com

I have some common questions about GUI testing. Please only answer if you work or worked with GUI tests. Of course there are diffent GUI types, like browser, SWING and SWT. My questions apply to all of them. I worked with QF Test for one year, testing Swing applications. But I was disappointed with that tool, mainly because of some basic ...