Hi!
We are working with RFT testing a command line application, and just starting to move some things to Rational Quality Manager. All our scripts are working just fine running them from RFT. We encounter some problems with NoClassFoundError and solve them copying all libraries (including a exported jar of our whole project) to customization folder.
Now the scripts start running but when they use a OCR library it crash with UnsatisfiedLinkError
The structure of our project is something like this:
Automation (our personal framework library)
- lib
* com.abbyy.FREngine.jar (OCR lib)
* other libs
- ocrPackage
* AbbyyEngine.java (OCR class for using in our projects)
- otherPackages
ActualAutotestingProject
- lib
* Automation.jar
* other libs
* Some classes are using AbbyEngine
* Demo00CreateClient (very simple script using OCR)
I saw
this thread but didnt help that much :/
Thx in advance for the help.
The logs from RQM:
NFORMATION
|
31 май 2013 г. 13:01:30 MSK
|
Script start [scriptsDemo.Demo00CreateClient]
|
-
Line Number = 1
-
Script Iteration count = 0
-
Script Name = scriptsDemo.Demo00CreateClient
-
Script Id = scriptsDemo.Demo00CreateClient.java
-
\scriptsDemo\ClientDatapool.rftdp
|
FAIL
|
31 май 2013 г. 13:02:09 MSK
|
scriptsDemo.Demo00CreateClient.testMain had an unhandled error.
|
-
java.lang.UnsatisfiedLinkError
-
C:\Users\user1\AppData\Local\Temp\win\x86\FREngine.JNI.dll (Не найден указанный модуль. )
-
Script Name = scriptsDemo.Demo00CreateClient
-
Script Id = scriptsDemo.Demo00CreateClient.java
-
Line Number = 21
-
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1018) at java.lang.System.load(System.java:460) at com.abbyy.FREngine.Engine.loadFREngineJNIdll(Engine.java:102) at com.abbyy.FREngine.Engine.Load(Engine.java:19) at Automation.ocr.AbbyyEngine.loadEngine(AbbyyEngine.java:30) at Automation.ocr.AbbyyEngine.recognizeTextOnImage(AbbyyEngine.java:16) at Automation.app.TextRecognitionHelper.recognizeTextOnImage(TextRecognitionHelper.java:29) at Automation.app.TextRecognitionHelper.recognizeTextInRectangle(TextRecognitionHelper.java:19) at scriptsDemo.Demo00CreateClient.testMain(Demo00CreateClient.java:21) at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198) 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:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384) at org.eclipse.core.launcher.Main.main(Main.java:34)
|
FAIL
|
31 май 2013 г. 13:02:09 MSK
|
Script end [scriptsDemo.Demo00CreateClient]
|
-
Script Name = scriptsDemo.Demo00CreateClient
-
Script Id = scriptsDemo.Demo00CreateClient.java
|