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

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

问题描述

如果我们有一个运行 sikuli 的无头测试服务器(需要 ubuntu 和 windows 配置),如何让它在没有物理显示器的情况下工作,最好是尽可能多的屏幕分辨率.

解决方案

我成功地让 sikuli 在无头模式下运行(没有连接物理显示器)

Ubuntu:检查 Xvfb.

Windows:从虚拟机来宾添加显示驱动程序在机器上安装显示驱动程序(无头),并使用 TightVNC 从另一台机器远程设置分辨率.

Windows 7 的详细步骤

假设:

  1. 机器 A:无头机器,windows 7,vnc 服务器准备好(例如 的其他重要信息.

    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.

    解决方案

    I successfully got sikuli running in headless mode (no physical monitor connected)

    Ubuntu: check Xvfb.

    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.

    Detailed steps for windows 7

    Assume that:

    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.

    steps:

    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

      -To extract the 32-bit drivers to "C:Drivers", do the following:

      • VBoxWindowsAdditions-x86 /extract /D=C:Drivers

      -For the 64-bit drivers:

      • VBoxWindowsAdditions-amd64 /extract /D=C:Drivers

    5. Goto device manager

    6. add hardware

    7. Restart and connect with VNC viewer, now you should be able to change screen resolution

    other valuable info on launchpad.

    这篇关于如何让 Sikuli 在无头模式下工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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