public class RestReplayReport extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RestReplayReport.FilePath |
static class |
RestReplayReport.Header |
static class |
RestReplayReport.ReportDetailLocations |
static class |
RestReplayReport.ReportMasterLocations |
static class |
RestReplayReport.TOC |
Modifier and Type | Field and Description |
---|---|
protected static String |
BR |
protected static String |
DETAIL_END |
protected static String |
DETAIL_HDR |
protected static String |
DETAIL_LINESEP |
protected static String |
DIV_END |
protected static String |
EVAL_REPORT_HDR |
protected static String |
EVAL_REPORT_LINKS_FILE |
protected static String |
GROUP_END |
protected static String |
GROUP_START |
protected static String |
HDRBEGIN |
protected static String |
HDREND |
protected static String |
HR |
protected static String |
HTML_PAGE_END |
protected static String |
HTML_TEST_END |
protected static String |
HTML_TEST_START |
static String |
INCLUDES_DIR |
protected static String |
LIVE_SECTION_BEGIN |
protected static String |
LIVE_SECTION_END |
static String |
POWERED_BY |
protected static String |
PRE_END |
protected static String |
PRE_START |
protected static String |
RUNINFO_END |
protected static String |
RUNINFO_START |
protected static String |
TOC_CELLEND |
protected static String |
TOC_CELLSEP |
protected static String |
TOC_CELLSTART |
protected static String |
TOC_END |
protected static String |
TOC_LINESEP |
protected static String |
TOC_START |
protected static String |
TOPLINKS_FILE |
protected static String |
WRAP_END |
protected static String |
WRAP_START |
Constructor and Description |
---|
RestReplayReport(String reportsDir,
String relativePathFromReportsDir) |
Modifier and Type | Method and Description |
---|---|
void |
addFailure(String msg) |
void |
addRunInfo(String text) |
RestReplayReport.Header |
addTestGroup(String groupID,
String controlFile,
String runID,
String comment,
String anchor,
int idx) |
void |
addTestResult(ServiceResult serviceResult) |
protected String |
alertError(String msg) |
protected static void |
appendPayload(ServiceResult serviceResult,
StringBuffer fb,
String payload,
ServiceResult.PRETTY_FORMAT format,
String title,
String theDivID,
String subtitle) |
protected static void |
appendPayload(ServiceResult serviceResult,
StringBuffer fb,
String payload,
ServiceResult.PRETTY_FORMAT format,
String title,
String theDivID,
String subtitle,
boolean usePRE) |
protected static String |
brown(String label) |
static RestReplayReport.ReportMasterLocations |
calculateMasterReportRelname(String reportsDir,
String localMasterFilename,
String envID) |
void |
clearRunInfo() |
String |
detail(ServiceResult s,
boolean includePayloads,
boolean includePartSummary,
String linesep,
String end,
int tocID) |
static String |
dotdotdot(String value) |
static String |
dotdotdot(String value,
int newlen) |
static String |
escape(String source) |
String |
evalReportToString(RestReplay replay) |
protected static String |
formatCollapse(String myDivID,
String linkText) |
protected static String |
formatCollapse(String myDivID,
String linkText,
String subtitle) |
static String |
formatExpectedTreewalkRangeColumns(ServiceResult s) |
protected static String |
formatMasterVars(Map<String,Object> masterVars) |
static String |
formatMutatorSUCCESS(ServiceResult serviceResult) |
static String |
formatPageStart(String testdir,
ResourceManager rm,
String pageTitle) |
static String |
formatPayloads(ServiceResult serviceResult,
int tocID) |
String |
formatSummary(ServiceResult serviceResult,
int tocID)
Note: anchor tag is spit out by appendTestAnchor() before this because this gets wrapped in divs by appendServiceResult()
|
String |
getPage(String testdir,
RestReplay restReplay,
String testGroupID) |
String |
getRelativePathFromReportsDir() |
String |
getReportsDir() |
String |
getRunInfo() |
String |
getRunInfoHTML() |
String |
getTOC(String reportName) |
protected static String |
lbl(String label) |
static String |
makeShort(String theComment,
String blockID) |
protected static String |
noerror(String label) |
protected static String |
ok(String label) |
protected static String |
red(String label) |
static File |
saveIndexForMaster(String testdir,
String reportsDir,
String localMasterFilename,
List<String> reportsList,
String envID,
Map<String,Object> masterVars,
List<RestReplayReport.Header> testGroups,
Master master,
List<List<ServiceResult>> list,
List<String> masterAlertStrings) |
static File |
saveIndexNoMaster(ResourceManager rm,
String testdir,
String reportsDir,
String localMasterFilename,
List<String> reportsList) |
File |
saveReport(String testdir,
String reportsDir,
String reportName,
RestReplay restReplay,
String testGroupID) |
static String |
scriptifyName(String name) |
protected static String |
small(String label) |
protected static String |
smallblack(String label) |
protected static String |
tocError(int count) |
protected String |
tocWarn(int count) |
protected String |
units(String label) |
public static final String INCLUDES_DIR
protected static final String TOPLINKS_FILE
protected static final String EVAL_REPORT_LINKS_FILE
public static final String POWERED_BY
protected static final String HTML_PAGE_END
protected static final String LIVE_SECTION_BEGIN
protected static final String LIVE_SECTION_END
protected static final String HTML_TEST_START
protected static final String HTML_TEST_END
protected static final String GROUP_START
protected static final String GROUP_END
protected static final String RUNINFO_START
protected static final String RUNINFO_END
protected static final String DIV_END
protected static final String WRAP_START
protected static final String WRAP_END
protected static final String PRE_START
protected static final String PRE_END
protected static final String BR
protected static final String HR
protected static final String DETAIL_HDR
protected static final String DETAIL_LINESEP
protected static final String DETAIL_END
protected static final String EVAL_REPORT_HDR
protected static final String TOC_START
protected static final String TOC_LINESEP
protected static final String TOC_CELLSEP
protected static final String TOC_END
protected static final String TOC_CELLSTART
protected static final String TOC_CELLEND
protected static final String HDRBEGIN
protected static final String HDREND
public RestReplayReport(String reportsDir, String relativePathFromReportsDir)
relativePathFromReportsDir
- is relative to the uri the master is served from, and in the current implementation, is the env so that each env can have equivalent output file directories.reportsDir
- is the physical location of the reports output directory where master index files, and environments (as directories), and also the db output if turned on.public String getReportsDir()
public String getRelativePathFromReportsDir()
protected static String formatCollapse(String myDivID, String linkText, String subtitle)
public String getPage(String testdir, RestReplay restReplay, String testGroupID) throws IOException
IOException
public static String formatMutatorSUCCESS(ServiceResult serviceResult)
public String evalReportToString(RestReplay replay)
public void addRunInfo(String text)
public String getRunInfo()
public String getRunInfoHTML()
public void clearRunInfo()
public RestReplayReport.Header addTestGroup(String groupID, String controlFile, String runID, String comment, String anchor, int idx)
public void addFailure(String msg)
public void addTestResult(ServiceResult serviceResult)
public static String formatPageStart(String testdir, ResourceManager rm, String pageTitle) throws IOException
IOException
public File saveReport(String testdir, String reportsDir, String reportName, RestReplay restReplay, String testGroupID)
public static RestReplayReport.ReportMasterLocations calculateMasterReportRelname(String reportsDir, String localMasterFilename, String envID)
public static File saveIndexForMaster(String testdir, String reportsDir, String localMasterFilename, List<String> reportsList, String envID, Map<String,Object> masterVars, List<RestReplayReport.Header> testGroups, Master master, List<List<ServiceResult>> list, List<String> masterAlertStrings)
localMasterFilename
- should be a local filename for the index of each restReplay master control file, e.g. objectexit.xml
so what gets written to disk will be something like index.objectexit.xml.html . The actual filename will be available from
the returned File object if successful.public static File saveIndexNoMaster(ResourceManager rm, String testdir, String reportsDir, String localMasterFilename, List<String> reportsList)
localMasterFilename
- should be a local filename for the index of each restReplay master control file, e.g. objectexit.xml
so what gets written to disk will be something like index.objectexit.xml.html . The actual filename will be available from
the returned File object if successful.public String formatSummary(ServiceResult serviceResult, int tocID)
public static String formatPayloads(ServiceResult serviceResult, int tocID)
protected static void appendPayload(ServiceResult serviceResult, StringBuffer fb, String payload, ServiceResult.PRETTY_FORMAT format, String title, String theDivID, String subtitle)
protected static void appendPayload(ServiceResult serviceResult, StringBuffer fb, String payload, ServiceResult.PRETTY_FORMAT format, String title, String theDivID, String subtitle, boolean usePRE)
protected String tocWarn(int count)
protected static String tocError(int count)
public String detail(ServiceResult s, boolean includePayloads, boolean includePartSummary, String linesep, String end, int tocID)
public static String formatExpectedTreewalkRangeColumns(ServiceResult s)
Copyright © 2016. All rights reserved.