You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.
I am attempting to record a suite of protractor tests. The suite runs on (and behaves the same on) both local dev machines (Macbooks) and Jenkins CI. We use Docker containers to run the tests. In the container running the tests I start Xvfb with & to run it in the background These are my settings.
The video files are created and they have the proper subtitles but the video is just black with an 'X' in the middle of the screen. I'm starting Xvfb like this Xvfb :0 -screen 1024x768x24. I turned on the debugger and this is the output I got, this is what the debugger prints to the console up until the point it starts iterating over the specs.
It's doesn't seem to matter what I set the codec to be. mpeg4 has the same behavior as qtrle except mpeg4 produces larger file sizes. I'm certain X11 is running as I can see the /tmp/.X11-unix file as well as /tmp/.X0-lock. I know the process is running and it seems to be connecting as well since the video file's dimensions will change in response to running protractor-video-reporter with different screen resolution settings.
I'm pretty much fresh out of ideas at this point. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
The issue was that X11 and Xvfb needed to be running in the Selenium container. The solution we ended up going with was building our own docker container based off of SeleniumHQ's StandaloneChrome.
Dockerfile:
FROM selenium/standalone-chrome:3.4.0-bismuth
USER root
COPY entry-point.sh /entry-point.sh
ENTRYPOINT ["/entry-point.sh"]
Then we rolled our own entry-point.sh file which looks like this:
#!/bin/bash
source /opt/bin/functions.sh
if [ -z "$GEOMETRY" ]; then
GEOMETRY="1360x1020x24"
fi
echo "screen geometry set to: ${GEOMETRY}"
function shutdown {
kill -s SIGTERM $NODE_PID
wait $NODE_PID
}
if [ ! -z "$SE_OPTS" ]; then
echo "appending selenium options: ${SE_OPTS}"
fi
SERVERNUM=$(get_server_num)
rm -f /tmp/.X*lock
Xvfb :99 -screen 0 ${GEOMETRY} -ac -listen tcp &
sleep 10
NODE_PID=$!
java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \
${SE_OPTS} &
NODE_PID=$!
trap shutdown SIGTERM SIGINT
wait $NODE_PID
Hope this will help anyone who comes along trying to do something similar.
I am attempting to record a suite of protractor tests. The suite runs on (and behaves the same on) both local dev machines (Macbooks) and Jenkins CI. We use Docker containers to run the tests. In the container running the tests I start Xvfb with
&
to run it in the background These are my settings.The video files are created and they have the proper subtitles but the video is just black with an 'X' in the middle of the screen. I'm starting Xvfb like this
Xvfb :0 -screen 1024x768x24
. I turned on the debugger and this is the output I got, this is what the debugger prints to the console up until the point it starts iterating over the specs.It's doesn't seem to matter what I set the codec to be.
mpeg4
has the same behavior asqtrle
exceptmpeg4
produces larger file sizes. I'm certain X11 is running as I can see the/tmp/.X11-unix
file as well as/tmp/.X0-lock
. I know the process is running and it seems to be connecting as well since the video file's dimensions will change in response to runningprotractor-video-reporter
with different screen resolution settings.I'm pretty much fresh out of ideas at this point. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: