Questions tagged [feature-file]

In the SpecFlow BDD for .NET, feature files that are used to store the acceptance criteria of the features (use cases, user stories) of your application are described in a format that is called Gherkin, which is originally based on the Cucumber BDD language.

127 questions
0
votes
0 answers

Background is not getting executed for the below code. scenario outline is executing properly

enter image description here [1]: https://i.stack.imgur.com/Cv0kC.png
0
votes
1 answer

If there are 1000 features files in Cucumber feature file and I want to execute only even feature files. how to do that?

1000 feature files in src/test/resources. I want to run only the features file which are even( 2, 4, 6,......1000) how can we do that? I tried to group them but not sure like this will be good approach.
0
votes
0 answers

Is there an issue with Eclipse IDE with Cucumber if the first line happens to be comment in a feature file?

I have a Cucumber feature file that has a comment which is written before the keyword "Feature:". In an IntelliJ, this file looks all good but when opened in Eclipse IDE, the same feature file starts complaining with following error "Found comment…
0
votes
0 answers

I want to stop default close browser functionality of cypress after each feature file

I want to stop default close browser functionality of cypress after each feature file . I had try --no-exit so its not closing the browser automatically but its not running the next feature file. Its get stuck after running first feature file
0
votes
1 answer

I want to replace word in cucumber feature file and be reflected in step definition immediately

Scenario Outline: check offer exist Then validate user "" has offer with offerId "" Examples: | user | offerId | | ccccc |ccccccccc| like in this scenario i want to change the wording of step…
Nour Alaa
  • 1
  • 3
0
votes
0 answers

How do i select which step defs (or classes) to execute depending on appsettings in C# selenium

I'm currently doing some testing on a platform migration where I need to automate testing on software that exists on one platform, and effectively perform the same automation on the new platform once it's been migrated to the other platform. The…
0
votes
0 answers

Set dynamic data for requestBody

I am unable to read request body while running a feature file: Details: user.json contains: {"userId": "", "user": { "userName": "" }} I am setting these values to some random data generation using func: util ->…
0
votes
1 answer

Unable to create Step Definition file from Specflow feature file on Mac

I successfully installed Visual Studio 2019 for Mac (community edition, version 8.10.14) and managed to install few other required extensions/packages for my work. These are Specflow, Specflow.NUnit, Selenium WebDriver & Server. I added one feature…
0
votes
1 answer

Java RestAssured Cucumber - sharing variable value between scenarios in the same class

I have written a number of Rest Assured Cucumber tests to test my API. I have written cucumber feature/step definition files do the following:- Add a new category Update the category Delete the Category. So I have a single step definition class with…
ED209
  • 588
  • 1
  • 9
  • 26
0
votes
1 answer

Error Meta-data: {"dataFile":"resources/env1/data.json"}@scenarios/jsonformfiller.feature#5 TestStep implementation not found

Error Meta-data: {"dataFile":"resources/env1/data.json","description":"Data driven test that uses enter code herejson file to provide data"}@scenarios/jsonformfiller.feature#5 TestStep implementation not found. Please provide implementation or…
0
votes
0 answers

I can not to run feature.file from Rubymine

Can someone tell me where is my mistake?. I'm trying to run the feature from Run but I haven't had success. If I run via terminal it is possible. I've tried several ways but still succeeding. :\Ruby27-x64\bin\ruby.exe -EUTF-8 -e…
Tadeu
  • 67
  • 6
0
votes
1 answer

How to use numbers just as a description in Specflow Feature file instead of a parameter

I'm writing my feature file SpecFlow and I'm looking to use numbers as a just a description. For example : Given Site is displayed When I check column1 And column2 Then values are correct. However in the word column1, 1 is actually read as a…
captain jack
  • 65
  • 2
  • 9
0
votes
1 answer

Cucumber Step Definitions not fetching parameter value correctly

I am trying to execute my cucumber test scenarios using Scenario Outline and Examples. As part of that, i am passing my parameters as and giving the values in examples like : | val1 | | val2 | but when i am running my…
Aditya
  • 53
  • 9
0
votes
1 answer

Feature file giving warning "Step does not have a matching glue code"

Cucumber Framework is not able to identify @Given/When/Then annotations but the execution is working fine. The warning sign will be always showing on the feature file with the message "Step does not have a matching glue code". Below are my pom.xml…
Justin
  • 1
0
votes
1 answer

Java Cucumber passing function to step arguments

I have step: Then date in field: is equal to 'myDate' usually data-time format data is transferred to this step but I have a specific case that checks that the date is today, so I cannot hardcode the date How I can resolve this prombel. Please help.
1 2 3
8 9