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

Prev Next

Test Scripts

These sections explain how to configure the 'Test' page of an Analyzer Script for performing unit testing on your code. Most users will apply this to NUnit and JUnit test scenarios. Enterprise Architect accepts the output from these systems and can automatically add to and manage each unit test case history. To view the case history, you would press Alt+3 while selecting the test case Class element.


On the Execution Analyzer window, either:

  • Locate and double-click on the required script and select the 'Test > Test' page    or
  • Click on in the window Toolbar and select the 'Test > Test' page


Execute > Analyze > Analyzer Scripts

Context Menu

Project Browser | Right-click on Package | Execution Analyzer

Keyboard Shortcuts





See also

Execute Command As:


Enter the path to a program or batch file to run, followed by any parameters.

Batch File

When using this option you can enter multiple commands which are then executed as a single script in a command console; you have access to any environment variables available in a standard command console.



     "C:\Program Files\NUnit\bin\nunit-console.exe" "bin\debug\Calculator.exe"


     java junit.textui.Testrunner %N

The command listed in this field is executed as if from the command prompt; as a result, if the executable path or any arguments contain spaces, they must be surrounded in quotes.

If you include the string %N in your test script it is replaced by the fully namespace-qualified name of the currently selected Class when the script is executed.

Default Directory

Preset to the Build default directory.

Add Commands

Parse Output

When a parser is selected, output of nUnit and jUnit tests can be parsed, saved and managed from the model; (Alt+3). Be aware that output is only captured when a parser is selected.

Locate Compiler Errors in Code

Build First

Select to ensure that the Package is compiled each time you run the test.

Learn more