Community in read only mode June 18 & 19
This community will be set in READ ONLY mode for a while on Tuesday June 18 into Wednesday June 19 while we import content and users from our Micro Focus Forums community site. MORE INFORMATION

Displaying custom HTML content in Truelog Explorer

Displaying custom HTML content in Truelog Explorer

  • Introduction
  • Examples of HTML contents in the truelog (graphs)
  • Basic usage
  • Custom functions
  • Base HTML files


In this video we're going to demonstrate how to output information directly in the truelog, taking advantage of the Truelog Explorer rendering capabilities to show graphs using dynamic data collected during the execution of a try script.

Here, we collected the measures from custom timers.

The first node shows the timers in plain text. The first line is a list of individual timers (or labels), and the second line represents the values. We'll get back to the use of labels and values later in this video.

In the second node we chose to display timers as a line graph. Notice tooltips are available for each measure.

This is what it looks like as a bar graph.

And finally, we can also see our custom timers as a pie graph.

Having run more than 1 iteration means we can collect minimum and maximum values for certain measures.
Here we see them as a line graph, and the minimum and maximum values for this particular measure.

To use this feature, all we do here is to collect the measure and add it as a label and a value to a pair of lists that store labels and values.

Then, the lists are passed onto the ShowTimers() and ShowTimersPie() functions, which are defined in showfuncs.bdh include file.

These functions read the base HTML files containing JavaScript, which are edited on the fly to draw graphs based on the labels and values collected during runtime.

In this video, we provided a demonstration on how to display custom and dynamic HTML content in Truelog Explorer, by exploring a new built-in feature available in Silk Performer 16.5.

To download a sample project, click here: TruelogInfo.zip

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:
‎2016-02-01 19:11
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.