如何录制在Xvfb上运行的硒测试的视频? [英] how to record video of selenium tests running on Xvfb?

查看:164
本文介绍了如何录制在Xvfb上运行的硒测试的视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想录制我的硒测试视频(使用Xvfb在linux服务器上运行的chromedriver).

I want a video recording of my selenium tests (chromedriver running on linux server with Xvfb).

您将如何使用ffmpeg进行此操作,或者已经存在一个库?我还希望输出是一个断断续续的gif(我只需要了解正在发生的事情的基础知识即可).

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).

推荐答案

您可以尝试以下操作: https://github.com/lightsofapollo/x-recorder

You could try this : https://github.com/lightsofapollo/x-recorder

它的作用非常简单:启动命令的xvfb运行,然后用ffmpeg记录X11输出.

What it does is pretty simple : start an xvfb-run of your command, then record the X11 output with ffmpeg.

这篇关于如何录制在Xvfb上运行的硒测试的视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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