- Subscribe to RSS Feed
- Bookmark
- Subscribe
- Email to a Friend
- Printer Friendly Page
- Report Inappropriate Content
Creating Report Templates and Reports
|
SOASTA Central includes a reporting facility, Central > Report Templates, which can be used to template, and then to export, usable test results into a Microsoft Word "docx" document. Report templates provide a format that places, and makes available for wider use, the charts that CloudTest uses to present test results. |
|
|
|
|
Once imported, the template file will appear in the list on the right. |
|
|
When selected, details about the Report Template appear in the lower panel. |
|
Creating a Report from Template
|
|
|
When you do so, the Create a New Report dialog box appears. The default widgets are automatically selected.
Note: If user prompts are present in the selected template, then the given fields will appear as well. |
|
Report Template ReferenceThe following section presents the necessary syntax to create CloudTest report templates. When creating a Word doc to be used as a report template, you must use Word 2007 or newer "DOCX" format ("Office Open XML"). |
|
Tag StructureThe tag structures presented in the following sections are case insensitive.
Supported tags fall into four main categories:
|
|
Widget Image CapturesThe tag structure below is used to capture specified single, combined, or correlated charts. For a complete list see Widget Type > Charts List. Tag structure: Note: When specifying the widget name, you may optionally specify the absolute path to that widget. If you do not specify the CloudTest Library path, it is assumed the widget resides in /System Objects/Widgets. Optional Tag structure: This optional tag designates the placeholder for any additional widgets that the user may select during report generation which are not in the template. The Additional Widgets tag needs to be in a result loop (e.g. for each result). Optional Tag structure: The optional "All Monitored Charts" placeholder will substitute in all monitored charts for the result (e.g. all resources from any monitors that were enabled in the composition when it ran). The All Monitored Charts tag needs to be in a result loop (e.g. for each result). Example Single Widget Image Capture SyntaxThe following section presents the required syntax for single charts. Single Charts
Example Combined and Correlated Widget CaptureCreating Combined and Correlated widgets is done via start and end tags, and listing each widget separately inside. The following sections present the required syntax for combined and correlated charts. Combined ChartsTo capture combined charts, first specify a start tag, followed by the widget-image(s) and an end tag: Correlated Charts
|
|
Fundamentals Data CaptureAs with any widget, you can capture a screenshot of the Fundamentals widget, however it may be useful to extract the actual textual data values instead, so that you can format and display the data however you choose. Using the fundamentals data tag, you can extract all pieces of data from the fundamentals widget. Tag structure: Example Fundamentals Data Capture
Possible Fundamentals data identifiers with example values in parenthesis:
|
|
General Text CaptureText such as the customer name, test type, test date, and the logged-in user can be extracted to include with reports. Tag structure:{%% general-text : identifier %%}
Possible Text Identifiers
The type of test the composition is set to, either "Load", "General" or "Custom". Refer to Play Mode and Results Logging for more information.
The date of the majority of the selected results.
The logged in user name. |
|
User InputTag Structure: This allows you to prompt for any arbitrary text from the user at report generation time. The user-supplied value will be inserted into the generated report at the tag location. |
|
Flow ControlYou can repeat an entire section for each result that is selected in the Create a New Report dialog. You will need to wrap the section with start and end tags:
|
|
External Data Source WidgetsExternal Data Sources widgets can be added to the report template for inclusion in reports. To do so, it takes a couple tags. The first required tag sets the external data source:
Then, all following external data source widgets will use that data source (a new one can be set at any time). Declaring an External Data Source Widget
The default path separator is slash. If the path separator conflicts with a name in the path, a different path separator can be declared:
This would change the path separator to "||". Specifying a widget would look like this:
External data source widgets can be combined with other widgets using the same combination syntax above. Here's an example of combining an external data source widget with Avg Response Time:
|






