File Actions

The File actions give you control over creating, deleting, moving, and copying files that are used in the testing process. 

File Copy 

File Copy

IconDescription
SentryOne Test File CopyThe File Copy action copies a file from one location into another. If the selected file doesn't exist the test fails.

File Copy Editor

SentryOne Test File Copy Properties

FunctionDescription
OverwriteDetermines if the element should overwrite an existing file at the target location. If this is not selected, and the file already exists at the target location, the test fails.
SourceLocation of the file you want to copy.
TargetLocation where you want to copy the file.
File Create

File Create

IconDescription
SentryOne Test File CreateThe File Create action creates a file based on a text file asset. This creates the file with the information contained in the text file asset.

File Create Editor

SentryOne Test File Create Properties

FunctionDescription
File Content AssetThe text to put into the file upon creation.
OverwriteDetermines if the element should overwrite an existing file at the target location. If this is not selected, and the file already exists at the target location, the test fails.
TargetLocation where you want to create the file.
File Delete

File Delete

IconDescription
SentryOne Test File DeleteThe File Delete action deletes a file from the target location. If the file does not exist, the you can control if the test fails or continues using the strict option.

File Delete Editor

SentryOne Test File Delete Properties

FunctionDescription
StrictDetermines whether the test fails or continues if the target file does not exist. If selected, and the file does not exist, the test fails.
TargetThe location where you want to delete the file.
File Load

File Load

IconDescription

Loads a file from a selected connection asset.

SentryOne Test File Load Properties

FunctionDescription
EncodingThe text file encoding that's used to read the file.
FileEncoding
Resource KeyName of the resource key that stores the results.
SourceThe source of the loaded file.
File Line / Match Count

File Line / Match Count

IconDescription
SentryOne Test File Line / Match CountThe File Line / Match Count action counts lines in a file, or matches according to a specified pattern. The result of the count is then stored in a resource key that's used for comparisons in the assert step.

File Line / Match Count Editor

SentryOne Test File Line / Match Count Properties

FunctionDescription
Line By LineToggle on or off to determine if matches evaluate one line at a time.
Operation TypeSpecifies if the element counts lines or matches.
PatternThis is the regular expression that's used to count matches.
TargetThe file you want to count.
Resource KeyThe result of the count is stored in the resource key.
File Move

File Move

IconDescription
SentryOne Test File MoveThe File Move action moves the file from one location to another. You can specify if the element overwrites an existing file or not.

File Move Editor

SentryOne Test File Move Properties

FunctionDescription
OverwriteToggle on or off to specify if the element overwrites a file that already exists. If turned off, and the file exists at the target location, the test fails.
SourceThe location of the file you want to move.
TargetThe location where you want to move the file.