public abstract class BrowserTest<W extends WebPage> extends KurentoTest
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCKSIZE |
static Color |
CHROME_VIDEOTEST_COLOR |
static SimpleDateFormat |
DATE_FORMAT |
static double |
FPS |
static String |
LATENCY_KEY |
static org.slf4j.Logger |
log |
static int |
OCR_COLOR_THRESHOLD |
static int |
OCR_TIME_THRESHOLD_MS |
static String |
PNG |
static String |
PSNR_KEY |
static String |
SSIM_KEY |
static String |
Y4M |
deleteLogsIfSuccess, logFiles, numRetries, printLogs, retry, SEPARATOR, testClassName, testDir, testIdentifier, testMethodName, testScenario, watcher| Constructor and Description |
|---|
BrowserTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBrowser(String browserKey,
Browser browser) |
void |
addColumnsToTable(com.google.common.collect.Table<Integer,Integer,String> table,
com.google.common.collect.Multimap<String,Object> column,
int columnKey) |
String |
containSimilarDate(String key,
Set<String> keySet) |
File |
convertToRaw(File inputFile,
File tmpFolder,
double fps) |
protected W |
createWebPage() |
File |
cutAndTranscodeVideo(File inputFile,
File tmpFolder,
int cutFrame,
double fps) |
File |
cutVideo(File inputFile,
File tmpFolder,
int cutFrame,
double fps) |
int |
getCutFrame(File inputFile1,
File inputFile2,
File tmpFolder) |
void |
getFrames(File inputFile,
File tmpFolder) |
Integer |
getKeyOfValue(Map<Integer,String> map,
String value) |
W |
getPage() |
W |
getPage(int index) |
W |
getPage(String browserKey) |
static Class<?> |
getParamType(Class<?> testClass) |
W |
getPresenter() |
W |
getPresenter(int index) |
com.google.common.collect.Multimap<String,Object> |
getPsnr(File inputFile1,
File inputFile2) |
com.google.common.collect.Multimap<String,Object> |
getSsim(File inputFile1,
File inputFile2) |
TestScenario |
getTestScenario() |
com.google.common.collect.Multimap<String,Object> |
getVideoQuality(File inputFile1,
File inputFile2,
String videoAlgorithm,
double fps,
int blocksize) |
W |
getViewer() |
W |
getViewer(int index) |
String |
ocr(BufferedImage imgBuff) |
String |
ocr(String imgBase64) |
String |
parseFps(double fps) |
long |
processOcr(String presenterDateStr,
String viewerDateStr,
String presenterBase64,
String viewerBase64) |
com.google.common.collect.Table<Integer,Integer,String> |
processOcrAndStats(Map<String,Map<String,Object>> presenter,
Map<String,Map<String,Object>> viewer) |
void |
processStats(Map<String,Map<String,Object>> stats,
com.google.common.collect.Table<Integer,Integer,String> resultTable) |
void |
serializeObject(Object object,
String file) |
void |
setupBrowserTest() |
static void |
storeBrowsersLogs() |
void |
syncTimeForOcr(W[] webpages,
String[] videoTagsId,
String[] peerConnectionsId) |
void |
teardownBrowserTest() |
File |
transcodeVideo(File inputFile,
File tmpFolder,
double fps) |
void |
waitForFilesInFolder(String folder,
String ext,
int expectedFilesNumber) |
void |
waitForHostIsReachable(URL url,
int timeout) |
void |
waitMilliSeconds(long waitTime) |
void |
waitSeconds(long waitTime) |
void |
writeCSV(String outputFile,
com.google.common.collect.Multimap<String,Object> multimap,
boolean orderKeys) |
void |
writeCSV(String outputFile,
com.google.common.collect.Table<Integer,Integer,String> resultTable) |
addLogFile, data, deleteLogs, getDefaultOutputFile, getDefaultOutputFolder, getDefaultOutputTestPath, getPlayerUrl, getRecordDefaultPath, getRecordUrl, getServerLogFiles, getSimpleTestName, getTestClassName, getTestDir, getTestFilesDiskPath, getTestFilesHttpPath, getTestFilesMongoPath, getTestFilesS3Path, getTestIceServerCredential, getTestIceServerUrl, getTestIceServerUsername, getTestIdentifier, getTestMethodName, getTestReport, getTestSeekRepetitions, getTestStunServerUrl, isDeleteLogsIfSuccess, logMessage, printKmsLogs, setDeleteLogsIfSuccess, setTestClassName, setTestDir, setTestIdentifier, setTestMethodNamepublic static org.slf4j.Logger log
public static final Color CHROME_VIDEOTEST_COLOR
public static final int OCR_TIME_THRESHOLD_MS
public static final int OCR_COLOR_THRESHOLD
public static final String LATENCY_KEY
public static final SimpleDateFormat DATE_FORMAT
public static final double FPS
public static final int BLOCKSIZE
public static final String SSIM_KEY
public static final String PSNR_KEY
public static final String PNG
public static final String Y4M
public void setupBrowserTest()
throws InterruptedException
InterruptedExceptionpublic void teardownBrowserTest()
public static void storeBrowsersLogs()
public TestScenario getTestScenario()
public void addBrowser(String browserKey, Browser browser) throws IOException
IOExceptionpublic W getPage()
public W getPage(int index)
public W getPresenter()
public W getPresenter(int index)
public W getViewer()
public W getViewer(int index)
protected W createWebPage()
public void waitForHostIsReachable(URL url, int timeout)
public void waitSeconds(long waitTime)
public void waitMilliSeconds(long waitTime)
public void syncTimeForOcr(W[] webpages, String[] videoTagsId, String[] peerConnectionsId) throws InterruptedException
InterruptedExceptionpublic void serializeObject(Object object, String file) throws IOException
IOExceptionpublic com.google.common.collect.Table<Integer,Integer,String> processOcrAndStats(Map<String,Map<String,Object>> presenter, Map<String,Map<String,Object>> viewer) throws InterruptedException, IOException
InterruptedExceptionIOExceptionpublic long processOcr(String presenterDateStr, String viewerDateStr, String presenterBase64, String viewerBase64)
public void processStats(Map<String,Map<String,Object>> stats, com.google.common.collect.Table<Integer,Integer,String> resultTable)
public void writeCSV(String outputFile, com.google.common.collect.Table<Integer,Integer,String> resultTable) throws IOException
IOExceptionpublic void writeCSV(String outputFile, com.google.common.collect.Multimap<String,Object> multimap, boolean orderKeys) throws IOException
IOExceptionpublic String ocr(BufferedImage imgBuff)
public com.google.common.collect.Multimap<String,Object> getVideoQuality(File inputFile1, File inputFile2, String videoAlgorithm, double fps, int blocksize) throws IOException
IOExceptionpublic String parseFps(double fps)
public File cutAndTranscodeVideo(File inputFile, File tmpFolder, int cutFrame, double fps)
public int getCutFrame(File inputFile1, File inputFile2, File tmpFolder) throws IOException
IOExceptionpublic com.google.common.collect.Multimap<String,Object> getSsim(File inputFile1, File inputFile2) throws IOException
IOExceptionpublic com.google.common.collect.Multimap<String,Object> getPsnr(File inputFile1, File inputFile2) throws IOException
IOExceptionpublic void waitForFilesInFolder(String folder, String ext, int expectedFilesNumber)
Copyright © 2019 Kurento. All rights reserved.