如何获得Sikuli在无头的模式下工作 [英] How to get Sikuli working in headless mode
问题描述
如果我们有一个无头的测试服务器上运行sikuli(需要双方Ubuntu和窗口配置),如何得到它没有物理监视器和$ P $工作pferably尽可能多的屏幕分辨率越好。
If we have a headless test server running sikuli (both ubuntu and windows configurations needed), how to get it work without a physical monitor and preferably for as many screen resolutions as possible.
推荐答案
我顺利拿到sikuli运行在无头模式(没有物理连接显示器)
I successfully got sikuli running in headless mode (no physical monitor connected)
Ubuntu的:检查的Xvfb
的Windows:从VirtualBox的客户附加的显示驱动程序在计算机上安装显示器驱动器(是无头),并使用TightVNC的远程另一台机器设置分辨率
Windows: install display driver on the machine (to be headless) from virtualbox guest additions display drivers and use TightVNC to remotely set resolution from another machine.
适用于Windows的详细步骤7
Detailed steps for windows 7
假设:
- 计算机A:是无头机,Windows 7中,以VNC服务器准备就绪(如 TightVNC的服务器上安装并等待连接)。
- 机器B:将用于远程安装计算机A上的虚拟显示驱动程序
- Machine A: to be headless machine, windows 7, with vnc server ready (e.g. TightVNC server installed and waiting for connections).
- Machine B: will be used to remotely setup the virtual display driver on machine A.
步骤:
- 下载VirtualBox的客户添置ISO计算机A上从这里(文件的最新版本这里检查最新版本的和下载VBoxGuestAdditions_x.yziso)
- 提取ISO文件(可能用winrar)到某个目录(我们称之为文件夹D)
- 使用命令提示符CD到D文件夹
-
驱动程序提取
- Download virtualbox guest additions iso file on Machine A from here (for latest version check latest version here and download VBoxGuestAdditions_x.y.z.iso)
- Extract iso file (possibly with winrar) into a directory (let us call it folder D)
- using command prompt cd to D folder
Driver extraction
- 要提取的32位驱动程序为C:\\驱动程序,请执行以下操作:
-To extract the 32-bit drivers to "C:\Drivers", do the following:
- VBoxWindowsAdditions-86 /提取/ D = C:\\ DRIVERS
- 对于64位驱动程序:
-For the 64-bit drivers:
- VBoxWindowsAdditions-AMD64 /提取/ D = C:\\ DRIVERS
转到设备管理器
Goto device manager
添加硬件
add hardware
重新启动并连接与VNC查看器,现在你应该可以改变屏幕分辨率
Restart and connect with VNC viewer, now you should be able to change screen resolution
在其他有价值的信息启动板。
这篇关于如何获得Sikuli在无头的模式下工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!