Re: Can't find com.rational.test.ft.script.Ratio nalTestScript

View: New views
5 Messages — Rating Filter:   Alert me  

Re: Can't find com.rational.test.ft.script.Ratio nalTestScript

by jmsa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

RE: [safs-developer] Can't find com.rational.test.ft.script.RationalTestScript

Carl,

        I gave up and made a "DECOY" project in TestManager using Administrator.    Just for fun I set the pass to 'dumb' and the projectname is WeHateTM: )  Really though, I am a fan of TestManager, really.  : )  The TestManager/Administrator project was set up as Decoy.rsp, since it isn't really there for any reason other than to log us in

        I set up the ProcessContainer.ini to log us into this and use the following settings:  They are producing the error about "if you are using -user you must also specify -project", which we do.  So I'm lost

ProcessContainer.ini

[SAFS_PROJECT]

ProjectRoot="C:¥Projects¥WeHateTM"

[SAFS_ROBOTJ]

PROJECT="C:¥TestManager_Decoy¥decoy.rsp"

USERID="admin"

PASSWORD="dumb"

PLAYBACK=TestScript

AUTOLAUNCH=TRUE

JVM="C:¥Program Files¥Java¥jre1.5.0_02¥bin¥java.exe"

DATASTORE="C:¥Projects¥WeHateTM"

LOG="TestScript"

LOGFOLDER="Default"

[SAFS_DRIVER]

DriverRoot="C:¥SAFS"

[SAFS_ENGINES]

First=org.safs.tools.engines.SAFSROBOTJ

Thank you,

Joshua Munsch

Quality Assurance Analyst I

Quality Assurance

Ext - 1626

jmunsch@...

-----Original Message-----
From: safsdev-developers-bounces@... [safsdev-developers-bounces@...] On Behalf Of Carl Nagle
Sent: Wednesday, February 13, 2008 8:32 AM
To: Developers' List for SAFS--Software Automation Framework Support
Subject: Re: [safs-developer] Can't find com.rational.test.ft.script.RationalTestScript

It is very important you use the latest SAFS source and¥or built JAR files.

You do not need to specify INSTALLDIR in the INI file for RFT V7.  In fact, RFT V7 cannot use the INSTALLDIR parameter and cannot successfully run from the command-line if used.  This is due to some ClassLoader defects which Rational is working on.

http://safsdev.sourceforge.net/sqabasic2000/SetupRobotJ.README.htm#usewithtid

As shown in the doc above, the INI values suitable for RFT V7 should be simply:

[SAFS_ROBOTJ]

AUTOLAUNCH=TRUE

DATASTORE=C:¥SAFS¥DatastoreJ

and that's it!  (Of course, you must have the latest code for this to work.)

As an FYI:

RFT V7 *must* be launched from the command-line using the -jar option, instead of the -Drational_ft.install.dir option.  Thus, classpath information cannot readily be provided except via the -projectpath parameter.

Something like:

java -jar "C:¥Program Files¥IBM¥SDP70¥FunctionalTester¥bin¥rational_ft.jar" -projectpath "%CLASSPATH%" -datastore "C:¥SAFS¥DatastoreJ" -playback TestScript

Carl

-----Original Message-----

From: Junwu Ma

When running STAFProcessContainer, a Script Playback Failure occurs showing that:

“Exception[TestScript] [Script“TestScript” in line 18 RationalTestScriptError[java.lang.NoClassDefFoundError] com.rational.test.ft.script.RationalTestScript]”

If I start TestScript.java in project root manually before running STAFProcessContainer, every thing is fine (no above error) while running STAFProcessContainer.

TestScript.java exist in folder c:¥safs¥datastorej that is defined as item DATASTORE in the ini file passed to STAFProcessContainer, and RATION_FT_LIB   has been added to the project. com.rational.test.ft.script.RationalTestScript is in jar file RATION_FT_LIB.

It was found via tracing some code that the failure happened when executing the command below in org.safs.tools.engines.SAFSROBOTJ.launchInterface.

