Understanding Java Test Reports

Component Testing for Java

Test reports for Component Testing for Java are displayed in Test RealTime's Report Viewer.

The test report is a hierarchical summary report of the execution of a test node. Parts of the report that have Passed are displayed in green. Failed tests are shown in red.

Report Explorer

The Report Explorer displays each element of a Test Verdict report with a Passed or Failed symbol:

Test results are displayed in two parts:

Report Header

Each Test Verdict report contains a report header with:

Note   The total number counts the actual test elements, not the number of times each element was executed. For instance, if a test case is run 5 times, of which 2 runs have failed, it will be counted as one Failed test case.

Test Script

Each script is displayed with a metrics table containing the number of TestSuite, TestClass and derived test case encountered. In this section, statistics reflect the number of times an element occurs in a JUnit script.

Test Results

For each test case, this section presents a summary table of the test status. The table contains the number of times each verification was executed, failed and passed.

For instance, if a Test Case containing three assert functions is run twice, the reported number of executions will be six, the number of failed verifications will be two, and the number of passed verifications will be four.

The general status is calculated as follows:

 

Condition

Result

Status

A verification fails

Failed

All verifications pass on each execution

Passed

 

Related Topics

Understanding Java Component Testing UML Sequence DiagramsUsing the Report ViewerOpening a reportExporting reports