Sample BDD (Cucumber) project in Katalon Studio
Introduction​
Behavior-Driven Development (BDD) is a testing methodology that focuses on describing a product's behavior in plain English. Using Cucumber, a popular BDD framework, you can write test cases in Gherkin, a human-readable syntax.
This document provides an overview of the components in a sample BDD (Cucumber) project using Katalon Studio.
Open the sample BDD test project​
The application under test (AUT) is a React-based Calculator, accessible at: https://katalon-studio-samples.github.io/calculator.
To access the BDD sample project in Katalon Studio:
Navigate to File > New Sample Project > Sample BDD Cucumber Tests Project.
Or, you can download the sample BDD test project from our GitHub repository: Sample BDD tests.
Trust dialog on first open​
When you open a sample project for the first time, Katalon Studio will show a "Trust and open this project" dialog. This security prompt ensures you’re aware of the source before opening and potentially executing harmful scripts.

In this dialog, you can:
- Review the project path.
- Decide whether to trust this project or all projects inside the parent folder.
- Trusting a parent folder also trusts all projects directly inside it, including the one you're opening.
- However, if this project contains subfolders with separate project files, those sub-projects won’t be trusted automatically. You'll still see the trust dialog when opening them.
- Click Trust Project to continue, or Don't Open if you’re unsure.
Overview of Sample BDD Project Components​
Profiles​
In Katalon Studio, the execution profile is used to manage global variables that can be reused across different test cases in the project. The sample project includes a default execution profile that defines a key global variable:
Go to Profiles > default
The sample project includes a default execution profile that defines a key global variable:
To learn more about execution profile, you can refer to this document: Execution profile.
Feature Files​
Feature files define the test scenarios using Gherkin syntax. They act as a high-level blueprint for what the test is supposed to do. To locate the sample feature files in Katalon Studio:
-
Go to Include > features > operations.
-
Double-click any .feature file to open and view its contents.

Example: Minus.feature​
The Minus.feature file defines a test scenario for subtraction operations using three Gherkin steps (Given, When, Then):
Feature: Minus3
Scenario Outline: Minus
Given The Calculator page is loaded successfully
When <firstOperand> minus <secondOperand>
Then I get the result <result>
Examples:
| firstOperand | secondOperand | result |
| 10 | 20 | -10 |
| 123 | 456 | -333 |