.. _example_bdd: BDD *** .. _example_bdd_quick_start: Quick Start ----------- Required files: - :download:`test_plan.py <../../../examples/BDD/quickstart/test_plan.py>` - :download:`features/first.feature <../../../examples/BDD/quickstart/features/first.feature>` - :download:`features/steps/steps.py <../../../examples/BDD/quickstart/features/steps/steps.py>` test_plan.py ++++++++++++ .. literalinclude:: ../../../examples/BDD/quickstart/test_plan.py features/first.feature ++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/quickstart/features/first.feature features/steps/steps.py +++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/quickstart/features/steps/steps.py .. _example_bdd_arguments: Arguments --------- Required files: - :download:`test_plan.py <../../../examples/BDD/arguments/test_plan.py>` - :download:`arguments.feature <../../../examples/BDD/arguments/arguments.feature>` - :download:`arguments.steps.py <../../../examples/BDD/arguments/arguments.steps.py>` test_plan.py ++++++++++++ .. literalinclude:: ../../../examples/BDD/arguments/test_plan.py arguments.feature +++++++++++++++++ .. literalinclude:: ../../../examples/BDD/arguments/arguments.feature arguments.steps.py ++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/arguments/arguments.steps.py .. _example_bdd_background: Background ---------- Required files: - :download:`test_plan.py <../../../examples/BDD/background/test_plan.py>` - :download:`background.feature <../../../examples/BDD/background/background.feature>` - :download:`background.steps.py <../../../examples/BDD/background/background.steps.py>` test_plan.py ++++++++++++ .. literalinclude:: ../../../examples/BDD/background/test_plan.py background.feature ++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/background/background.feature background.steps.py +++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/background/background.steps.py .. _example_bdd_context_resolution: Context Resolution ------------------ Required files: - :download:`test_plan.py <../../../examples/BDD/context_resolution/test_plan.py>` - :download:`context_resolution.feature <../../../examples/BDD/context_resolution/context_resolution.feature>` - :download:`context_resolution.steps.py <../../../examples/BDD/context_resolution/context_resolution.steps.py>` - :download:`context_resolution_indexable.feature <../../../examples/BDD/context_resolution/context_resolution_indexable.feature>` - :download:`context_resolution_indexable.steps.py <../../../examples/BDD/context_resolution/context_resolution_indexable.steps.py>` test_plan.py ++++++++++++ .. literalinclude:: ../../../examples/BDD/context_resolution/test_plan.py context_resolution.feature ++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/context_resolution/context_resolution.feature context_resolution.steps.py +++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/context_resolution/context_resolution.steps.py context_resolution_indexable.feature ++++++++++++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/context_resolution/context_resolution_indexable.feature context_resolution_indexable.steps.py +++++++++++++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/context_resolution/context_resolution_indexable.steps.py .. _example_bdd_import_steps: Import Steps ------------ Required files: - :download:`test_plan.py <../../../examples/BDD/import_steps/test_plan.py>` - :download:`common.py <../../../examples/BDD/import_steps/common.py>` - :download:`one.feature <../../../examples/BDD/import_steps/one.feature>` - :download:`one.steps.py <../../../examples/BDD/import_steps/one.steps.py>` - :download:`two.feature <../../../examples/BDD/import_steps/two.feature>` - :download:`two.steps.py <../../../examples/BDD/import_steps/two.steps.py>` test_plan.py ++++++++++++ .. literalinclude:: ../../../examples/BDD/import_steps/test_plan.py common.py +++++++++ .. literalinclude:: ../../../examples/BDD/import_steps/common.py one.feature +++++++++++ .. literalinclude:: ../../../examples/BDD/import_steps/one.feature one.steps.py ++++++++++++ .. literalinclude:: ../../../examples/BDD/import_steps/one.steps.py two.feature +++++++++++ .. literalinclude:: ../../../examples/BDD/import_steps/two.feature two.steps.py ++++++++++++ .. literalinclude:: ../../../examples/BDD/import_steps/two.steps.py .. _example_bdd_common_steps: Common Steps ------------ Required files: - :download:`test_plan.py <../../../examples/BDD/common_steps/test_plan.py>` - :download:`features/steps/features.py <../../../examples/BDD/common_steps/features/steps/features.py>` - :download:`features/feature1/feature11.feature <../../../examples/BDD/common_steps/features/feature1/feature11.feature>` - :download:`features/feature1/feature12.feature <../../../examples/BDD/common_steps/features/feature1/feature12.feature>` - :download:`features/feature1/steps/feature1.py <../../../examples/BDD/common_steps/features/feature1/steps/feature1.py>` - :download:`features/feature2/feature2.feature <../../../examples/BDD/common_steps/features/feature2/feature2.feature>` - :download:`features/feature2/steps/feature2.py <../../../examples/BDD/common_steps/features/feature2/steps/feature2.py>` test_plan.py ++++++++++++ .. literalinclude:: ../../../examples/BDD/common_steps/test_plan.py features/steps/features.py ++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/common_steps/features/steps/features.py features/feature1/feature11.feature +++++++++++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/common_steps/features/feature1/feature11.feature features/feature1/feature12.feature +++++++++++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/common_steps/features/feature1/feature12.feature features/feature1/steps/feature1.py +++++++++++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/common_steps/features/feature1/steps/feature1.py features/feature2/feature2.feature ++++++++++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/common_steps/features/feature2/feature2.feature features/feature2/steps/feature2.py +++++++++++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/common_steps/features/feature2/steps/feature2.py .. _example_bdd_known_to_fail: Known To Fail ------------- Required files: - :download:`test_plan.py <../../../examples/BDD/known_to_fail/test_plan.py>` - :download:`common.py <../../../examples/BDD/known_to_fail/common.py>` - :download:`known_failure_feature.feature <../../../examples/BDD/known_to_fail/known_failure_feature.feature>` - :download:`known_failure_feature.steps.py <../../../examples/BDD/known_to_fail/known_failure_feature.steps.py>` - :download:`known_failure_scenarios.feature <../../../examples/BDD/known_to_fail/known_failure_scenarios.feature>` - :download:`known_failure_scenarios.steps.py <../../../examples/BDD/known_to_fail/known_failure_scenarios.steps.py>` - :download:`known_failure_fixed.feature <../../../examples/BDD/known_to_fail/known_failure_fixed.feature>` - :download:`known_failure_fixed.steps.py <../../../examples/BDD/known_to_fail/known_failure_fixed.steps.py>` test_plan.py ++++++++++++ .. literalinclude:: ../../../examples/BDD/known_to_fail/test_plan.py common.py +++++++++ .. literalinclude:: ../../../examples/BDD/known_to_fail/common.py known_failure_feature.feature +++++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/known_to_fail/known_failure_feature.feature known_failure_feature.steps.py ++++++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/known_to_fail/known_failure_feature.steps.py known_failure_scenarios.feature +++++++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/known_to_fail/known_failure_scenarios.feature known_failure_scenarios.steps.py ++++++++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/known_to_fail/known_failure_scenarios.steps.py known_failure_fixed.feature +++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/known_to_fail/known_failure_fixed.feature known_failure_fixed.steps.py ++++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/known_to_fail/known_failure_fixed.steps.py .. _example_bdd_labels: Labels ------ Required files: - :download:`test_plan.py <../../../examples/BDD/labels/test_plan.py>` - :download:`labels.feature <../../../examples/BDD/labels/labels.feature>` - :download:`labels.steps.py <../../../examples/BDD/labels/labels.steps.py>` test_plan.py ++++++++++++ .. literalinclude:: ../../../examples/BDD/labels/test_plan.py labels.feature ++++++++++++++ .. literalinclude:: ../../../examples/BDD/labels/labels.feature labels.steps.py +++++++++++++++ .. literalinclude:: ../../../examples/BDD/labels/labels.steps.py .. _example_bdd_parsers: Parsers ------- Required files: - :download:`test_plan.py <../../../examples/BDD/parsers/test_plan.py>` - :download:`parsers.feature <../../../examples/BDD/parsers/parsers.feature>` - :download:`parsers.steps.py <../../../examples/BDD/parsers/parsers.steps.py>` test_plan.py ++++++++++++ .. literalinclude:: ../../../examples/BDD/parsers/test_plan.py parsers.feature +++++++++++++++ .. literalinclude:: ../../../examples/BDD/parsers/parsers.feature parsers.steps.py ++++++++++++++++ .. literalinclude:: ../../../examples/BDD/parsers/parsers.steps.py .. _example_bdd_scenario_outline: Scenario Outline ---------------- Required files: - :download:`test_plan.py <../../../examples/BDD/scenario_outline/test_plan.py>` - :download:`scenario_outline.feature <../../../examples/BDD/scenario_outline/scenario_outline.feature>` - :download:`scenario_outline.steps.py <../../../examples/BDD/scenario_outline/scenario_outline.steps.py>` test_plan.py ++++++++++++ .. literalinclude:: ../../../examples/BDD/scenario_outline/test_plan.py scenario_outline.feature ++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/scenario_outline/scenario_outline.feature scenario_outline.steps.py +++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/scenario_outline/scenario_outline.steps.py .. _example_bdd_special_scenarios: Special Scenarios ----------------- Required files: - :download:`test_plan.py <../../../examples/BDD/special_scenarios/test_plan.py>` - :download:`special_scenarios.feature <../../../examples/BDD/special_scenarios/special_scenarios.feature>` - :download:`special_scenarios.steps.py <../../../examples/BDD/special_scenarios/special_scenarios.steps.py>` test_plan.py ++++++++++++ .. literalinclude:: ../../../examples/BDD/special_scenarios/test_plan.py special_scenarios.feature +++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/special_scenarios/special_scenarios.feature special_scenarios.steps.py ++++++++++++++++++++++++++ .. literalinclude:: ../../../examples/BDD/special_scenarios/special_scenarios.steps.py .. _example_bdd_tcp: Tcp --- Required files: - :download:`test_plan.py <../../../examples/BDD/tcp/test_plan.py>` - :download:`tcp.feature <../../../examples/BDD/tcp/tcp.feature>` - :download:`tcp.steps.py <../../../examples/BDD/tcp/tcp.steps.py>` test_plan.py ++++++++++++ .. literalinclude:: ../../../examples/BDD/tcp/test_plan.py tcp.feature +++++++++++ .. literalinclude:: ../../../examples/BDD/tcp/tcp.feature tcp.steps.py ++++++++++++ .. literalinclude:: ../../../examples/BDD/tcp/tcp.steps.py .. _example_bdd_parallel: Parallel Execution ------------------ Required files: - :download:`test_plan.py <../../../examples/BDD/parallel_execution/test_plan.py>` - :download:`parallel.feature <../../../examples/BDD/parallel_execution/parallel.feature>` - :download:`parallel.steps.py <../../../examples/BDD/parallel_execution/parallel.steps.py>` test_plan.py ++++++++++++ .. literalinclude:: ../../../examples/BDD/parallel_execution/test_plan.py parallel.feature ++++++++++++++++ .. literalinclude:: ../../../examples/BDD/parallel_execution/parallel.feature parallel.steps.py +++++++++++++++++ .. literalinclude:: ../../../examples/BDD/parallel_execution/parallel.steps.py