| || |
Testing Java/Corba with SilkPerf 4.5
> I am trying to develop some test scripts for a Java application that
>uses Corba Objects. I'm running Java 1.2.2 and
>Iona OrbixWeb 3.2. I've been able to record the session and generate a
>script, but the script fails to run properly giving
>several errors of the type: "Invalid Object Reference". The Application
>runs fine by itself and I wonder if there are some special
>steps that need to be followed when testing Corba apps using Segue's
>Suggestions will be greatly appreciated,
Re: Testing Java/Corba with SilkPerf 4.5
There's a bit of manual effort that you must take after recording and before playing back a Corba/IIOP script with SilkPerformer. At this time, SilkPerformer not intelligent enough to see that the object that it should use for request "X" is the object that was in the response "X-1", and instead hardcodes the object with literals. What I end up doing after each recording session is hunt for IiopObjectCreate statements and do the following for each one: Comment them out, then look at the information that was being used to create the object, look earlier in the script for a near identical object that was passed back in a response, and then use IiopObjectDuplicate from that object (before it is IiopObjectRelease'd) into the object handle that was in the IiopObjectCreate statement.
Yes, SilkPerformer would be immensely more powerful if it did this automagically for you, but at this point it doesn't.
Hope this helps.