java.exe -Drational_ft.install.dir=D:¥IBM¥SDP70¥FunctionalTester¥EclipseEnabler¥plugins¥com.rational.test.ft.enabler.wsw_7.0.0.v200611191125

com.rational.test.ft.rational_ft

-datastore C:¥safs¥datastorej

-playback TestScript

It seemed that there is something wrong with finding com.rational.test.ft.script.RationalTestScript. Is it needed to add CLASSPATH under [SAFS_ROBOTJ] in the ini file?  If yes how to define it?  Does anyone have the same experience?  Thank you!

Regards,

Junwu


-------------------------------------------------------------------------

This SF.net email is sponsored by: Microsoft

Defy all challenges. Microsoft(R) Visual Studio 2008.

http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________

safsdev-developers mailing list

safsdev-developers@...

https://lists.sourceforge.net/lists/listinfo/safsdev-developers


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
safsdev-developers mailing list
safsdev-developers@...
https://lists.sourceforge.net/lists/listinfo/safsdev-developers

Re: Can't find com.rational.test.ft.script.RationalTestScript

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
RE: [safs-developer] Can't find com.rational.test.ft.script.RationalTestScript

*IF* you are trying to use a project then you may also have to specify the "BUILD" for that project:

AUTOLAUNCH=TRUE
PROJECT="C:\TestManager_Decoy\decoy.rsp"
USERID="admin"
PASSWORD="dumb"
PLAYBACK=TestScript
DATASTORE="C:\Projects\WeHateTM"  (***? path to RFT root project dir ? ***)
LOGFOLDER="Default"
LOG="TestScript"
BUILD="Build 1"

However, I just tried to run RFT V7 from the command-line using:

java -jar "C:\Program FilesIBM\SDP70\FunctionalTester\bin\rational_ft.jar" -projectpath "%CLASSPATH%" -datastore C:\SQARepos\DDEngine\DatastoreJ -playback TestScript -project C:\SQARepos\DDEngine\RRAFSEngine.rsp -user canagl -build "build 1" -logfolder default -log testscript

I tried several variations with and without an empty password, reversing slashes, changing case, etc… still got "If either -user or -project options are specified, then both must be specified"--and they obviously are both specified.

So, my initial guess is you cannot properly associate our RFT projects with TM successfully at V7.

 

Carl

 

From: Munsch, Joshua
Subject: Re: [safs-developer] Can't find com.rational.test.ft.script.Ratio nalTestScript

 

        I gave up and made a "DECOY" project in TestManager using Administrator.    Just for fun I set the pass to 'dumb' and the projectname is WeHateTM: )  Really though, I am a fan of TestManager, really.  : )  The TestManager/Administrator project was set up as Decoy.rsp, since it isn't really there for any reason other than to log us in…

        I set up the ProcessContainer.ini to log us into this and use the following settings:  They are producing the error about "if you are using -user you must also specify -project", which we do….  So I'm lost…

ProcessContainer.ini

[SAFS_PROJECT]

ProjectRoot="C:\Projects\WeHateTM"

[SAFS_ROBOTJ]

PROJECT="C:\TestManager_Decoy\decoy.rsp"

USERID="admin"

PASSWORD="dumb"

PLAYBACK=TestScript

AUTOLAUNCH=TRUE

JVM="C:\Program Files\Java\jre1.5.0_02\bin\java.exe"

DATASTORE="C:\Projects\WeHateTM"

LOG="TestScript"

LOGFOLDER="Default"

[SAFS_DRIVER]

DriverRoot="C:\SAFS"

[SAFS_ENGINES]

First=org.safs.tools.engines.SAFSROBOTJ

Thank you,

Joshua Munsch


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
safsdev-developers mailing list
safsdev-developers@...
https://lists.sourceforge.net/lists/listinfo/safsdev-developers

Parent Message unknown Re: Can't find com.rational.test.ft.script.Ratio nalTestScript

by jmsa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
RE: [safs-developer] Can't find com.rational.test.ft.script.RationalTestScript

