Custom Driver Commands

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

Custom Driver Commands

by Bhargavasafs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Carl,
How and Where should I place my Custom Driver Command Scripts for RFT? I am actually migrating from Rational robot to Rft. I have written some scripts as Custom Driver Commands for Rational Robot which I need to be able to implement in RFT without much pain. It would also be helpful if you could show me a sample Script. What are the equivalent .sbh, .sbl files that i need to import for these Custom Scripts. Hoping for a quick response.

Thanks,
Bhargava

Re: Custom Driver Commands

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This feature has been around "forever", but has not been very well documented:

http://safsdev.sourceforge.net/sqabasic2000/UsingCustomSAFSExtensions.htm

Essentially, SAFS attempts to dynamically instantiate "custom" classes of specific names before it tries to instantiate "standard" classes.

Primarily, you could create a "org.safs.rational.custom.DCDriverCommands" class the subclasses the org.safs.rational.DCDriverCommands class.  Of course, this assumes you require some type of dependency on RFT in your Driver Commands.

If you have no RFT dependency, then you can perform similar subclassing for SAFS Driver Commands classes instead of RFT classes.  (org.safs.DCDriverMiscCommands)

You can actually "see" the dynamic attempts to instantiate custom classes when you use the Debug Log.  Each attempt fails with an ignored ClassNotFoundException until it finally finds a class that can be instantiated.  There are SEVERAL default and package names available for customization.

Perhaps you can expand upon what you need and we can point you into the best direction?

Carl

-----Original Message-----
From: Bhargavasafs [mailto:sukkala.bhargava@...]
Subject: [safs-developer] Custom Driver Commands

Hi Carl,
How and Where should I place my Custom Driver Command Scripts for RFT? I am
actually migrating from Rational robot to Rft. I have written some scripts
as Custom Driver Commands for Rational Robot which I need to be able to
implement in RFT without much pain. It would also be helpful if you could
show me a sample Script. What are the equivalent .sbh, .sbl files that i
need to import for these Custom Scripts. Hoping for a quick response.

Thanks,
Bhargava
--


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
safsdev-developers mailing list
safsdev-developers@...
https://lists.sourceforge.net/lists/listinfo/safsdev-developers