Topic
  • 3 replies
  • Latest Post - ‏2011-08-20T14:45:16Z by SystemAdmin
starsbond
starsbond
1 Post

Pinned topic New question: Runtime No Class Found

‏2011-08-02T10:11:34Z |
We have been executing our tests using windows command (batch) files under RFT 7. I updated several of our machines to RFT 8.1.1.3 and adjusted the command file as required for the new path to the RFT install directory etc.

I am now getting a runtime error as listed below. When I run the command script RFT starts up and the window indicating the script has started executon pops up and them immediately closes. I have a feeling this is classpath error or related.

S:\Engineering\Engineering\QA\AutomatedTesting\FuncTest\cmdScripts>ASLAPIAcceptance.cmd
Script Playback Failure: CRFCN0380E: Construct script class failed http://com.geotrust.qa.gui.scripts.acceptance.ASLAPIAcceptanceScript java.lang.NoClassDefFoundError: com/rational/test/ft/script/RationalTestScript

S:\Engineering\Engineering\QA\AutomatedTesting\FuncTest\cmdScripts>

Any thoughts on what is wrong would be appreciated. I have been looking at this for half the day and can't figure it out. The scripts used to execute are as follows:

setupRFT.cmd

@echo off
rem *****
rem ***** Author: dave
rem ***** Date: Jan 29, 2010
rem *****
if .%debug% equ .true echo on
rem *****
rem ***** set java location
rem *****
if "%JAVA_HOME%" equ "" set JAVA_HOME=C:\Program Files (x86)\Java\jre6
set JAVA=%JAVA_HOME%\bin\java
rem *****
rem ***** set RFT/View locations
rem *****
if "%IBM_RATIONAL_RFT_ECLIPSE_DIR%" equ "" set IBM_RATIONAL_RFT_ECLIPSE=C:\Program Files (x86)\IBM\SDP
rem ***** set RFT project pathdebug=true
rem *****
set RFT_PROJECT_PATH=S:\Engineering\Engineering\QA\AutomatedTesting\FuncTest
rem *****
rem ***** set classpath
rem *****
set CLASSPATH=%RFT_PROJECT_PATH%\.class\gui.jar;S:\Engineering\Engineering\lib\*;
set CLASSPATH=%IBM_RATIONAL_RFT_ECLIPSE_DIR%\FunctionalTester\bin\rational_ft.jar;%CLASSPATH%
rem *****
rem ***** set target environment
rem *****
if "%env%" equ "" set env=stage1
rem *****
rem ***** set release and build information
rem *****
if "%RELEASE%" equ "" set RELEASE=chowda-2011-3
if "%BUILD%" equ "" set BUILD=B9
rem *****
rem ***** set log location and type
rem *****
rem log format can be text, HTML, TestManager
set LOGFORMAT=html
rem set showlog=true to bring up load after script execution else set to false
set SHOWLOG=false
set LOGFOLDER=%RFT_PROJECT_PATH%\..\FuncTest_Logs
rem *****
rem ***** set java memeory values
rem *****
set XMS=256m
set XMX=512m

ASLAPIAcceptance.cmd

@echo off
rem *****
rem ***** Author: dave
rem ***** Date: Jan 29, 2010
rem *****
if .%debug% equ .true echo on
rem *****
rem ***** setup the RFT environment
rem *****
call setupRFT.cmd
rem *****
rem ***** set script location, name and arguments
rem *****
set SCRIPT_LOCATION=com.geotrust.qa.gui.scripts.acceptance
set SCRIPT_NAME=ASLAPIAcceptanceScript
rem *****
rem ***** set logfile and scripts arguments then run tests
rem *****
set hh=%time:~0,2%
if "%time:~0,1%" == " " set hh=0%hh:~1,1%
set DATE_STAMP=%date:~4,2%-%date:~7,2%-%date:~10,4%_%hh%.%time:~3,2%.%time:~6,2%
set LOGFILE=%SCRIPT_LOCATION%.%SCRIPT_NAME%_%RELEASE%_%BUILD%_%env%_%DATE_STAMP%
set SCRIPT_ARGUMENTS=
rem *****
rem ***** do it
rem *****
"%JAVA%" -Xms%XMS% -Xmx%XMX% -Denv=%env% com.rational.test.ft.rational_ft -projectpath %RFT_PROJECT_PATH% -datastore %RFT_PROJECT_PATH% -rt.bring_up_logviewer %SHOWLOG% -rt.log_format %LOGFORMAT% -logfolder %LOGFOLDER% -log %LOGFILE% -playback %SCRIPT_LOCATION%.%SCRIPT_NAME% %SCRIPT_ARGUMENTS%
goto :eof
Updated on 2011-08-20T14:45:16Z at 2011-08-20T14:45:16Z by SystemAdmin
  • Sathish804
    Sathish804
    1432 Posts

    Re: New question: Runtime No Class Found

    ‏2011-08-02T10:26:23Z  
    Hi,

    Once open the RFT and Disconnect the project and connect to it. When ever we are upgrading RFT version it is mandatory to rebuild the project with the new version of RFT. By disconnecting and connecting to the project makes the rebuild of the project with the new version.
    Hope this helps you!!
  • SystemAdmin
    SystemAdmin
    16727 Posts

    Re: New question: Runtime No Class Found

    ‏2011-08-05T13:32:55Z  
    I've read in this forum about those guys who have changed their RFT versions and they had weird problems. They solved their problem by re-enabling the JRE environment they were using. Hope this helps.
  • SystemAdmin
    SystemAdmin
    16727 Posts

    Re: New question: Runtime No Class Found

    ‏2011-08-20T14:45:16Z  
    Please follow this tech note : https://www-304.ibm.com/support/docview.wss?uid=swg21318589

    mz