So if we cannot associate and we cannot NOT associate, how did you/do we get RFT v7 to run an instance of STAFProcessContainer?  I'm very confused as to how anyone has Robot 7 / RFT 7 working with SAFS at the moment!  Test Manager integration seems to be default, with no way to remove it...

 

Thank you,
Joshua Munsch
Quality Assurance Analyst I
Quality Assurance
Ext - 1626
jmunsch@...


From: safsdev-developers-bounces@... [mailto:safsdev-developers-bounces@...] On Behalf Of Carl Nagle
Sent: Wednesday, February 13, 2008 1:56 PM
To: Developers' List for SAFS--Software Automation Framework Support
Subject: Re: [safs-developer] Can't find com.rational.test.ft.script.RationalTestScript

 

*IF* you are trying to use a project then you may also have to specify the "BUILD" for that project:

AUTOLAUNCH=TRUE
PROJECT="C:\TestManager_Decoy\decoy.rsp"
USERID="admin"
PASSWORD="dumb"
PLAYBACK=TestScript
DATASTORE="C:\Projects\WeHateTM"  (***? path to RFT root project dir ? ***)
LOGFOLDER="Default"
LOG="TestScript"
BUILD="Build 1"

However, I just tried to run RFT V7 from the command-line using:

java -jar "C:\Program FilesIBM\SDP70\FunctionalTester\bin\rational_ft.jar" -projectpath "%CLASSPATH%" -datastore C:\SQARepos\DDEngine\DatastoreJ -playback TestScript -project C:\SQARepos\DDEngine\RRAFSEngine.rsp -user canagl -build "build 1" -logfolder default -log testscript

I tried several variations with and without an empty password, reversing slashes, changing case, etc... still got "If either -user or -project options are specified, then both must be specified"--and they obviously are both specified.

So, my initial guess is you cannot properly associate our RFT projects with TM successfully at V7.

 

Carl

 

From: Munsch, Joshua
Subject: Re: [safs-developer] Can't find com.rational.test.ft.script.Ratio nalTestScript

 

        I gave up and made a "DECOY" project in TestManager using Administrator.    Just for fun I set the pass to 'dumb' and the projectname is WeHateTM: )  Really though, I am a fan of TestManager, really.  : )  The TestManager/Administrator project was set up as Decoy.rsp, since it isn't really there for any reason other than to log us in...

        I set up the ProcessContainer.ini to log us into this and use the following settings:  They are producing the error about "if you are using -user you must also specify -project", which we do....  So I'm lost...

ProcessContainer.ini

[SAFS_PROJECT]

ProjectRoot="C:\Projects\WeHateTM"

[SAFS_ROBOTJ]

PROJECT="C:\TestManager_Decoy\decoy.rsp"

USERID="admin"

PASSWORD="dumb"

PLAYBACK=TestScript

AUTOLAUNCH=TRUE

JVM="C:\Program Files\Java\jre1.5.0_02\bin\java.exe"

DATASTORE="C:\Projects\WeHateTM"

LOG="TestScript"

LOGFOLDER="Default"

[SAFS_DRIVER]

DriverRoot="C:\SAFS"

[SAFS_ENGINES]

First=org.safs.tools.engines.SAFSROBOTJ

Thank you,

Joshua Munsch


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
safsdev-developers mailing list
safsdev-developers@...
https://lists.sourceforge.net/lists/listinfo/safsdev-developers

Re: Can't find com.rational.test.ft.script.RationalTestScript

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
RE: [safs-developer] Can't find com.rational.test.ft.script.RationalTestScript

Joshua,

 

I'm sorry you are experiencing so much frustration with RFT.  As you know from the discussions, several folks do have RFT working, and we do have STAFProcessContainer working, and we can launch RFT V7 from the command-line when disassociated from Test Manager.

 

On my system, RFT is disassociated with TM, but it still does give me the TM Login window when I launch the RFT IDE manually.  I simply CANCEL from the login screen and proceed.  In fact, in RFT the project does not seem to care whether I successfully Login or Cancel the Login.  However, the Login is never presented when I launch RFT from the command-line and I do not provide any login info on the command-line.  In fact, my latest tests show that RFT will not properly launch if I attempt to provide accurate TM login info on the command-line.

 

