Previous Topic: Testing an External Function

Next Topic: Comparing Versions

Testing Messages and Internal Functions

To implement and test an internal function or message, it must be used by an external function. However, only current versions are used by other model objects. Making a version current before testing it can cause unexpected results. To test an internal function or message, follow these steps:

  1. Make a copy of the version using the Copy option on the Edit Model Object List panel. This creates a separate function (FUN) or message (MSG).
  2. Use CA 2E's impact analysis tools to identify the external functions that use the existing current version of the internal model object.
  3. Create a version of one (or more) of the using external functions.
  4. Change the action diagram of the version of the using external functions to see the new copy of the internal model object.
  5. Test the changes using the Call a Program (Y2CALL) command to execute the version of the using external function. You can also invoke the Y2CALL command using option 16 on the Edit Model Object List, the Display Model Usages, and Display Model References panels.
  6. When you are satisfied with your changes, make the version of the internal function or message current. Also, delete the copy of the internal function or message and the version of the external function.