API Docs for: 3.18.1

Test.Reporter Class

Defined in: test/js/Reporter.js:2
Module: test

An object capable of sending test results to a server.

Constructor

Test.Reporter

(
  • url
  • format
)

Parameters:

  • url String

    The URL to submit the results to.

  • format Function

    (Optiona) A function that outputs the results in a specific format. Default is YUITest.TestFormat.XML.

Item Index

Properties

Methods

addField

(
  • name
  • value
)

Adds a field to the form that submits the results.

Parameters:

  • name String

    The name of the field.

  • value Any

    The value of the field.

clearFields

()

Removes all previous defined fields.

destroy

()

Cleans up the memory associated with the TestReporter, removing DOM elements that were created.

report

(
  • results
)

Sends the report to the server.

Parameters:

  • results Object

    The results object created by TestRunner.

Properties

format

Function

The formatting function to call when submitting the data.

url

String

The URL to submit the data to.