Record Test Results

Enterprise Architect is able to automatically record all results from tests by a testing script in Enterprise Architect. In order to use this feature, you just 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 if they passed or failed as shown in the following illustration.


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. This can then be included in generated documentation and could resemble the following.

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>