IDL example

Date: 21-may-2012. Built with TTworkbench 14.

Description:
An example to demonstrate IDL plugin functionality. It generates of Java executable 
in TTworkbench according to an IDL file. With help of build IDL codec and port 
plugin it covers the full function for testing an IUT implemented in e.g. CORBA. 

Test system calls the procedures defined in IDL file over built-in IDL port plugin to
the simulated SUT, checks its response. 

Requirement:
a. In case preprocessor in IDL is needed, a gcc must be installed. In global
setting, Window > Preferences > TTCN-3 > TTplugin > IDL > Installed gcc compiler, 
browse, choose the installed g++.exe path.   
b. Make sure your JAVA_HOME path is set correctly.

Steps:
1. Double click the calc_tests.ttcn3 in the ttcn3 folder to open it in the core language 
editor. Click the rebuild button in the button tool bar to compile the suite. The jar files 
under ttcn3builder folder will be updated.

2. Right mouse click on the build.xml file, Run as > 1. Ant build. The Java files under 
generated folder and the class files under build folder will be updated. 

3. Start simulated IUT. Run first run_ns.bat, then run_server_NS.bat in separate command 
prompt. 

4. Right mouse click on calc_tests.ttcn3 in the ttcn3 folder, Generate default test campaign
> recursively. A clf file is generated in ttcn3build folder. Double click it to load it in 
the execution perspective.

5. Double click the calc_tests or choose and double click some single test case to run.  

About SUT:
The source code of SUT can be found under javasrc. 