Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

Record Test Results

Enterprise Architect is able to automatically record all results from tests through a testing script in Enterprise Architect.




See also


In order to use this feature, you must reverse engineer the test Class into the Package containing your test script.

Once your model contains your test Class, on the next run of the test script Enterprise Architect adds Test Cases to the Class for each test method found; on this and all subsequent test runs all Test Cases are updated with the current run time and whether they passed or failed, as shown:

The error description for each failed test is added to any existing results for that Test Case, along with the current date and time.

Over time this provides a log of all test runs where each Test Case has failed, which can then be included in generated documentation, resembling this:

Failed at 05-Jul-2006 1:02:08 PM

expected: <0>

but was:  <1>

Failed at 28-Jun-2006 8:45:36 AM

expected: <0>

but was:  <2>

Run Unit Tests Set Up Unit Testing Importing Source Code