Adapter to RQM is not recognizing the third party library
Adapter to RQM is not recognizing the third party library POI-3.5
Hello,
I am getting the error "java.lang.NoClassDefFoundError" when executing an script by using RQM/RFT-Adapter.
This is not happening when I execute that script directly from RFT environment, only when executing from RQM/RFT-Adapter.
I have added the "poi-3.5-beta5-20090219.jar" as external jar on RFT Java build path.
The error is:
{
* java.lang.NoClassDefFoundError
* org.apache.poi.poifs.filesystem.POIFSFileSystem
* Script Name = TestCases.REG_REGRESSION08
* Script Id = TestCases.REG_REGRESSION08.java
* Line Number = 75
* at Tasks.verifyMoabSwLicense.verifyMoabSw(verifyMoabSwLicense.java:70) at TestCases.REG_REGRESSION08.testMain(REG_REGRESSION08.java:75) 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:386) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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 com.rational.test.ft.util.FtClassLoader.loadClass(FtClassLoader.java:160) at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
}
How can I make this external library recognizable from RFT adapter (Adapter to RQM)?
Thanks in advanced, I really appreciate your help.
Hello,
I am getting the error "java.lang.NoClassDefFoundError" when executing an script by using RQM/RFT-Adapter.
This is not happening when I execute that script directly from RFT environment, only when executing from RQM/RFT-Adapter.
I have added the "poi-3.5-beta5-20090219.jar" as external jar on RFT Java build path.
The error is:
{
* java.lang.NoClassDefFoundError
* org.apache.poi.poifs.filesystem.POIFSFileSystem
* Script Name = TestCases.REG_REGRESSION08
* Script Id = TestCases.REG_REGRESSION08.java
* Line Number = 75
* at Tasks.verifyMoabSwLicense.verifyMoabSw(verifyMoabSwLicense.java:70) at TestCases.REG_REGRESSION08.testMain(REG_REGRESSION08.java:75) 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:386) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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 com.rational.test.ft.util.FtClassLoader.loadClass(FtClassLoader.java:160) at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
}
How can I make this external library recognizable from RFT adapter (Adapter to RQM)?
Thanks in advanced, I really appreciate your help.
One answer
Hi,
From the RFT dev team,
"this issue can be addressed by providing "-projectPath <path>" in the execution arguments in the RQM editor for an RFT script, which should allow the Script execution to run correctly".
regards,
Napoles.
From the RFT dev team,
"this issue can be addressed by providing "-projectPath <path>" in the execution arguments in the RQM editor for an RFT script, which should allow the Script execution to run correctly".
regards,
Napoles.
Comments
Thank you very much Napoles, it is now working.
The problem was solved by providing the "-projectPath <path>" argument in the execution arguments from the RQM Test script, where <path> was the poi-3.5 jar file path.
Juan Villasenor or Antonio Napoles where did you inform this path in RQM?