This test.SetChartSimulationHtml function allows the user to insert HTML information, like a custom chart, an image file or text information into the Stepped Parameter Summary Performance report using Trading Blox Builder scripts.
When used, it creates an end of test tasks to automatically display a custom chart images, an image file, or scripted HTML wrapped text statements in the area below the Stepped Parameter Summary Performance Table.
Syntax: |
---|
' Create a task item for the summary report to load |
Parameter: |
Description: |
---|---|
sHTMLImageReference |
HTML Image loading reference that includes image path and full file name.
See code example below for exact details on how to create a HTML image source reference. |
Notes: |
---|
This function is placed in the BEFORE TEST script section.
Image width and height assigned to this function should match that the size used to create the chart. If the the space allocated by the HTML statement to too small, some of the displayed image will be blocked. If they are too large, more space around the image will be added creating wasted space.
When used with a multiple stepped test, only one image should be created, so only one image is placed in the report. With thread processing in Trading Blox it will be necessary to and it will be placed in the top section of the Summary Performance Report after the Contour and other simulation scoped graphs.
Where this method differs is in the placement of where this method's charts are placed in the end of test Summary Performance Report. When this method is used, the created chart will be inserted right after the multi-parameter contour and 3D charts, which are created only once for the entire simulation, not for every test step.
In multiple step simulations, the Contour Stats block is a good example of setting the place holder in the Before Simulation script, checking for thread index one so that only one insert is made. As you know, every thread runs the Before Simulation script, so we don't want multiple inserts made.
Trading Blox Preferences: |
Example - BEFORE TEST SCRIPT: |
---|
' ============================================================== OR ' ============================================================== ' side by side. OR ' ============================================================== ' the second image: ' one above the other. |
Links: |
---|
See Also: |
|
Edit Time: 9/21/2020 3:56:58 PM |
Topic ID#: 535 |