Compares two text files and reports whether they match.
bCompare = SYS_CompareText(sFile1, sFile2)
Variable | Description |
---|---|
bCompare | TRUE if the two files are the identical; otherwise, FALSE. BOOLEAN. |
sFile1 | The first file to compare. STRING. |
sFile2 | The second file to compare. STRING. |
SYS_CompareText automatically factors out end-of-line differences between platforms.
SYS_CompareText 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.
[-] if (!SYS_CompareText("baseline", "testfile")) [ ] LogError("Files do not match")