testplan.testing.bdd package
Module contents
Submodules
testplan.testing.bdd.bdd_tools module
- class testplan.testing.bdd.bdd_tools.BDDTestSuiteFactory(features_path, resolver=<testplan.testing.bdd.bdd_tools.NoopContextResolver object>, default_parser=<class 'testplan.testing.bdd.parsers.RegExParser'>, feature_linked_steps=False, common_step_dirs=None)[source]
Bases:
object
Factory class which can create TestSuits from a directory of feature files
- Parameters:
features_path – is the path to the directory containing the feature and step definition
resolver – context resolver can be used to refer context values from steps
default_parser – the default parser used in step matching default use regex
feature_linked_steps – assumes per feature step definition files
common_step_dirs – list of paths to common step files
- class testplan.testing.bdd.bdd_tools.ContextResolver(start_tag='{{', end_tag='}}')[source]
Bases:
object
- property regexp
testplan.testing.bdd.parsers module
testplan.testing.bdd.step_registry module
- testplan.testing.bdd.step_registry.And(sentence_or_parser)
Step Decorator
- Parameters:
sentence – The regexp it matches
- Returns:
- testplan.testing.bdd.step_registry.But(sentence_or_parser)
Step Decorator
- Parameters:
sentence – The regexp it matches
- Returns:
- testplan.testing.bdd.step_registry.Given(sentence_or_parser)
Step Decorator
- Parameters:
sentence – The regexp it matches
- Returns:
- class testplan.testing.bdd.step_registry.StepRegistry[source]
Bases:
object
- property actual_parser
- count = 0
- classmethod get_target_registry() StepRegistry [source]
- local = <_thread._local object>
- testplan.testing.bdd.step_registry.Then(sentence_or_parser)
Step Decorator
- Parameters:
sentence – The regexp it matches
- Returns:
- testplan.testing.bdd.step_registry.When(sentence_or_parser)
Step Decorator
- Parameters:
sentence – The regexp it matches
- Returns: