Wednesday, November 28, 2007

Updating the CIARA database

Curam provides us with a tool called CIARA which allows us to browse around the Curam objects (screens, structs, entities, etc).  This tool is available as a standalone tool (which is significantly faster) or as part of DocCenter (which is more familiar).

Required software

The tool allows us to actually create our own database containing our the custom objects that are implemented as well.  In order to do this, you need to install the standalone tool using InstallCiara.exe.  You need to have a valid Curam development installation (with all the environment settings set up).

Another prerequisite is to download and install AspectJ and set the environment variable ASPECTJ_HOME to the appropriate location.

Creating the CIARA database

  1. Go to <ciara_installation_dir>\CIARA\bin\CIARA
  2. Type in ant all.  This will extract your code and generate the CIARA database for you.  Depending on the speed of your machine and amount of custom code you have (mine is a Thinkpad T60) it can take about 5 to 10 minutes.
  3. Type in CIARA and select <ciara_installation_dir>\CIARA\bin\CIARA\CuramApplicationCiaraExtractor\CuramApplication.cdb to browse the database.  If you don't get asked (since the tool remembers the last database you have used, press Ctrl-O.

Updating DocCenter

To update DocCenter, a user has to put in the generated CuramApplication.cdb into <doccenter_installation_dir>\ciaradb.  The CIARA in the DocCenter can be found in Home -> Business Analysts -> CIARA.

Wednesday, November 14, 2007

Manually enabling DB2 to use TCP/IP

When you create an instance using db2icrt you may not have the TCP/IP portion automatically enabled.  To enable it type in the following in your DB2 command prompt:

db2set DB2COMM=TCPIP
db2 update dbm cfg using SVCENAME db2c_DB2

Make sure you have the following line in your etc\services file.  The db2c_DB2 corresponds to the one on the update dbm cfg.

db2c_DB2 50000/tcp

Then restart your database instance.  If all goes well you should see

SQL1063N  DB2START processing was successful.

If not you may see

SQL5043N  Support for one or more communications protocols failed to start successfully. However, core database manager functionality started successfully.

I sometimes have to use db2icrt because sometimes my laptop crashes and the DB2 instance gets corrupted to the point that it is no longer recoverable.

Tuesday, November 13, 2007

Selenium popup windows

Selecting a popup window

The selectWindow method actually supports selecting by the title even if it has accents.  If you have more than one popup window to deal with the same name, I guess you need to write some JavaScript to get around it.

Closing a popup window

Although there is a "close" command in Selenium, it does not appear to work within Internet Explorer.  So the work around to this is to use

runscript window.close()