sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #58593
[Question #704278]: Sikulix Screen parallel testing
New question #704278 on SikuliX:
https://answers.launchpad.net/sikuli/+question/704278
Hi,
I am usin sikulix on Mac version 2.0.6 and when I run one test, it is doing fine, but when I run in parallel, images are not recognized or clicked, but with no error. I tried with class ThreadLocal, but results are the same
private static final ThreadLocal<Screen> threadScreen = new ThreadLocal<>();
public void setDriver(Screen screen) {
threadScreen.set(screen);
}
public static void initializeSikulix() throws MalformedURLException {
Screen screen = new Screen();
threadScreen.set(screen);
}
public static Screen getScreen() {
return threadScreen.get();
}
And usage in test:
SikulixFactory.getScreen().doubleClick("/gaming/select.png", 10);
Can you help me to run this in parallel?
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.