![]() |
![]() |
![]() |
![]() |
![]() |
Exporting and Importing
In the following examples, you will use the menu choices Convert to MP in the Browser and Convert to GR in the Organizer for exporting and importing TTCN-MP documents from and to the TTCN Suite. However, you can also use Save As in the TTCN Suite for changing the document format. In addition, TTCN-MP documents may be opened directly in the TTCN Suite.
What You Will Learn
Exporting a Test Suite to MP Format
You shall now convert the test suite to TTCN-MP format:
- Select the directory path in the Directories box.
- Type the file name that you wish the exported file to be called. In this example the file name is Example_suite.mp.
- Click Convert to export the test suite.
Importing a Test Suite from MP Format
Your next task is to import the TTCN-MP file that you have just exported. Do not close the existing open test suite - you need that later.
- Select Convert TTCN MP to TTCN GR.
- Click the folder icon of the Source MP file name field. The Select Source MP file dialog is opened.
- Click the file that you want to convert, when you have found it in the Files list. In this case the file is Example_suite.mp.
- Click OK.
- Click the folder icon of the Destination directory for generated TTCN GR field. The Select Destination Directory dialog is opened.
- Select the destination directory, i.e. where you want the converted document to be saved.
- Click OK.
- Click the Convert button in the Convert to GR dialog.
You can open and work with MP-files just as you do with GR-files. All conversions to and from MP will then be done transparently.
- Select the TTCN Test Specification chapter in the Organizer.
- Select Add Existing in the Edit menu in the Organizer. The Add Existing dialog is opened.
- Select the file that you just converted (Example_suite.itex) and click OK.
- Make sure that the Show in editor option is selected.
- Click Add.
- In the Browser, rename this test suite as Example_B.
- Expand the entire test suite.
- Analyze the entire test suite.
- Do not close Example_B, you will need it in the following exercise.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |