STAF Service

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

STAF Service

by Fabio Andrés :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everyone,

I have:
Windows XP SP 3
Rational Robot Version 2003.06.13.402.000
RRAFSRelease2007.04.18
STAF332-setup-win32
java version 1.6.0_15

every time I execute some robot script, in console window the next message appears "*** STAF Service Loader may not be operational ***". Usually I can execute all robots without problem. could you tell me how can I avoid this message? how can I solve it?

I trying execute the next line
C UseRobotJFunctions ON
But the next message appears:
- WARNING Cannot use RobotJ functions as requested in table Z:\...\T_SALIDA_CNIMC.sdd at Line  5
          RobotJ, STAF, or associated services are not available.

What must I do?

Thanks for advanced

Re: STAF Service

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The latest release notes should show that:

Robot cannot run with STAF V3.  You must use STAF V2 with Rational Robot.
Also, a reminder, STAF V2 cannot be installed with Java 1.6.  You can install STAF V2 with Java 1.4 or 1.5.  AFTER the install, Java 1.6 can be used.

http://safsdev.sourceforge.net/sqabasic2000/SAFSReleaseNotes2009.10.09.htm

Carl

-----Original Message-----
From: Fabio Andrés [mailto:rockfavc@...]
Subject: [safs-rrafs] STAF Service


Hi everyone,

I have:
Windows XP SP 3
Rational Robot Version 2003.06.13.402.000
RRAFSRelease2007.04.18
STAF332-setup-win32
java version 1.6.0_15

every time I execute some robot script, in console window the next message
appears "*** STAF Service Loader may not be operational ***". Usually I can
execute all robots without problem. could you tell me how can I avoid this
message? how can I solve it?

I trying execute the next line
C       UseRobotJFunctions      ON
But the next message appears:
- WARNING Cannot use RobotJ functions as requested in table
Z:\...\T_SALIDA_CNIMC.sdd at Line  5
          RobotJ, STAF, or associated services are not available.

What must I do?

Thanks for advanced

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: STAF Service

by Fabio Andrés :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Carl, thank you for answer.

I'm going to install the correct Staf version.

If I install the correct version to Rational Robot, can I use the next command??

C UseRobotJFunctions ON
T GetProperty cmdCancelarAgregarElegido "Visible"

I need to know the property value of some object GUI, exists another way to do it?

Thanks for advanced

Re: STAF Service

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So...you are using both Rational Robot and Rational Functional Tester?  Is there a reason you need to continue to use Rational Robot in addition to using RFT?

UseRobotJFunctions is used to tell Robot to "prefer" RFT until turned OFF.

Use Process Container for Rational Robot:
http://safsdev.sourceforge.net/sqabasic2000/ProcessContainer.htm

Use STAF Process Container for SAFS using RFT:
http://safsdev.sourceforge.net/doc/org/safs/tools/drivers/STAFProcessContainer.html

Process Container tools can tell you the available object property names for a given object.  The Object Inspectors provided by both Robot and RFT can usually do that, too.

To get and retain the value of an object property during a test you would use AssignPropertyVariable:
http://safsdev.sourceforge.net/sqabasic2000/SAFSReference.php?lib=GenericMasterFunctions&cmd=AssignPropertyVariable

Note: that would require a test record something like:

T   WindowID   CompID   AssignPropertyVariable  PropertyName  VariableName

You might want to more fully explain your test setup and scenario.


Carl

-----Original Message-----
From: Fabio Andrés [mailto:rockfavc@...]
Subject: Re: [safs-rrafs] STAF Service


Hi Carl, thank you for answer.

I'm going to install the correct Staf version.

If I install the correct version to Rational Robot, can I use the next
command??

C       UseRobotJFunctions      ON
T       GetProperty     cmdCancelarAgregarElegido       "Visible"

I need to know the property value of some object GUI, exists another way to
do it?

Thanks for advanced

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs

Re: STAF Service

by Fabio Andrés :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Carl I hope you are fine.

Thank you for answer.

Windows XP SP 3
Rational Robot Version 2003.06.13.402.000
RRAFSRelease2007.04.18
java version 1.5.0_06-b05

I followed the uninstalling STAF procedure, I deleted the environment variables.
I uninstalled STAF version 332 for win32.
I deleted the staf directory (C:\STAF)

I trying install STAF269-setup-win32 but I get an error from wizard "an existing version of STAF is currently installed on this machine" but I don have any more installed.

¿What must I do to solve it?

thanks for advanced



Re: STAF Service

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sounds like your STAF uninstall did not fully complete successfully.  You might have to use REGEDIT to clear out STAF registry entries.

HKEY_LOCAL_MACHINE->Software->IBM->STAF

Look in there and see if you need to clear out the STAF registry entries.

Note: You should be installing STAF 2.6.11.  There are potentially install issues with earlier versions of STAF.

Don't forget to make sure Environment Variable STAFDIR gets set correctly after the STAF install.  And make sure the PATH and CLASSPATH variables are updated with STAF\bin and JSTAF.JAR respectively.

Carl

-----Original Message-----
From: Fabio Andrés [mailto:rockfavc@...]
Subject: Re: [safs-rrafs] STAF Service


Hi Carl I hope you are fine.

Thank you for answer.

I followed the uninstalling STAF procedure, I deleted the environment
variables.
I uninstalled STAF version 332 for win32.
I deleted the staf directory (C:\STAF)

I trying install STAF269-setup-win32 but I get an error from wizard "an
existing version of STAF is currently installed on this machine" but I don
have any more installed.

¿What must I do to solve it?

thanks for advanced
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs