Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Rational Application Development certification prep, Part 6: Debugging and testing Java applications

Matthew Stobo (mstobo@us.ibm.com), IBM Senior IT Specialist, IBM
Matthew Stobo is a Senior IT Specialist for the IGS Sales Team--East supporting WebSphere Application Server. Previously he was a Senior Instructor with IBM IT Education Services, where he developed and taught courses across the Java and WebSphere curricula. He regularly trained employees of Fortune 500 companies, large banks, and various government agencies in the fundamentals of J2EE development using Rational Application Developer and the administration of WebSphere Application Server. He received his Masters of Information Technology Education from Dalhousie University.

Summary:  In this sixth in a series of seven tutorials created to help you prepare for the IBM Certification Test 255, Developing with IBM Rational Application Developer for WebSphere Software V6, learn how to debug and test components of a J2EE application using the Integrated Test Environment of Rational Application Developer and its built-in support for JUnit. Using breakpoints and other features of the Debug Perspective, step through Java code to find possible code breakers. Finish by mastering the art of creating JUnit TestCases and TestSuites and running them inside the development environment.

View more content in this series

Date:  11 Apr 2006
Level:  Intermediate PDF:  A4 and Letter (3398 KB | 65 pages)Get Adobe® Reader®

Activity:  7466 views
Comments:  

Before you start

About this series

Rational® Application Developer for WebSphere® Software is the IBM Software Development Platform that allows you to quickly design, develop, analyze, test, profile and deploy Web, Web services, Java™, J2EE, and portal applications. This series of seven tutorials helps you prepare to take the IBM certification Test 255, Developing with IBM Rational Application Developer for WebSphere Software V6 to become an IBM Certified Associate Developer. This certification targets entry level developers and is intended for new adopters of IBM Rational Web Developer or IBM Rational Application Developer for WebSphere Software V6.0, specifically professionals and students entering into Web development using IBM products.


About this tutorial

This tutorial is the sixth in the series designed to help you prepare for the IBM Certification Test 255: Developing with IBM Rational Application Developer for WebSphere Software V6. It focuses on debugging and testing components of a J2EE application using the Integrated Test Environment of Rational Application Developer and its built-in support for JUnit. It will ensure you understand how to set and manage breakpoints to allow you to step through and examine your code using the integrated debugger. You will also learn of a few other testing features such as the Scrapbook, which allows you to test snippets of code without needing a full class structure around them, and the built-in support for JUnit, which provides wizards for creating TestCases and TestSuites for unit testing. After you complete this tutorial, continue with the seventh and final tutorial in the series.


Objectives

By the end of this tutorial, you should have a good understanding of how to:

  • Manage breakpoints
  • Step through and examine Java code
  • View variables and execute, display, and inspect expressions
  • Create and run code in Scrapbook page
  • Perform JSP page debugging
  • Use step-by-step debugging
  • Locate and view WebSphere application server logs
  • Perform unit testing using JUnit

Prerequisites

The tutorial assumes that you have followed the certification series tutorial track and are already somewhat familiar with the development environment. If you are unfamiliar with the environment, or J2EE applications, review all the preceding tutorials before attempting this tutorial.


System requirements

To run the examples in this tutorial, install Rational Application Developer for WebSphere Software or Rational Web Developer for WebSphere Software. You can download a free trial version of Rational Application Developer for WebSphere Software if you don't already have a copy of it.

The hardware and software requirements for this software can be located at IBM Rational Application Developer System Requirements.


Key concepts

While you develop a simple J2EE application in this tutorial, doing so is not its focus. This tutorial assumes that you are already familiar with the development environment of Rational Application Developer, hereafter Application Developer. This tutorial focuses on debugging and testing components of a J2EE application using the Integrated Test Environment and Application Developer's built-in support for JUnit.

1 of 13 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Rational
ArticleID=107590
TutorialTitle=Rational Application Development certification prep, Part 6: Debugging and testing Java applications
publish-date=04112006
author1-email=mstobo@us.ibm.com
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Special offers