UNIX File Access Component
The UNIX File Access component enables you to test UNIX file attributes and content.
Test File Attributes and Content
Settings Page
Select what to test. Select the type of file attributes and content Test:
- Test Number of Folders
- Test Creation Date
- Test Last Accessed Date
- Test Last Modified Date
- Test Number of Files Based On Creation Date
- Test Number of Files Based On Last Accessed Date
- Test Number of Files Based On Last Modified Date
- Test File Exists
- Test File Size
- Test Number of Files Based On File Size
- Test Number of Files
- Test New Last Entry
- Test Search File Contents
- Test Path Exists
- Test Number of Folders
Depending on the Test selection, complete the following input:
Select Folder. The path to the folder. For UNIX formatting, use "/" forward slashes instead of backward slashes in path.
Files. Name of file or a set of files based on a wildcard (files*.*).
Filter. The VB.Net expression used to filter the list of files returned from path. Expression can use any, but only one, of the columns returned from the ls –ld command. For example, 'Filemode','NumberOfLinks', 'OwnerName', 'GroupName', 'FileSize', 'FileDateTime', 'Pathname'. The data type used for each of the columns is as follows:
- String. Filemode, OwnerName, GroupName, Pathname
- Number. NumberofLinks, FileSize
- DateTime. FileDateTime
Comparison types:
Selection
Description
CREATION DATE
Select to test the creation date for the selected file or files. You are able to set-up the following Expected Response conditions:
- Date and time conditions.
For example:
A CREATION DATEBetween 10/25/2010 and 10/27/2010
-OR-
If you select the time option, a CREATION DATE= to 10/25/2010 at 7:30:00 PM- If you select Use Current Date, the Test is checking if the selected file or files were created on the current date.
- If you select Use Last, the Test is checking if the selected file or files were created in n Hours and/or n Minutes.
For example: Check if a file was created in the last 24 Hours.
FILE EXISTS
Select to create simple tests to check if files exist. If you use a wildcard then the Test fails if no files match.
Note: The Expected Response entries are not applicable.
FILE SIZE
Select to test the file size of the selected files. You are able to set-up an Expected Response condition that checks for a specific file size.
For example: Between 100 and 1000 bytes.
-OR-
= to 1000 bytes.
NUMBER OF FILES
Select to create a Test to check the number of files in a folder. You are able to set up an Expected Response condition that checks for a specific file count.
For example:
>= 5 files
-OR-
between 8 and 10 files. You can optionally use Last Modified Date filtering.
LAST ACCESSED DATE
Select to test the date when the selected files were last accessed. You are able to set up the following Expected Response conditions:
- Date and time conditions.
For example:
A LAST ACCESSED DATEBetween10/25/2010 and 10/27/2010
-OR-
If you select the time option, a LAST ACCESSED DATE= to 10/25/2010 at 7:30:00 PM- If you select Use Current Date, the Test is checking if the selected file or files were last accessed on the current date.
- If you select Use Last, the Test is checking if the selected file or files were last accessed in n Hours and/or n Minutes.
For example: Check if a file was created in the last 30 Minutes.
LAST MODIFIED DATE
Select to compare the date when the selected files were last modified. You are able to set up the following Expected Response conditions:
- Date and time conditions.
For example:
A LAST MODIFIED DATEBetween10/25/2010 and 10/27/2010
-OR-
If you select the time option, a LAST MODIFIED DATE= to 10/25/2010 at 7:30:00 PM- If you select Use Current Date, the Test is checking if the selected file(s) were last modified on the current date.
- If you select Use Last, the Test is checking if the selected file(s) were last modified in n Hours and/or n Minutes.
For example: Check if a file was modified in the last 30 Minutes.
NEW LAST ENTRY
Select to ensure the last line of a file is different every time the Test is executed. If the last line of the file is not different relative to the last New Last Entry test, the Test fails.
Note: The Expected Response entries are not applicable.
SEARCH FILE CONTENTS
Select to search for a text string in the selected file or files. The Test fails if the text string is not found.
Note: When you enter the text string, you do not need to use quotation marks. This function is case-sensitive, so an exact spelling of the text string is required. This is only applicable when testing text files.
For example:
SEARCH FILE CONTENTS = abc fails if the selected file does not contain the text string "abc."
Test Definition Page
Web Server Performing Test. The name of the Web Server executing the Test.
Resource Name. The name of the Monitor Resource associated with the Test.
Test Description. Text automatically generated from your selections.
Expected Response. The expected response for this Test. (Limited to 255 characters.)
Turn On Debug Messages. Enable to generate debug level messages during Test execution.
Output Metric(s). (Optional) Select a Metric to evaluate and track Test results.
Run the Test. Add the Test. Adjust the Time Out value if needed. Click Next.
Next Steps Page
This is the end of the Test. Choose to add another Test or end the UNIX File Access Component section of the Wizard.
Was this helpful?
Please tell us why:
Thank you.