com.automation.remarks.video.RecordingUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of video-recorder Show documentation
Show all versions of video-recorder Show documentation
Video Recorder is a library that allows to record selenium tests
The newest version!
package com.automation.remarks.video;
import java.io.File;
import java.util.LinkedList;
/**
* Created by sergey on 4/21/16.
*/
public class RecordingUtils {
private RecordingUtils() {
}
public static void doVideoProcessing(boolean successfulTest, LinkedList recordings) {
if (!successfulTest) {
System.err.println("Video recording\n" + recordings);
} else if (recordings.size() > 0) {
recordings.getFirst().delete();
}
}
}