File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

testing GUIs and multithreading

 
Jeff Langr
author
Ranch Hand
Posts: 799
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings J.B. and congrats on the book! I noticed the blurb at Manning didn't provide complete detail on the chapters, so I was wondering to what extent you cover the testing of user interfaces and multithreading ("much more" could indeed include these). And also, what your general philosophy (i.e. 2 sentences or less) is on each.

Thanks, and good luck with the book.

Jeff
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only book I remember containing advice on testing concurrency is "Unit Testing in Java: How Tests Drive the Code" - and the chapter basically concluded that unit testing isn't an effective way to ensure proper use of multithreading. (It's likely that the chapter will be dropped from the second edition...)

Regarding UI testing, "JUnit Recipes" contains a whole chapter on "Testing web components". For testing Swing UIs, I only know of the above mentioned "Unit Testing in Java" and "Test-driven Development: A Practical Guide" which handle this topic.
 
J. B. Rainsberger
author
Ranch Hand
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Jeff. I enjoyed your "Essential Java Style" a great deal, so it's an honor to receive your praise.

Multithreading was in the original plan, but was cut due to time. Moreover, I am a novice at multithreaded programming, so I felt uncomfortable writing about the subject. Scott Stirling would have contributed those recipes, had he had more time to devote to the project.

As for GUI, I felt that there was no need to duplicate Dave Astels' work in _Test-Driven Development: A Practical Guide_, which says more than I ever could about testing and test-driving Swing UIs.

If you meant web UI, then _JUnit Recipes_ covers that pretty well.
 
C Kutler
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am just learning about JUnit. I happen to be working on a JavaHelp viewer and would like to devise JUnit tests for this viewer, but so far all I have read about JUnit doesn't go into testing GUIs.

Does anyone have any specific advice on how to get started?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might get some useful pointers from http://c2.com/cgi/wiki?TestFirstUserInterfaces.
Also, Dave Astel's TDD book discusses TDD'ing a Swing application from scratch using Jemmy. JFCUnit might also be of interest to you.
 
Surasak Leenapongpanit
Ranch Hand
Posts: 341
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From book "Unit Testing in Java", you can download GUI Testing Chapter.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic