Forum Stats

  • 3,838,003 Users
  • 2,262,319 Discussions


Jemmy FX test not working when GUI is minimized or system locked

I have created a simple JAVA FX application and trying to test the application using JEMMYFX.

Using scene dock to get the current scene and trying to get the GUI Components but it is working only when the user is not disturbed and it is failed when application minimized or screen locked.

I am using the remote machine to run the tests using Jenkins and test cases are successful only when logged into the system and failed when remote running and the same has been in the local system as well.

Below code works when focusing on the application and not working when focus loss or system locked.

      SceneDock mw=new SceneDock();
      JFxWindowHandle hndmw=new JFxWindowHandle(mw);

"device_apply" is the id of the JavaFX button id.

Could please suggest any other possible ways to do it.