io » waitForFile(file,minFileSize,waitMs,maxWaitMs)
Description
Instruct Nexial to wait for the specified file to “stabilize”, which means that:
- such
fileis readable, - such
filehas at least the file size greater or equal tominFileSize, - such
filehas a file size and last-modified timestamp that remains unchanged betweenwaitMsmillisecond,
Nexial will continuously change for the above-mentioned conditions until maxWaitMs time is reached. After maxWaitMs
time, if the specified file still does not satisfy all the conditions, then Nexial will consider this command
as FAIL.
Parameters
- file - the file to inspect for stabilization
- minFileSize - the minimum file size the specified
fileshould have - waitMs - the number of milliseconds to wait before checking for file stabilization
- maxWaitMs - the maximum amount of time to wait before this command is deemed as “UNSTABLE”