Before you start
Writing the code for an application is but the first stage in the long process required to deliver robust production-quality programs. Code must be tested to vet its operation and accuracy. Code must often be profiled to remove bottlenecks that impede performance and to remove wasteful or inadvertent use of resources, especially memory. Code must also be monitored -- to pinpoint failures, of course, but also to identify usage patterns, opportunities for further enhancement and optimization, and attempted and actual intrusions.
The Eclipse Test & Performance Tools Platform (TPTP) is a software architecture and several realized components (so far) that extend the Eclipse platform to include test, performance, and monitoring tools. This "Eclipse Test & Performance Tools Platform" tutorial series explores its capabilities. Part 1 demonstrates how to profile a Java™ technology application. Part 2 shows how to capture and transform arbitrary log files to the widely supported Common Base Events (CBE) format. Here in Part 3, find out how to manage application testing.
This third installment in the "Eclipse Test & Performance Tools Platform" tutorial series demonstrates how to use TPTP's testing features to measure the response time of your Web application, shows how to create and manage improved JUnit tests, and describes how to create computer-directed manual testing.
In this tutorial, you learn how to use the Eclipse TPTP testing features to measure the response time of your Web application. Then, you discover how to create and manage improved JUnit tests and learn how to create computer-directed manual testing.
You should have experience with software development and the entire software development life cycle. You should also have experience installing software from the command line, and know how to set and manage shell and system environment variables, such as the shell's
LD_LIBRARY_PATH variables, and the Java
CLASSPATH variable. Acquaintance with the Java programming language, the Eclipse integrated development environment (IDE), and the Eclipse user interface (UI) is advantageous, but not required.
You can run Eclipse on any system that offers or supports a Java Virtual Machine (JVM), which includes Solaris, Linux®, Mac OS X, and Microsoft® Windows®. If you haven't installed a JVM on your system, make sure you have at least 250 MB of free disk space for the Java software (in some cases, far less is required). The core Eclipse software and all the plug-ins used here consume another 50 MB.
In addition to disk space, you need enough free physical memory to run the JVM. In general, 64 MB or more is recommended for satisfactory performance.
Here's everything you need:
- Java technology, available from Sun Microsystems or from IBM. Download the latest update of the Java Runtime Environment (JRE) V1.5.
- Eclipse V3.2 IDE
- Eclipse TPTP Runtime V4.2.0
- Eclipse TPTP Testing Tools Runtime V4.2.0
- Eclipse TPTP Agent Controller
- Eclipse Modeling Framework (EMF) SDK V2.2
- Eclipse XML Schema Infoset Model (XSD) SDK V2.2
- Mozilla V1.7.8 or later Web browser
Note: Even if you already have a Web browser, if you want to use the computer-directed manual test suites, you must install Mozilla V1.7.8 or later because it includes UI components that the Eclipse TPTP manual testing tools use.