Testing and Debugging Main
Articles:
- Cross-browser Web application testing made easy by Joshua Fruhlinger - [Clicks: 7]
"Test on multiple browsers" has been a mantra ever since there have been multiple browsers to test on. Testing them all-especially these days-is impossible. But you can come a lot closer than you may think. In this article, learn a variety of techniques for cross-browser testing, from the very thorough to the quick and dirty. The choice you make will depend on your resources, but this is an issue you can't ignore.
http://www.ibm.com/developerworks/web/library/wa-crossbrowser/index.html - Dec, 2007 - Doing TDD Well by Jeff Langr - [Clicks: 34]
The fundamentals of test-driven development can be learned in minutes. As with any discipline, TDD can take a career to master. Using these tips can help developers on this path to mastery.
http://www.developer.com/design/article.php/3711926 - Nov, 2007 - Iterative, Automated and Continuous Performance by Kirk Pepperdine - [Clicks: 8]
Iterative and continuous are terms that are often used in reference to testing of software. This new InfoQ article takes a look at whether the same concepts can be applied to performance tuning. Along the way topics such as tooling and mocks are discuss in regards to how they need to be adjusted for performance in respect to testing for functional requirements.
http://www.infoq.com/articles/iterative-continuous - Nov, 2007 - Testability and Design by Jeff Langr - [Clicks: 32]
How important is testing in software development? Explore the relationship between testability and design.
http://www.developer.com/design/article.php/3704376 - Oct, 2007 - Concurrency Testing in Java Applications by Frank Cohen - [Clicks: 11]
In this article, Frank Cohen describes methods for concurrency testing in Java applications and shows a technique to correlate what a Java application server is doing on the server side while a load test automation tool drives a test on the client side.
http://www.theserverside.com/tt/knowledgecenter/knowledgecenter.tss?l=ConcurrencyTestingJavaApps - Oct, 2007 - Testing Tips for When Unit Testing Is Too Hard by Laurent Ploix - [Clicks: 24]
Writing true unit tests is just too difficult in certain scenarios, but you don't have to dismiss testing all together. Here are some tips for making a practical compromise with (less unit-like) integration tests.
http://www.devx.com/DevX/Article/35535 - Sep, 2007 - Considering Test-After Development by Jeff Langr - [Clicks: 11]
Should you write tests first, or write the code first, and then write tests after? Explore the time it takes to develop the same solution using both techniques.
http://www.developer.com/design/article.php/3700446 - Sep, 2007 - In pursuit of code quality: Adventures in behavior-driven development by Andrew Glover - [Clicks: 5]
Test-driven development (TDD) is a great idea in practice, but some developers just can't get over the conceptual leap associated with that word test. In this article, Andrew Glover shows you a more natural way to integrate the momentum of TDD into your programming practice. Get started with behavior-driven development (BDD) (via JBehave) and see for yourself what happens when you focus on program behaviors, rather than outcomes.
http://www.ibm.com/developerworks/java/library/j-cq09187/index.html - Sep, 2007 - Mock Objects: Shortcomings and Use Cases by Alex Ruiz - [Clicks: 27]
Alex Ruiz shows how Mock Objects, a testing technique from the XP community, can help programmers write unit tests. He considers the shortcomings of this technique and provides valuable use cases.
http://dev2dev.bea.com/pub/a/2007/06/mock-shortcomings.html - Aug, 2007 - MockLib: Simulate APIs for Testing by Dean Hiller - [Clicks: 9]
Using MockLib, a tool that simulates entire APIs, you can unit test contracts or well-defined APIs and refactor whole components with very few changes to your tests.
[Includes sample code]
http://www.devx.com/Java/Article/34990 - Jul, 2007 - Squeezing More Guice from Your Tests with EasyMock by Dick Wall - [Clicks: 24]
See what EasyMock can do for you when coupled with Guice.
[Includes sample code]
http://www.developer.com/design/article.php/3688436 - Jul, 2007 - Unit-Testing XML by Stefan Bodewig - [Clicks: 8]
There are many occasions where software creates XML output: XML documents are used for data interchange between different applications, web application create (X)HTML output or respond to AJAX requests with XML, and this has to be tested as much as anything else. In this article, Stefan Bodewig explains how to perform those tests with the XMLUnit framework he has co-authored.
http://www.infoq.com/articles/xml-unit-test - Jun, 2007 - UISpec4J: Java GUI Testing Made Simple by Regis Medina, Pascal Pratmarty - [Clicks: 22]
GUI's are notoriously difficult to test, and the robot-based approach to automated testing makes agile development difficult, as you need finished GUIs before you can test. The UISpec4J project takes a different approach, and in this article Regis Medina and Pascal Pratmarty show how it works.
http://today.java.net/pub/a/today/2007/05/17/uispec4j-java-gui-testing-made-simple.html - May, 2007 - Code Coverage for Free: How to Use EMMA by Aleksey Shevchenko - [Clicks: 18]
How do you make sure that all of your code has been tested? How do you confirm that your test cases covered everything? The open source tool, EMMA, provides just what you need!
http://www.developer.com/lang/article.php/3678041 - May, 2007 - Embedded Integration Testing of Web Applications by Johannes Brodwall - [Clicks: 12]
Test first means, well, test first. But with web applications, there's a great deal of installation and configuration you have to do before you can even test. Couldn't that be slimmed down a bit, so developers can get testing sooner? Johannes Brodwall shows how to combine some popular pieces to create a simpler container for testing your web apps sooner.
[Includes source code]
http://today.java.net/pub/a/today/2007/04/12/embedded-integration-testing-of-web-applications.html - Apr, 2007 - Test-Driving a Java Command Line Application by Jeff Langr - [Clicks: 18]
Get a thorough understanding of testing by walking through the testing of various code samples to see how they are built.
http://www.developer.com/tech/article.php/3669436 - Apr, 2007 - Automation for the people: Continuous testing by Paul Duvall - [Clicks: 39]
Ready to step up to the plate and hit a home run with your developer testing activities? In this installment of Automation for the people, development automation expert Paul Duvall covers some of the various types of automated developer tests you can run with every source code change. Paul provides examples of Selenium, DbUnit, and JUnitPerf tests that can help you discover application problems early -- that is, if they're run often.
http://www-128.ibm.com/developerworks/java/library/j-ap03137/index.html - Mar, 2007 - Statement, Branch, and Path Coverage Testing in Java by Joe Ponczak - [Clicks: 3]
Even with unit tests approaching 100% coverage, critical logic errors could be hiding in your code. It is impossible to test every possible condition, but with a little analysis of the potential paths and a plan to test them, you can be much more confident in the quality of your tests.
http://www.onjava.com/pub/a/onjava/2007/03/02/statement-branch-and-path-coverage-testing-in-java.html - Mar, 2007 - Emma: After the Green Bar by Michael Easter - [Clicks: 54]
With the rise of agile methodologies such as Test-Driven Development (TDD) and landmark tools like JUnit, code coverage is gaining new traction. There are now coverage tools that strive for two goals: to simplify generation of project-wide statistics, and to establish code coverage as an integrated, "next step" in the iterative process of agile development. This article examines one such tool, Emma, and illustrates both the agile and project-wide aspects of modern, post-JUnit code coverage using a simple Java example.
http://www.ociweb.com/jnb/jnbFeb2007.html - Feb, 2007 - Automation for the people: Improving code with Eclipse plugins by Paul Duvall - [Clicks: 37]
What if you were able to discover potential problems in your code prior to building it? Interestingly enough, there are Eclipse plugins for tools such as JDepend and CheckStyle that can help you discover problems before they are manifested in software. In this installment of Automation for the people, automation expert Paul Duvall provides examples of installing, configuring, and using these static analysis plugins in Eclipse so that you can prevent problems early in the development life cycle.
http://www-128.ibm.com/developerworks/java/library/j-ap01117/index.html - Jan, 2007
[Top]
Books:- Test Driven. Practical TDD and Acceptance TDD for Java Developers by Lasse Koskela - [Clicks: 9]
Learning a new development technique such as test driven development (TDD) is a bit like learning to program. You study fundamental theories to understand what is going on, apply those theories to verify your understanding, and return to your textbooks to confirm how to handle less common situations. This book was written to help you do all this and more in your journey to becoming a craftsman practicing TDD. Test Driven is the first one-stop shop for Java developers wanting a comprehensive understanding of how to apply TDD methodology. This book will enable Java developers new to TDD to become seasoned test driven developers ready to tackle any Java or J2EE project. It takes you from basic theory to practical techniques to tool support and provides how-tos for applying TDD. It also covers acceptance test driven development (ATDD), which applies the ideas of TDD to the overall software development process, implementing features test-first. Java developers can use the book for getting started with TDD and ATDD, and afterwards for help in solving technical problems such as, “how can I test drive code that uses technology X?”
http://www.manning.com/koskela/ - Sep, 2007
[Top]