Troubleshooting- Video Recording

Learn how to use BELLATRIX cross-platform video recording.

Example

[TestFixture]
public class VideoRecordingTests : WebTest
{
    [Test]
    public void PromotionsPageOpened_When_PromotionsButtonClicked()
    {
        App.Navigation.Navigate("http://demos.bellatrix.solutions/");
        var promotionsLink = App.Components.CreateByLinkText<Anchor>("Promotions");
        promotionsLink.Click();
    }
}

Explanations

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

Configuration

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 are 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 recorders or change the saving strategy.