MaterialStorage is an external directory for Materials outside a Katalon Studio project. You can backup your Materials from the project's Materials directory to the MaterialStorage. Also you can restore a version of TSuiteExecution
| Type Params | Return Type | Name and description |
|---|---|---|
|
int |
backup(MaterialRepository fromMR, TSuiteResultId tSuiteResultId, boolean scan)copy a set of Material files idenfified by a pair of a tSuiteName and a specific tSuiteTimestamp from the project's Materials folder (fromMR) into this Material Storage. |
|
int |
backup(MaterialRepository fromMR, java.util.List<TSuiteResultId> tSuiteResultIdList)copy a set of Material files identified by a pair of a tSuiteName and a RetrievalBy object from the project's Materials folder (fromMR) into this Material Storage. |
|
int |
clear(TSuiteResultId tSuiteResultId)copy all Material files in the project's Materials folder (fromMR) at the timing of invokation into this Material Storage |
|
int |
clear(java.util.List<TSuiteResultId> tSuiteResultIdList) |
|
int |
clear(TSuiteName tSuiteName)delete all of subdirectories and material files which belong to the tSuiteName in this Material Storage. |
|
void |
empty()delete all Material files in this Material Storage, keep the baseDir undeleted. |
|
java.nio.file.Path |
getBaseDir()@return the baseDir Path |
|
java.util.Set<java.nio.file.Path> |
getSetOfMaterialPathRelativeToTSuiteName(TSuiteName tSuiteName, TExecutionProfile tExecutionProfile)@return
|
|
long |
getSize()@return sum of the size of Material files contained in the Storage |
|
long |
reduce(long targetBytes)Calculate the total file size in the Storage to check if it exceeds the target size in bytes. |
|
RestoreResult |
restore(MaterialRepository intoMR, TSuiteResultId tSuiteResultId, boolean scan)copy a set of Material files idenfified by a pair of a tSuiteName and a specific tSuiteTimestamp from this Material Storage into the project's Materials folder (intoMR). |
|
java.util.List<RestoreResult> |
restore(MaterialRepository intoMR, java.util.List<TSuiteResultId> tSuiteResultIdList)copy a set of Material files identified by a pair of a tSuiteName and a RetrievalBy object from this Material Storage into the project's Materials folder (intoMR). |
|
RestoreResult |
retrievingRestoreUnaryExclusive(MaterialRepository intoMR, TSuiteName tSuiteName, TExecutionProfile tExecutionProfile, RetrievalBy retrievalBy) |
|
RestoreResult |
retrievingRestoreUnaryInclusive(MaterialRepository intoMR, TSuiteName tSuiteName, TExecutionProfile tExecutionProfile, RetrievalBy retrievalBy) |
|
void |
scan()scan the Storage directory to refresh memory so that it sync with the file system |
|
void |
status(java.io.Writer output, java.util.Map<java.lang.String, java.lang.Object> options)list the current status of the Storage |
|
java.lang.String |
toJsonText() |
| Methods inherited from class | Name |
|---|---|
interface TSuiteResultTree |
addTSuiteResult, getTSuiteNameList, getTSuiteResult, getTSuiteResult, getTSuiteResultIdList, getTSuiteResultIdList, getTSuiteResultList, getTSuiteResultList, getTSuiteResultList, getTSuiteResultList, hasTSuiteResult |
interface VTLoggerEnabled |
setVisualTestingLogger |
copy a set of Material files idenfified by a pair of a tSuiteName and a specific tSuiteTimestamp from the project's Materials folder (fromMR) into this Material Storage.
scan - whether to call this.scan after backing up this TSuiteResultIdcopy a set of Material files identified by a pair of a tSuiteName and a RetrievalBy object from the project's Materials folder (fromMR) into this Material Storage.
scan - if true, fromMR.scan() will be called; otherwise no scan() will be calledcopy all Material files in the project's Materials folder (fromMR) at the timing of invokation into this Material Storage
delete all of subdirectories and material files which belong to the tSuiteName in this Material Storage. Will remove the tSuiteName directory.
delete all Material files in this Material Storage, keep the baseDir undeleted.
Calculate the total file size in the Storage to check if it exceeds the target size in bytes. All of TSuiteNames are inspected as possible deletion target. If exceeding, clear older TSuiteResults to reduce the total less than the target. e.g., MaterialStorage.reduceSizeTo(20 * 1000 * 1000 * 1000); // 20 giga-bytes
targetBytes - want to make the Storage size less than thiscopy a set of Material files idenfified by a pair of a tSuiteName and a specific tSuiteTimestamp from this Material Storage into the project's Materials folder (intoMR).
scan - wither to call scan() after restoring this TSuiteResultIdcopy a set of Material files identified by a pair of a tSuiteName and a RetrievalBy object from this Material Storage into the project's Materials folder (intoMR).
scan the Storage directory to refresh memory so that it sync with the file system
list the current status of the Storage