Showing posts with label RFT RQM. Show all posts
Showing posts with label RFT RQM. Show all posts

Sunday, May 22, 2011

How to Build/Clean a RFT project from command Line

Use these commands to compile (build) and run an individual script called "Script1":

set RFT_PROJECT_LOCATION="C:\Path_to_root_of_project"

"%IBM_RATIONAL_RFT_ECLIPSE_DIR%\jdk\jre\bin\java" -classpath "%IBM_RATIONAL_RFT_INSTALL_DIR%\rational_ft.jar" com.rational.test.ft.rational_ft -datastore %RFT_PROJECT_LOCATION% -compile Script1

"%IBM_RATIONAL_RFT_ECLIPSE_DIR%\jdk\jre\bin\java" -classpath "%IBM_RATIONAL_RFT_INSTALL_DIR%\rational_ft.jar" com.rational.test.ft.rational_ft -datastore %RFT_PROJECT_LOCATION% -playback Script1 -log Script1_log

Or you can combine the two commands into one:

set RFT_PROJECT_LOCATION="C:\Path_to_root_of_project"

"%IBM_RATIONAL_RFT_ECLIPSE_DIR%\jdk\jre\bin\java" -classpath "%IBM_RATIONAL_RFT_INSTALL_DIR%\rational_ft.jar" com.rational.test.ft.rational_ft -datastore %RFT_PROJECT_LOCATION% -compile Script1 -playback -log Script1_log

Wednesday, April 27, 2011

Script facing Class Not Found Exception while running from RQM

If your script has dependency on External (third party jar or your own Created Jars) The place to keep them before running them from RQM is okay hold on 
before that 
RQM As a product actually gives you two options 
1.Simple Option 
2.very Simple option :)

Now let me stop beating around the Bush and get to the point 
 
Say your Script name is myname.java and your Script uses a method printMyName() which is part of External1.Jar,and printyourName which is part of External2.jar . One way to execute script is to put every thing(External1 and External2.jar) in the machine which has RFT installed at location 
C:\Documents and Settings\All Users\Application Data\IBM\RFT\customization








And test will go fine
as this is the default location we look for while executing the test 

The next option is where you want to keep all teh dependency at a shared location 
That you can do by giving a switch at RQM UI under Execution Argument option 
like -projectPath c:\ExernalJar_Location 
where External jar location is the place where i have put the 
External1.jar and External2.jar

Shoot Questions if you did not find it working:)



Saturday, February 19, 2011

Connecting RFT And RQM andworking as a Single product



Here I am writing first time about what I work upon.
Read http://startattechnologystop.blogspot.com/2011/01/top-ten-reasons-for-why-you-should-use.html  to know what RFT (Rational Functional Tester) is and read http://qualitymanager.wordpress.com/  to know about another great product from IBM Rational. Now here is where I come in to picture. My responsibility at IBM Rational is to get these two products working together as one product so I basically work on integration of RFT – RQM
     If you care to read the first blog link given at starting of my blog you would know RFT as a product has wide coverage on Domain , Application for Automation testing and the second blog is about the Testing management which seems to be pain at the wrong place for innumerable number of companies and most discussed topic inside companies.
How to test what to test and how fast and effective testing can be.

  Now consider you shave started automating your Application with the RFT and you have learned to manage your test as well with RQM now the challenge is to arrange automated tests as RQM is more focused on Manual testing. Here is where RFT Adapter comes in to picture.
 Adapter allows you to keep your tests at a Shared location/Locally and arrange the Tests at RQM GUI side and you can plan and Run your tests at RQM side and see it running (if you wish to ) at the side where RFT is installed.if I sound Greek and Latin let me take you through one complete cycle of running a RFT Script  from RQM .

if you allow me, I am going to assume that you know how to record a Script at RFT if not?? even better - no worries here is how you can do that
Download the trial version of product from www.ibm.com/developerworks/downloads/r/rft/ and the help which will get install with it will take you through the step by step process of recording. Else go through “pubbuilder site RFT IBM “ and you will get loads of video which will illustrate and take you through the process.
And you can get RQM Trial version from http://jazz.net/
And there you are ready with a combination which can help you using your resources
Optimally and give your testing a coverage which you had only though about but never have been able to achieveJ

What is Adapter ??

It’s a small tool which help you to connect two most amazing product from rational labs and enable you to use them as a single product

What does it looks like ??

So here is how Architecture wise it works



PS that this is very very basic presentation of what Adapter can actually do .

  So this is where I stop for this blog in my next blog I will take you through the one complete execution of a RFT Script from RQM side