Need Help in Launching the Application through safs

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Need Help in Launching the Application through safs

by trips :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As per my understanding that once done with the configuration of safs with rft8.0

I want to run a sample script to verify that the configuration is successful . I am trying to run a sample script Scenario covering the scenario of ClassicsJavaA Application ( which comes with the the trail version)

Correct me if i am wrong the Launching the application step is to be included in the step file.
When i put the following command in my step file
C, LaunchApplication,classicsJava1,"C:\Program Files\IBM\SDP\FunctionalTester\FTSamples\ClassicsJavaA.jar"

I get the following error:

(1) SAFS/IPDriverCommands running internal to SAFS/TIDriver
**FAILED**org.safs.DCDriverMiscCommands, LaunchApplication: CreateProcess: C
ogram Files\IBM\SDP\FunctionalTester\FTSamples\ClassicsJavaA.jar error=193

Also WHen i put enabledomain command in the cycle file i get a warning.

Is the driverdommand and the component command only given inthe step file..

Re: Need Help in Launching the Application through safs

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I believe the problem here is that "JAR" is not an executable file.  I believe you will have to use something like:

C, LaunchApplication,classicsJava1,"java -jar C:\Program
Files\IBM\SDP\FunctionalTester\FTSamples\ClassicsJavaA.jar"

This assumes that Java is in your system path.  You may have to provide the fullpath to java.exe otherwise.  Note: The SPACE in "Program Files" may be a problem you have to deal with, too.

Component Functions ARE only valid at the Step Level.  Note a Component Function is a "Test" record (T) at the Step Level.  Test Records (T) at Cycle and Suite Levels invoke the lower level test table--Suite or Step, respectively.

Driver Commands are valid at ALL test levels.  So the LaunchApplication command can be at the Cycle, Suite, or Step level.

You probably got the warning for EnableDomain because RFT was not running to execute the command.

Carl

-----Original Message-----
From: trips [mailto:trips.pathak@...]

As per my understanding that once done with the configuration of safs with
rft8.0

I want to run a sample script to verify that the configuration is successful
. I am trying to run a sample script Scenario covering the scenario of
ClassicsJavaA Application ( which comes with the the trail version)

Correct me if i am wrong the Launching the application step is to be
included in the step file.
When i put the following command in my step file
C, LaunchApplication,classicsJava1,"C:\Program
Files\IBM\SDP\FunctionalTester\FTSamples\ClassicsJavaA.jar"

I get the following error:

(1) SAFS/IPDriverCommands running internal to SAFS/TIDriver
**FAILED**org.safs.DCDriverMiscCommands, LaunchApplication: CreateProcess: C
ogram Files\IBM\SDP\FunctionalTester\FTSamples\ClassicsJavaA.jar error=193

Also WHen i put enabledomain command in the cycle file i get a warning.

Is the driverdommand and the component command only given inthe step file..
--


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by trips :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Carl for that quick reply.Was struggling with it.

Also Have following queries.

The Map file I have created
Executable=ClassicsJavaA.jar
composer="Hyadn"
cd="Haydin->violin Concertos"
user="Claire Stratus"
password="password"
ccnum="1111 2222 3333 4444"
expdate="12/09"
cardtype="Mastercard"
classicsJava=

[CMD]
CMD=cwinntSystem32CmdExecwindow

[ClassicMainWin]
ClassicsMainWin="Type=classicsJava;Name=ClassicsCD"
ComposerTree=tree2
PlaceOrderButton="Type=JButton;Name=placeOrderButton2"
MainMenu=Jnb

[My query is this correct or incorrect as i beleive that for evry
object there needs to be two property mapping.]Guide me on this?

2)While running safs file the application, RFT should be kept
running?or the apppication gets invoked runtime and we see the actions
taking place the way we see when we run the script after recodring.

3) Also in my log file I am getting such errorrs

Unknown Driver Command "EnableDomain" in
C:\MapValidationProject\datapool\SampleStep.SDD at line 5
          "C","EnableDomain","Java"
- WARNING Unknown Driver Command "EnableDomain" in
C:\MapValidationProject\datapool\SampleStep.SDD at line 6
          "C","EnableDomain","Win"
          LaunchApplication classicsJava1 successful.
- WARNING Unknown Action Command "SelectTextNode" in
C:\MapValidationProject\datapool\SampleStep.SDD at line 10
          "T","ClassicsMainwin","ComposerTree","SelectTextNode","Haydin->violin
Concertos"
- WARNING Unknown Action Command "Click" in
C:\MapValidationProject\datapool\SampleStep.SDD at line 11
          "T","ClassicsMainwin","PlaceOrderButton","Click"
- WARNING Unknown Action Command "Select ^user" in
C:\MapValidationProject\datapool\SampleStep.SDD at line 13
          "T","Loginwin","LoginuserComboBox","Select ^user"
- WARNING Unknown Action Command "SelectValue" in
C:\MapValidationProject\datapool\SampleStep.SDD at line 14
          "T","Loginwin","LoginUserPwd","SelectValue","password"
- WARNING Unknown Action Command "Click" in
C:\MapValidationProject\datapool\SampleStep.SDD at line 15
          "T","Loginwin","LoginButton","Click"
- WARNING Unknown Action Command "select" in
C:\MapValidationProject\datapool\SampleStep.SDD at line 17
          "T","Orderwin","CCType","select","Mastercard"
- WARNING Unknown Action Command "setTextValue" in
C:\MapValidationProject\datapool\SampleStep.SDD at line 18
          "T","Orderwin","CCNUmber","setTextValue","1111 2222 3333 4444"
- WARNING Unknown Action Command "SetTextValue" in
C:\MapValidationProject\datapool\SampleStep.SDD at line 19
          "T","Orderwin","ExpDate","SetTextValue","12/09"
- WARNING Unknown Action Command "Click" in
C:\MapValidationProject\datapool\SampleStep.SDD at line 20
          "T","Orderwin","PlaceOrderButton","Click"
  ------  END DATATABLE: STEP TABLE:
C:\MapValidationProject\datapool\SampleStep.SDD

What does this mean is it like any configuration issue or script not
written issue.?

3)



On Mon, Jun 15, 2009 at 8:03 PM, Carl Nagle<Carl.Nagle@...> wrote:

> I believe the problem here is that "JAR" is not an executable file.  I believe you will have to use something like:
>
> C, LaunchApplication,classicsJava1,"java -jar C:\Program
> Files\IBM\SDP\FunctionalTester\FTSamples\ClassicsJavaA.jar"
>
> This assumes that Java is in your system path.  You may have to provide the fullpath to java.exe otherwise.  Note: The SPACE in "Program Files" may be a problem you have to deal with, too.
>
> Component Functions ARE only valid at the Step Level.  Note a Component Function is a "Test" record (T) at the Step Level.  Test Records (T) at Cycle and Suite Levels invoke the lower level test table--Suite or Step, respectively.
>
> Driver Commands are valid at ALL test levels.  So the LaunchApplication command can be at the Cycle, Suite, or Step level.
>
> You probably got the warning for EnableDomain because RFT was not running to execute the command.
>
> Carl
>
> -----Original Message-----
> From: trips [mailto:trips.pathak@...]
>
> As per my understanding that once done with the configuration of safs with
> rft8.0
>
> I want to run a sample script to verify that the configuration is successful
> . I am trying to run a sample script Scenario covering the scenario of
> ClassicsJavaA Application ( which comes with the the trail version)
>
> Correct me if i am wrong the Launching the application step is to be
> included in the step file.
> When i put the following command in my step file
> C, LaunchApplication,classicsJava1,"C:\Program
> Files\IBM\SDP\FunctionalTester\FTSamples\ClassicsJavaA.jar"
>
> I get the following error:
>
> (1) SAFS/IPDriverCommands running internal to SAFS/TIDriver
> **FAILED**org.safs.DCDriverMiscCommands, LaunchApplication: CreateProcess: C
> ogram Files\IBM\SDP\FunctionalTester\FTSamples\ClassicsJavaA.jar error=193
>
> Also WHen i put enabledomain command in the cycle file i get a warning.
>
> Is the driverdommand and the component command only given inthe step file..
> --
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> safsdev-rrafs@...
> https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs
>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You should use STAF Process Container to see what type of Recognition strings you should use for this App:

C:\SAFS\Project\runSTAFProcessContainer.bat

http://safsdev.sourceforge.net/doc/org/safs/tools/drivers/STAFProcessContainer.html

Check your processcontainer.ini settings and ensure that:
[SAFS_ROBOTJ]
...
TESTDOMAINS= contains the string 'Java'

*** HOWEVER ***, that won't help you until you get RFT to successfully launch and your WARNING messages are showing that RFT is NOT successfully launching.

Can you successfully run C:\SAFS\Project\runRFTTest.Bat ?
What is that log output look like?

[My query is this correct or incorrect as i believe that for every
object there needs to be two property mapping.]Guide me on this?]

No. Window and Child Objects generally only get mapped once:

[WindowName]
WindowName=mapping
ChildName=mapping


What is it that you think gets mapped twice?


[While running safs file the application, RFT should be kept
running?or the apppication gets invoked runtime and we see the actions
taking place the way we see when we run the script after recording.]

RFT normally would NOT be running when you start the test.  Once properly configured, SAFS knows how to AUTOLAUNCH STAF, the SAFS services, and RFT.  SAFS will launch RFT and you should see the RFT Monitor window appear.  It will remain until SAFS coordinates the shutdown of RFT.  You will see activity in the RFT Monitor just like a normal RFT script because, in reality, we are running an RFT script with an extensive set of RFT libraries.

You should try to run the DEBUG LOG and you might get info on Why RFT is not running:
http://safsdev.sourceforge.net/sqabasic2000/SAFSDevelopment.htm#exploredebuglog


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by trips :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Carl,

When I run RunRFTTest.bat I get a log file getting generated

RFTTest.txt shows the follwoing error.

ersion 1.1
Log OPENED 06-16-2009 11:37:53
**FAILED**Unable to locate or open Cycle TABLE: "RFTTest".
Log CLOSED 06-16-2009 11:37:53



I have done the configurationas as per that
http://safsdev.sourceforge.net/sqabasic2000/SetupRobotJ.README.htm
http://safsdev.sourceforge.net/sqabasic2000/SetupSAFS.README.htm

What all configuration are required to launch RFT through SAFS.??


On Tue, Jun 16, 2009 at 1:01 AM, Carl Nagle<Carl.Nagle@...> wrote:

> You should use STAF Process Container to see what type of Recognition strings you should use for this App:
>
> C:\SAFS\Project\runSTAFProcessContainer.bat
>
> http://safsdev.sourceforge.net/doc/org/safs/tools/drivers/STAFProcessContainer.html
>
> Check your processcontainer.ini settings and ensure that:
> [SAFS_ROBOTJ]
> ...
> TESTDOMAINS= contains the string 'Java'
>
> *** HOWEVER ***, that won't help you until you get RFT to successfully launch and your WARNING messages are showing that RFT is NOT successfully launching.
>
> Can you successfully run C:\SAFS\Project\runRFTTest.Bat ?
> What is that log output look like?
>
> [My query is this correct or incorrect as i believe that for every
> object there needs to be two property mapping.]Guide me on this?]
>
> No. Window and Child Objects generally only get mapped once:
>
> [WindowName]
> WindowName=mapping
> ChildName=mapping
>
>
> What is it that you think gets mapped twice?
>
>
> [While running safs file the application, RFT should be kept
> running?or the apppication gets invoked runtime and we see the actions
> taking place the way we see when we run the script after recording.]
>
> RFT normally would NOT be running when you start the test.  Once properly configured, SAFS knows how to AUTOLAUNCH STAF, the SAFS services, and RFT.  SAFS will launch RFT and you should see the RFT Monitor window appear.  It will remain until SAFS coordinates the shutdown of RFT.  You will see activity in the RFT Monitor just like a normal RFT script because, in reality, we are running an RFT script with an extensive set of RFT libraries.
>
> You should try to run the DEBUG LOG and you might get info on Why RFT is not running:
> http://safsdev.sourceforge.net/sqabasic2000/SAFSDevelopment.htm#exploredebuglog
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> safsdev-rrafs@...
> https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs
>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by trips :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

After doing the steup as mentioned in the Application file i still
cannot see the  follwoing in log file
OK    RFT ClearAppMapCache was successful.

On Tue, Jun 16, 2009 at 1:01 AM, Carl Nagle<Carl.Nagle@...> wrote:

> You should use STAF Process Container to see what type of Recognition strings you should use for this App:
>
> C:\SAFS\Project\runSTAFProcessContainer.bat
>
> http://safsdev.sourceforge.net/doc/org/safs/tools/drivers/STAFProcessContainer.html
>
> Check your processcontainer.ini settings and ensure that:
> [SAFS_ROBOTJ]
> ...
> TESTDOMAINS= contains the string 'Java'
>
> *** HOWEVER ***, that won't help you until you get RFT to successfully launch and your WARNING messages are showing that RFT is NOT successfully launching.
>
> Can you successfully run C:\SAFS\Project\runRFTTest.Bat ?
> What is that log output look like?
>
> [My query is this correct or incorrect as i believe that for every
> object there needs to be two property mapping.]Guide me on this?]
>
> No. Window and Child Objects generally only get mapped once:
>
> [WindowName]
> WindowName=mapping
> ChildName=mapping
>
>
> What is it that you think gets mapped twice?
>
>
> [While running safs file the application, RFT should be kept
> running?or the apppication gets invoked runtime and we see the actions
> taking place the way we see when we run the script after recording.]
>
> RFT normally would NOT be running when you start the test.  Once properly configured, SAFS knows how to AUTOLAUNCH STAF, the SAFS services, and RFT.  SAFS will launch RFT and you should see the RFT Monitor window appear.  It will remain until SAFS coordinates the shutdown of RFT.  You will see activity in the RFT Monitor just like a normal RFT script because, in reality, we are running an RFT script with an extensive set of RFT libraries.
>
> You should try to run the DEBUG LOG and you might get info on Why RFT is not running:
> http://safsdev.sourceforge.net/sqabasic2000/SAFSDevelopment.htm#exploredebuglog
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> safsdev-rrafs@...
> https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs
>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by trips :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

sorry not Application file but in the following file
http://safsdev.sourceforge.net/sqabasic2000/SetupRobotJ.README.htm

I cannot see the success message


On Tue, Jun 16, 2009 at 2:37 PM, tripti pathak<trips.pathak@...> wrote:

> After doing the steup as mentioned in the Application file i still
> cannot see the  follwoing in log file
> OK    RFT ClearAppMapCache was successful.
>
> On Tue, Jun 16, 2009 at 1:01 AM, Carl Nagle<Carl.Nagle@...> wrote:
>> You should use STAF Process Container to see what type of Recognition strings you should use for this App:
>>
>> C:\SAFS\Project\runSTAFProcessContainer.bat
>>
>> http://safsdev.sourceforge.net/doc/org/safs/tools/drivers/STAFProcessContainer.html
>>
>> Check your processcontainer.ini settings and ensure that:
>> [SAFS_ROBOTJ]
>> ...
>> TESTDOMAINS= contains the string 'Java'
>>
>> *** HOWEVER ***, that won't help you until you get RFT to successfully launch and your WARNING messages are showing that RFT is NOT successfully launching.
>>
>> Can you successfully run C:\SAFS\Project\runRFTTest.Bat ?
>> What is that log output look like?
>>
>> [My query is this correct or incorrect as i believe that for every
>> object there needs to be two property mapping.]Guide me on this?]
>>
>> No. Window and Child Objects generally only get mapped once:
>>
>> [WindowName]
>> WindowName=mapping
>> ChildName=mapping
>>
>>
>> What is it that you think gets mapped twice?
>>
>>
>> [While running safs file the application, RFT should be kept
>> running?or the apppication gets invoked runtime and we see the actions
>> taking place the way we see when we run the script after recording.]
>>
>> RFT normally would NOT be running when you start the test.  Once properly configured, SAFS knows how to AUTOLAUNCH STAF, the SAFS services, and RFT.  SAFS will launch RFT and you should see the RFT Monitor window appear.  It will remain until SAFS coordinates the shutdown of RFT.  You will see activity in the RFT Monitor just like a normal RFT script because, in reality, we are running an RFT script with an extensive set of RFT libraries.
>>
>> You should try to run the DEBUG LOG and you might get info on Why RFT is not running:
>> http://safsdev.sourceforge.net/sqabasic2000/SAFSDevelopment.htm#exploredebuglog
>>
>>
>> ------------------------------------------------------------------------------
>> Crystal Reports - New Free Runtime and 30 Day Trial
>> Check out the new simplified licensing option that enables unlimited
>> royalty-free distribution of the report engine for externally facing
>> server and web deployment.
>> http://p.sf.net/sfu/businessobjects
>> _______________________________________________
>> safsdev-rrafs@...
>> https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs
>>
>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by trips :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Carl,



When i run this command    java
-Dsafs.processcontainer.ini="c:\safs\project\processcontainer.ini"
org.safs.tools.drivers.STAFProcessContainer


I get the follwoing error

Exception in thread "main" java.lang.NoClassDefFoundError: org/safs/tools/driver
s/STAFProcessContainer  ....

WHat should i check now

On Tue, Jun 16, 2009 at 2:39 PM, tripti pathak<trips.pathak@...> wrote:

> sorry not Application file but in the following file
> http://safsdev.sourceforge.net/sqabasic2000/SetupRobotJ.README.htm
>
> I cannot see the success message
>
>
> On Tue, Jun 16, 2009 at 2:37 PM, tripti pathak<trips.pathak@...> wrote:
>> After doing the steup as mentioned in the Application file i still
>> cannot see the  follwoing in log file
>> OK    RFT ClearAppMapCache was successful.
>>
>> On Tue, Jun 16, 2009 at 1:01 AM, Carl Nagle<Carl.Nagle@...> wrote:
>>> You should use STAF Process Container to see what type of Recognition strings you should use for this App:
>>>
>>> C:\SAFS\Project\runSTAFProcessContainer.bat
>>>
>>> http://safsdev.sourceforge.net/doc/org/safs/tools/drivers/STAFProcessContainer.html
>>>
>>> Check your processcontainer.ini settings and ensure that:
>>> [SAFS_ROBOTJ]
>>> ...
>>> TESTDOMAINS= contains the string 'Java'
>>>
>>> *** HOWEVER ***, that won't help you until you get RFT to successfully launch and your WARNING messages are showing that RFT is NOT successfully launching.
>>>
>>> Can you successfully run C:\SAFS\Project\runRFTTest.Bat ?
>>> What is that log output look like?
>>>
>>> [My query is this correct or incorrect as i believe that for every
>>> object there needs to be two property mapping.]Guide me on this?]
>>>
>>> No. Window and Child Objects generally only get mapped once:
>>>
>>> [WindowName]
>>> WindowName=mapping
>>> ChildName=mapping
>>>
>>>
>>> What is it that you think gets mapped twice?
>>>
>>>
>>> [While running safs file the application, RFT should be kept
>>> running?or the apppication gets invoked runtime and we see the actions
>>> taking place the way we see when we run the script after recording.]
>>>
>>> RFT normally would NOT be running when you start the test.  Once properly configured, SAFS knows how to AUTOLAUNCH STAF, the SAFS services, and RFT.  SAFS will launch RFT and you should see the RFT Monitor window appear.  It will remain until SAFS coordinates the shutdown of RFT.  You will see activity in the RFT Monitor just like a normal RFT script because, in reality, we are running an RFT script with an extensive set of RFT libraries.
>>>
>>> You should try to run the DEBUG LOG and you might get info on Why RFT is not running:
>>> http://safsdev.sourceforge.net/sqabasic2000/SAFSDevelopment.htm#exploredebuglog
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Crystal Reports - New Free Runtime and 30 Day Trial
>>> Check out the new simplified licensing option that enables unlimited
>>> royalty-free distribution of the report engine for externally facing
>>> server and web deployment.
>>> http://p.sf.net/sfu/businessobjects
>>> _______________________________________________
>>> safsdev-rrafs@...
>>> https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs
>>>
>>
>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have to assume you are simply using runRFTTest.bat from the C:\SAFS\Project directory and that you have successfully applied the 2007 release *AND* the March 2009 Overlay.

Make sure of the following:

Check the following and delete if present:

  C:\SAFS\DatastoreJ\TestScript.java
  C:\SAFS\DatastoreJ\TestScript.class

  C:\SAFS\DatastoreJ\resources\TestScriptHelper.java
  C:\SAFS\DatastoreJ\resources\TestSCriptHelper.class

Check the contents of your C:\SAFS\Project\rfttest.ini and make sure all the directories and files exists.

Confirm that runTIDTest.bat produced a SUCCESS log and message.
Confirm that RFTTest.CDD exists at C:\SAFS\Project\Datapool\RFTTest.CDD

Log OPENED 06-16-2009 11:37:53
**FAILED**Unable to locate or open Cycle TABLE: "RFTTest".
Log CLOSED 06-16-2009 11:37:53

The above is an indication that your project is not fully present.  RFTTest.CDD should definitely be present at C:\SAFS\Project\Datapool.  If you have moved things around to different locations then you will have to adjust the .BAT and .INI files accordingly.

Carl
-----Original Message-----
From: tripti pathak [mailto:trips.pathak@...]
Sent: Tuesday, June 16, 2009 2:25 AM
To: Rational Robot SAFS--Software Automation Framework Support
Subject: Re: [safs-rrafs] Need Help in Launching the Application through safs

Hi Carl,

When I run RunRFTTest.bat I get a log file getting generated

RFTTest.txt shows the follwoing error.

ersion 1.1
Log OPENED 06-16-2009 11:37:53
**FAILED**Unable to locate or open Cycle TABLE: "RFTTest".
Log CLOSED 06-16-2009 11:37:53



I have done the configurationas as per that
http://safsdev.sourceforge.net/sqabasic2000/SetupRobotJ.README.htm
http://safsdev.sourceforge.net/sqabasic2000/SetupSAFS.README.htm

What all configuration are required to launch RFT through SAFS.??


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You need to make sure your system CLASSPATH is populated with the appropriate SAFS and Rational JAR files.

Run SetupSAFSClasspath.wsf
Run SetupRationalClasspath.wsf

If you have created a new RFT Project somewhere then you probably have to configure it with CLASSPATHENTRIES like you should find at

  C:\SAFS\DatastoreJ\.classpath.

At the bottom you should note several STAF and SAFS entries.  You also want to make sure any new RFT Project has an explicit classpathentry to the rational_ft.jar at:

  C:\Program Files\IBM\SDP\FunctionalTester\bin\rational_ft.jar

Note: I'm just trying to come up with things to check in the absence of more information like where your projects are located, whether you are using the RFT project in the C:\SAFS directory, and your INI files and BAT file contents.

Carl

-----Original Message-----
From: tripti pathak [mailto:trips.pathak@...]
Sent: Tuesday, June 16, 2009 9:33 AM
To: Rational Robot SAFS--Software Automation Framework Support
Subject: Re: [safs-rrafs] Need Help in Launching the Application through safs

Hi Carl,



When i run this command    java
-Dsafs.processcontainer.ini="c:\safs\project\processcontainer.ini"
org.safs.tools.drivers.STAFProcessContainer


I get the follwoing error

Exception in thread "main" java.lang.NoClassDefFoundError: org/safs/tools/driver
s/STAFProcessContainer  ....

WHat should i check now

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by trips :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi carl,
1)
I re-installed safs and ran the RFTTest.bat .found RFTTest.CDD and ran it

This was the error I am getting in log file

 START DATATABLE: Cycle TABLE: C:\safs\project\datapool\RFTTest.CDD
          'Expressions' set to 'TRUE'
          Current test is 'RFTTest'.
          AppMapChaining ON successful.
          AppMapResolve ON successful.
          Application Map set to 'C:\safs\project\datapool\TIDTest.MAP'
          Preference of ROBOTJ Functions ENABLED.
- WARNING Unknown Driver Command "ClearAppMapCache" in
C:\safs\project\datapool\RFTTest.CDD at line 10
          "C" "ClearAppMapCache"
          "C" "SetVariableValues" "4" successful.
          OnEqualGotoBlockID did not branch to Passed.  '4' does not equal '-1'
**FAILED**RFT ClearAppMapCache failed with error:4
  ------  END DATATABLE: Cycle TABLE: C:\safs\project\datapool\RFTTest.CDD
REPORT     BEGIN STATUS: C:\safs\project\datapool\RFTTest.CDD
REPORT    TOTAL RECORDS: 11
REPORT  SKIPPED RECORDS: 0

REPORT     TEST RECORDS: 1



Also ,

2)What are all the changes that i need to do once I create a new
project file? which all files need to be configureed for that project.

Also in the Readme_RFT7.0 .txt file which i found in the safs overlay
release I found some stpes for configuring the Project are those to be
applied here also .for configuring..





On Tue, Jun 16, 2009 at 8:09 PM, Carl Nagle<Carl.Nagle@...> wrote:

> You need to make sure your system CLASSPATH is populated with the appropriate SAFS and Rational JAR files.
>
> Run SetupSAFSClasspath.wsf
> Run SetupRationalClasspath.wsf
>
> If you have created a new RFT Project somewhere then you probably have to configure it with CLASSPATHENTRIES like you should find at
>
>  C:\SAFS\DatastoreJ\.classpath.
>
> At the bottom you should note several STAF and SAFS entries.  You also want to make sure any new RFT Project has an explicit classpathentry to the rational_ft.jar at:
>
>  C:\Program Files\IBM\SDP\FunctionalTester\bin\rational_ft.jar
>
> Note: I'm just trying to come up with things to check in the absence of more information like where your projects are located, whether you are using the RFT project in the C:\SAFS directory, and your INI files and BAT file contents.
>
> Carl
>
> -----Original Message-----
> From: tripti pathak [mailto:trips.pathak@...]
> Sent: Tuesday, June 16, 2009 9:33 AM
> To: Rational Robot SAFS--Software Automation Framework Support
> Subject: Re: [safs-rrafs] Need Help in Launching the Application through safs
>
> Hi Carl,
>
>
>
> When i run this command    java
> -Dsafs.processcontainer.ini="c:\safs\project\processcontainer.ini"
> org.safs.tools.drivers.STAFProcessContainer
>
>
> I get the follwoing error
>
> Exception in thread "main" java.lang.NoClassDefFoundError: org/safs/tools/driver
> s/STAFProcessContainer  ....
>
> WHat should i check now
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> safsdev-rrafs@...
> https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs
>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by trips :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What should be passed in SAFSRobotJStartup.bat.

I was just checking that found that it was giveing a wasplugin path
which was not valid .should i check that plugin path in my environment
give in that file..what is the significance of rsp file


On Wed, Jun 17, 2009 at 5:15 PM, tripti pathak<trips.pathak@...> wrote:

> Hi carl,
> 1)
> I re-installed safs and ran the RFTTest.bat .found RFTTest.CDD and ran it
>
> This was the error I am getting in log file
>
>  START DATATABLE: Cycle TABLE: C:\safs\project\datapool\RFTTest.CDD
>          'Expressions' set to 'TRUE'
>          Current test is 'RFTTest'.
>          AppMapChaining ON successful.
>          AppMapResolve ON successful.
>          Application Map set to 'C:\safs\project\datapool\TIDTest.MAP'
>          Preference of ROBOTJ Functions ENABLED.
> - WARNING Unknown Driver Command "ClearAppMapCache" in
> C:\safs\project\datapool\RFTTest.CDD at line 10
>          "C"   "ClearAppMapCache"
>          "C"   "SetVariableValues"     "4" successful.
>          OnEqualGotoBlockID did not branch to Passed.  '4' does not equal '-1'
> **FAILED**RFT ClearAppMapCache failed with error:4
>  ------  END DATATABLE: Cycle TABLE: C:\safs\project\datapool\RFTTest.CDD
> REPORT     BEGIN STATUS: C:\safs\project\datapool\RFTTest.CDD
> REPORT    TOTAL RECORDS: 11
> REPORT  SKIPPED RECORDS: 0
>
> REPORT     TEST RECORDS: 1
>
>
>
> Also ,
>
> 2)What are all the changes that i need to do once I create a new
> project file? which all files need to be configureed for that project.
>
> Also in the Readme_RFT7.0 .txt file which i found in the safs overlay
> release I found some stpes for configuring the Project are those to be
> applied here also .for configuring..
>
>
>
>
>
> On Tue, Jun 16, 2009 at 8:09 PM, Carl Nagle<Carl.Nagle@...> wrote:
>> You need to make sure your system CLASSPATH is populated with the appropriate SAFS and Rational JAR files.
>>
>> Run SetupSAFSClasspath.wsf
>> Run SetupRationalClasspath.wsf
>>
>> If you have created a new RFT Project somewhere then you probably have to configure it with CLASSPATHENTRIES like you should find at
>>
>>  C:\SAFS\DatastoreJ\.classpath.
>>
>> At the bottom you should note several STAF and SAFS entries.  You also want to make sure any new RFT Project has an explicit classpathentry to the rational_ft.jar at:
>>
>>  C:\Program Files\IBM\SDP\FunctionalTester\bin\rational_ft.jar
>>
>> Note: I'm just trying to come up with things to check in the absence of more information like where your projects are located, whether you are using the RFT project in the C:\SAFS directory, and your INI files and BAT file contents.
>>
>> Carl
>>
>> -----Original Message-----
>> From: tripti pathak [mailto:trips.pathak@...]
>> Sent: Tuesday, June 16, 2009 9:33 AM
>> To: Rational Robot SAFS--Software Automation Framework Support
>> Subject: Re: [safs-rrafs] Need Help in Launching the Application through safs
>>
>> Hi Carl,
>>
>>
>>
>> When i run this command    java
>> -Dsafs.processcontainer.ini="c:\safs\project\processcontainer.ini"
>> org.safs.tools.drivers.STAFProcessContainer
>>
>>
>> I get the follwoing error
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError: org/safs/tools/driver
>> s/STAFProcessContainer  ....
>>
>> WHat should i check now
>>
>> ------------------------------------------------------------------------------
>> Crystal Reports - New Free Runtime and 30 Day Trial
>> Check out the new simplified licensing option that enables unlimited
>> royalty-free distribution of the report engine for externally facing
>> server and web deployment.
>> http://p.sf.net/sfu/businessobjects
>> _______________________________________________
>> safsdev-rrafs@...
>> https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs
>>
>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

SAFSRobotJStartup.bat would not normally be run.  That is generally a way to launch the SAFS/RFT engine independent of running a test.

STAF has to be running and in many cases the SAFS services should also already be running.

I'm not sure I know what version of SAFSRobotJStartup you have because I don't believe this comes with any Overlay (needs to be remedied).  The one we distributed many moons ago for RFT (V6!) will not work "as-is" for RFT V8.

Here is the type of command-line invocation that works for RFT V8 that would have to be in such a BAT file:

C:\Program Files\IBM\SDP\jdk\jre\bin\java.exe' -jar 'C:\Program Files\IBM\SDP\FunctionalTester\bin\rational_ft.jar' -projectpath c:\STAF\bin\jstaf.jar;c:\SAFS\lib\safs.jar;c:\SAFS\lib\jakarta-regexp-1.3.jar;c:\SAFS\lib\safsrational_ft.jar;c:\SAFS\lib\safsrational_ft_enabler.jar;c:\SAFS\lib\jai_core.jar;c:\SAFS\lib\jai_codec.jar;c:\SAFS\lib\jna.zip;c:\SAFS\lib\win32-x86.zip;c:\SAFS\lib\safscust.jar;c:\SAFS\lib\safsdebug.jar; -datastore C:\SAFS\Project -playback TestScript -args safs.config.paths=C:\SAFS\Project\rfttest.ini;C:\SAFS\Project\safstid.ini;C:\SAFS\safstid.ini ]

And if using with STAF Process Container, the -args value would change to:

-args safs.config.paths=C:\SAFS\Project\processcontainer.ini;C:\SAFS\Project \safstid.ini;C:\SAFS\safstid.ini ]

An RSP file is a project file associated with a Rational Test Manager not normally used with RFT and SAFS.

Carl

-----Original Message-----
From: tripti pathak [mailto:trips.pathak@...]
Sent: Wednesday, June 17, 2009 8:23 AM
To: Rational Robot SAFS--Software Automation Framework Support
Subject: Re: [safs-rrafs] Need Help in Launching the Application through safs

What should be passed in SAFSRobotJStartup.bat.

I was just checking that found that it was giveing a wasplugin path
which was not valid .should i check that plugin path in my environment
give in that file..what is the significance of rsp file

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by trips :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Carl,

Thanks for this help.it works fine on my environment.

Also , I am stuck at that point where it is mentioned that "clear
Appcache ok" message should be in the RFTTest.log.

that means that my Set-up is not done correctly and i cannot proceed
writing my sample project


On Thu, Jun 18, 2009 at 7:48 PM, Carl Nagle<Carl.Nagle@...> wrote:

> SAFSRobotJStartup.bat would not normally be run.  That is generally a way to launch the SAFS/RFT engine independent of running a test.
>
> STAF has to be running and in many cases the SAFS services should also already be running.
>
> I'm not sure I know what version of SAFSRobotJStartup you have because I don't believe this comes with any Overlay (needs to be remedied).  The one we distributed many moons ago for RFT (V6!) will not work "as-is" for RFT V8.
>
> Here is the type of command-line invocation that works for RFT V8 that would have to be in such a BAT file:
>
> C:\Program Files\IBM\SDP\jdk\jre\bin\java.exe' -jar 'C:\Program Files\IBM\SDP\FunctionalTester\bin\rational_ft.jar' -projectpath c:\STAF\bin\jstaf.jar;c:\SAFS\lib\safs.jar;c:\SAFS\lib\jakarta-regexp-1.3.jar;c:\SAFS\lib\safsrational_ft.jar;c:\SAFS\lib\safsrational_ft_enabler.jar;c:\SAFS\lib\jai_core.jar;c:\SAFS\lib\jai_codec.jar;c:\SAFS\lib\jna.zip;c:\SAFS\lib\win32-x86.zip;c:\SAFS\lib\safscust.jar;c:\SAFS\lib\safsdebug.jar; -datastore C:\SAFS\Project -playback TestScript -args safs.config.paths=C:\SAFS\Project\rfttest.ini;C:\SAFS\Project\safstid.ini;C:\SAFS\safstid.ini ]
>
> And if using with STAF Process Container, the -args value would change to:
>
> -args safs.config.paths=C:\SAFS\Project\processcontainer.ini;C:\SAFS\Project \safstid.ini;C:\SAFS\safstid.ini ]
>
> An RSP file is a project file associated with a Rational Test Manager not normally used with RFT and SAFS.
>
> Carl
>
> -----Original Message-----
> From: tripti pathak [mailto:trips.pathak@...]
> Sent: Wednesday, June 17, 2009 8:23 AM
> To: Rational Robot SAFS--Software Automation Framework Support
> Subject: Re: [safs-rrafs] Need Help in Launching the Application through safs
>
> What should be passed in SAFSRobotJStartup.bat.
>
> I was just checking that found that it was giveing a wasplugin path
> which was not valid .should i check that plugin path in my environment
> give in that file..what is the significance of rsp file
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> safsdev-rrafs@...
> https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs
>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Thanks for this help.  it works fine on my environment."

What works fine on your environment?

If you are NOT getting an OK message during the RFTTest then that means the SAFS\RFT engine is not running to execute the command.  So things are not working fine in your environment.

Copy your test INI file into an email response so we can see what you have in there.

Perhaps you can tell us step-by-step what you are doing to launch the test.  You do not need ANYTHING already running.  Not STAF, not SAFS...nothing.

Carl

-----Original Message-----
From: tripti pathak [mailto:trips.pathak@...]
Subject: Re: [safs-rrafs] Need Help in Launching the Application through safs

Carl,

Thanks for this help.it works fine on my environment.

Also , I am stuck at that point where it is mentioned that "clear
Appcache ok" message should be in the RFTTest.log.

that means that my Set-up is not done correctly and i cannot proceed
writing my sample project


On Thu, Jun 18, 2009 at 7:48 PM, Carl Nagle<Carl.Nagle@...> wrote:

