public class ReportContext
extends java.lang.Object
Constructor and Description |
---|
ReportContext() |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
getBaseDir()
Crates new screenshot directory at first call otherwise returns created
directory.
|
static java.lang.String |
getPerformanceReportLink()
Returns URL for performance report.
|
static java.io.File |
getTempDir() |
static java.io.File |
getTestDir(java.lang.String test)
Crates new screenshot directory at first call otherwise returns created
directory.
|
static java.lang.String |
getTestLogLink(java.lang.String test)
Returns URL for test log.
|
static java.lang.String |
getTestScreenshotsLink(java.lang.String test)
Returns URL for test screenshot folder.
|
static void |
removeOldReports()
Removes oldest screenshots directories according to history size defined
in config.
|
static void |
removeTestReport(java.lang.String test) |
public static java.io.File getBaseDir()
public static java.io.File getTempDir()
public static java.io.File getTestDir(java.lang.String test)
test
- name of test.public static void removeOldReports()
public static void removeTestReport(java.lang.String test)
public static java.lang.String getTestScreenshotsLink(java.lang.String test)
test
- public static java.lang.String getTestLogLink(java.lang.String test)
test
- public static java.lang.String getPerformanceReportLink()