ClassNotDeffException whenn running a RFT Script from RQM
Martin Wassermann (138●6●41●44)
| asked Nov 22 '11, 10:39 a.m.
retagged Jun 20 '12, 1:10 a.m. by Pramod Chandoria (2.1k●1●12●20)
In my Functional Test Script I use some jars. Running the test from the Rational Functional Tester works fine, but when I start the script from RQM via the adapter, I receive a ClassNotDefException.
I found an article in developer works (http://www-01.ibm.com/support/docview.wss?uid=swg21469240). I didnt have the folder C:\Documents and Settings\All Users\Application Data\IBM\RFT\customization\ so I copied the jars to C:\Users\Administrator\IBM\RFT\customization. But the ClassNotDefException still occurs. Did anybody know why this is not working? |
Accepted answer
Hi @wassermann,
C:\Users\Administrator\IBM\RFT\customization\ won't work; the external JARs need to go in the RFT customization directory contained within %ALLUSERSPROFILE%. This folder is normally "hidden" so it is not visible in Windows Explorer by default (maybe that's why you couldn't find it)? If in doubt, just open "Start > Run", paste the following, and click OK: %ALLUSERSPROFILE%\IBM\RFT\customization\ Also note that the literal path does vary by version of Windows, and that although the above information reflects the default location you can hardcode any path you want my modifying a RFT registry key. See my post here for more details: http://www.ibm.com/developerworks/forums/thread.jspa?threadID=401778 To avoid this error when invoking RFT script playback via the RFT CLI (command-line interface), you need to put a copy of all the external JARs used by your script in the folder that is set in this registry key:HKEY_LOCAL_MACHINE\SOFTWARE\Rational Software\Rational Test\8\Rational FT Customization Directory Cheers, Patrick Martin Wassermann selected this answer as the correct answer
|
One other answer
|
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.