Share this page

# BDD testing framework

In the BDD (behavior-driven development) testing framework, you create BDD specifications and scenarios in ALM Octane. Test execution, automation, and backlog coverage are at the scenario level. The BDD spec gives a run result for each scenario in the feature file.

In this topic:

## Overview: BDD and Gherkin test workflow

You can create and run BDD (behavior-driven development) tests in ALM Octane using Gherkin scenarios. Within ALM Octane you create specifications to describe the scenarios you want to test, manage the automation effort, and track run results.

There are a number of workflows for working with BDD tests. The following is one example of working with BDD tests using ALM Octane and Gherkin.

1. A business persona creates a feature in ALM Octane.

2. Together with the testing team, they create acceptance tests for the feature in Gherkin.

3. These tests can be run manually in ALM Octane, or can be marked as ready for automation.

4. When the developer sees which tests need automation, they take the contents of the feature file, namely of the Gherkin test or BDD spec, and save it locally in the IDE. They then automate the test and push the code to the SCM system.

5. The automated tests are now run in the CI and results are reported to ALM Octane.

6. You can now see test results and coverage data within ALM Octane, in the context of the original feature.

Another common flow is when a tester creates a feature file in the code, and the test is injected to ALM Octane. This test can then be assigned to a backlog item or application module in ALM Octane.

- You can inject test results from the common BDD frameworks to ALM Octane, using the bdd2octane tool. For details, see BDD testing framework.
- You can create BDD specifications and Gherkin tests in languages other than English. For details, see Localization.

Back to top

## Advantages of the BDD testing framework

The BDD framework described in this section offers you the following:

- You can run individual scenarios.

- You can report on a scenario run level.

- You can partially automate a specification to only run some of its scenarios.

- You can link specific scenarios to specific backlog items.

For example, if you previously had a Gherkin test with 20 scenarios and only 19 of them passed, the test failed. In the BDD framework you can run 20 scenarios separately, and immediately identify a failed scenario.

You can also add specific scenarios to a suite, and do not need to run the full Gherkin test each time.

Mapping the BDD spec framework to Gherkin tests

If you previously worked with Gherkin tests in ALM Octane, the following table can help you understand where to do various tasks in BDD.

In the Gherkin test framework: | In the BDD spec framework:
--- | ---
Versioning, execution, automation, and backlog coverage are at the Gherkin test level. | Versioning is at the BDD specification level. Execution, automation, and backlog coverage are at the scenario level.
You can add a Gherkin test to a suite. | You can add scenarios to a suite.
Tests can be run manually or automatically. | Scenarios can be run manually or automatically.

Back to top

Next steps:

- Create BDD specifications
- Create and run BDD scenarios
- Gherkin test syntax

https://admhelp.microfocus.com ALM Octane 8942
Tips to improve your search results... ALM Octane Help Center ALM Octane Help 23.4-24.3 All View Local Help Center View Online Help Center Version: