Previous Topic: Assert on Invocation Exception AssertionNext Topic: Check Content of Collection Object Assertion


File Watcher Assertion

The File Watcher assertion lets you monitor a file for specific content, and react to the presence (or absence) of a specific expression. This assertion runs in the background while your test case is executing.

Complete the following fields:

Name

Defines the name of the assertion.

Log

Identifies event text to print if the assertion fires.

The amount of time (in seconds) to delay before checking the file contents

The number of seconds to wait before checking the file at the beginning of the step that contains this assertion.

The amount of time (in seconds) to wait between checks on the file contents

The number of seconds to wait between each check.

The time (in seconds) the File Watcher will give up watching for the expression

The total number of seconds this assertion checks for the expression.

The url of the file to watch

The URL or path to the file being watched.

The expression to watch for in the file

The regular expression being watched for in the response.

Note: The times are in seconds and must be integers. The times default to 0.