Record Test Results

Return to Introduction  Previous page  Next page

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 below.


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>

See Also