SYS_VerifyText Function

Action

Compares two text files and raises an error if there are differences.

Syntax

SYS_VerifyText (sFile1, sFile2)
Variable Description
sFile1 The first file to compare, containing the expected baseline value. STRING.
sFile2 The second file to compare, containing the actual test result. STRING.

Notes

Clicking on the error in the results file invokes the text Difference Viewer.

SYS_VerifyText automatically factors out end-of-line differences between platforms.

Windows Platforms

SYS_VerifyText is executed by the Agent process, not the Silk Test Classic process. To affect the host process, use the function with the hHost notation or machine handle operator. For more information about the machine handle operator and hHost, see Machine handle operator.

Example

SYS_VerifyText("baseline", "testfile")