public abstract class BrowserTest<W extends WebPage> extends KurentoTest
| Modifier and Type | Field and Description |
|---|---|
static Color |
CHROME_VIDEOTEST_COLOR |
static SimpleDateFormat |
DATE_FORMAT |
static String |
LATENCY_KEY |
static int |
OCR_COLOR_THRESHOLD |
static int |
OCR_TIME_THRESHOLD_MS |
deleteLogsIfSuccess, log, 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) |
String |
containSimilarDate(String key,
Set<String> keySet) |
protected W |
createWebPage() |
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) |
TestScenario |
getTestScenario() |
W |
getViewer() |
W |
getViewer(int index) |
String |
ocr(String imgBase64) |
void |
processDataToCsv(String outputFile,
Map<String,Map<String,String>> presenter,
Map<String,Map<String,String>> viewer) |
long |
processOcr(String presenterDateStr,
String viewerDateStr,
String presenterBase64,
String viewerBase64) |
void |
processStats(Map<String,Map<String,String>> stats,
com.google.common.collect.Table<Integer,Integer,String> resultTable) |
void |
serializeObject(Object object,
String file) |
void |
setupBrowserTest() |
void |
syncTimeForOcr(W[] webpages,
String[] videoTagsId,
String[] peerConnectionsId) |
void |
teardownBrowserTest() |
void |
waitForHostIsReachable(URL url,
int timeout) |
void |
waitMilliSeconds(long waitTime) |
void |
waitSeconds(long waitTime) |
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 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 void setupBrowserTest()
throws InterruptedException
InterruptedExceptionpublic void teardownBrowserTest()
public TestScenario getTestScenario()
public 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 void processDataToCsv(String outputFile, Map<String,Map<String,String>> presenter, Map<String,Map<String,String>> viewer) throws InterruptedException, IOException
InterruptedExceptionIOExceptionpublic long processOcr(String presenterDateStr, String viewerDateStr, String presenterBase64, String viewerBase64)
public void processStats(Map<String,Map<String,String>> 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
IOExceptionCopyright © 2016 Kurento. All rights reserved.