Studio:Reporter: Difference between revisions

From STRIDE Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
**NOT APPLICABLE (or N/A)<br>
**NOT APPLICABLE (or N/A)<br>


= Automation API<br> =
= Automation API<br> =


= <br>reporter<br>  =
= <br>reporter<br>  =
Line 18: Line 18:
{| width="100%" cellspacing="0" cellpadding="10" border="1"
{| width="100%" cellspacing="0" cellpadding="10" border="1"
|-
|-
| width="150" | '''Member'''<br>
| width="150" bgcolor="#66ff99" | '''Member'''<br>  
| bgcolor="#66cc66" | '''Type'''<br>
| bgcolor="#66ff99" | '''Type'''<br>  
| bgcolor="#66cc66" | '''Description'''<br>
| bgcolor="#66ff99" | '''Description'''<br>
|-
|-
| width="150" |  
| width="150" |  
'''Load '''(<br>&nbsp;&nbsp;&nbsp; string file<br>)<br>
'''Load '''(<br>&nbsp;&nbsp;&nbsp; string file<br>)<br>  


| width="150" valign="top" align="left" | Method<br>
| width="150" valign="top" align="left" | Method<br>  
| width="150" valign="top" align="left" | Loads the results from a saved XML file. This method will '''''not'''''clear the current data in the reporter before loading the file. The file parameter is the full system path to the XML file to load.<br>
| width="150" valign="top" align="left" | Loads the results from a saved XML file. This method will '''''not''''' clear the current data in the reporter before loading the file. The file parameter is the full system path to the XML file to load.<br>
|-
|-
| width="150" | <br>
| width="150" | '''RemoveAll '''()<br>
| width="150" valign="top" align="left" | <br>
| width="150" valign="top" align="left" | Method<br>  
| width="150" valign="top" align="left" | <br>
| width="150" valign="top" align="left" | Removes all suites from the root level collection.&nbsp; This method is a shortcut to reporter.Suites.RemoveAll().<br>
|-
|-
| width="150" | <br>
| width="150" valign="top" | string '''MakeReport '''(<br>&nbsp;&nbsp;&nbsp; string file [optional],<br>&nbsp;&nbsp;&nbsp; bool linked [optional]<br>)<br>
| width="150" valign="top" align="left" | <br>
| width="150" valign="top" | Method<br>  
| width="150" valign="top" align="left" | <br>
| width="150" valign="top" | Builds an HTML report for all suites. A filename can be passed in so the HTML results can be written to that file -- otherwise, the default filename of SuiteReport.html is used. If a full path is not specified as part of the filename, the report is generated in the STRIDE installation directory. If the linked parameter is set to true, each suite will be shown as a link in the parent suite's report. This method is a shortcut to reporter.Suites.MakeReport().<br>
<br>
 
|-
|-
| width="150" | <br>
| width="150" valign="top" | string '''Save '''(<br>&nbsp;&nbsp;&nbsp; string file<br>)
| width="150" valign="top" align="left" | <br>
| width="150" valign="top" | Method<br>  
| width="150" valign="top" align="left" | <br>
| width="150" valign="top" | This method is a shortcut to reporter.Suites.Save().<br>
|-
|-
| width="150" | <br>
| width="150" valign="top" | '''ReportTemplate'''<br>  
| width="150" valign="top" align="left" | <br>
| width="150" valign="top" | Property,<br>string
| width="150" valign="top" align="left" | <br>
| width="150" valign="top" | <br>
|-
|-
| width="150" | <br>
| width="150" valign="top" | Suites<br>  
| width="150" valign="top" align="left" | <br>
| width="150" valign="top" | Object<br>  
| width="150" valign="top" align="left" | <br>
| width="150" valign="top" | Top level Suites collection.<br>
|}
|}


== <br>reporter.Suites<br>  ==
== <br>reporter.Suites<br>  ==
{| width="100%" cellspacing="0" cellpadding="10" border="1"
|-
| Member
| Type
| Description
|-
|
|
|
|-
|
|
|
|-
|
|
|
|-
|
|
|
|-
|
|
|
|-
|
|
|
|-
|
|
|
|-
|
|
|
|-
|
|
|
|}


== <br>reporter.Suites.Item<br>  ==
== <br>reporter.Suites.Item<br>  ==

Revision as of 17:31, 30 June 2008

Introduction

The STRIDE Reporter allows you to track and report test cases for scripts, store test data in XML format, and produce HTML output for viewing of test case results.

The STRIDE Reporter tracks two primary objects: Suites and Test Cases, which are further described as follows:

  • A Suite is a collection of Test Cases and other Suites. A Suite has a name, a description, and zero (0) or more children, which can be either Test Cases or other sub Suites.
  • A Test Case represents a single pass/fail item and it consists of a name, a description, any test data that is added during the lifetime of the TestCase, and a status. The status can be any one of the following:
    • PASS
    • FAIL
    • IN PROGRESS
    • NOT APPLICABLE (or N/A)

Automation API


reporter

Member
Type
Description

Load (
    string file
)

Method
Loads the results from a saved XML file. This method will not clear the current data in the reporter before loading the file. The file parameter is the full system path to the XML file to load.
RemoveAll ()
Method
Removes all suites from the root level collection.  This method is a shortcut to reporter.Suites.RemoveAll().
string MakeReport (
    string file [optional],
    bool linked [optional]
)
Method
Builds an HTML report for all suites. A filename can be passed in so the HTML results can be written to that file -- otherwise, the default filename of SuiteReport.html is used. If a full path is not specified as part of the filename, the report is generated in the STRIDE installation directory. If the linked parameter is set to true, each suite will be shown as a link in the parent suite's report. This method is a shortcut to reporter.Suites.MakeReport().


string Save (
    string file
)
Method
This method is a shortcut to reporter.Suites.Save().
ReportTemplate
Property,
string

Suites
Object
Top level Suites collection.


reporter.Suites

Member Type Description


reporter.Suites.Item


reporter.Suites.Item.CustomData


reporter.Suites.Item.CustomData.Item


reporter.Suites.Item.Annotations


reporter.Suites.Item.Annotations.Item


reporter.Suites.Item.Tests


reporter.Suites.Item.Tests.Item


reporter.Suites.Item.Tests.Item.Comments


reporter.Suites.Item.Tests.Item.Comments.Item