I have below Sikuli code in the JMeter which is not working.
import org.sikuli.script.Pattern;
import org.sikuli.script.Screen;
import org.sikuli.script.FindFailed;
import org.sikuli.script.KeyModifier;
import org.sikuli.script.Match;
Screen screen = new Screen();
Pattern VNCviewer = new Pattern ("C:\\scripts\\patterns\\vnc\\vncviewer.png");
screen.wait(VNCviewer,3);
I tried in both Beanshell sampler and JSR223 sampler and in both cases not working. Here is the error Im getting.
JSR223 sampler
Response code: 500
Response message: javax.script.ScriptException: javax.script.ScriptException: FindFailed: C:\scripts\patterns\vnc\vncviewer.png: (32x31) in R[0,0 1920x1080]@S(0) Line 2226, in file Region.java
Beanshell sampler
Response code: 500
Response message: org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of: ``import org.sikuli.script.Pattern; import org.sikuli.script.Screen; import org.si . . . '' : Method Invocation screen.wait
This code is working fine in another laptop and JMeter version same (5.0). I tried with different java version also. The file path is correct only and the png file exists.