Importing cucumber feature file imports only one test

Jayakannan Jeyapandian December 1, 2022

Hi, 

I have a feature file with two tests which I am trying to import using Xray, it creates the background but imports only one test. When I try to re-import the same file again, the first test description and steps gets updated from the second test in the file. So I could import only one test.

Could someone please help?

@xx-111 is ticket ID for an epic in our project. First time the import created test for scenario user can delete and gave an ID as say ex @xx-123 so I added that tag for first scenario which is User can Delete and re-imported the same file but this time the test @xx-123 got updated with the data from the second test id. User can edit. Confused.

 

@xx-111
Feature: Some feature description

  Background:
    Given Some step description
    When Some step description
    And Some step description
      | Categories | Region  | Currency | FromDate | ToDate  | Budget  |
      | somData    | somData | somData  | somData  | somData | somData |
    And Some step description
    And Some step description
    And Some step description
    And Some step description

  Scenario: User can delete
    Then Some step description
    When Some step description
    And Some step description
    Then Some step description

  Scenario: User can edit
    When Some step description
    Then Some step description
    And Some step description
      | name    | tot |
      | somData | 2   |
      | somData | 3   |
End point I am using -

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events