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:)



3 comments:

  1. Can you explain in detail how to switch RQM UI under Execution Argument option. I am not able find these options

    ReplyDelete
  2. Sorry lavanya, when i was with IBM and was responsible for Adapter development , this is how option use to appear , but that is 2 year old story . Though i am hoping in core product something drastic would not have changed . At the time of execution of any script at the lower base you should be able to see these switch . if not sorry again :)

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete