Saves scripted charts as image files in the names of the location and file name specified.

 

Notes:

This function only creates the file so that other methods can access the graph and then display it in a report, and or browser.

 

When specifying destination paths where the file is to be saved, it is recommended the path be created using the test-object property: resultsReportPath.  This property identifies the the current test folder path and folder name where the other test report images and data are being saved, and it provides a convenient method for referencing the destination of where to place a file, and then later in the script where to access the file when it is time to display it in a report or browser.

 

Syntax:

chart.Make( FileSavingDetails )

 

Parameter:

Description:

FileSavingDetails

This parameter must contain the path, folder, file name and the image type name being created.

 

String variable or Text contained with quotation marks required:

<Drive>:\<Full path and folder name>\<filename>.<image-format>

 

Supported Image Formats:

PNG, JPG, GIF, BMP

 

Example:

'  Create & Save this new chart as a file.
  '  Always add a backSlash Character after "resultsReportPath"
  chart.Make( test.resultsReportPath + "\" + "Scatter.png" )

 

Results:

A drive, path, including folder-name, will be appended to your file name, and will appear similar to this next line as long you have added a backslash character '\' between the folder name and the file name:

"C:\Trading Blox\Results\Test 2013-01-08_08_47_55\Scatter.png"

File path information folder name reflects the 'Suite Name" and the date and time in YYYY-MM-DD_HH_MM_S format of the test executed and the time execution began.

 

Click on any of the these links to review chart creation code examples to see how all the chart methods use this Make function:

AddBarSeries

AddContourLayer

AddLineLayer

AddLineSeries

AddScatter

NewPie

Returns:

Each links in the above Example will display a chart type.

 

Links:

General Properties, resultsReportPath

See Also:

Chart

 


Edit Time: 9/25/2017 09:09:54 AM


Topic ID#: 412

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software