How to Setup Jenkins Slave VM(WinXP) Which Support Sikuli Testing

Reference Topics:

Setting up a Jenkins slave for Sikuli based tests

作者環境是win7,我按造上面的設定修改

1.設定User 永遠不會被logout

點選執行 sikuli_vm_setup_step1

輸入regedit

sikuli_vm_setup_step2

點到HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System

sikuli_vm_setup_step3

sikuli_vm_setup_step4

新增DWORD值

sikuli_vm_setup_step5

新增DisableLockWorkstation,設定為1

sikuli_vm_setup_step6

因為有查到這篇文章Disabling Lock Workstation in Windows XP,所以還要在設定一個參數

用尋找功能

sikuli_vm_setup_step13

尋找AllowMultipleTSSessions,並修改成0

ps.他在HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon裡面

sikuli_vm_setup_step14

2.設定使用者,重開機時,可以自行登入

點到HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

sikuli_vm_setup_step7

新增字串

sikuli_vm_setup_step7-5

新增DefaultPassword,輸入你的密碼

sikuli_vm_setup_step8

修改DefaultUsername

sikuli_vm_setup_step9

修改AutoAdminLogon,設定為1

sikuli_vm_setup_step10

3.取消螢幕保護

點到HKEY_CURRENT_USER\Control Panel\Desktop

sikuli_vm_setup_step11

修改ScreenSaveActive為0

sikuli_vm_setup_step12

4. 重開機

5. 最後也是最重要的一步!!清掉上次RDP所鎖定的畫面,在Jenkins Script加上

    tscon.exe 0 /dest:console

thanks to Mac support

sikuli_vm_setup_step15

Reference

參數: AllowMultipleTSSessions

參數: DisableLockWorkstation

參數: ScreenSaveActive

Comments

Comments

Google Analytics Alternative