>
>  
Stephen: thanks for your anwser, windows can sometimes be a pain. :)
I am posting this here if anyone else would be in the same situation and is 
in need to run ui tests via ssh slave.

I went and checked the archives for cygwin and basically what I found there 
was that you can run its' sshd as a regular user in the logged in users 
desktop, but that it is not supported and that people had problems with it 
in the past. 

So I decided to check if there were any other ssh server implementations 
for Windows that did not (at least officially) force you to run ssh server 
as a windows service. I found *freeSSHd* and how to setup to run as a 
regular user process (non service): 
http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/topic/com.ibm.iea.wpi_v6/wa/6.2/FTP/WBPMv62_IEA_AdapterInstallConfigureSSHServerLab.pdf?dmuid=20090217132204643973

This actually worked almost all the way, but one problem was that I still 
could not actually see the tests run in the main desktop of the logged in 
user. I discovered that freeSSHd ran processes with the logged in user in 
another desktop separate from the main one, so I needed a way of peek into 
that desktop. I found this little gem (*EnumWinstaGui*
): http://ikriv.com/dev/cpp/EnumWinstaGui/index.html
which lets you switch and peek into the UI of another desktop.

The only problem left was that when I needed to run Selenium Webdriver 
tests with the IEDriver I still could not go all the way, I solved it by 
setting:
- *capabilities.setCapability(InternetExplorerDriver.FORCE_CREATE_PROCESS, 
true);* when creating the WebDriver
- *Windows RegistryHKLM_CURRENT_USER\\Software\\Microsoft\\Internet 
Explorer\\Main* path should contain key TabProcGrowth with 0 value

After this I could run all automated tests with Chrome, Firefox and IE 
browsers via Jenkins SSH slave and be able to peek at the running tests 
when needed.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to