The only thing I can say (again), is that I do recall that some (older?) versions of the install for RFT gave you the option to NOT install TM--the option would be Checked or Unchecked.  In those versions if you did not install TM then RFT did not work for us.  So, I had to reinistall RFT and make certain that TM was also installed, then disassociate RFT from TM and not use it.  It didn't make sense, but that was the only way to get things to work.

 

However, I don't recall having to make these types of choices when installing RFT V7. 

 

Now conversations and CLASSPATHS make it sound like you have installed TM with RFT, but the symptoms smell like it is not (properly?) installed.  At least, the part of it that RFT seems to care about.  But it could be something else entirely new.

 

Unfortunately, your environment is the only one having this specific "NullPointerException" problem in running RFT and STAFProcessContainer.  Without access to your system there is little more I can do but reiterate the things we know to try.

 

Make sure RFT is patched up to 7.0.0.2.

Make sure the TM version is appropriate for RFT 7.0.0.2.

An older version of TM for an older version of Rational Robot will probably not work.

Setup RFT as described in the docs you are already grudgingly familiar with. :)

 

You may need to resort to IBM Rational Technical support to fix the non-SAFS issue of getting the NPE when launching RFT from the command-line.

 

Carl

 

From: Munsch, Joshua
Subject: Re: [safs-developer] Can't find com.rational.test.ft.script.Ratio nalTestScript

 

So if we cannot associate and we cannot NOT associate, how did you/do we get RFT v7 to run an instance of STAFProcessContainer?  I'm very confused as to how anyone has Robot 7 / RFT 7 working with SAFS at the moment!  Test Manager integration seems to be default, with no way to remove it...

 

Thank you,
Joshua Munsch


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
safsdev-developers mailing list
safsdev-developers@...
https://lists.sourceforge.net/lists/listinfo/safsdev-developers

Re: Can't find com.rational.test.ft.script.Ratio nalTestScript

by trips :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Carl,

CAn you help

 When i try launching RFT through command line I get the following error

