Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

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?

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("\h57696E646F77732032303030");
WebUrl("http://www.website.com/document.doc");

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.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 18:40
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.