AssertThat BDD for Jira · · AssertThat

How to Migrate from Behave Pro to AssertThat BDD

A step-by-step guide to moving from Behave Pro to AssertThat BDD in Jira: export your feature files, sync them from Git, keep Jira links and test results.

From Behave Pro to AssertThat BDD: migration guide cover with the AssertThat BDD panel on a Jira story showing pass rate and linked scenarios

Behave Pro by Hindsight Software brings Gherkin scenarios into Jira: teams write them in a work item’s acceptance criteria, and a Git connector keeps them in step with a repository. This guide shows, step by step, how to move those scenarios, their Jira links and your test results to AssertThat BDD & Cucumber for Jira.

Still deciding? See our Behave Pro vs AssertThat BDD comparison, with each criterion scored out of 10.

Migrating from Behave Pro: overview

There is no automated import from Behave Pro, and you don’t need one: both products work with standard Gherkin .feature files. The steps below move those files and then reconnect them to Jira and to your test runs.

Step 1: Get your feature files out of Behave Pro

How you do this depends on the Behave Pro project type. You can see it in the space’s settings under Behave Pro.

Git connected projects. Your feature files are already in your repository, in the feature directory set in Behave Pro’s Git connector. Behave Pro’s living documentation reads the base branch, and with its feature branching workflow it creates a branch per work item. Before you move, merge any feature branches you want to keep into the base branch, so every scenario is in one place.

Classic projects. Scenarios are stored inside Behave Pro, so export them while you still have it installed. Behave Pro’s help center describes two ways:

  • download a single feature with the download icon on its Requirements page;
  • download all features in a project as a zip file through Behave Pro’s REST API, using the API keys from the project settings. See Behave Pro’s article Exporting all features by project; its manual parameter controls whether manual scenarios are included.

Unzip the files and check that they open. If you want your scenarios in Git from now on, commit them to a repository so Step 4 option A can read them.

Anything that isn’t in a feature file, such as Behave Pro test sessions, isn’t carried by the files. Record what you need to keep before you uninstall.

Step 2: Check your Gherkin language

AssertThat supports Gherkin keywords in English, French, Spanish, Portuguese and German, set per space. If your feature files use another language, email support@assertthat.com before you move: more languages are available on request.

Step 3: Install AssertThat BDD and turn it on

  1. In Jira, go to Settings > Apps > Find new apps and search for AssertThat, or open AssertThat BDD on the Atlassian Marketplace, and install it. See the installation guide.
  2. Open the Jira space and go to Space settings > Apps > AssertThat BDD. On the General tab, turn on Enable for project, choose the Gherkin language and the Default scenario mode (Automated or Manual).
  3. On the Testing tab, consider turning on Scenario syntax validation for automated scenarios.

The full list of settings is in AssertThat configuration.

Step 4: Bring in your feature files

Option A: Read them from GitHub or Bitbucket

This is the closest match to a Behave Pro Git connected project.

  1. Connect the repository. For GitHub, a Jira admin installs the AssertThat GitHub App once for the site and picks the repositories it may read. For Bitbucket, add a token connection, or enter a project token in the space’s settings.
  2. Point the space at your features. In Space settings > Apps > AssertThat BDD > Git sync, choose the connection, the repository, the branch (your Behave Pro base branch) and the folder that holds your .feature files (sub-folders are included).
  3. Choose the master. To keep developers editing files in Git, choose The repository is the master. Select Save, then Test connection.
  4. Run the first sync. Select Sync now, then check the result in the sync log.

From then on, pushes to the branch are imported automatically. See Set up a project’s Git integration.

Two things to know before you choose:

  • AssertThat syncs one branch per space. It doesn’t create a branch per work item, so scenarios on feature branches reach Jira once they’re merged.
  • If you’d rather write scenarios in Jira, choose AssertThat is the master. AssertThat then names files after their feature, following its file name rules, so the files in your repository may be renamed on the first sync.

Option B: Sync from a CI pipeline on GitLab or another host

Built-in sync supports GitHub and Bitbucket. If your Behave Pro Git connector uses GitLab, or your code is on Azure DevOps, a pipeline step can upload changed feature files through the AssertThat API on every push. Start from the CI pipeline examples.

Option C: Upload the files

For an exported classic project, or a quick trial, open Features > Upload feature and drag the files in. AssertThat checks each one is valid Gherkin and shows which were imported. To replace a feature that already exists, turn on Overwrite existing: scenarios are matched by name, so their run history and links are kept. See Import features and scenarios.

Feature names must be unique within a space, so check for duplicate names across folders before the first import.

In Behave Pro, scenarios are written in a work item’s acceptance criteria. In AssertThat, a scenario is linked to a work item when it carries that work item’s key as a tag, such as @WEB-8, at import, whether through Git sync, upload or the API.

Open a few of your exported files to see what tags they carry. Then:

  • if your scenarios already have work item keys as tags, the links come across on import;
  • otherwise, add the tags in the repository and push, so the links live with the scenarios;
  • or link scenarios from the work item itself, with Add > Link existing scenario in the AssertThat BDD panel (guide), or many at once in the Scenario Manager.

Step 6: Send your automated test results to Jira

Your step definitions and test code don’t change. Add one step to your pipeline that uploads the Cucumber JSON report after the tests run:

The project id, access key and secret key are on the Automation tab of the space’s AssertThat settings. If your build used Behave Pro’s plugins to download feature files before a run, remove that step when the files come from your repository, or switch it to the AssertThat plugin’s download, which can filter by JQL, mode and tags.

Step 7: Check everything arrived

  • On the Features page, check the number of features and scenarios matches what you exported.
  • Open the Traceability Matrix with a query such as project = WEB AND atBDDtotal > 0 and look for the stories you expected. See the Traceability report.
  • If you use Git sync, push a small change to a feature file and check it appears in Jira.
  • Run your pipeline once and check the results show on a story.

When you’re happy, you can stop using Behave Pro in that space.

Need a hand?

We’re happy to look at your repository layout or exported files and help you plan the move. Talk to an expert or email support@assertthat.com.

Moving from Cucumber for Jira instead? Read our Cucumber for Jira migration guide.

Frequently asked questions

Is there an automated import from Behave Pro to AssertThat?

No, and you don't need one. Both products use standard Gherkin .feature files, so AssertThat can read them from your Git repository, from a CI pipeline or from an upload.

How do I export feature files from a classic Behave Pro project?

Download a single feature from its Requirements page, or all features in a project as a zip through Behave Pro's REST API, as described in Behave Pro's help center.

Do my Jira links come across?

Scenarios tagged with a work item key, such as @WEB-8, are linked to that work item on import. Others can be linked from the work item or in bulk in the Scenario Manager.

Do I need to change my step definitions?

No. AssertThat reads the Cucumber JSON report your tests already produce, through plugins for Maven, Gradle, npm, Ruby, Python, SpecFlow, Jenkins or a command-line client.

Ready to transform your BDD experience in Jira?

Start your free trial today or connect with our experts to learn how AssertThat can streamline your BDD processes.