YUI recommends YUI 3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

Yahoo! UI Library

yuitest  2.5.2

Yahoo! UI Library > yuitest > YAHOO.tool.TestReporter

Show Private Show Protected

Class YAHOO.tool.TestReporter

An object capable of sending test results to a server.


YAHOO.tool.TestReporter ( url , format )
url <String> The URL to submit the results to.
format <Function> (Optiona) A function that outputs the results in a specific format. Default is YAHOO.tool.TestFormat.XML.


_fields - private Object

Extra fields to submit with the request.

_form - private HTMLFormElement

The form element used to submit the results.

_iframe - private HTMLIFrameElement

Iframe used as a target for form submission.

format - Function

The formatting function to call when submitting the data.

url - String

The URL to submit the data to.



Void addField ( name , value )
Adds a field to the form that submits the results.
name <String> The name of the field.
value <Variant> The value of the field.
Returns: Void


Void destroy ( )
Cleans up the memory associated with the TestReporter, removing DOM elements that were created.
Returns: Void


Void report ( results )
Sends the report to the server.
results <Object> The results object created by TestRunner.
Returns: Void

Copyright © 2007 Yahoo! Inc. All rights reserved.