Studio:Reporter: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 40: | Line 40: | ||
| width="150" | string '''Save '''(<br> string file<br>) | | width="150" | string '''Save '''(<br> string file<br>) | ||
| width="150" valign="top" | Method<br> | | width="150" valign="top" | Method<br> | ||
| width="150" valign="top" | This method is a shortcut to [[#suites- | | width="150" valign="top" | This method is a shortcut to [[#suites-save|reporter.Suites.Save()]].<br> | ||
|- | |- | ||
| width="150" | '''ReportTemplate'''<br> | | width="150" | '''ReportTemplate'''<br> | ||
Line 79: | Line 79: | ||
| valign="top" align="left" | <br> | | valign="top" align="left" | <br> | ||
|- | |- | ||
| width="150" valign="top" align="left" | | | width="150" valign="top" align="left" | <span id="suites-makereport">string</span> '''MakeReport '''(<br> string file [optional],<br> bool linked [optional]<br>) | ||
| valign="top" align="left" | Method | | valign="top" align="left" | Method | ||
| valign="top" align="left" | <br> | | valign="top" align="left" | <br> |
Revision as of 18:35, 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 ( |
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 |
Gets/sets the report template file to use when generating HTML reports. |
Suites |
Object |
Top level Suites collection. |
reporter.Suites
Member | Type | Description |
suite Item ( index ) |
Method | Returns the specified Suite object. The index can be integer or string. |
Count | Property, integer Read-only |
|
suite Add ( string name ) |
Method | |
suite Remove ( index ) |
Method | |
RemoveAll() | Method | |
string MakeReport ( string file [optional], bool linked [optional] ) |
Method | |
suite Find ( string name, bool depth [optional] ) |
Method | |
string Save ( string file ) |
Method | |
Load ( string file ) |
Method |
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