Forum Discussion

hetman's avatar
hetman
New Contributor
17 days ago

BDD - Gherkin Script - Unexpected error "Line should start with one of the following keywords:"

From today's morning, our team got a couple of errors in the previously valid BDD test cases. 

In all cases, the error message is the same:

Line should start with one of the following keywords: Given, When, Then, And, But, *, or #.

Interestingly, we have many similar tests for different endpoints, but errors appeared only in a few of them.

Also, there are no new release notes on the Zephyr Scale, so what happened, and when will it be fixed?

  • MisterB's avatar
    MisterB
    Champion Level 3

    I can only suggest raising it with the SmartBear Support team.  It appears that the error message is correct (according to the Help documentation), and presumably the support team can explain why the syntax was first accepted and now isn't.

  • Summary:
    Issue with Gherkin syntax in data tables not being accepted.

    Description:
    Previously, the Gherkin syntax for data tables was accepted and executed successfully, as seen in prior automated test runs. However, it is no longer working, and the same syntax is now being rejected.

    Steps to Reproduce:

    1. Open the affected test case in Jira Zephyr.
    2. Run the test case containing the data table with Gherkin syntax.
    3. Observe that the syntax is not accepted.

    Expected Result:
    The Gherkin syntax should be accepted, and the test case should execute successfully as before.

    Actual Result:
    The syntax is rejected, blocking test execution.

    Impact:
    This issue affects multiple automated test cases and delays validations for critical functionalities.

     

  • MisterB's avatar
    MisterB
    Champion Level 3

    Nice work unadres.  Did you raise it with Smartbear support? - They won't see it here in these community posts.