> SAFSRobotJStartup.bat would not normally be run.  That is generally a way to launch the SAFS/RFT engine independent of running a test.
>
> STAF has to be running and in many cases the SAFS services should also already be running.
>
> I'm not sure I know what version of SAFSRobotJStartup you have because I don't believe this comes with any Overlay (needs to be remedied).  The one we distributed many moons ago for RFT (V6!) will not work "as-is" for RFT V8.
>
> Here is the type of command-line invocation that works for RFT V8 that would have to be in such a BAT file:
>
> C:\Program Files\IBM\SDP\jdk\jre\bin\java.exe' -jar 'C:\Program Files\IBM\SDP\FunctionalTester\bin\rational_ft.jar' -projectpath c:\STAF\bin\jstaf.jar;c:\SAFS\lib\safs.jar;c:\SAFS\lib\jakarta-regexp-1.3.jar;c:\SAFS\lib\safsrational_ft.jar;c:\SAFS\lib\safsrational_ft_enabler.jar;c:\SAFS\lib\jai_core.jar;c:\SAFS\lib\jai_codec.jar;c:\SAFS\lib\jna.zip;c:\SAFS\lib\win32-x86.zip;c:\SAFS\lib\safscust.jar;c:\SAFS\lib\safsdebug.jar; -datastore C:\SAFS\Project -playback TestScript -args safs.config.paths=C:\SAFS\Project\rfttest.ini;C:\SAFS\Project\safstid.ini;C:\SAFS\safstid.ini ]
>
> And if using with STAF Process Container, the -args value would change to:
>
> -args safs.config.paths=C:\SAFS\Project\processcontainer.ini;C:\SAFS\Project \safstid.ini;C:\SAFS\safstid.ini ]
>
> An RSP file is a project file associated with a Rational Test Manager not normally used with RFT and SAFS.
>
> Carl
>

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by trips :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Carl,

I made a fresh start and installed safs again and followed the instructions

again I am stuck at a point that AppCache not successful.

FInd attached my RFTtest.ini , safstest.ini and rfttest.cdd and the rft logs .

kindly let me know where am i going stuck in installation

Version 1.1
Log OPENED 06-26-2009 19:33:03
  ------  START DATATABLE: Cycle TABLE: C:\safs\project\RFTTest.CDD
          'Expressions' set to 'TRUE'
          Current test is 'RFTTest'.
          AppMapChaining ON successful.
          AppMapResolve ON successful.
          Application Map set to 'C:\safs\project\datapool\TIDTest.MAP'
          Preference of ROBOTJ Functions ENABLED.
- WARNING Unknown Driver Command "ClearAppMapCache" in C:\safs\project\RFTTest.CDD at line 10
          "C" "ClearAppMapCache"
          "C" "SetVariableValues" "4" successful.
          OnEqualGotoBlockID did not branch to Passed.  '4' does not equal '-1'
**FAILED**RFT ClearAppMapCache failed with error:4
  ------  END DATATABLE: Cycle TABLE: C:\safs\project\RFTTest.CDD
REPORT     BEGIN STATUS: C:\safs\project\RFTTest.CDD
REPORT    TOTAL RECORDS: 11
REPORT  SKIPPED RECORDS: 0
           
REPORT     TEST RECORDS: 1
REPORT    TEST FAILURES: 1
REPORT    TEST WARNINGS: 0
REPORT     TESTS PASSED: 0
           
REPORT GENERAL FAILURES: 0
REPORT GENERAL WARNINGS: 1
REPORT      IO FAILURES: 0
REPORT       END STATUS: C:\safs\project\RFTTest.CDD
Log CLOSED 06-26-2009 19:33:03




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

_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

rfttest.ini (512 bytes) Download Attachment
RFTTest.CDD (610 bytes) Download Attachment
safstid.ini (316 bytes) Download Attachment

Re: Need Help in Launching the Application through safs

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This doesn't provide enough information to figure out "why" RFT is not being launched.

With STAF running, you should try the following command-line to see if you can capture any errors of "why" RFT is not launching successfully:

'C:\Program Files\IBM\SDP\jdk\jre\bin\java.exe' -jar 'C:\Program Files\IBM\SDP\FunctionalTester\bin\rational_ft.jar' -projectpath c:\STAF\bin\jstaf.jar;c:\SAFS\lib\safs.jar;c:\SAFS\lib\jakarta-regexp-1.3.jar;c:\SAFS\lib\safsrational_ft.jar;c:\SAFS\lib\safsrational_ft_enabler.jar;c:\SAFS\lib\jai_core.jar;c:\SAFS\lib\jai_codec.jar;c:\SAFS\lib\jna.zip;c:\SAFS\lib\win32-x86.zip;c:\SAFS\lib\safscust.jar;c:\SAFS\lib\safsdebug.jar; -datastore C:\SAFS\DatastoreJ -playback TestScript -args safs.config.paths=C:\SAFS\Project\RFTTest.ini;C:\SAFS\Project\safstid.ini;C:\safs\safstid.ini


Also, make sure you C:\SAFS\DatastoreJ does NOT have:

  TestScript.java
  TestScript.class
  resources\TestScriptHelper.java
  resources\TestScriptHelper.class

You should only have these references to "TestScript":

  TestScript.testsuite
  resources\TestScript.rftdef


Carl

-----Original Message-----
From: tripti pathak [mailto:trips.pathak@...]
Sent: Friday, June 26, 2009 10:10 AM
To: Rational Robot SAFS--Software Automation Framework Support
Subject: Re: [safs-rrafs] Need Help in Launching the Application through safs

Hi Carl,

I made a fresh start and installed safs again and followed the instructions

again I am stuck at a point that AppCache not successful.

FInd attached my RFTtest.ini , safstest.ini and rfttest.cdd and the rft logs .

kindly let me know where am i going stuck in installation

------------------------------------------------------------------------------
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by trips :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Carl,

What is the expected behavior when I run that command Line to launch
RFT through command line.

I see that that the RFT playback window getting launched.it waits for
say i believe some 30 secs and then it goes

Is it a expected behavior .?

But the Log file says "Unknown driver command"



follwoing is the response i get when I launch the command line

C:\Documents and Settings\Administrator>java -Dsafs.project.config="C:\safs\proj
ect\RFTTest.ini" org.safs.tools.drivers.SAFSDRIVER
SAFSINPUT is not running. Evaluating AUTOLAUNCH...
SAFSMAPS is not running. Evaluating AUTOLAUNCH...
SAFSVARS is not running. Evaluating AUTOLAUNCH...
SAFSLOGS interface 'OVERWRITE'=TRUE
SAFSLOGS interface setting OVERWRITE = true
SAFSLOGS interface 'CAPXML'=TRUE
SAFSLOGS interface setting CAPXML = true
SAFSLOGS is not running. Evaluating AUTOLAUNCH...
safsparams.dat path: '/C:/safs/lib/safsparams.dat'
secsWaitForWindow: 30
secsWaitForComponent: 30
commandLineBreakpoint: false
testDomains: Html,Net
(1) SAFS/IPDriverCommands running internal to SAFS/TIDriver
safsparams.dat path: '/C:/SAFS/lib/safsparams.dat'
secsWaitForWindow: 30
secsWaitForComponent: 30
commandLineBreakpoint: false
testDomains: Html,Net
Overriding config setting: testDomains = Java,Html,Win,Net,Swt,Flex

