Skip to main content

Enhance Robot Framework tests by recording and subtitling videos.

Project description

RobotVidSub

RobotVidSub is a library designed to enhance the debugging and presentation of automated tests by recording video during Robot Framework test executions and adding subtitles that display the top-level keywords in sync with the test steps shown in the video.

Features

  • Video Recording: Automatically starts and stops video recording, either for all tests (if a global RECORDING variable is set to string value true), or for individual tests (any test with the tag recording will be recorded)
  • Subtitles: Adds subtitles to the videos, displaying the top-level keywords being executed.

Installation

Install RobotVidSub using pip:

bash
pip install robotvidsub

Usage

Once installed, RobotVidSub automatically integrates with your Robot Framework tests. To enable RobotVidSub on your tests, make sure the RobotVidSub.RobotVidSubListener listener is referenced at the time of test execution:

# Run tests with listener enabled - RobotVidSub.RobotVidSubListener

robot --outputdir=reports --listener=RobotVidSub.RobotVidSubListener Tests/AllTestsRun.robot

Ensure that the RECORDING variable is set to true in your Robot Framework environment to enable video recording of all tests. If instead you want only particular tests to be recorded, add recording tag to these test cases.

All recordings are stored in the recordings folder under your parent test folder, with the name format of {TestCaseId}_{ExecutionStartDateTime}

Requirements

RobotVidSub requires the following to be installed:

  • Robot Framework
  • ffmpeg-python (for video processing)

These dependencies will be automatically installed when you install RobotVidSub.

Additionally, ffmpeg is needed to be installed manually on your system. You can check the installation method based on your system package manager.

Eg: For macOS with Homebrew installed, you can use

brew install ffmpeg

Additional Notes

In order to execute the sample tests included in the Tests directory, an additional dependency robotframework-seleniumlibrary needs to be installed.

The recommended installation method is using pip:

pip install --upgrade robotframework-seleniumlibrary

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotvidsub-0.1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

RobotVidSub-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file robotvidsub-0.1.0.tar.gz.

File metadata

  • Download URL: robotvidsub-0.1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.5

File hashes

Hashes for robotvidsub-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7d2d4a46a085f4a8eec30c26e4f0a721cc809f7945521a489d27602753a16345
MD5 b5dc247b768a6554f45d7f150cd04f2f
BLAKE2b-256 e5de909455cccaeeb9a735a6a733896c6c16ea3906a520c6c5880b0b485fea1e

See more details on using hashes here.

File details

Details for the file RobotVidSub-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: RobotVidSub-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.5

File hashes

Hashes for RobotVidSub-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed3a6f24b7a46b7f4d8d9d776de85479323f67fbbe5cccb9d39c9ebce7e9872d
MD5 60cf9551900e164b1223a17aecefe771
BLAKE2b-256 9369bcb1fb9e8b370d5373105e2ee07a59f0a17a02db4a4d215c9fb3d2f8dc56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page