Test.Reporter Class
An object capable of sending test results to a server.
Constructor
Methods
addField
(
Void
-
name
-
value
Adds a field to the form that submits the results.
Parameters:
-
name
StringThe name of the field.
-
value
VariantThe value of the field.
Returns:
Void:
clearFields
()
Void
Removes all previous defined fields.
Returns:
Void:
destroy
()
Void
Cleans up the memory associated with the TestReporter, removing DOM elements that were created.
Returns:
Void:
report
(
Void
-
results
Sends the report to the server.
Parameters:
-
results
ObjectThe results object created by TestRunner.
Returns:
Void:
Properties
_form
HTMLFormElement
private
The form element used to submit the results.
_iframe
HTMLIFrameElement
private
Iframe used as a target for form submission.