It's all about the answers!

Ask a question

ClassDefNotFound error on executing a RFT script from RQM


Samta Bhola (1121) | asked Dec 01 '10, 4:48 a.m.
retagged May 08 '13, 11:10 a.m. by Lisa Caten (342913)
HI

I have a RFT script which is dependent on a jar file. When I execute thsi script from RFT, it works well. When I execute the same script using RQM adapter from RQM, it gives me the error that ClassDefNotFound.

I am executing the scripts on the same machine where the RFT script is located.

Can anyone help me to sought this out ? I have tried adding the jar path in the Classpath system variable of the machine, but still the same problem.

Thanks in adavance!

4 answers



permanent link
Gabriel Jonsson (10644) | answered Dec 02 '10, 7:01 a.m.
When importing test script to RQM, there is a field called script arguments.
There specify the full path to the jar, where your build engine built it, using -projectpath, for example:

-projectpath z:\latestbuild\CalculatorGUI\lib\Calculator.jar

I dont know if that's the best practice solution, but it works.

permanent link
Igor M (2166) | answered Dec 02 '10, 4:36 a.m.
It may be same problem as run RFT scripts from RTM.

Try to copy your jars to "C:\Documents and Settings\All Users\Application Data\IBM\RFT\customization" (for Windows XP. Your path could be other).
After that link your RFT project to that location and rebuild.

Maybe it could help.

Comments
Samta Bhola commented Dec 02 '10, 6:57 a.m. | edited May 06 '13, 2:33 a.m.

In windows XP, I could find the customization folder only at this path -C:\Program Files\IBM\SDP\FunctionalTester\bin\customization.

Do you suggest me to copy the jar file to this directory ? It contains .rftcus & .rftop files right now.

Just wanted to confirm if that's the correct folder that I am looking at to copy the jar ?

Looking forward for your response.

Thanks !


Igor M commented Dec 02 '10, 8:08 a.m. | edited May 06 '13, 2:33 a.m.
In windows XP, I could find the customization folder only at this path -C:\Program Files\IBM\SDP\FunctionalTester\bin\customization.

Do you suggest me to copy the jar file to this directory ? It contains .rftcus & .rftop files right now.

Just wanted to confirm if that's the correct folder that I am looking at to copy the jar ?


No.
In my situation i copy jars to folder with "com.ibm.terminal.tester.ft.jar" (in documents and settings folder). That file links to the RFT project "by default" and locates in "document and settings" folder.
If the Gabri's method works - its the best practice.


permanent link
Samta Bhola (1121) | answered Dec 02 '10, 11:42 p.m.
Thanks to both of you.

I tried with Gabri's suggested way and the ClassDefNotFound error is no more there.

But now there is another problem:
RQM says that the execution is successful & the test is passed, but when I checked it did not do the intended task of sending a mail with a file attachment. The log file is also blank.

Can you suggest me how to debug this ? How do I know where does it get stuck ?
Where can I see the debug statements that I have added to the script ?

Looking forward for your response.
Thanks

permanent link
srinivas kini (1) | answered May 06 '13, 1:30 a.m.

You can avoid the problem by placing a copy of external jars in the RFT customization folder.


The RFT customization folder location can be checked in the below registry:

\HKEY_LOCAL_MACHINE\SOFTWARE\Rational Software\Rational Test\8\Rational FT Customization Directory

Assuming the operating system is Windows XP, the default location is:
C:\Documents and Settings\All Users\Application Data\IBM\RFT\customization

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.