Class goog.testing.TestRunner
code »Construct a test runner. NOTE(user): This is currently pretty weird, I'm essentially trying to create a wrapper that the Selenium test can hook into to query the state of the running test case, while making goog.testing.TestCase general.
Constructor
Instance Methods
Returns the number of script files that were loaded in order to run the test.
Returns |
---|
|
code »getRunTime ( ) ⇒ number
Returns the amount of time it took for the test to run.
Used by Selenium Hooks.
number
Returns |
---|
|
code »getTestResults ( ) ⇒ Object.<string>
Object.<string>
Returns |
---|
|
code »initialize ( testCase )Initializes the test runner.
Parameters |
---|
|
code »isFinished ( ) ⇒ boolean
Returns true if the test runner is finished.
Used by Selenium Hooks.
boolean
Returns |
---|
|
code »isInitialized ( ) ⇒ boolean
Returns true if the test runner is initialized.
Used by Selenium Hooks.
boolean
Returns |
---|
|
code »logTestFailure ( ex )Log failure in current running test.
Parameters |
---|
|
Writes the results to the document when the test case completes.
code »setErrorFilter ( fn )Sets a function to use as a filter for errors.
Parameters |
---|
|
Instance Properties
code »errorFilter_ : ?(function(string))
Function to use when filtering errors.
?(function(string))