Troubleshooting- Video Recording

Learn how to use BELLATRIX cross-platform video recording.


[App(Constants.WpfAppPath, Lifecycle.RestartEveryTime)]
public class VideoRecordingTests : DesktopTest
  public void MessageChanged_When_ButtonHovered_Wpf()
      var button = App.ElementCreateService.CreateByName<Button>("E Button");


      var label = App.ElementCreateService.CreateByName<Button>("ebuttonHovered");
      Assert.AreEqual("ebuttonHovered", label.InnerText);


If it is turned on the engine will capture video for every test and keep them in case the test failed.


If you open the testFrameworkSettings.json file, you find the videoRecordingSettings section that controls this behaviour.

"videoRecordingSettings": {
       "isEnabled": "true",
        "waitAfterFinishRecordingMilliseconds": "500",
        "filePath": "C:\\Troubleshooting\\Videos"

You can turn off the making of videos for all tests and specify where the videos to be saved. waitAfterFinishRecordingMilliseconds adds some time to the end of the test, making the video not going black immediately. In the extensibility chapters read more about how you can create custom video recorder or change the saving strategy.