Connecting to an Oracle database
Has anyone tried connecting to an Oracle database? If I run from within RobotJ I am able to connect, but when I try to run the same script using Test Manager, I get the following error:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">TestScripts.ConnectionTest.testMain had an unhandled exception.
at com.rational.test.ft.services.TestScriptServices.d ownload(Unknown Source)
at com.rational.test.ft.util.FtClassLoader$DirOrJar.g etFileBytes(Unknown Source)
at com.rational.test.ft.util.FtClassLoader$DirOrJar.r eadClass(Unknown Source)
at com.rational.test.ft.util.FtClassLoader$DirOrJar.a ccess$300(Unknown Source)
at com.rational.test.ft.util.FtClassLoader.findTheCla ss(Unknown Source)
at com.rational.test.ft.util.FtClassLoader.loadClass( Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at TestScripts.ConnectionTest.testMain(ConnectionTest .java:52) </pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">I have had success running scripts that connect to SQL Server, from both within RobotJ and from Test Manager but am stumped as to why it doesn't work for Oracle.
I would appreciate if any one has any ideas or suggestions.
Re: Connecting to an Oracle database
I found a work around. The oracle driver is contained in a file called classes12.zip. It seems Test Manager has problems opening the .zip file. I changed it to classes12.jar and it worked! May be a bug with rational.