assertj / assertj-swing

Fluent assertions for Swing apps
Other
108 stars 52 forks source link

WIndows 10 & Jenkins Slave #202

Open pranasblk opened 7 years ago

pranasblk commented 7 years ago

Summary

I found instructions about setting Jenkins service to run as local user with allow access to interactive desktop, but it does not seem to work if AssertJ Swing invoked via gradle on WIndows 10 slave.

Example

./gradlew integTest

Has someone running Windows 10 Jenkins Slave and AssertJ Swing testing suite? Please share your experience.

Thank you!

croesch commented 7 years ago

Unfortunately no response yet. The documented solution works for me but I neither use gradle nor Windows 10.

What is the error in your case?

pranasblk commented 7 years ago

I can run the sam test from interactive Git bash console, but not from Jenkins slave on windows 10. It fails with:

org.assertj.swing.exception.WaitTimedOutError: Timed out waiting for component to be found using matcher "the title of the component" Matcher

There are no application windows displayed on the slave machine. I guess there are security restrictions in WIndows 10 to overtake UI control from service process ..

croesch commented 7 years ago

Did you try to make a screenshot of the failure? On Linux there is sometimes a difference of the UI features available.. e.g. the title bar could be missing. So just double check that at least the UI is correct.