Dalek.Driver Class
Generates & starts drivers & browsers the tests will be run in
Item Index
Methods
_onDriverReady
-
browser
-
driverName
-
callback
-
driverInstance
Generates a testsuite instance, emits the browser running event & starts a new async() sesries execution Will be called when the driver is ready
Parameters:
-
browser
StringName of the requested browser
-
driverName
StringName of the requested driver
-
callback
FunctionAsyncs next() callback function
-
driverInstance
ObjectInstance of the requested driver
_onTestsuiteComplete
-
callback
-
driverName
-
browser
Emits a 'tests complete' event & calls async's next() callback
Parameters:
-
callback
FunctionAsync's next() callback function
-
driverName
StringName of the requested driver
-
browser
StringName of the requested browser
coupleReporterEvents
-
driverName
-
browser
Couple driver & session status events for the reporter
Parameters:
-
driverName
StringName of the requested driver
-
browser
StringName of the requested browser
createTestsuiteInstance
-
driverInstance
-
file
Creates a testsuite runner function
Parameters:
-
driverInstance
ObjectInstance of the requested driver
-
file
StringFilename of the testsuite
Returns:
testsuiteRunner Runner function from the testsuite
getDefaultBrowserConfiguration
-
browser
-
browsers
Loads the default browser driver
Parameters:
-
browser
StringName of the requested browser driver
-
browsers
ObjectConfiguration options for the requested browser
Returns:
browserConfiguration Browser driver isntance and configuration meta data
getDrivers
()
Array
Returns a list with browser driver instances
Returns:
verifiedDrivers
getTestsuiteInstances
-
driverInstance
Returns a list of testsuite runner functions
Parameters:
-
driverInstance
ObjectInstance of the requested driver
Returns:
testsuiteRunners List of testsuites that should be run
getUserBrowserConfiguration
-
browser
-
browsers
Loads a user configured browser driver
Parameters:
-
browser
StringName of the requested browser driver
-
browsers
ObjectConfiguration options for the requested browser
Returns:
browserConfiguration Browser driver isntance and configuration meta data
getVerifiedBrowser
-
driver
Returns a list with browser driver instances
Parameters:
-
driver
StringName of the requested driver
Returns:
verifiedDrivers Array of dribver 'run' functions
getVerifiedDriver
-
driverModule
-
driver
-
browser
Returns a scoped version of the driver run function
Parameters:
-
driverModule
ObjectInstance of the used driver
-
driver
StringName of ther used driver
-
browser
StringName of the used browser
Returns:
run Function that kicks off execution of a testsuite chain in a browser
isDriver
-
driver
Checks if the requested driver is available
Parameters:
-
driver
StringName of the requested driver
Returns:
isDriver Driver is availavle
loadBrowserConfiguration
-
browser
-
browsers
Loads a browser driver
Parameters:
-
browser
StringName of the requested browser driver
-
browsers
ObjectConfiguration options for the requested browser
Returns:
browserConfiguration Browser driver isntance and configuration meta data
loadDriver
-
driver
Loads the requested driver Emits an event to the reporter
Parameters:
-
driver
StringName of the requested driver
Returns:
driverModule Instance of the driver module
run
-
driverName
-
driverModule
-
browser
-
callback
Driver runner function. Registers event handlers for this run, loads browser & driver configuration & instances, emits the 'driver ready' event for the browser/driver combination
Parameters:
-
driverName
StringName of the requested driver
-
driverModule
ObjectInstance of the used driver module
-
browser
StringName of the requested browser
-
callback
FunctionAsyncs next() callback function