background image
<< Testing CORBA Applications | CORBA/IIOP Test Script Generation >>
<< Testing CORBA Applications | CORBA/IIOP Test Script Generation >>

Importing the CORBA IDL

Recording Sessions
7-28
Importing the CORBA IDL
An IDL (Interface Definition Language) defines an application's interfaces,
including method names, parameters, data types, and exceptions. You use the
CORBA IDL to map to the CORBA language for implementation. To record test
scripts in Robot and play back test scripts in TestManager with methods, parameter
names, and data described in a meaningful way, you must import the CORBA IDL
into Robot before generating test scripts.
To import IDL into Robot:
1. In Robot, click Tools > Interfaces.
2. In the Interfaces dialog box, click Import.
3. In the Select IDL File dialog box, browse to find and choose the CORBA IDL
file to import.
4. Click OK.
The imported information is stored in the project for use by TestManager at test
script generation and play back. You cannot play back test scripts until the CORBA
IDL has been imported into Robot.
TestManager stores the IDL information within the project based on the interface
name.
If you do not load all of the CORBA IDL prior to test script generation, some
methods may script opaquely. That is, method parameter names will not be listed.
Instead, only a single parameter with the name "*" is listed, and all data is asciified
hexadecimal.
IDL files sometimes include other IDL files. If include path information is not
relative, you may have to specify an IDL include path. You can specify such a path
using the
IDLINCLUDE
environment variable. For example,
IDLINCLUDE=d:\myidl;d:\otheridl.
CORBA Recording
Recording CORBA applications is similar to recording other environments. Robot
supports both Network and API recording methods.
IIOP traffic between client and server is used to produce VU test scripts. Therefore,
before recording, you must do the following:
1. In Robot, click File > Record Session
File > Record Session
File > Record Session
File > Record Session.
2. In the Record Session dialog box, click Options
Options
Options
Options.
3. Click the Generator Filtering
Generator Filtering
Generator Filtering
Generator Filtering tab.
4. Under Available
Available
Available
Available pr
pr
pr
protocols
otocols
otocols
otocols, select IIOP
IIOP
IIOP
IIOP.