xvfb

how to record video of selenium tests running on Xvfb?

試著忘記壹切 提交于 2019-12-22 13:04:44
问题 I want a video recording of my selenium tests (chromedriver running on linux server with Xvfb). How would you go about doing this with ffmpeg or does a library already exist? I also would like the output to be a choppy gif (I just need to know the basics of what is happening). 回答1: You could try this : https://github.com/lightsofapollo/x-recorder What it does is pretty simple : start an xvfb-run of your command, then record the X11 output with ffmpeg. 来源: https://stackoverflow.com/questions

how to record video of selenium tests running on Xvfb?

限于喜欢 提交于 2019-12-22 13:02:23
问题 I want a video recording of my selenium tests (chromedriver running on linux server with Xvfb). How would you go about doing this with ffmpeg or does a library already exist? I also would like the output to be a choppy gif (I just need to know the basics of what is happening). 回答1: You could try this : https://github.com/lightsofapollo/x-recorder What it does is pretty simple : start an xvfb-run of your command, then record the X11 output with ffmpeg. 来源: https://stackoverflow.com/questions

Installing and Configuring xvfb

大兔子大兔子 提交于 2019-12-22 02:22:29
问题 I'm trying to find a Ubuntu operating system, version of xorg, and version of xvfb that are compatible. Can anyone help me with directions to install xvfb without getting a hang on Initializing build-in extension GLX So far I've tried the following Ubuntu 13 Server(No graphics card) sudo apt-get install xorg sudo apt-get install xvfb sudo apt-get install xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic I run the command xvfb :10 and it hangs on Initializing build-in extension GLX

Installing and Configuring xvfb

▼魔方 西西 提交于 2019-12-22 02:21:14
问题 I'm trying to find a Ubuntu operating system, version of xorg, and version of xvfb that are compatible. Can anyone help me with directions to install xvfb without getting a hang on Initializing build-in extension GLX So far I've tried the following Ubuntu 13 Server(No graphics card) sudo apt-get install xorg sudo apt-get install xvfb sudo apt-get install xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic I run the command xvfb :10 and it hangs on Initializing build-in extension GLX

Setting a test using xvfb + PyCharm + vagrant

寵の児 提交于 2019-12-21 06:26:53
问题 I have this environment: PyCharm running on Mac OS X Python3.4 environment running on Ubuntu Server in a vagrant instance I want to be able to run/debug tests using PyCharm. So far I can do it but I recently added selenium to my tests now I need to wrap the python interpreter within xvfb-run remote command. I tried adding a remote external tool but I can't make it work yet. I found this guy but he doesn't explain very well how he made it. Any idea would be very appreciated :-) 回答1: Thanks to

Using VNCserver + GUI application + Virtual Display in Docker container

穿精又带淫゛_ 提交于 2019-12-20 03:43:23
问题 I would like to run firefox (or any graphical application) inside docker container. My requirement: When I start the container, I should be creating a virtual display, starting VNC server and then the GUI application. This means after the container is successfully started, I can connect to the GUI application running inside the container via VNC client. When I close the application, the container should automatically stop. Attempt 1: I started with the example here https://hub.docker.com/r

Running Selenium::WebDriver::Firefox inside Xvfb from ruby as NON-root user

佐手、 提交于 2019-12-19 02:47:35
问题 I'm trying to do some headless testing using a ruby script. Essentially I'm executing Xvfb on display :1, and then firing up Watir::Browser.new(:firefox) using watir-webdriver. This works great if you run the script as root - I can run x11vnc and watch the script execute the browser and interact with it. The problem is, I need to be able to call this ruby script from a Rails app, and NOT run it as root... if I try to run the script from the command line as a regular user, Xvfb fires up on :1

How to test JavaFX 2 in a headless environment?

↘锁芯ラ 提交于 2019-12-18 01:16:55
问题 I am trying to automate testing for a JavaFX 2 application running on Java 7u6 with the integrated JavaFX 2.2. To that end, I have built and integrated Jemmy3 and JemmyFX into my build environment. A simple smoke test runs on all relevant OSs. As a next step, I want to run the tests as part of the continuous deployment process. Since the current CI server runs on OpenSUSE, which is not officially supported by JavaFX, I have set up an Ubuntu Server installation in a virtual machine and

xvfb-run unreliable when multiple instances invoked in parallel

邮差的信 提交于 2019-12-17 22:51:22
问题 Can you help me, why I get sometimes (50:50): webkit_server.NoX11Error: Cannot connect to X. You can try running with xvfb-run. When I start the script in parallel as: xvfb-run -a python script.py You can reproduce this yourself like so: for ((i=0; i<10; i++)); do xvfb-run -a xterm & done Of the 10 instances of xterm this starts, 9 of them will typically fail, exiting with the message Xvfb failed to start . 回答1: Looking at xvfb-run 1.0, it operates as follows: # Find a free server number by

Resizing an Xvfb display

让人想犯罪 __ 提交于 2019-12-13 11:38:09
问题 Simple Question: Is there a way to resize a Xvfb display? I tried with RandR but it seems that the RandR extension is not supported by Xvfb. Are there other ways to resize the screen? Thanks for your help! 回答1: You can use the server-args command line argument to specify a custom resolution for the virtual frame buffer being created, but this does not change the resolution of an existing virtual frame buffer: xvfb-run --server-args="-screen 0, 1024x768x24" ... 回答2: Most distributions now ship