Dalek.Suite Class
Suite (Testsuite)
Item Index
Methods
decrementTestsToBeExecuted
()
Integer
Decrements number of tests that should be executed in this suite
Returns:
numberOfTestsToBeExecuted
executeNextTest
-
tests
Executes the next test in the sequence
Parameters:
-
tests
Array
Returns:
testValue
getName
()
String
Returns the name of the testsuite If the suite has no name, it will return the testsuites filename
Returns:
name
getNextTest
()
String
Returns the next test, that should be executed
Returns:
testName
getNumberOfTests
-
tests
Returns the number of tests to be executed
Parameters:
-
tests
Array
Returns:
numberOfTests
getOptions
()
Object
Returns the options of the testsuite If the suite has no options, it will return an empty object
Returns:
options Suite options
getTest
-
name
Returns a test function by its name
Parameters:
-
name
String
Returns:
test
getTestInstance
-
name
Generates a new test instance
Parameters:
-
name
String
Returns:
test
getTests
()
Array
Returns all names (aka. object keys) the tests that should be executed
Returns:
test
initialize
-
options
Assigns the initial options driverEmitter -> the drivers event dispatcher reporterEmitter -> the reporters event dispatcher driver -> the driver instance (e.g. native webdriver, selenium, etc.) name -> the suites filename (default suite name)
Parameters:
-
options
Object
loadTestsuite
-
testfile
Loads the testsuite that should be executed
Parameters:
-
testfile
String
Returns:
testsuite
run
-
callback
Runs any tests from this testsuite in sequence
Parameters:
-
callback
Function
testDoesNotExist
-
options
Will be executed if a test is started, that does not exist
Parameters:
-
options
Object
testFinished
-
callback
-
tests
-
test
-
event
Checks if all tests from the testsuite are executed.
Runs the next test if not.
Triggers asyncs
callback if the suite is finished.
Decrements the testsToBeExecuted
counter
Parameters:
-
callback
Function -
tests
Array -
test
Object -
event
String