rticau / ScreenCapLibrary

Robot Framework test library for capturing screenshots and video recording.
Apache License 2.0
38 stars 15 forks source link

Few enchances #62

Open extr3mal opened 3 years ago

extr3mal commented 3 years ago

1.It would be great to support pabot and parallel test recording based on window

  1. It would be really helpful to add option to reflect currrent executed kewyords as subtitles
cristii006 commented 3 years ago

Hello @extr3mal

ScreenCapLibrary currently works well with pabot taking into consideration that you refer to

based on window

as recording different monitors at once. Below is a simple example that will work with pabot

*** Settings ***
Library  ScreenCapLibrary

*** Test Cases ***
Foo
    Start Video Recording  1  monitor=1
    # do what you want to be recorded on monitor 1 
    Stop Video Recording  1
Bar
    Start Video Recording  2  monitor=2
    # record what you do on monitor 2
    Stop Video Recording  2

The above code could be run using pabot --testlevelsplit <path to testfile>

If you think about window as an application window this is not possible because currently ScreenCapLibrary works by selecting monitors.

Please tell us if you had something else in mind or if the above code helps you.

Best regards, Andrei.