Home

 

Test perspective

The Test perspective provides a framework for defining and executing test cases and test suites. Note that the focus here is on running the tests and examining the results rather than building the code contained in JUnit tests. Building JUnit tests involves writing sometimes complex Java code and is best done in the Java perspective.

The following views are important when working in this perspective:

Test Navigator view-The main navigator view for browsing and editing test suites and reviewing test results. It has two main options to structure the display of these resources. The Show the resource test navigator () option shows the resources based on the file system, with the test suites displayed at the bottom. The Show the logical test navigator () option shows the resources arranged by test suites, source code, and test results.

Test Log view-If the user clicks on a test result, this view is shown in the main editor area showing the date/time and result of the test.

Test editor-This shows a summary of a test suite and its contained tests.

The Tasks, Properties, and Outline views are also present and useful when working in the Test perspective. These have already been covered in this chapter.

Figure 4-25 Test perspective

More information about Component Testing is located in Chapter | 3, Testing using JUnit.

ibm.com/redbooks