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#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¥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