Running OCL tests
In this section, you will be running OCL tests. Open the file testlib.oclx in the OCL editor if you do not already
have it open.
- Select
numberOfAttributesC1 test in the Outline view.
- Select Run Test(s) from the context menu.

- The result of the test appears in the Outline view and the Package Explorer view.

In addition to running a test as described above you can also:
- Run all tests inside a project or library -
Select a project or library and run all the included tests with Run Test(s) from the context menu.
This command finds all tests inside a project or library and executes them.
- Run all tests inside an OCL tests section or user model -
Select an OCL tests section or user model in the Outline view and with Run Test(s) from the context menu
all included OCL tests will be executed.