Yahoo! UI Library

yuitest  2.5.2

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

Show Private Show Protected

static Class YAHOO.tool.TestManager

Runs pages containing test suite definitions.

Properties

TEST_MANAGER_BEGIN_EVENT - static final string

Constant for the testmanagerbegin custom event

TEST_MANAGER_COMPLETE_EVENT - static final string

Constant for the testmanagercomplete custom event

TEST_PAGE_BEGIN_EVENT - static final string

Constant for the testpagebegin custom event

TEST_PAGE_COMPLETE_EVENT - static final string

Constant for the testpagecomplete custom event

Methods

load

static Void load ( )
Signals that a test page has been loaded. This should be called from within the test page itself to notify the TestManager that it is ready.
Returns: Void

setPages

static Void setPages ( pages )
Sets the pages to be loaded.
Parameters:
pages <String[]> An array of URLs to load.
Returns: Void

start

static Void start ( )
Begins the process of running the tests.
Returns: Void

stop

static Void stop ( )
Stops the execution of tests.
Returns: Void

Events

testmanagerbegin

static testmanagerbegin ( )
Fires when the test manager starts running all test pages

testmanagercomplete

static testmanagercomplete ( obj )
Fires when the test manager finishes running all test pages. External test runners should subscribe to this event in order to get the aggregated test results.
Parameters:
obj < pages_passed: int, pages_failed: int, tests_passed: int tests_failed: int, passed: string[], failed: string[], page_results: {} >

testpagebegin

static testpagebegin ( curPage )
Fires when loading a test page
Parameters:
curPage <string> the page being loaded

testpagecomplete

static testpagecomplete ( obj )
Fires when a test page is complete
Parameters:
obj <page: string, results: object> the name of the page that was loaded, and the test suite results


Copyright © 2007 Yahoo! Inc. All rights reserved.