Previous topic

Region

This Page

Runner

Module: runner

Author: arjs.net

License: http://opensource.org/licenses/mit-license.html; year=2013,2014; copyright holders=arjs.net

Main module for the sikuli system

runner.assetsdefinedcheck(scenarios)
Parameters:scenarios ([]) – Scenario to check for assets
Return type:bool

Check if used assets are defined

runner.constantsdefinedcheck(scenarios)
Parameters:scenarios ([]) – Scenario to check for constants
Return type:bool

Check if used constantes are defined

runner.extract(filename)
Parameters:filename (str) – Feature file
Returns:
Return type:tuple

Extract the feature details from the feature file

runner.extractusedassets(checkassets, possibleassets)
Parameters:
  • checkassets ([]) – Assets to check
  • possibleassets ([]) – Possible assets
Return type:

None

Extract the assets from the current used steps

runner.extractusedconstants(checkconstants, possibleconstants)
Parameters:
  • checkconstants ([]) – Constants to check
  • possibleconstants ([]) – Possible constants
Return type:

None

Extract the constants from the current used steps

runner.featurelooper(fileorpath)
Parameters:fileorpath (str) – Feature or Features path
Return type:None

Loop over the features

Raises EnvironmentError:
 
runner.goodbye()
Return type:None

Exit function

runner.main()
Return type:None

Main function

Raises e:
runner.onexit(f)
Parameters:f (function) – Exit function
Returns:
Return type:function

Marker for the exit function

runner.processfeature(path, featurefile)
Parameters:
  • path (str) – Path to the featurefile
  • featurefile (str) – File with the feature
Returns:

Return type:

bool

Process one feature

Raises EnvironmentError:
 
runner.reportfeatureresults(isall, path, featurefile)
Parameters:
  • isall (bool) – Flag if to create a more detailed folder structure
  • path (str) – PAth to the reports
  • featurefile (str) – Feature file name
Return type:

None

Write the test report to the report folder depending on the kind of test

runner.stepimporter()
Return type:None

Imports the steps for the test cases

Raises Exception: