The
resolveMatherialPath(TCaseName tCaseName, String subpath, String fileName)method of
com.kazurayam.materials.impl.MaterialRepositoryImplclass creates
tSuiteName/tSuiteTimestamp/path-resolution-log.jsonfile, which contains information how the method call resolved and returned a Path based on the given parameters. The following snippet shows an example.
{
"MaterialMetadata": {
"MaterialPath": "build\\tmp\\testOutput\\PathResolutionLogSpec\\testSerializeAndDeserializeWithSubPath\\Materials\\Monitor47News\\20190123_153854\\main.TC1\\dir1\\47NEWS_TOP.png",
"TCaseName": "Test Cases/main/TC1",
"InvokedMethodName": "resolveScreenshotPathByUrlPathComponents",
"SubPath": "dir1",
"URL": "https://www.47news.jp/",
"ExecutionProfileName": "develop"
}
}
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.String |
getFileName() |
|
InvokedMethodName |
getInvokedMethodName() |
|
MaterialDescription |
getMaterialDescription() |
|
java.lang.String |
getMaterialPath() |
|
java.lang.String |
getSubPath() |
|
TCaseName |
getTCaseName() |
|
java.net.URL |
getUrl() |
|
void |
serialize(java.io.Writer writer) |
|
void |
setFileName(java.lang.String fileName) |
|
void |
setSubPath(java.lang.String subpath) |
|
void |
setUrl(java.net.URL url) |
|
java.lang.String |
toJsonText() |
| Methods inherited from class | Name |
|---|---|
interface java.lang.Comparable |
java.lang.Comparable#compareTo(java.lang.Object) |