java -jar "C:\Program Files\IBM\SDP\FunctionalTester\bin\rational_ft.jar" -projectpath "%CLASSPATH%" -datastore "C:\safs\DatastoreJ" -playback TestScript


                                                                                C:\Documents and Settings\framework>java -jar "C:\Program Files\IBM\SDP\FunctionalTester\bin\rational_ft.jar" -projectpath "%CLASSPATH%" -datastore "C:\safs\DatastoreJ" -playback TestScript                                                   java.lang.ExceptionInInitializerError                                                   at org.safs.rational.RDDGUIUtilities.<init>(RDDGUIUtilities.java:55)            at org.safs.rational.RRobotJHook.getUtilitiesFactory(RRobotJHook.java:66)                                                                                       at org.safs.RobotJHook.start(RobotJHook.java:97)                                at org.safs.rational.RRobotJHook.start(RRobotJHook.java:48)                     at TestScript.testMain(TestScript.java:25)                                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)              at java.lang.reflect.Method.invoke(Unknown Source)                              at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection.java:1215)                                                                               at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1415)                                                                                at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1768)                                                                                at com.rational.test.ft.script.RationalTestScript.runMainInner(RationalTestScript.java:972)                                                                     at com.rational.test.ft.script.RationalTestScript.runMain(RationalTestScript.java:912)                                                                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)              at java.lang.reflect.Method.invoke(Unknown Source)                              at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection.java:1215)                                                                               at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1415)                                                                                at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1768)                                                                                at com.rational.test.ft.application.ScriptPlayback.runScript(ScriptPlayback.java:720)                                                                           at com.rational.test.ft.application.ScriptPlayback.run(ScriptPlayback.java:659)                                                                                 at com.rational.test.ft.application.RationalFtMain.run(RationalFtMain.java:2271)                                                                                at com.rational.test.ft.application.RationalFtMain.main(RationalFtMain.java:304)                                                                                at com.rational.test.ft.application.CommandLineApplication.run(CommandLineApplication.java:43)                                                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)              at java.lang.reflect.Method.invoke(Unknown Source)                              at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:574)                                                   at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195)                                                                             at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)                                                     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)                                                               at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)                                                                                 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)                                                                                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)              at java.lang.reflect.Method.invoke(Unknown Source)                              at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)             at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)                    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)                        at org.eclipse.equinox.launcher.Main.main(Main.java:1212)                       at org.eclipse.core.launcher.Main.main(Main.java:30)                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)              at java.lang.reflect.Method.invoke(Unknown Source)                              at com.rational.test.ft.rational_ft.startFT(rational_ft.java:270)               at com.rational.test.ft.rational_ft.main(rational_ft.java:185)          Caused by: java.util.MissingResourceException: JavaObjectsMap.dat                       at org.safs.GuiClassData.<clinit>(GuiClassData.java:68)                         ... 51 more                                                                                                                                             C:\Documents and Settings\framework>java -jar "C:\Program Files\IBM\SDP\FunctionalTester\bin\rational_ft.jar" -projectpath "%CLASSPATH%" -datastore "C:\safs\DatastoreJ" -playback TestScript                                                   java.lang.ExceptionInInitializerError                                                   at org.safs.rational.RDDGUIUtilities.<init>(RDDGUIUtilities.java:55)            at org.safs.rational.RRobotJHook.getUtilitiesFactory(RRobotJHook.java:66)                                                                                       at org.safs.RobotJHook.start(RobotJHook.java:97)                                at org.safs.rational.RRobotJHook.start(RRobotJHook.java:48)                     at TestScript.testMain(TestScript.java:25)                                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)              at java.lang.reflect.Method.invoke(Unknown Source)                              at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection.java:1215)                                                                               at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1415)                                                                                at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1768)                                                                                at com.rational.test.ft.script.RationalTestScript.runMainInner(RationalTestScript.java:972)                                                                     at com.rational.test.ft.script.RationalTestScript.runMain(RationalTestScript.java:912)                                                                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)              at java.lang.reflect.Method.invoke(Unknown Source)                              at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection.java:1215)                                                                               at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1415)                                                                                at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1768)                                                                                at com.rational.test.ft.application.ScriptPlayback.runScript(ScriptPlayback.java:720)                                                                           at com.rational.test.ft.application.ScriptPlayback.run(ScriptPlayback.java:659)                                                                                 at com.rational.test.ft.application.RationalFtMain.run(RationalFtMain.java:2271)                                                                                at com.rational.test.ft.application.RationalFtMain.main(RationalFtMain.java:304)                                                                                at com.rational.test.ft.application.CommandLineApplication.run(CommandLineApplication.java:43)                                                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)              at java.lang.reflect.Method.invoke(Unknown Source)                              at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:574)                                                   at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195)                                                                             at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)                                                     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)                                                               at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)                                                                                 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)                                                                                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)              at java.lang.reflect.Method.invoke(Unknown Source)                              at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)             at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)                    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)                        at org.eclipse.equinox.launcher.Main.main(Main.java:1212)                       at org.eclipse.core.launcher.Main.main(Main.java:30)                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)              at java.lang.reflect.Method.invoke(Unknown Source)                              at com.rational.test.ft.rational_ft.startFT(rational_ft.java:270)               at com.rational.test.ft.rational_ft.main(rational_ft.java:185)          Caused by: java.util.MissingResourceException: JavaObjectsMap.dat                       at org.safs.GuiClassData.<clinit>(GuiClassData.java:68)                         ... 51 more                                                            



Can u help me as i really stuck here

jmsa wrote:
Carl,
        I gave up and made a "DECOY" project in TestManager using
Administrator.    Just for fun I set the pass to 'dumb' and the projectname
is WeHateTM: )  Really though, I am a fan of TestManager, really.  : )  The
TestManager/Administrator project was set up as Decoy.rsp, since it isn't
really there for any reason other than to log us in…

        I set up the ProcessContainer.ini to log us into this and use the
following settings:  They are producing the error about "if you are using
-user you must also specify -project", which we do….  So I'm lost…

