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
1
vote
1 answer

how to navigate from feature file to step definition file in VS

how can I navigate from feature file (cucumber framework) to step definition file in WDIO in Visual studio Code. I have installed all the plugins(Cucumber (Gherkin) Full Support v2.15.1,cucumber-gotostep v0.0.4)
1
vote
0 answers

cucumber doesn't detect tabulation at the beginning of a line

I am writing a bdd test using cucumber but i have a problem in reading a line for an assert. it doesn't read the tabulations at the beginning of the expected line in my feature file here is my assert: lines.forEachIndexed { i, _ ->…
almageek
  • 11
  • 1
1
vote
0 answers

Not able to read '@' symbol from a csv file in karate

I am using a csv file which has got one column email and its value contains @ And when I try that value to read in my feature I am getting exception. Both Feature file and csv are in same location in project…
Manish Arya
  • 113
  • 1
  • 7
1
vote
1 answer

SEVERE: Unable to start Cucumber Error When I Tried to Run Feature File

I Just created the Feature file and POM and I tried to run feature file as Cucumber Feature but it displaying error as below, please tell me what i need to do? I Installed Cucumber plugins , I Used Latest version of Cucumber 6.10.2, where I am doing…
Rama pretty
  • 51
  • 1
  • 4
1
vote
0 answers

Passing parameter from feature file to another feature file

I do have a feature file which is retrieving a data from a query and when calling another feature file it will pass the query result as well as a statement values. statement parameter: Source i.e. Provider target i.e. Tenant query response: Qname…
Andreas
  • 75
  • 3
1
vote
0 answers

Pass credentials to karate .feature file from Jenkins server

Is there a way we can pass credentials from Jenkins to *.feature file while doing karate test? Please let me know how it can be done.
1
vote
1 answer

How to fetch file from AWS S3 in Karate feature file?

I have been trying to automate a test scenario wherein I need to fetch a JSON file from S3 bucket, read it and then apply my logic. Please note I am using JavaScript with Karate. Since I am fairly new to test automation I have been doing some…
Shambhavi
  • 305
  • 1
  • 14
1
vote
2 answers

Is it possible to skip dynamically one of the Cypress tests - meaning one feature file and with its step definitions?

I've a list of features files and the list of the related step definitions. Every feature file refers to some specific functionality of the website. According to some environment variables defined in package.json and representing the theme of the…
axel
  • 3,778
  • 4
  • 45
  • 72
1
vote
1 answer

Cucumber plug-in installed but feature file opens in normal Text Editor in eclipse

I see cucumber installed under installed section of Eclipse marketplace. As I attempt to create feature file (eg, search.feature) I am getting a pop up window that displays how do you want to open this file directing me to pick a plug-in from…
GSN
  • 123
  • 2
  • 13
1
vote
2 answers

How to pass multiple examples with different number of parameters in Cucumber feature file

One of the steps in my feature file requires two parameters like login and password for multiple systems which individually works fine but Is there any way I can pass multiple examples for individual steps? The first step in the feature file is…
TestUser12
  • 11
  • 1
  • 1
  • 2
1
vote
1 answer

How to use form fields in the same order for Amazon S3 upload file using presigned url

I have a postdata presigned URL of Amazon S3. I want to use it in a Karate feature file to upload a file (say: pdf) Here is a sample Curl request that I need to perform Using Karate POST request curl --location --request POST ''…
1
vote
1 answer

How to call Amazon S3 bucket using postdata preSigned Url to upload a file using Karate

I have a postdata presigned URL of Amazon S3. I want to use it in a Karate feature file to upload a file (say: pdf) Here is a sample Curl request that I need to perform Using Karate POST request curl --location --request POST ''…
1
vote
1 answer

Version conflict - SpecFlow Visual Studio extension attempted to use SpecFlow code-behind generator 1.9, but project 'WpfApp3' references SpecFlow 3.1

I have installed latest version of Specflow(3.1.97), Nunit (3.1.97), MS Build Generator(3.1.97) in my visual studio 2017, I have created a feature file but its class file throwing errors. I am getting below errors: Version conflict - SpecFlow…
1
vote
1 answer

how to add whitespace before and after in feature file + protractor + cucumber

I need to add white space before and after my input value in feature file for example | firstName | | test | the value retrieved from html is SPACEtestSPACE - note SPACE is actual space. I tried giving it in single quotes like | ' test ' | but it…
1 2
3
8 9