How can I verify text that appears in the rendered view of the TrueLog when the source of the page is displayed as binary data?
This is possible by verifying the actual binary data that corresponds to the text that needs to be verified.
As an example, the rendered text of a Microsoft Word Document in the rendered view of the TryScript TrueLog will show that the "in-data" tab shows the source of the document displayed as binary data.
If you wish to verify that the text "Windows 2000" appears then you need to find what the corresponding binary data for this text is.
You can see above (underlined in red) that the binary representation is: "57696E646F77732032303030".
So in this example you need to verify that "\h57696E646F77732032303030" occurs in the server response data (the "\h" is required as this is hexadecimal representation).
To do this you can use the WebVerifyData function as follows:
WebVerifyData parses the server response data and counts the appearance of the specified content with the provided string. If the verification condition is not met, an error is raised. The severity of this error can be specified, see help for full details.