Question

Followed the instructions given over here http://wiki.eclipse.org/SWTBot/Automate_test_execution#On_Jenkins and successfully did the integration were the swtbot testcases worked fine but now all of sudden after adding few more swtbot testcases it started hanging and completely stopped working!

Things which I tried till now are,

-> Ran the testcases in Linux local server which passes without any issue but the same in jenkins hangs now.
-> Changing Xvfb process to Xvnc -> Still same issue, build hangs
-> Commented all swtbot testcase and added simple test like creating a project which works fine without any issues.
-> Changed the jenkins server to new slave to make sure if it's DISPLAY issue but again same problem in the new slave.
-> Used NX Client to track the UI flow which happen in jenkins server via sandbox build but fails with widget not found exception.
-> Used upgraded SWTBot plugin but no help

Mailed to swtbot-dev@eclipse.org 4 days back but no reply still! Can someone please help me in this asap? Not sure what else to try with to resolve this problem now.

Thanks.

Was it helpful?

Solution 2

Found the issue finally and fixed the problem!

Our testcases involves checking the shortcut keys which are meant for table operations such as, inserting a new row - insert key, delete a row - delete key and so on..

It seems that when swtbot executes the keystroke as,

bot.shell("").pressShortcut(Keystrokes.DELETE);

it makes the entire eclipse to hang. Am still not sure what is the reason behind it, so replaced DELETE with CTRL + Q key combination in our implementation code and then it started working fine.

Eclipse hangs even when some keystroke is added in the testcase which doesn't do any ui operations. So, did those cleanup and all the testcases are passing now :)

Seems to be a another limitation in swtbot and hope that development team will analyze this further if possible. Already have posted it in eclipse community as well. http://www.eclipse.org/forums/index.php/m/1234514/#msg_1234514

Thanks to Cpt. Senkfuss and Lula for your suggestions!!

OTHER TIPS

When you connect via VNC, try checking out if there's not any other modal window hiding behind the Eclipse workbench. We used to have problems especially with the "Usage data" window.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top