Testing and Debugging Main

View: [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 ]

Articles
Presentations
  

Articles:
  • Add Zing to your unit tests by Tanmay Ambre, Abhijeet Kesarkar   - [Clicks: 16]
    Unit testing has become an inseparable part of the software development lifecycle. Many open source tools and frameworks assist developers in writing unit tests. However, little has been done to help developers write generic test cases, reduce coding effort, and generate maintainable unit test cases. Generally, developers write numerous test methods to test different data scenarios for a given method. They also must handle database states before every unit test case runs to ensure consistency in test results. Creating a test framework that facilitates the writing of generic and configurable unit test cases and also integrates with multiple open source testing tools and frameworks can solve these issues. This article discusses how to create such a test framework.
    [Includes source code]
    http://www.javaworld.com/javaworld/jw-12-2005/jw-1219-unittest.html - Dec, 2005
  • The Framework for Integrated Tests (Fit) by Mario Aquino   - [Clicks: 15]
    Every few years, someone in the tools and practices community has a great idea for improving the process of software development; one that is important enough for anyone with a role in software development to stop and take notice. Fit (Framework for Integrated Tests - http://fit.c2.com) is a tool for expressing application acceptance tests using tables, and one that solves a fundamental need in software development: capturing business rules in an easily accessible and executable form.
    http://www.ociweb.com/jnb/jnbDec2005.html - Dec, 2005
  • Don't sweat unit tests by Graham King   - [Clicks: 22]
    By hiding the services your code depends on behind interfaces and using jMock to mock out those interfaces, you can unit test anything. In this article, Graham King shows how to build a simple example application by testing first. He starts with simple, easy-to-test methods, then progresses to ones that require external infrastructure support. He shows how working with interfaces and using mock objects makes testing easy.
    [Includes source code]
    http://www.javaworld.com/javaworld/jw-11-2005/jw-1107-testing.html - Nov, 2005
  • Streamlining Your EJB Tests With MockEJB by Eoin Woods, Alexander Ananiev   - [Clicks: 37]
    Test-driven development is important, and testing EJBs has been notoriously cumbersome. In this article, Eoin Woods and Alexander Ananiev change all this by introducing the MockEJB framework, which facilitates easy, out-of-container EJB testing.
    http://dev2dev.bea.com/pub/a/2005/10/mock_ejbs.html - Oct, 2005
  • Container-free Testing with Mockrunner by Bob McCune   - [Clicks: 29]
    Unit testing is an essential practice for anyone seeking to develop better-designed, higher quality software. Testing the individual objects that make up your system provides you with a much higher degree of confidence in both the design and general quality of the application. However, testing objects in isolation often presents some unique challenges as few useful objects operate independently of others. The challenges are even greater in the context of a J2EE application where the container manages many of the collaborating objects. This article will look at the use of mock objects and the Mockrunner testing framework as a means of overcoming many of these challenges.
    [Includes sample code]
    http://today.java.net/pub/a/today/2005/09/13/container-free-testing-with-mockrunner.html - Sep, 2005
  • Approaches to Performance Testing by Matt Maccaux   - [Clicks: 46]
    There are many different ways to go about performance testing enterprise applications, some of them more difficult than others. The type of performance testing you will do depends on what type of results you want to achieve. For example, for repeatability, benchmark testing is the best methodology. However, to test the upper limits of the system from the perspective of concurrent user load, capacity planning tests should be used. This article discusses the differences and examines various ways to go about setting up and running these performance tests.
    http://dev2dev.bea.com/pub/a/2005/09/performance_testing.html - Sep, 2005
  • Mock Objects and Distributed Testing by Brian Gilstrap   - [Clicks: 35]
    In recent years, the development community has found unit testing (especially automated unit testing), invaluable in building reliable software. Mock objects have been a key technique for enabling automated unit testing of object-oriented software. However, when we expand the scope of testing into the realm of distributed systems, unique problems arise from the increased complexity. In this article we will briefly review mock objects. We will then discuss some of the problems that arise when extending the use of mock objects to distributed systems and some approaches that can help in managing the complexity.
    http://www.ociweb.com/jnb/jnbAug2005.html - Aug, 2005
  • Testing 1, 2, 3 . . . by Phil Zoio   - [Clicks: 113]
    This article delineates best practices that can help you get the most out of your database testing environment and can ensure that your applications are robust and resilient. The primary focus of the article is on J2EE applications interfacing with Oracle Database through JDBC or Oracle TopLink, although the concepts also apply to applications written for other application environments, such as .NET. The scope of the article is restricted to functional testing and does not encompass performance or load testing.
    http://www.oracle.com/technology/oramag/oracle/05-jul/o45testing.html - Jul, 2005
  • Using Assertions in Java Technology by Qusay H. Mahmoud   - [Clicks: 51]
    The new assertion facility in J2SE 1.4 (and later versions) provides a unified support for assertions in Java technology as well as a convenient way for developers both to turn assertions on and off as needed and to abort Java programs while printing a message that states where in the program he error was detected.
    http://java.sun.com/developer/technicalArticles/JavaLP/assertions/ - Jun, 2005
  • Tuning Your Stress Test Harness by Kirk Pepperdine   - [Clicks: 33]
    In this article, Kirk Pepperdine walks through some issues that might cause your test harness to create incorrect or misleading results when testing for performance in your applications.
    http://www.theserverside.com/articles/article.tss?l=StressTest - Jun, 2005
  • Create test cases for Web applications by Amit Tuli   - [Clicks: 60]
    Looking for a way to apply automated testing techniques to Web development? Look no further. jWebUnit, which plugs easily into most Java IDEs, is an open source framework for creating test cases for Web applications. Software engineer Amit Tuli introduces jWebUnit by using a sample application to describe a step-by-step approach for generating concise test cases.
    [Includes sample code]
    http://www-128.ibm.com/developerworks/java/library/j-jwebunit/index.html - May, 2005
  • Measure test coverage with Cobertura by Elliotte Harold   - [Clicks: 40]
    Cobertura is an open source tool that measures test coverage by instrumenting a code base and watching which lines of code are and are not executed as the test suite runs. In addition to identifying untested code and locating bugs, Cobertura can optimize code by flagging dead, unreachable code and can provide insights into how an API operates in practice. Elliotte Rusty Harold shares how you can take advantage of Cobertura using code-coverage best practices.
    http://www-128.ibm.com/developerworks/library/j-cobertura/ - May, 2005
  • Deliver Your Code with Confidence Using Test-driven Development by Samudra Gupta   - [Clicks: 17]
    Traditional software development methodologies incorporate a fairly long life cycle in coding, testing, and deployment. But test-driven development (TDD) is a new software development process that turns the traditional processes around by promoting writing tests before writing the functional code. This article examines what test-driven development is all about and explores how to effectively use it within a project.
    http://javaboutique.internet.com/tutorials/tdd/index.html - Apr, 2005
  • Should we be doing more automated testing? by Ben Teese   - [Clicks: 13]
    To help developers decide whether they should be doing more automated testing, Ben Teese presents two questions in this article: Are developers being realistic about the testing they will complete on their applications? And when does automatic testing make sense for their applications?
    http://www.javaworld.com/javaworld/jw-03-2005/jw-0307-testing.html - Mar, 2005
  • Step 10: Conquering the Breakpoint by Satadip Dutta   - [Clicks: 4]
    Learn programmatic mechanisms for debugging Java applications and how to use stack trace information to uncover the root cause of bugs.
    [Mastering J2EE Application Development Series]
    http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk10.html - Feb, 2005
  • Classworking toolkit: Cover your code with Hansel and Gretel by Dennis M. Sosnoski   - [Clicks: 22]
    Unit tests provide a great technique for making sure that code performs to specifications. But the quality of unit tests is up to the test writer, and the results from unit tests are only as good as the quality of the tests. How can you make sure your unit tests deliver the quality you need? In the first article of this new series dedicated to classworking tools, regular developerWorks contributor Dennis Sosnoski discusses how code coverage tools provide one important quality check for your tests.
    http://www-106.ibm.com/developerworks/java/library/j-cwt02095/ - Feb, 2005
  • Tackle Java server capacity problems by Ivan Small   - [Clicks: 19]
    Improving Java server capacity requires simulating the server under load. Creating a simulation, collecting data, and analyzing the results can prove challenging to many developers. This article's simple concrete example introduces the concepts and tools of performance analysis for Java servers. Author Ivan Small then uses this example to study the effects of excessive request-time memory usage and synchronization contention.
    http://www.javaworld.com/javaworld/jw-02-2005/jw-0207-server.html - Feb, 2005
  • Test-Driven Development for Servlets by Thomas Hammell   - [Clicks: 27]
    Develop servlets faster with fewer bugs. What more could you want?
    [Includes source code]
    http://www.developer.com/java/ent/article.php/3456691 - Jan, 2005
  • Mock Objects in Unit Tests by Lu Jian   - [Clicks: 40]
    Lu Jian shows how to use the Mocquer to create mock objects from real classes for use in unit testing.
    [Includes sample code]
    http://www.onjava.com/pub/a/onjava/2005/01/12/mocquer.html - Jan, 2005

[Top]

Presentations:
  • Monitoring, Profiling, and Stress Testing with Open Source by Greg Hinkle   - [Clicks: 478]
    This session will visit the available open source tools for monitoring, profiling, and performance tunning applications. Tools such as Nagios, JMeter, MC4J and P6Spy will be discussed and techniques will be presented for understanding your application's execution behavior. The use of profilers for tuning, optimization and hot spot detection will be approached with demonstrations of open source profilers. Additional runtime profilers, including proxying and aspect oriented monitors will also be explained. The goal of this presentation will be to provide an understanding of important factors to the performance and reliability of your applications along with the free and open source tools you can use to create enterprise quality.
    http://chariotsolutions.com/slides/osconf2005-monitoring-profiling.pdf - Mar, 2005 - (PDF)

[Top]