gherkin Questions

3

Solved

I want to handle numeric parameters in the Cucumber step definitions. Please let me know how I can do this. Scenario Outline: Enter an invalid URL Given the context "Invalid URL" is open...
Jackfish asked 9/9, 2015 at 8:50

7

Solved

I encountered the following issue. I have four Cucumber feature files in IntelliJ. I added the Cucumber support via the IntelliJ plugin. After creating my features I edited my configuration like fo...
Troglodyte asked 22/1, 2019 at 11:47

5

Solved

I have the latest version of SpecFlow installed, and still the feature files display uncoloured, like so... Is there certain configurations that are set for colours to be displayed in Specflow fil...
Breadboard asked 20/1, 2017 at 10:23

2

Solved

Lately I found playwright and it seems really nice. The problem I found is in implementation of cucumber or gherkin syntax generally. While in cypress for example its pretty easy task here it looks...
Inkling asked 29/1, 2022 at 20:59

12

I have installed the cucumber-java and gherkin plugins in IntelliJ IDEA but when I create a .feature file it is not recognized as a feature file. I did restart IntelliJ and have checked to make sur...
Ogburn asked 24/8, 2016 at 19:32

5

Solved

I have some SpecFlow features (using the Gherkin syntax) and I would like to temporarily disable the feature to prevent its tests from running? Is there an attribute I can mark the feature with to...
Sixtasixteen asked 3/6, 2010 at 13:44

4

I want to manually set up a Cucumber DataTable using Java (instead of Gherkin). In Gherkin, my table would look like this: | h1 | h2 | | v1 | v2 | My Java so far looks like this: List<Strin...
Primrosa asked 11/2, 2014 at 14:24

3

Solved

Is there any equivalent "for each" statement for Gherkin? In the following scenario, the page I am testing has multiple date fields that I'd like to run the same test examples on. Here is the scen...
Directory asked 1/4, 2015 at 19:10

4

Solved

My current Cucumber file looks like this: Feature: Test Online application Page Scenario: Visit application home page and test links Scenario: Visit application Login and Validate login So now...
Latter asked 2/6, 2015 at 15:2

5

Is there anyway where we can use if/else concept in feature file? For example: Scenario: User should be able to check login page Given I am on login page When I click on SignIn button Then I...
Recuperative asked 14/5, 2015 at 9:8

3

Solved

I have a cucumber stepdef like this Given the date of <date> When blah blah Then x y and z Examples: |2015-01-01| |2045-01-01| When I generate stepdefs off of this, I get @Given("^the date...
Glum asked 20/10, 2016 at 20:14

2

Solved

I'm writing acceptance tests in Gherkin where I want to test for multiple changes in the UI of a web app based on an initial action. Here's an example: Scenario: Cancel editing a new text asset ...
Daria asked 15/10, 2013 at 22:56

5

Solved

How can I input a null value in Specflow through a table? Let's look at an overly simplistic example: When a tire is attached to a car | CarId | TireModel | FabricationDate | Batch | | 1 | Nokian...
Noma asked 2/10, 2015 at 13:46

14

Solved

In gherkin syntax (used by Cucumber and SpecFlow, I can comment out a line by prefixing it with '#' Is there any way to block-comment multiple lines?
Mariquilla asked 18/8, 2011 at 20:16

2

Solved

I am primarily using RubyMine for Cucumber/Ruby, and now, I'm getting my hands on VSCode, with which I'm able to run and debug test cases. I can't find a way to navigate from feature to step defi...
Lawabiding asked 19/7, 2017 at 15:15

3

Solved

Is it possible to reuse a feature as the "Given" for another feature? Or am I trying to do something I shouldn't be trying to do basically my features look like: Scenario: Creating a basic accou...
Medicaid asked 30/5, 2012 at 8:36

4

Solved

We've come to a point where we've realised that there are two options for specifying test data when defining a typical CRUD scenario: Option 1: Describe the data to use, and let the implementation...
Eyelash asked 12/1, 2011 at 17:11

3

Is there any way to continue executing Cucumber Steps even when one of the steps fails. In my current setup when a step fails , cucumber skips remaining steps....I wonder if there is some way to tw...
Clone asked 8/3, 2013 at 16:20

1

Solved

I'm writing BDD automation tests in Visual Studio 2019 using Specflow and running them using Nunit3. When i write a Scenario Outline with an Examples table it looks like: Scenario Outline: NP10_New...
Undry asked 13/10, 2020 at 8:48

3

Solved

I just starting to work with SpecFlow and really like the tool. However I am running across some issues in relation to example data inputs into the Scenario Outlines. Just wondering if what I am f...
Soave asked 19/8, 2014 at 16:25

2

Solved

I want to pass array value as a parameter from cucumber .feature file, so I can access it from step definition file: I am using this format: Examples: |r1|t1| |abc|[aa,bb,cc]| But I'm getting ...
Allantoid asked 14/6, 2016 at 19:47

2

In visual studio cod, How to navigate from feature to step definition. Do we need any additional plugins or any configuration needs to be added. I have downloaded the Cucumber (Gherkin) Full Suppor...
Scholarship asked 26/3, 2019 at 18:26

2

Solved

I have installed the Pycharm Community edition and installed the behave 1.2.5 with the following command. pip install behave It was successfully installed and it is available in the Pycharm Proj...
Refit asked 9/11, 2016 at 11:9

3

Scenaio Outline: Blah de blah When I enter and on the input field Then Everything is good Examples: | a | b | | 1 | 2 | |    | 3 | The above scenario throws the following error in ...
Fizz asked 27/3, 2015 at 10:31

5

Solved

With Test Automation's Page Object Model we link pages together like this: WebDriver driver = new WebDriver() HomePage homePage = new HomePage(driver); LoginPage loginPage = homePage.GoToLoginPage...
Gorlin asked 15/10, 2014 at 9:19

© 2022 - 2025 — McMap. All rights reserved.