Is there way to record video of the test and embedded in any report

i want to record video of running the test case and embedded in any report after the test case completed

https://appium.io/docs/en/commands/device/recording-screen/start-recording-screen/
http://appium.io/docs/en/commands/device/recording-screen/stop-recording-screen/

example of Java code: https://www.softpost.org/tutorials/appium/recording.php

1 Like

Thanks for your reply , i did as the example but it record video , i need to attach this recorded video to any report which generated after the test finished

do you have any idea how to attach this video to allure report - extent report - testng report

    @Attachment(value = "VideoFile", type = "video/mp4", fileExtension = ".mp4")
    public byte[] attachVideoToAllure(String file) {
            File video = new File(file);
            try {
                return Files.toByteArray(video);
            } catch (IOException e) {
                return new byte[0];
            }
    }
1 Like

thanks for your help

For @Attachment annotation - what to do? In my case ‘Attachment cannot be resolved to a type’

Allure Report Docs — Documentation Overview