Java Software Testing
Java programmers use a variety of tools and methods to test their applets and applications to ensure that they are robust, bug-free and function as expected.
-
JDB
-
The JDB is the Java Debugger and it is the primary tool used for finding and fixing bugs in a Java program. It allows the programmer to define break points where he can stop and inspect the state of the program. Integrated Development Environments (IDEs) like Netbeans and Eclipse provide a user-friendly interface for this tool.
JUnit
-
JUnit is a testing framework that allows programmers to write automated testing scripts in Java for each part of a program.
-
Profilers
-
There are a variety of free and commercial Java profilers. These are tools that run a Java program and analyze its performance, printing out a report for the programmer on the CPU time taken by each method, the memory consumed at different parts of the runtime and other performance-related information.
Logging
-
By default, Java makes it easy to print to the command prompt using the "System.out.writeln" command, but most programmers depend on a more sophisticated logging tool designed to keep orderly and easy-to-dissect log files about the inner state of a program to help a programmer determine what was happening when a bug occurred.
JConsole
-
JConsole is a graphical user interface that allows a programmer to inspect the state of the entire Java Virtual Machine and monitor applications.
-