class MaterialImpl extends java.lang.Object
A Material has a Path
| Type | Name and description |
|---|---|
java.lang.String |
description |
long |
lastModified |
long |
length |
static org.slf4j.Logger |
logger_ |
TCaseResult |
parent |
| Constructor and description |
|---|
MaterialImpl
(TCaseResult parent, java.lang.String subpath, java.net.URL url, Suffix suffix, FileType fileType) |
MaterialImpl
(TCaseResult parent, java.nio.file.Path filePath)@param parent TCaserResult at '. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
int |
compareTo(Material other) |
|
boolean |
equals(java.lang.Object obj) |
|
boolean |
fileExists() |
|
java.nio.file.Path |
getBaseDir() |
|
java.lang.String |
getDescription() |
|
java.lang.String |
getEncodedHrefRelativeToRepositoryRoot() |
|
java.lang.String |
getFileName() |
|
FileType |
getFileType() |
|
java.lang.String |
getHrefRelativeToRepositoryRoot() |
|
java.lang.String |
getHrefToReport()Provided that the Material exists at - TSuiteName: 'Test Suites/main/TS1' - TSuiteTimestamp: '20180805_081908' - TCaseName: 'Test Cases/main/TC1' - Material's relative path to the TCaseResult dir: 'screenshot.png' then hrefToReport() should return '.. |
|
java.lang.String |
getIdentifier()returns the identifier of the Material which is used as - the name in the Bootstrap Treeview - the title of Modal window |
|
java.time.LocalDateTime |
getLastModified() |
|
long |
getLength() |
|
TCaseResult |
getParent() |
|
java.nio.file.Path |
getParentDirectoryPathRelativeToTSuiteResult()@return may return null |
|
java.nio.file.Path |
getPath() |
|
java.nio.file.Path |
getPathRelativeToRepositoryRoot() |
|
java.nio.file.Path |
getPathRelativeToTSuiteTimestamp() |
|
java.lang.String |
getSubpath() |
|
Suffix |
getSuffix() |
|
TCaseName |
getTCaseName()@return a TCaseName object, same as this.getTCaseResult().getTcaseName(); may return null |
|
TCaseResult |
getTCaseResult()@return a TCaseResult object, may return null |
|
java.net.URL |
getURL()@return a URL object set by the constructor, may return null |
|
int |
hashCode() |
|
void |
setDescription(java.lang.String description) |
|
Material |
setLastModified(long lastModified) |
|
Material |
setLastModified(java.time.Instant lastModified) |
|
Material |
setLength(long length) |
|
Material |
setParent(TCaseResult parent) |
|
void |
setVisualTestingLogger(VisualTestingLogger vtLogger) |
|
java.lang.String |
toJsonText() |
|
java.lang.String |
toString() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
parent - TCaserResult at './Materials/main.TS1/20180530_130419/main.TC1'filePath - './Materials/main.TS1/20180530_130419/main.TC1/foo/bar/fixture.xls'
supath_ should be equal to Paths.get('foo/bar')Provided that the Material exists at - TSuiteName: 'Test Suites/main/TS1' - TSuiteTimestamp: '20180805_081908' - TCaseName: 'Test Cases/main/TC1' - Material's relative path to the TCaseResult dir: 'screenshot.png' then hrefToReport() should return '../Reports/main/TS1/20180805_081908/20180805_081908.html' here we assume that the Materials directory and the Reports directory is located under a single parent directory. Howerver, if you locate the Materials directory on a network drive (or on a Newowrk File System) and you use the GUI mode of Katalon Studio, there is a case where the Materials directory and the Reports directory are isolated. In that case this getHrefToReport() returns null. If you run Katalon Studio in Console Mode specifying -reportDir option, you can move the Reports directory to the sibling of the Materials directory. In this case this getHrefToReport() should return a valid path string.
returns the identifier of the Material which is used as - the name in the Bootstrap Treeview - the title of Modal window The identifer is in the following format:
subpath under the TCaseResult directory/filenameFor example, an identifier could be
fundDetail#corp=ecza&code=01311962.1024x768.png
main.fnhp.visitAllFunds_ecza_pc/fundDetail#corp=ecza&code=47311037.1024x768.20190403_100516_product-20190403_100517_develop.(0.12).png
Groovy Documentation