sikuli runtime error
I am using sikulix api version 2.0.4 with selenium windows 10 x64
But when run my tests it gives below error. Not click to the patern because it can not found.
java.lang.
at org.sikuli.
at testpackage.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
at org.testng.
at org.testng.
at org.testng.
at org.testng.
at org.testng.
at org.testng.
at org.testng.
at org.testng.
at org.testng.
at org.testng.
at org.testng.
at org.testng.
at org.testng.
at org.testng.
at org.testng.
at org.testng.
at org.testng.
at org.testng.
at com.intellij.
at com.intellij.
Caused by: org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Please check your setup: apparently you are not using sikulixapi 2.0.4 at runtime, since this uses opencv_java342.dll and not opencv_java320.dll.
Revision history for this message
|
#2 |
How can I check my setup.
If I add sikulixapi 2.0.4 jar manually it works, but if I put it into maven as a dependency it gives this error.
Revision history for this message
|
#3 |
Raiman,
How can I run my sikuli with selenium test in using jenkins ?
in Intellij I run my testng xml with sikuli and selenium it works but in maven command it is not working and it gives
org.sikuli.
sometimes it gives
java.lang.
How can i solve his problem please help
Revision history for this message
|
#4 |
@Raiman,
Can you help me about this issue ?
Still I have getting these error:
java.lang.
Caused by: org.sikuli.
Revision history for this message
|
#5 |
my pom file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://
<modelVersi
<groupId>
<artifactId
<version>
<build>
<plugins>
</plugins>
</build>
<dependencies>
</dependencies>
<repositories>
</repositories>
<profiles>
<profile>
<build>
</profile>
<profile>
<build>
</profile>
</profiles>
</project>
Revision history for this message
|
#6 |
Again as mentioned in comment #1:
Make sure you have a clean 2.0.4 environment, when running in the Jenkins setup.
Make sure you have a non-headless environment (use smith. like xvfb to have a fake-screen).
Your pom from comment #5 looks ok.
Revision history for this message
|
#7 |
I have a windows slave in my jenkins and its like a agent. When I click the build button in jenkins,
it directly goes to this windows machine. Why do I have to install this xvfb ?
How can make this setup is there any document or step by step description ?
Revision history for this message
|
#8 |
I have a windows slave in my jenkins and its like a agent. When I click the build button in jenkins,
it directly goes to this windows machine. Why do I have to install this xvfb ?
How can make this setup is there any document or step by step description ?
Revision history for this message
|
#9 |
furthermore,
jenkins is installed in windows machine
Revision history for this message
|
#10 |
Runned with this command : -Dsikuli.Debug=3
Error below :
[debug] RunTime:temp folder ok: C:\Users\
Options: *** options dump
Options: testing =
Options: OptionsFile = C:\Users\
Options: *** options dump end
***** show environment for 2.0.4-2020-
user.home: C:\Users\
user.dir (work dir): E:\Jenkins\
user.name: TESTAUTOADM
java.io.tmpdir: C:\Users\
running 64Bit(amd64) on w (6.3) from a jar
java 8 version 1.8 vm 25.171-b11 class 52.0 arch 64
app data folder: C:\Users\
executing jar: E:\Jenkins\
*** classpath dump sikulix
*** classpath dump end
***** show environment end
[19 debug] RunTime:loadlib: trying opencv_java320
[167 debug] RunTime:
C:\Users\
[168 debug] RunTime:
[172 debug] RunTime:libsExport: folder exists: C:\Users\
[INFO ] 2020-09-22 01:45:25,555 ReTryTestCase.
java.lang.
Caused by: org.sikuli.
If we solve this problem I think its going to work well
Revision history for this message
|
#11 |
My testcase as Maven setup:
https:/
This is a simple Java program that uses SikuliX features, that need OpenCV.
Using this on commandline (being in the TestApi directory):
mvn exec:java -Dsikuli.Debug=3
and having deleted the sikulixapi::2.0.4 branch from the local Maven repo and the SikulX app-data folder, I get the following output:
[INFO] Scanning for projects...
[INFO]
[INFO] -------
[INFO] Building TestAPI 2.0.4
[INFO] -------
Downloading from central: https:/
Downloaded from central: https:/
Downloading from central: https:/
Downloaded from central: https:/
[INFO]
[INFO] --- exec-maven-
[debug] RunTime:temp folder ok: C:\Users\
Options: *** options dump
Options: testing =
Options: OptionsFile = C:\Users\
Options: *** options dump end
***** show environment for 2.0.4-2020-
user.home: C:\Users\rmhde
user.dir (work dir): C:\Users\
user.name: rmhde
java.io.tmpdir: C:\Users\
running 64Bit(amd64) on w (10.0) from a jar
java 8 version 1.8 vm 25.265-b01 class 52.0 arch 64
app data folder: C:\Users\
executing jar: C:\Users\
*** classpath dump sikulix
*** classpath dump end
***** show environment end
[78 debug] RunTime:loadlib: trying opencv_java342 <<<---
[99 debug] RunTime:libsExport: folder has wrong content: C:\Users\
[741 debug] RunTime:
C:\Users\
[745 debug] RunTime:
[753 debug] RunTime:libsExport: folder created: C:\Users\
[936 debug] RunTime:loadLib: opencv_java342.dll (success)
[945 debug] Finder2: makeMat: INT_RGB (1920x1200)
[991 debug] Finder2: makeMat: 3BYTE_BGR (79x24)
[998 debug] Finder2: doFindImage: start (stdDev: 132,4604 mean: 671,261076)
[1189 debug] Finder2: doFindImage: in original: %39,3367 (?70) 185 msec
[1191 debug] Finder2: doFindImage: end 187 msec
[1279 debug] Finder2: makeMat: INT_RGB (1920x1200)
[1311 debug] Finder2: doFindImage: start (stdDev: 132,4604 mean: 671,261076)
[1490 debug] Finder2: doFindImage: in original: %39,3364 (?70) 176 msec
[1494 debug] Finder2: doFindImage: end 180 msec
[1588 debug] Finder2: makeMat: INT_RGB (1920x1200)
[1608 debug] Finder2: doFindImage: start (stdDev: 132,4604 mean: 671,261076)
[1790 debug] Finder2: doFindImage: in original: %39,3366 (?70) 180 msec
[1793 debug] Finder2: doFindImage: end 183 msec
[1938 debug] Finder2: makeMat: INT_RGB (1920x1200)
[1956 debug] Finder2: doFindImage: start (stdDev: 132,4604 mean: 671,261076)
[2140 debug] Finder2: doFindImage: in original: %39,3366 (?70) 180 msec
[2144 debug] Finder2: doFindImage: end 184 msec
[2268 debug] Finder2: makeMat: INT_RGB (1920x1200)
[2286 debug] Finder2: doFindImage: start (stdDev: 132,4604 mean: 671,261076)
[2471 debug] Finder2: doFindImage: in original: %39,3366 (?70) 179 msec
[2475 debug] Finder2: doFindImage: end 183 msec
[2608 debug] Finder2: makeMat: INT_RGB (1920x1200)
[2628 debug] Finder2: doFindImage: start (stdDev: 132,4604 mean: 671,261076)
[2810 debug] Finder2: doFindImage: in original: %39,3369 (?70) 177 msec
[2814 debug] Finder2: doFindImage: end 181 msec
[2940 debug] Finder2: makeMat: INT_RGB (1920x1200)
[2960 debug] Finder2: doFindImage: start (stdDev: 132,4604 mean: 671,261076)
[3145 debug] Finder2: doFindImage: in original: %39,3366 (?70) 180 msec
[3148 debug] Finder2: doFindImage: end 183 msec
[3209 debug] Region: handleFindFailed: img
[3213 debug] Region: wait: img.png did not appear [3290 msec]
img not found
[INFO] -------
[INFO] BUILD SUCCESS
[INFO] -------
[INFO] Total time: 12.445 s
[INFO] Finished at: 2020-09-
[INFO] -------
Watch out for the diffs to your case marked at line ends with <<<---
You should simply try to run my example in your Jenkins environment.
if I add this to the end of Run::main:
ClassLoader cl = Run.class.
URL[] urls = ((URLClassLoader) cl).getURLs();
for (URL url : urls) {
System.
}
I get this additional output:
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
/C:/Users/
hope it helps to get nerarer to a solution
Revision history for this message
|
#12 |
Hi Raiman,
First of all maven problem is solved using your project. But now there is a problem with jenkins integration, I getting below error.
Options: *** options dump
Options: testing =
Options: OptionsFile = C:\Users\
Options: *** options dump end
***** show environment for 2.0.4-2020-
user.home: C:\Users\
user.dir (work dir): E:\Jenkins\
user.name: TESTAUTOADM
java.io.tmpdir: C:\Users\
running 64Bit(amd64) on w (6.3) from a jar
java 8 version 1.8 vm 25.171-b11 class 52.0 arch 64
app data folder: C:\Users\
executing jar: C:\Users\
*** classpath dump sikulix
*** classpath dump end
***** show environment end
[16 debug] RunTime:loadlib: trying opencv_java342
[610 debug] RunTime:
C:\Users\
[610 debug] RunTime:
[610 debug] RunTime:libsExport: folder created: C:\Users\
[error] RunTime:loadLib: opencv_java342.dll (failed) probably dependent libs missing:
C:\Users\
[error] Save your work, correct the problem and restart the IDE!
[error] see: https:/
TERMINATING: problem with native library: opencv_java342.dll
[WARNING]
java.lang.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at com.sikulix.
at org.codehaus.
at java.lang.
Caused by: org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
... 16 more
[INFO] -------
[INFO] BUILD FAILURE
Revision history for this message
|
#13 |
this log also belongs to jenkins job :
Started InternetExplore
3.150.1.0
Listening on port 19424
Only local connections are allowed
Sep 27, 2020 6:03:52 PM org.openqa.
INFO: Detected dialect: W3C
[error] RunTime:loadLib: opencv_java342.dll (failed) probably dependent libs missing:
C:\Users\
[error] Save your work, correct the problem and restart the IDE!
[error] see: https:/
TERMINATING: problem with native library: opencv_java342.dll
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 14.824 s <<< FAILURE! - in TestSuite
[ERROR] fiyatListesiKur
java.lang.
at com.sikulix.
Caused by: org.sikuli.
at com.sikulix.
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] TestDeneme.
[INFO]
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[ERROR] There are test failures.
Revision history for this message
|
#14 |
jenkin installed into windows machine and tests run into same machine there is no linux or mac
Revision history for this message
|
#15 |
This question was expired because it remained in the 'Open' state without activity for the last 15 days.