ProcessContainer.ini
[SAFS_PROJECT]
ProjectRoot="C:¥Projects¥WeHateTM"

[SAFS_ROBOTJ]
PROJECT="C:¥TestManager_Decoy¥decoy.rsp"
USERID="admin"
PASSWORD="dumb"
PLAYBACK=TestScript
AUTOLAUNCH=TRUE
JVM="C:¥Program Files¥Java¥jre1.5.0_02¥bin¥java.exe"
DATASTORE="C:¥Projects¥WeHateTM"
LOG="TestScript"
LOGFOLDER="Default"

[SAFS_DRIVER]
DriverRoot="C:¥SAFS"

[SAFS_ENGINES]
First=org.safs.tools.engines.SAFSROBOTJ

Thank you,
Joshua Munsch
Quality Assurance Analyst I
Quality Assurance
Ext - 1626
jmunsch@msa.com

-----Original Message-----
From: safsdev-developers-bounces@lists.sourceforge.net
[mailto:safsdev-developers-bounces@lists.sourceforge.net] On Behalf Of Carl
Nagle
Sent: Wednesday, February 13, 2008 8:32 AM
To: Developers' List for SAFS--Software Automation Framework Support
Subject: Re: [safs-developer] Can't find
com.rational.test.ft.script.RationalTestScript

It is very important you use the latest SAFS source and¥or built JAR files.

You do not need to specify INSTALLDIR in the INI file for RFT V7.  In fact,
RFT V7 cannot use the INSTALLDIR parameter and cannot successfully run from
the command-line if used.  This is due to some ClassLoader defects which
Rational is working on.

http://safsdev.sourceforge.net/sqabasic2000/SetupRobotJ.README.htm#usewithti
d

As shown in the doc above, the INI values suitable for RFT V7 should be
simply:

[SAFS_ROBOTJ]
AUTOLAUNCH=TRUE
DATASTORE=C:¥SAFS¥DatastoreJ

and that's it!  (Of course, you must have the latest code for this to work.)

As an FYI:

RFT V7 *must* be launched from the command-line using the -jar option,
instead of the -Drational_ft.install.dir option.  Thus, classpath
information cannot readily be provided except via the -projectpath
parameter.

Something like:

java -jar "C:¥Program Files¥IBM¥SDP70¥FunctionalTester¥bin¥rational_ft.jar"
-projectpath "%CLASSPATH%" -datastore "C:¥SAFS¥DatastoreJ" -playback
TestScript

Carl
-----Original Message-----
From: Junwu Ma

When running STAFProcessContainer, a Script Playback Failure occurs showing
that:
“Exception:[TestScript] [Script“TestScript” in line 18
RationalTestScriptError:[java.lang.NoClassDefFoundError] −
com.rational.test.ft.script.RationalTestScript。]”

If I start TestScript.java in project root manually before running
STAFProcessContainer, every thing is fine (no above error) while running
STAFProcessContainer.

TestScript.java exist in folder c:¥safs¥datastorej that is defined as item
DATASTORE in the ini file passed to STAFProcessContainer, and RATION_FT_LIB
has been added to the project.
com.rational.test.ft.script.RationalTestScript is in jar file RATION_FT_LIB.

It was found via tracing some code that the failure happened when executing
the command below in org.safs.tools.engines.SAFSROBOTJ.launchInterface.

java.exe
-Drational_ft.install.dir=D:¥IBM¥SDP70¥FunctionalTester¥EclipseEnabler¥plugi
ns¥com.rational.test.ft.enabler.wsw_7.0.0.v200611191125
com.rational.test.ft.rational_ft
-datastore C:¥safs¥datastorej
-playback TestScript

It seemed that there is something wrong with finding
com.rational.test.ft.script.RationalTestScript. Is it needed to add
CLASSPATH under [SAFS_ROBOTJ] in the ini file?  If yes how to define it?
Does anyone have the same experience?  Thank you!

Regards,
Junwu


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
safsdev-developers mailing list
safsdev-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/safsdev-developers

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
safsdev-developers mailing list
safsdev-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/safsdev-developers