如何获得Sikuli在无头的模式下工作 [英] How to get Sikuli working in headless mode

查看:947
本文介绍了如何获得Sikuli在无头的模式下工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我们有一个无头的测试服务器上运行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

假设:


  1. 计算机A:是无头机,Windows 7中,以VNC服务器准备就绪(如 TightVNC的服务器上安装并等待连接)。

  2. 机器B:将用于远程安装计算机A上的虚拟显示驱动程序

  1. Machine A: to be headless machine, windows 7, with vnc server ready (e.g. TightVNC server installed and waiting for connections).
  2. Machine B: will be used to remotely setup the virtual display driver on machine A.

步骤:


  1. 下载VirtualBox的客户添置ISO计算机A上从这里(文件的最新版本这里检查最新版本的和下载VBoxGuestAdditions_x.yziso)

  2. 提取ISO文件(可能用winrar)到某个目录(我们称之为文件夹D)

  3. 使用命令提示符CD到D文件夹

  4. 驱动程序提取

  1. 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)
  2. Extract iso file (possibly with winrar) into a directory (let us call it folder D)
  3. using command prompt cd to D folder
  4. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