Sikuli Error

Asked by Milena Paz

Hi, I'm having a really hard time trying to find a solution to an error that I am getting upon debugging/running my test. Im using macbook pro & no matter what I do, I cannot get it to work.

The error i'm getting: [error] Settings: load version file sikulixversion.txt did not work

Sikuli is installed, I am using Java version 8 with TestNG version 6.12.0

Some of my debugging log:

[RemoteTestNG] revisions:
 git.commit.id=e264a9f
 git.branch=e264a9f5abce10396d0cc41f122682dc6ff9919a
 git.build.version=1.3.0
[RemoteTestNG] loaded class org.testng.internal.Version at file:/Applications/Eclipse.app/Contents/Eclipse/plugins/org.testng_6.12.0.r201709030044.jar
[RemoteTestNG] detected TestNG version 6.12.0
[RemoteTestNG] Invoked with -serport 51564 -protocol json -d /Users/milenapaz/Eclipse/WebSonnyRepo/WebSonnyBO/test-output /var/folders/p3/mdcnvz990xl8ryp0v9g3mky40000gn/T/testng-eclipse--1519171985/testng-customsuite.xml
[BaseMessageSender] Waiting for Eclipse client on localhost:51564
[BaseMessageSender] Received a connection from Eclipse on localhost:51564
[BaseMessageSender] Connection established, starting reader thread
[BaseMessageSender] ReaderThread waiting for an admin message
[JsonMessageSender] Sending message [GenericMessage ==> suiteCount:1, testCount:1]
[BaseMessageSender] ReaderThread received admin message:>ACK
[BaseMessageSender] Admin message:>ACK
[BaseMessageSender] Received ACK:>ACK
[BaseMessageSender] Admin message:>ACK
[BaseMessageSender] Received ACK:>ACK
[JsonMessageSender] Sending message [SuiteMessage ==> suite:Default suite, starting, methodCount:0]
[BaseMessageSender] Admin message:>ACK
[BaseMessageSender] Received ACK:>ACK
[BaseMessageSender] Admin message:>ACK
[BaseMessageSender] Received ACK:>ACK
[JsonMessageSender] Sending message [TestMessage ==> suite:Default suite, testName:Default test, passed:0, failed:0]
[BaseMessageSender] Admin message:>ACK
[BaseMessageSender] Received ACK:>ACK
[BaseMessageSender] Admin message:>ACK
[BaseMessageSender] Received ACK:>ACK
[JsonMessageSender] Sending message [TestResultMessage ==> suite:Default suite, test:Default test, class:automationFramework.SikuliTest1, method:main, parameters:]
[BaseMessageSender] Admin message:>ACK
[BaseMessageSender] Received ACK:>ACK
[BaseMessageSender] Admin message:>ACK
[BaseMessageSender] Received ACK:>ACK
[error] Settings: load version file sikulixversion.txt did not work
[JsonMessageSender] Sending message [TestResultMessage ==> suite:Default suite, test:Default test, class:automationFramework.SikuliTest1, method:main, parameters:]
[BaseMessageSender] Admin message:>ACK
[BaseMessageSender] Received ACK:>ACK
[BaseMessageSender] Admin message:>ACK
[BaseMessageSender] Received ACK:>ACK
===== Invoked methods
  SikuliTest1.beforeMethod()[pri:0, instance:automationFramework.SikuliTest1@6767c1fc] 1734853116
    SikuliTest1.main()[pri:0, instance:automationFramework.SikuliTest1@6767c1fc] 1734853116
  SikuliTest1.afterMethod()[pri:0, instance:automationFramework.SikuliTest1@6767c1fc] 1734853116
=====
[JsonMessageSender] Sending message [TestMessage ==> suite:Default suite, testName:Default test, passed:0, failed:1]
FAILED: main
java.lang.ExceptionInInitializerError

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Milena Paz
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

what version of SikuliX?

Is a correctly setup sikulixapi.jar on classpath at runtime?

Revision history for this message
Milena Paz (mila305) said :
#2

Thank you very much for your quick response RaiMan! I was able to find the solution to my problem. What I needed was 2 things. First, I needed to completely uninstall Java 9 in order to insure I am only using Java 8. Also, I needed to go through the Sikuli installation again & this time choose option 1 so that i could get the Sikuli IDE. Once having the Sikuli IDE, i used that to take my image screenshots instead of using my default macbook pro screenshot tool & I also was able to take screenshots of the regions I am working with. Its a little bit confusing at this time figuring out where Sikuli is storing my images on my computer but other than that everything is now working fine. I created tests to locate elements (images) using TestNg, not using TestNG, using native apps & using web apps. Thanks again!

Revision history for this message
RaiMan (raimund-hocke) said :
#3
Revision history for this message
RaiMan (raimund-hocke) said :
#4

When using the IDE to shoot your images, you should create a script folder using save in the IDE and then use the ImagePath feature in your Java code, to access the images.

Very important: have a strict naming convention for everything concerning your images.