|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
RFT v8 help neededHi,
I am running an Xp System with RFT v8 installed, I'm using STAF 3.3.4 and the latest overlay of safs framework. My Classpath contains the following paths to o IBM jdk path o rational_ft.jar o rational_ft_core.jar o SAF\lib o jna.zip o win32_x86.zip o safsjvmagent.jar o safscust.jar o safsdebug.jar o safs.jar o Jstaf.jar Am I missing anything here? When I run the runTIDTest.BAT logs do not get generated, I have setup the RFT as per the http://safsdev.sourceforge.net/sqabasic2000/SetupRobotJ.README.htm doc When I type the following at command prompt STAF local service add service safsmaps library jstaf execute c:/safsmaps/lib/safsmaps.jar PARMS dir c:/safs/project/datapool I get Error Submitting Request, RC:27 Additional Info -------------- 38:Error Constructing Service, jstaf, Result:JSTAFSH.loadService(); Error loading java Service. Verify you are using Valid version of Java. java.lang.NoClassDefFoundError. com.ibm.staf.service.STAFServiceInterfaceLevel1 etc.. similarly for safsvars I get Error Submitting Request, RC:27 Additional Info -------------- 38:Error Constructing Service, jstaf, Result:JSTAFSH.loadService(); Error loading java Service. Verify you are using Valid version of Java. java.lang.NoClassDefFoundError. com.ibm.staf.service.STAFServiceInterfaceLevel3 etc.. in the project datastoreJ folder I have extracted all the .class files and their respective folders into a common org folder and put it seperately along with the safs, safsrational_ft and safsrational_ft_enabler. So my folder looks something like datastoreJ ---------- |-resources |-safs |-safsrational_ft_enabler |-safsrational_ft |-org Am I doing something wrong here? as the java files have import statement starting with org.something rather than safs or safsrational_ft or safsrational_ft_enabler changing them to safs.org.something or sarsrationsl_ft.org.something means that i would have to recompile the project running RFTTest.ini launches SAFS Monitor, but it close within MilliSeconds of opening SafsRobotJ Says Error Request 2 Additional info -------------- safsvars STAFProc Window shows the Following Caught STAFException in JSTAF. STAFShutdownJVM() JVMName:STAFJVM1, Exception:STAFConnectionIOException Location: c:\dev\autobuild\build\src\staf\stafif\STAFConnectionProviderImpl.cpp(264) Text:STAFConnectionReadUInt:ReadFileOSRC=109, ErrorCode=10 Hope I have made muself clear about regarding the issues/concerns about SAFs/STAF/RFT, Hoping a quick Response. Please Help me, It's Urgent. ------------------------------------------------------------------------------ _______________________________________________ safsdev-developers mailing list safsdev-developers@... https://lists.sourceforge.net/lists/listinfo/safsdev-developers |
|
|
Re: RFT v8 help neededSAFS does not yet support STAF version 3.X you need to have version 2.6
-----Original Message----- From: sukkala.bhargava@... [mailto:sukkala.bhargava@...] Sent: Thursday, July 23, 2009 1:35 PM To: safsdev-developers@... Subject: [safs-developer] RFT v8 help needed Hi, I am running an Xp System with RFT v8 installed, I'm using STAF 3.3.4 and the latest overlay of safs framework. My Classpath contains the following paths to o IBM jdk path o rational_ft.jar o rational_ft_core.jar o SAF\lib o jna.zip o win32_x86.zip o safsjvmagent.jar o safscust.jar o safsdebug.jar o safs.jar o Jstaf.jar Am I missing anything here? When I run the runTIDTest.BAT logs do not get generated, I have setup the RFT as per the http://safsdev.sourceforge.net/sqabasic2000/SetupRobotJ.README.htm doc When I type the following at command prompt STAF local service add service safsmaps library jstaf execute c:/safsmaps/lib/safsmaps.jar PARMS dir c:/safs/project/datapool I get Error Submitting Request, RC:27 Additional Info -------------- 38:Error Constructing Service, jstaf, Result:JSTAFSH.loadService(); Error loading java Service. Verify you are using Valid version of Java. java.lang.NoClassDefFoundError. com.ibm.staf.service.STAFServiceInterfaceLevel1 etc.. similarly for safsvars I get Error Submitting Request, RC:27 Additional Info -------------- 38:Error Constructing Service, jstaf, Result:JSTAFSH.loadService(); Error loading java Service. Verify you are using Valid version of Java. java.lang.NoClassDefFoundError. com.ibm.staf.service.STAFServiceInterfaceLevel3 etc.. in the project datastoreJ folder I have extracted all the .class files and their respective folders into a common org folder and put it seperately along with the safs, safsrational_ft and safsrational_ft_enabler. So my folder looks something like datastoreJ ---------- |-resources |-safs |-safsrational_ft_enabler |-safsrational_ft |-org Am I doing something wrong here? as the java files have import statement starting with org.something rather than safs or safsrational_ft or safsrational_ft_enabler changing them to safs.org.something or sarsrationsl_ft.org.something means that i would have to recompile the project running RFTTest.ini launches SAFS Monitor, but it close within MilliSeconds of opening SafsRobotJ Says Error Request 2 Additional info -------------- safsvars STAFProc Window shows the Following Caught STAFException in JSTAF. STAFShutdownJVM() JVMName:STAFJVM1, Exception:STAFConnectionIOException Location: c:\dev\autobuild\build\src\staf\stafif\STAFConnectionProviderImpl.cpp(264) Text:STAFConnectionReadUInt:ReadFileOSRC=109, ErrorCode=10 Hope I have made muself clear about regarding the issues/concerns about SAFs/STAF/RFT, Hoping a quick Response. Please Help me, It's Urgent. ---------------------------------------------------------------------------- -- _______________________________________________ safsdev-developers mailing list safsdev-developers@... https://lists.sourceforge.net/lists/listinfo/safsdev-developers ------------------------------------------------------------------------------ _______________________________________________ safsdev-developers mailing list safsdev-developers@... https://lists.sourceforge.net/lists/listinfo/safsdev-developers |
|
|
Re: RFT v8 help neededJohn is right. While the current code in CVS now supports both STAF 2.x and STAF 3.x, the code from March available in the Overlay does not contain these changes. Unfortunately, I do not have a snapshot containing the STAF 3.x support that is sufficiently tested to provide as a download. This is coming, though.
We are also in the process of preparing a more formal release with new installers supporting both STAF 2.x and STAF 3.x, etc... To use the March overlay, you would have to use the STAF 2.6.11 that comes with the SAFS Release which must be installed prior to doing an Overlay. Unfortunately, I believe you would have to uninstall the STAF 3.x for this to work properly. Note: STAF 2.x will not install properly if the default JVM on the System is Java 1.6 or higher. STAF 2.x requires Java 1.5 or 1.4 to install properly. However, it is likely to run OK with Java 1.6 once it is properly installed with an earlier version of Java. Carl -----Original Message----- From: sukkala.bhargava@... [mailto:sukkala.bhargava@...] Subject: [safs-developer] RFT v8 help needed Hi, I am running an Xp System with RFT v8 installed, I'm using STAF 3.3.4 and the latest overlay of safs framework. My Classpath contains the following paths to o IBM jdk path o rational_ft.jar o rational_ft_core.jar o SAF\lib o jna.zip o win32_x86.zip o safsjvmagent.jar o safscust.jar o safsdebug.jar o safs.jar o Jstaf.jar Am I missing anything here? When I run the runTIDTest.BAT logs do not get generated, I have setup the RFT as per the http://safsdev.sourceforge.net/sqabasic2000/SetupRobotJ.README.htm doc When I type the following at command prompt STAF local service add service safsmaps library jstaf execute c:/safsmaps/lib/safsmaps.jar PARMS dir c:/safs/project/datapool I get Error Submitting Request, RC:27 Additional Info -------------- 38:Error Constructing Service, jstaf, Result:JSTAFSH.loadService(); Error loading java Service. Verify you are using Valid version of Java. java.lang.NoClassDefFoundError. com.ibm.staf.service.STAFServiceInterfaceLevel1 etc.. ....<snipped> ------------------------------------------------------------------------------ _______________________________________________ safsdev-developers mailing list safsdev-developers@... https://lists.sourceforge.net/lists/listinfo/safsdev-developers |
|
|
Re: RFT v8 help neededThanks Carl and John, that was really helpful. I got STAF2.6.11 installed now, and everything seems to run just fine. However, I am facing problems with running the TestScript.(I've got Java 1.5 installed) Below is the StackTrace when I run TestScript from the RFT IDE. java.lang.NoSuchMethodError: org/safs/RobotJHook.start()V at org.safs.rational.RRobotJHook.start(RRobotJHook.java:48) at TestScript.testMain(TestScript.java:25) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection.java:1215) at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1415) at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1768) at com.rational.test.ft.script.RationalTestScript.runMainInner(RationalTestScript.java:972) at com.rational.test.ft.script.RationalTestScript.runMain(RationalTestScript.java:912) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection.java:1215) at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1415) at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1768) at com.rational.test.ft.application.ScriptPlayback.runScript(ScriptPlayback.java:720) at com.rational.test.ft.application.ScriptPlayback.run(ScriptPlayback.java:659) at com.rational.test.ft.application.RationalFtMain.run(RationalFtMain.java:2271) at com.rational.test.ft.application.RationalFtMain.main(RationalFtMain.java:304) at com.rational.test.ft.application.CommandLineApplication.run(CommandLineApplication.java:43) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:574) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212) at org.eclipse.core.launcher.Main.main(Main.java:30) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at com.rational.test.ft.rational_ft.startFT(rational_ft.java:270) at com.rational.test.ft.rational_ft.main(rational_ft.java:185)\ I searched CVS for help but couldn't find any. Could you also brief me the importance of the TestScript. I believe it's the starting point for execution of scripts. Correct me if I am wrong. Could you also suggest an equivalent for ExportTables_XLS in RFT. As I am migrating from Rational Robot to RFT. I intend to use the same STEP, HIGH and MAP sheets. I am unable to proceed any further. Hoping for a quick response. Thanks, Bhargava. |
|
|
Re: RFT v8 help neededHi, I am unable to interpret the following java.lang.ExceptionInInitializerError at java.lang.J9VMInternals.initialize(J9VMInternals.java:222) at java.lang.J9VMInternals.initialize(J9VMInternals.java:167) at org.safs.rational.RDDGUIUtilities.<init>(RDDGUIUtilities.java:55) at org.safs.rational.RRobotJHook.getUtilitiesFactory(RRobotJHook.java:6 ) at org.safs.RobotJHook.start(RobotJHook.java:97) at org.safs.rational.RRobotJHook.start(RRobotJHook.java:48) at TestScript.testMain(TestScript.java:25) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl java:45) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection. ava:1215) at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.j va:1415) at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.j va:1768) at com.rational.test.ft.script.RationalTestScript.runMainInner(Rational estScript.java:972) at com.rational.test.ft.script.RationalTestScript.runMain(RationalTestS ript.java:912) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl java:45) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection. ava:1215) at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.j va:1415) at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.j va:1768) at com.rational.test.ft.application.ScriptPlayback.runScript(ScriptPlay ack.java:720) at com.rational.test.ft.application.ScriptPlayback.run(ScriptPlayback.j va:659) at com.rational.test.ft.application.RationalFtMain.run(RationalFtMain.j va:2271) at com.rational.test.ft.application.RationalFtMain.main(RationalFtMain. ava:304) at com.rational.test.ft.application.CommandLineApplication.run(CommandL neApplication.java:43) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl java:45) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithE ception(EclipseAppContainer.java:574) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHand e.java:195) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppl cation(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(E lipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.j va:382) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.j va:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl java:45) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212) at org.eclipse.core.launcher.Main.main(Main.java:30) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl java:45) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at com.rational.test.ft.rational_ft.startFT(rational_ft.java:270) at com.rational.test.ft.rational_ft.main(rational_ft.java:185) Caused by: java.util.MissingResourceException: JavaObjectsMap.dat at org.safs.GuiClassData.<clinit>(GuiClassData.java:68) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:200) ... 52 more SAFS doesn't like me may be, I keep getting such long errorstacks, this one I get when I am trying to run runRFTTest.bat. Kindly guide me in setting my test environment right. However I am able to see the SAFS Monitor. It is only after insignificantly small play back that occurs, I get this thing in my window which runs the BAT file. Please Help! Thanks, Bhargava |
|
|
Re: RFT v8 help needed>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> I got STAF2.6.11 installed > now, and everything seems to run just fine. However, I am facing problems > with running the TestScript.(I've got Java 1.5 installed) > > Below is the StackTrace when I run TestScript from the RFT IDE. > > java.lang.NoSuchMethodError: org/safs/RobotJHook.start()V .... > > I am unable to interpret the following > > java.lang.ExceptionInInitializerError > at java.lang.J9VMInternals.initialize(J9VMInternals.java:222) .... > > Could you also brief me the importance of the TestScript. I believe it's > the starting point for execution of scripts. Correct me if I am wrong. > > Could you also suggest an equivalent for ExportTables_XLS in RFT. As I am > migrating from Rational Robot to RFT. I intend to use the same STEP, HIGH > and MAP sheets. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> I don't believe there is a ready-made solution for SAFS to ExportTables from Excel. However, the Robot code used to communicate with Excel via COM would\should be pretty much the same using Windows Script Host. Thus, the Robot code could be migrated to WSH scripts with (hopefully) only a little effort. Alternatively, using the Robot code as an example, you could even create the export routines in the VBA Editing environment of Excel itself. If you develop either the WSH or VBA routes we would love to be able to share these script, macros, or routines with other users. TestScript is the one script RFT executes to connect to the SAFS framework and become the running SAFS/RobotJ engine. Once it is launched--usually by SAFS and NOT from the RFT IDE--it remains running indefinitely until told to shutdown by SAFS. This is what we call RFT's Hook into the SAFS framework. You cannot run TestScript from the IDE without providing all Java Build Path information normally only required of Developers. If you correctly ran the SAFS install scripts--which normally run the SetupSAFSClasspath and SetupRationalClasspath scripts--then you Setup RFT paying attention to the pieces targeting RFT V8: http://safsdev.sourceforge.net/sqabasic2000/SetupRobotJ.README.htm As the doc says, the most typical installation does not have TestScript alive and well and runnable from the IDE. It will be found by RFT inside our JAR files which would NOT be extracted into RFT project directories. Note the info in the above doc when trying to setup a debug or development environment: http://safsdev.sourceforge.net/sqabasic2000/SetupRobotJ.README.htm#safsdevelopment In which you should also review: http://safsdev.sourceforge.net/sqabasic2000/SAFSDevelopment.htm and very specifically the Debug Log capabilities which will help you isolate what might be going wrong: http://safsdev.sourceforge.net/sqabasic2000/SAFSDevelopment.htm#exploredebuglog I hope this helps. {:{> Carl ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ safsdev-developers mailing list safsdev-developers@... https://lists.sourceforge.net/lists/listinfo/safsdev-developers |
| Free embeddable forum powered by Nabble | Forum Help |