Closed timmitomas closed 7 years ago
.avi video is recorded (instead of .mp4) when RecorderType.FFMPEG is selected (Junit4)**
OS: Windows 10, x64 FFMPEG: 3.3.2 (x64)
@Rule public VideoRule videoRule = new VideoRule();
@Before public void configuration() { WebDriverRunner.clearBrowserCache(); Screenshots.screenshots.getScreenshots().clear(); VideoRecorder.conf().withVideoFolder("custom_folder") .videoEnabled(true) .withRecorderType(RecorderType.FFMPEG) .withRecordMode(RecordingMode.ANNOTATED) .withVideoSaveMode(VideoSaveMode.FAILED_ONLY); }
`POM:
<groupId>test</groupId> <artifactId>test</artifactId> <version>0.1</version> <properties> <allure.version>LATEST</allure.version> <selenide.version>LATEST</selenide.version> <aspectj.version>1.8.10</aspectj.version> <compiler.version>1.7</compiler.version> <video-recorder-junit.version>1.4</video-recorder-junit.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> </properties> <dependencies> <dependency> <groupId>io.qameta.allure</groupId> <artifactId>allure-junit4</artifactId> <version>${allure.version}</version> </dependency> <dependency> <groupId>com.codeborne</groupId> <artifactId>selenide</artifactId> <version>${selenide.version}</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.7.21</version> </dependency> <dependency> <groupId>com.tngtech.java</groupId> <artifactId>junit-dataprovider</artifactId> <version>1.10.0</version> <scope>test</scope> </dependency> <dependency> <groupId>com.automation-remarks</groupId> <artifactId>video-recorder-junit</artifactId> <version>${video-recorder-junit.version}</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.20</version> <configuration> <testFailureIgnore>true</testFailureIgnore> <argLine> -javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar" </argLine> <properties> <property> <name>listener</name> <value>io.qameta.allure.junit4.AllureJunit4</value> </property> </properties> <systemProperties> <property> <name>allure.results.directory</name> <value>${project.build.directory}/allure-results</value> </property> <property> <name>allure.link.issue.pattern</name> <value>https://jira.intetics.com/browse/{}</value> </property> </systemProperties> </configuration> <dependencies> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>${aspectj.version}</version> </dependency> </dependencies> </plugin> <plugin> <groupId>io.qameta.allure</groupId> <artifactId>allure-maven</artifactId> <version>2.8</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.6.1</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> </plugins> </build>
`
Try to use v1.6. But be attentive syntax VideoRecorder.conf().with ... is no longer supported. See config section in readme
Thanks, it helped.
.avi video is recorded (instead of .mp4) when RecorderType.FFMPEG is selected (Junit4)**
OS: Windows 10, x64 FFMPEG: 3.3.2 (x64)
@Rule public VideoRule videoRule = new VideoRule();
@Before public void configuration() { WebDriverRunner.clearBrowserCache(); Screenshots.screenshots.getScreenshots().clear(); VideoRecorder.conf().withVideoFolder("custom_folder") .videoEnabled(true) .withRecorderType(RecorderType.FFMPEG) .withRecordMode(RecordingMode.ANNOTATED) .withVideoSaveMode(VideoSaveMode.FAILED_ONLY); }
`POM:
`