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:
- 
                    
                        testsArray
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:
- 
                    
                        testsArray
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:
- 
                    
                        nameString
Returns:
test
getTestInstance
    
        - 
                    
                        name
Generates a new test instance
Parameters:
- 
                    
                        nameString
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:
- 
                    
                        optionsObject
loadTestsuite
    
        - 
                    
                        testfile
Loads the testsuite that should be executed
Parameters:
- 
                    
                        testfileString
Returns:
testsuite
run
    
        - 
                    
                        callback
Runs any tests from this testsuite in sequence
Parameters:
- 
                    
                        callbackFunction
testDoesNotExist
    
        - 
                    
                        options
Will be executed if a test is started, that does not exist
Parameters:
- 
                    
                        optionsObject
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:
- 
                    
                        callbackFunction
- 
                    
                        testsArray
- 
                    
                        testObject
- 
                    
                        eventString
