SpecSync Documentation
Jira
Jira
  • Introduction to SpecSync for Jira
  • Getting started
    • Getting started using SpecFlow
    • Getting started using Cucumber or other Gherkin-based BDD tool
  • Installation & Setup
    • Install as .NET tool
    • Install as .NET Console App
    • Install as native binaries for Linux or macOS
    • Install as Docker image
    • Setup and Configure
  • Features
    • Push features
      • Pushing scenario changes to Test Cases
      • Configuring the format of the synchronized test cases
      • Synchronizing Scenario Outlines
      • Update Test Case fields
      • Attach files to Test Cases using tags
      • Customization: Setting Test Case fields with default values
      • Customization: Update custom Test Case fields on push
      • Customization: Ignoring marked Test Case steps
      • Customization: Ignoring Test Case Tags
      • Customization: Ignore non-supported local tags
      • Customization: Mapping tags
      • Customization: Synchronizing scenarios from feature branches
      • Customization: Automatically link changed Test Cases
      • Customization: Synchronize linked artifact titles
      • Customization: Do not synchronize title
    • Pull features
      • Pulling Test Case changes to local scenarios
    • Common synchronization features
      • Configuration key
      • Remote scope
      • Linking Work Items using tags
      • Synchronizing Test Case hierarchies
      • Excluding scenarios from synchronization
      • Synchronization conflict resolution
    • Test result publishing features
      • Publishing test result files
    • General features
      • Jira authentication options
      • Configuration file
      • Hierarchical configuration files
      • Local test case conditions
      • Configuration wizards
      • SpecSync plugins
    • Customizations
    • Plugin list
  • Licensing
  • Guides
    • What is my Jira server URL?
    • Jira Test Case Management (TCM) solution
    • How to define the local feature-set to be synchronized
    • Filters and scopes
    • How to use SpecSync from build or release pipeline
    • How to upgrade to a newer version of SpecSync
    • How to attach files to test results
    • Using SpecSync with Cucumber
    • Using SpecSync with Cypress
    • Using SpecSync with Postman
    • Using SpecSync with TestNG
    • Using SpecSync on macOS or Linux
    • Using SpecSync inside a Docker container
    • Migrating from SpecSync v1 to v5
  • Changelog
  • Release Model and Roadmap
  • Downloads
  • Reference
    • Command line reference
      • init
      • upgrade
      • push
      • pull
      • publish-test-results
      • version
    • Configuration reference
      • toolSettings
      • local
      • remote
      • jira
      • knownRemotes
      • synchronization
        • push
        • pull
        • links
        • attachments
        • format
        • fieldUpdates
      • hierarchies
      • publishTestResults
      • specFlow
      • customizations
    • Compatibility
    • Older versions
  • Contact
    • SpecSync Support
    • Troubleshooting
    • FAQ
  • Project Website
Powered by GitBook
On this page
  • Test Case fields updated by the push command
  • Include synchronized Test Cases to Test Case hierarchies

Was this helpful?

  1. Features
  2. Push features

Pushing scenario changes to Test Cases

PreviousPush featuresNextConfiguring the format of the synchronized test cases

Last updated 1 month ago

Was this helpful?

SpecSync can synchronize scenarios and scenario execution results with Jira Test Cases. The most commonly used command to achieve this is to upload (push) the scenario changes to Test Cases that is provided using the SpecSync .

The SpecSync push command processed all scenarios in the (e.g. the features folder of your project), detects if there were any change since the last synchronization and updates the Test Case if necessary.

You can find all available command line options for the push command in the . The configuration options related to push are in the section of the configuration file.

The connection between the scenario and the Test Case in Jira is established with a test case link tag. By default the link tag uses the format @tc:P01-T1234, but both the tc prefix and the separator : can be configured (with synchronization/tagPrefixSeparators and synchronization/linkLabelSeparator), so you can also have test case links that use different format, e.g. @TestCase=P01-T1234. In the documentation we use the default test case link tag format.

Depending on the changes of the scenario, the push command performs different actions in Jira as the following table shows.

Changes
Actions

The scenario is new (not yet linked to a Test Case)

A new Test Case work item is created and the scenario is tagged with a link tag (e.g. @tc:P01-T1234) to document the ID of the created Test Case.

The scenario is linked and up-to-date with the Test Case

No action is taken

The scenario has been changed since the last synchronization

The Test Case is updated with the changes. (No change in the feature file.)

The scenario has been synchronized, but since the last synchronization the Test Case has been updated.

The push command by default overwrites the changes of the Test Case fields that are maintained by SpecSync (e.g. title, steps, tags). The changes in other fields (e.g. description) are not changed.

The scenario has been removed

The SpecSync push command needs to modify the feature file when a new scenario is synchronized. The feature file change has to be preserved in the source control (commit & push), otherwise when other users perform a push, Test Case duplicates will be created.

When performing the push on a build pipeline, or in any other cases where local changes cannot be preserved, the push command has to be invoked with the --disableLocalChanges switch. More information about using SpecSync in build pipelines can be found in the guide.

You can perform the push operation with the --linkOnly flag so that it only links new scenarios and does not update existing Test Cases.

SpecSync operations, including the push command supports "dry-run" mode using the --dryRun command line option. In dry-run mode, no change is made neither to Jira nor to the feature files, so you can test the impact of an operation without making an actual change.

Test Case fields updated by the push command

This documentation page is in progress. Please check back later.

Include synchronized Test Cases to Test Case hierarchies

SpecSync can also help you to organize the remote Test Cases into hierarchical structures.

A different conflict handling method can also be configured. See for details.

In case you would like to preserve the changes of the fields maintained by SpecSync, you have to use the first.

SpecSync does not delete the related Test Case. If SpecSync is configured with a remote scope (recommended), the Test Case will be tagged with specsync:removed. You can review the Test Cases of this tag and delete them manually. (The tag is removed from the Test Case if the scenario is restored.) For details on how to specify the remote scope and how does SpecSync detects hand processes removed local test cases, please check the documentation.

For details on how to include Test Cases to hierarchies, please check the feature documentation.

push command
local feature set
push command line reference
synchronization
Use SpecSync from build or release pipeline
Synchronizing Test Case hierarchies
Synchronization conflict resolution
pull command
Remote scope