I want to use sikulixapi with JMeter.
This is my code in the JMeter Beanshell sampler.
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;
import java.io.IOException;
Screen screen = new Screen();
Pattern VNCviewer = new Pattern ("C:\\patterns\\openvncviewer\\eclipse.png");
screen.click(VNCviewer);
Im getting the below error while executing the JMeter script.
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.s . . . ''
Typed variable declaration : Object constructor
Im using sikulixapi-2.0.5.jar and this jar has copied to the lib/ext folder.
Please let me know what is wrong here.