Thanks,
tripti


Also

On Fri, Jun 26, 2009 at 10:16 PM, Carl Nagle<Carl.Nagle@...> wrote:

> This doesn't provide enough information to figure out "why" RFT is not being launched.
>
> With STAF running, you should try the following command-line to see if you can capture any errors of "why" RFT is not launching successfully:
>
> 'C:\Program Files\IBM\SDP\jdk\jre\bin\java.exe' -jar 'C:\Program Files\IBM\SDP\FunctionalTester\bin\rational_ft.jar' -projectpath c:\STAF\bin\jstaf.jar;c:\SAFS\lib\safs.jar;c:\SAFS\lib\jakarta-regexp-1.3.jar;c:\SAFS\lib\safsrational_ft.jar;c:\SAFS\lib\safsrational_ft_enabler.jar;c:\SAFS\lib\jai_core.jar;c:\SAFS\lib\jai_codec.jar;c:\SAFS\lib\jna.zip;c:\SAFS\lib\win32-x86.zip;c:\SAFS\lib\safscust.jar;c:\SAFS\lib\safsdebug.jar; -datastore C:\SAFS\DatastoreJ -playback TestScript -args safs.config.paths=C:\SAFS\Project\RFTTest.ini;C:\SAFS\Project\safstid.ini;C:\safs\safstid.ini
>
>
> Also, make sure you C:\SAFS\DatastoreJ does NOT have:
>
>  TestScript.java
>  TestScript.class
>  resources\TestScriptHelper.java
>  resources\TestScriptHelper.class
>
> You should only have these references to "TestScript":
>
>  TestScript.testsuite
>  resources\TestScript.rftdef
>
>
> Carl
>
> -----Original Message-----
> From: tripti pathak [mailto:trips.pathak@...]
> Sent: Friday, June 26, 2009 10:10 AM
> To: Rational Robot SAFS--Software Automation Framework Support
> Subject: Re: [safs-rrafs] Need Help in Launching the Application through safs
>
> Hi Carl,
>
> I made a fresh start and installed safs again and followed the instructions
>
> again I am stuck at a point that AppCache not successful.
>
> FInd attached my RFTtest.ini , safstest.ini and rfttest.cdd and the rft logs .
>
> kindly let me know where am i going stuck in installation
>
> ------------------------------------------------------------------------------
> _______________________________________________
> safsdev-rrafs@...
> https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs
>

------------------------------------------------------------------------------
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The expected behavior for RFT launched from the command-line WITH STAF RUNNING is that you will see the playback window come up and it will remain up indefinitely until the appropriate SHUTDOWN command is received from somebody (anybody) like SAFSRobotJShutdown.BAT.

If STAF is not running it will launch the Playback window and die within seconds because it could not register with STAF.

During a SAFS test, if RFT is AUTOLAUNCHED, the Playback window should appear and remain until the test completes.  Then RFT should shutdown automatically and the Playback window should go away.

However, I am surprised that you are not seeing this message in the console after RFT launches:

"This project was created with an older version product which has been upgraded.
Incompatibilities could arise. Please update your project by disconnecting and
reconnecting it."

What version of RFT are you using?  And, what is the date on the SAFS JAR files you are using in C:\SAFS\lib?

Also, a SAFS DEBUG LOG would be helpful.
http://safsdev.sourceforge.net/sqabasic2000/SAFSDevelopment.htm#exploredebuglog

If you are seeing the Playback window come up but then shutdown BEFORE SAFS does the ClearAppMapCache then that might be an indication that RFT is NOT at all happy with the Datastore located at C:\SAFS\DatastoreJ for some reason.

Carl

-----Original Message-----
From: tripti pathak [mailto:trips.pathak@...]
Subject: Re: [safs-rrafs] Need Help in Launching the Application through safs

Carl,

What is the expected behavior when I run that command Line to launch
RFT through command line.

I see that that the RFT playback window getting launched.it waits for
say i believe some 30 secs and then it goes

Is it a expected behavior .?

But the Log file says "Unknown driver command"



follwoing is the response i get when I launch the command line

C:\Documents and Settings\Administrator>java -Dsafs.project.config="C:\safs\proj
ect\RFTTest.ini" org.safs.tools.drivers.SAFSDRIVER
SAFSINPUT is not running. Evaluating AUTOLAUNCH...
SAFSMAPS is not running. Evaluating AUTOLAUNCH...
SAFSVARS is not running. Evaluating AUTOLAUNCH...
SAFSLOGS interface 'OVERWRITE'=TRUE
SAFSLOGS interface setting OVERWRITE = true
SAFSLOGS interface 'CAPXML'=TRUE
SAFSLOGS interface setting CAPXML = true
SAFSLOGS is not running. Evaluating AUTOLAUNCH...
safsparams.dat path: '/C:/safs/lib/safsparams.dat'
secsWaitForWindow: 30
secsWaitForComponent: 30
commandLineBreakpoint: false
testDomains: Html,Net
(1) SAFS/IPDriverCommands running internal to SAFS/TIDriver
safsparams.dat path: '/C:/SAFS/lib/safsparams.dat'
secsWaitForWindow: 30
secsWaitForComponent: 30
commandLineBreakpoint: false
testDomains: Html,Net
Overriding config setting: testDomains = Java,Html,Win,Net,Swt,Flex

Thanks,
tripti


------------------------------------------------------------------------------
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: Need Help in Launching the Application through safs

by trips :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Carl,

The Date on Safs/lib directory is Wednesday, March 11, 2009, 10:22:52 AM

Also, When I try to launch RFT through command Line I see the playback
window getting opened and the windo remains till the time i close it .

When I run the RFTTest.bat , i get the safs monitor and RFT playback
window for say 10 second and then it goes ..but this time my log says
"ClearApp" successful.

So Should i Consider configuration of SAFS and RFT sucessful.

Now I have moved to create my sample Project

Thanks for ue help till here...Will surely have many Queries now...

------------------------------------------------------------------------------
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs
< Prev | 1 - 2 | Next >