selenium - Selenoid: recording video of a running session -


i'm using selenoid live browser screen functionality debug tests. recommended way capture browser screen video?

selenoid supports showing video via vnc. need grab respective port. here 1 possible way record video vnc.

requirements:

  1. selenoid must running in bin (not in docker) overwise mapped ports null.
  2. docker apis should exposed outside world. (http://www.virtuallyghetto.com/2014/07/quick-tip-how-to-enable-docker-remote-api.html)

how that. 1 possible solution use vnc2flv script.

  1. download script: $ wget https://pypi.python.org/packages/1e/8e/40c71faa24e19dab555eeb25d6c07efbc503e98b0344f0b4c3131f59947f/vnc2flv-20100207.tar.gz\#md5\=8492e46496e187b49fe5569b5639804e

  2. unpack archive: $ tar zxf vnc2flv-20100207.tar.gz

  3. install script: $ python setup.py install --prefix=/usr/local

  4. record video: docker container id via selenoid /status , find docker commands port mapped container port 5900 (the vnc port). type: flvrec.py -p <filename_for_password_file> -o <output_video_filename> <hub_host> <the_vnc_port>, e.g. flvrec.py -p password.txt -o /tmp/selenoid_videos/gimme_love.flv 172.31.11.135 32774.

  5. saved video file can found in /tmp/selenoid_videos/gimme_love.flv.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -