Questions tagged [bdd]
BDD stands for Behavior Driven Development. It is related to, and derived from, TDD (Test Driven Development) and ATDD (Acceptance Test Driven Development). It differs from them in its language, preferring "example", "scenario" or "specification" to "test".
3,246
questions
0
votes
0
answers
12
views
How to update BDD feature file scenario result (Pass/Fail) in the excel sheet based on any tags?
C# Specflow Playwright - My lead want me to update the test case result in the excel sheet after the feature file is executed.
So in her excel sheet, she has given an unique tag (tag: test name) to ...
1
vote
1
answer
18
views
How to deal with abstract Given steps in BDD?
At the base of our application is a big configuration set, which defines abstract groups of devices and they are omnipresent as part of the Gherkin scenarios.
Now we used Given steps like this as part ...
0
votes
0
answers
26
views
io.cucumber.core.exception.CucumberException: Failed to instantiate class ab.cd.ef.featuresteps
I am getting the following error while running my feature test.
io.cucumber.core.exception.CucumberException: Failed to instantiate class ab.cd.ef.featuresteps
at io.cucumber.core.backend....
-1
votes
1
answer
25
views
Jackson xml Unrecognized Property Exception after karate 1.2.0 upgrade
I have a existing test for a endpoint which was working fine with Karate 1.1.0 but after recent update to karate 1.2.0 it stopped working due to Jackson xml uncognised property exception
test endpoint ...
-1
votes
0
answers
19
views
How can we select and upload file from file explorer in gherkin language?
I used the "selectFileFromExplorer" action keyword but it is not working.
1
vote
0
answers
32
views
Cucumber Examples table using placeholder
I am new to cucumber. I have cucumber scenario with Examples table as below:
Scenario: TC-<ID> Negative - Reject - <TEST_CASE_DESCRIPTION>
Given the profiles exists:
| ID | ...
0
votes
0
answers
13
views
Why Pytest-bdd failed before running? (formatting error)
I'm trying to run my bdd tests and I get some errors before running,
Error summary:
File "/usr/local/lib/python3.8/dist-packages/pytest_bdd/scenario.py", line 297, in scenarios
def _scenario(...
1
vote
2
answers
29
views
Using Karate, how do I loop though a json to pick up the value for a key based on another key in that json block?
Below is the JSON response I get from which I want to extract y1. Before getting the response, I know x1 already but I don't know y1. So for that particular x key element, I want to get its y value (...
0
votes
0
answers
54
views
sqllite 19: foreign key constraint faild in TDD Test in Asp.net webapi
I Test Add Goods in Project when debugging below
inner Exception
SqlliteException :SqlLite error 19: foreign key constraintfailed
Note:my project it's a small shop with implementing WebApi then test ...
0
votes
1
answer
41
views
How to do a parallel execution in bdd cucumber with Junit
I there any possibilities to do parallel execution in BDD cucumber framework using JUnit
0
votes
0
answers
15
views
Any recommendations for popular open-source projects developed using TDD/BDD
For many people, including myself, the best way to learn programming is to follow great examples from experts. Given the popularity of TDD/BDD, can some one point me to a few popular open-source ...
0
votes
1
answer
44
views
How to hide sensitive data like password and given Data table details used in examples in feature file cucumber framework in Extent report?
I need to hide sensitive data like password from extent report to share report to client which is configured with cucumber BDD framework selenium JAVA.
Can anyone please help me is there any way the ...
1
vote
1
answer
26
views
How do I validate in karate that a json attribute is returned as some string?
In Karate tests, I'd like to evaluate whether an attribute returned in json response is of string type.
Below is what am doing:
* def abc = response.results.abc
Then match abc == "#string?"
...
0
votes
0
answers
46
views
Error $wpdb when use Ajax in Plugin WordPress
I'm a beginner in development and wordpress.
I create a plugin to display a dynamic carousel with the help of the generator https://wppb.me/.
So when I select an option in my list, the right slide ...
0
votes
0
answers
13
views
BDD API test getting failed in Azure if parallel test are running against single database instance
I am running BDD API test in Azure pipeline. When single build is running, all test are getting passed, but when there are multiple jobs are running my test are getting failed as A build is still in ...
0
votes
2
answers
50
views
Read data from excel file in selenium BDD cucumber test cases
I have bunch of gherkin test steps in a feature file scenario.
How to read test data from excel file and execute the same test steps for each and every data in the row
1
vote
1
answer
34
views
How do I capture a specific array element from json response into a gherkin cucumber attribute?
Am trying to capture from below json response, the ghi[0] element which is x and assign it to a variable in my BDD in gherkin/cucumber language but it is complaining it can't read property.
This is ...
0
votes
1
answer
189
views
java.lang.NoSuchMethodError - while reading excel file(it was a working code)
It was working for me. I have closed Eclipse and executed the same runner(BDD, with Maven Project). I am getting the error:
java.lang.NoSuchMethodError: 'byte[] org.apache.commons.io.IOUtils.byteArray(...
0
votes
0
answers
23
views
Unable to run my specFlow code through nunit.consolerunner
I have tried running my test using nunit.consolerunner:
C:\Users\\.nuget\packages\nunit.consolerunner\3.11.1\tools>nunit3-console.exe "D:\Automation\bin\Debug\netcoreapp3.1\la-automation.dll&...
0
votes
0
answers
77
views
Before / After hooks to be called from tags in bdd scenarios just like in cucumber
I want to be able to add value and order parameters to before/after hooks. And values in before/after hooks should be triggered from tags in bdd scenarios.
To execute a specific set of steps before a ...
0
votes
1
answer
35
views
How can I pass | (pipe) symbol in scenario outline examples
I want to enter a string containing | in a textbox using scenario outline and examples in selenium-cucumber feature file.
Examples
Scenario Outline: test1
> Given user is on home page
>
> ...
0
votes
1
answer
43
views
Cucumber example inputs are received incorrectly
Cucumber Version: 11.0
Facing a weird issue that first example input parameters are being taken along with other column values.
**Feature:** Some feature
@foo
**Scenario Outline:** Testing.
...
0
votes
0
answers
41
views
How to configure BDD for microservice using cucumber and serenity
Folder Structure for BDD automation.
src
-test
-java
-MainTestSuit.java
-resource
-feature
-stubs
- files
- mapping
- bootstrap.yaml
- test-application.properties
- data.sql
- serenity.conf
pom.xml
...
0
votes
1
answer
44
views
How to handle different background and same scenario in gherkin
I am new to gherkin need your suggestion.
I have background step in feature file like below,
For iOS country displayed as United Kingdom (en)
For android country displayed as uk
eg: For Feature file ...
0
votes
0
answers
34
views
How to resolve "Error running Scenario No JDK specified"?
Environment:
MacOS
IntelliJ Idea
Cucumber BDD Tests with Ruby
Execution of scenario from .feature file run into error with message "Error running Scenario No JDK specified"
Solved my ...
1
vote
0
answers
63
views
NoSuchMethodError: org.jbehave.core.steps.DelegatingStepMonitor when executing Selenium Jbehave test
I tried to implement a Selenium + Jbehave solution like this:
https://jbehave.org/reference/web/stable/page-objects.html
but I have some trouble when I trie to execute.
Story runner class:
public ...
0
votes
2
answers
41
views
Cucumber No Scope registered for scope name 'cucumber-glue'
I have No Scope registered for scope name 'cucumber-glue' error while running Cucumber (6.1.1) BDD tests with Spring
My configuration file
@ContextConfiguration(locations = {"classpath:/...
1
vote
0
answers
79
views
Specflow 4 - Capture groups not binding in Visual Studio 2022
Does anyone else have issues with adding step definitions in Specflow 4 with capture groups?
I've updated a project from Specflow 2 to use Specflow 4 and all my step definitions, including those with ...
0
votes
2
answers
40
views
How to use examples mentioned in cucumber scenario in Background statement
The aim is to use examples mentioned in the scenario to be used in the background given statement in a feature file.
following is the feature file for reference
Feature: As a user with a valid ...
0
votes
2
answers
48
views
How to remove \n\t in Cypress?
I am using BDD with Cypress. The element I want to check is
So this element is on the PageObject:
allowPriceEmbeddedBarcodeAtPOS(){
return cy.get('im-data-table.hydrated').shadow().find('tr:...
1
vote
0
answers
50
views
Is there is a way to convert the postman collections into BDD cucumber or Karate script directly?
I am doing some API Testing using Postman and I am trying that in BDD Cucumber and Karate framework. Is there is any way to convert the postman collections into BDDC Cucumber or Karate script directly....
0
votes
0
answers
76
views
Cucumber BDD test for Image File Upload API using spring boot?
I have a POST api "/api/user/profileImage" to upload image, developed with spring boot. I have to write Cucumber BDD test to validate the api, unfortunately I can't find much references for ...
-1
votes
2
answers
39
views
Is there a visual studio code extension to auto space and auto format example section in scenario outline?
I want to have an extension from visual studio code which auto format content under Examples section as below.
This is for behave framework.
Below code depicts scenario outline.
Given I put <...
0
votes
1
answer
187
views
Spring Boot Test with Cucumber and Mockito
I recently started to use Cucumber to implement a set of behavior driven tests for a Java project based on Spring Boot. I would like to call REST endpoints of this application using something like ...
0
votes
1
answer
30
views
Selenium Behave Python, how to set a scenario as skiped or untested if it fails
with Selenium Behave Python,
Is possible to force and reset the status of a scenario as skipped or untested if a step on it fails?
I know I can skip a scenario with @Skip tag, but I need to run the ...
0
votes
0
answers
29
views
Insert json data into BDD Feature file
We're using Nightwatch version 1.7.13. We are going to retrieve data from a Hazura instance, via a Postman API call or using javascript code in Nightwatch, saving the data to a json file. Is it ...
0
votes
0
answers
6
views
Python BDD parameter with a file buffer value
I have started to write feature files with behave and I have came across a scenario where I need to check that the image parameter is a valid image.
What values should go to that images parameter from ...
0
votes
1
answer
42
views
Hi all, I want to minimize the code by removing switch case from this function as I have 100s of cases to be created. How can this be done?
I want to remove this switch case from here to reduce the lines of code as I have 100s of cases to be maintained and in this case this switch case will become very lengthy and complex.
How to handle ...
0
votes
0
answers
12
views
How to trigger mails from Jenkins on every success build
I have integrated my BDD framework with jenins. I am getting mail only when build is unstable and when build goes unstable to stable. but i want to trigger mail for every buld creation irrespective of ...
2
votes
0
answers
51
views
OpenQA.Selenium.Interactions - KeyUp seems not taking affect after a KeyDown action
I am currently undertaking a massive challenge on inheriting our test automation lead's Test Automation framework. So far is ok. but I come to the bit where I need to simulate a Hold Shift Key Down ...
0
votes
0
answers
35
views
Specflow - Scenario Outline - Examples table has more than 10 columns
I'm using specflow + MsTest.
My scenario outline with Examples table that has more than 10 columns.
When I debug to watch scenarioContext.ScenarioInfo.Arguments, I only got values for the first 10 ...
0
votes
1
answer
114
views
test framework quit unexpected, Cucumber tests Kotlin intellij
I am trying to run test cases in cucumber for testing a mobile application using IntelliJ. The project code is in kotlin and I am using appium server to run the test case on android emulator. The test ...
-1
votes
1
answer
70
views
Specflow hooks can access the test data for backend?
It is a web based application having 100 respondents each respondent have different ids. i have to run my test cases for all respondents using id which are listed in test data file. file consists of ...
0
votes
1
answer
63
views
Want to use Enum file name dynamically to fetch constants
I have a config file with key value pair as
language = "IN"
and i have multiple page object enum files with name as
PageObject_US,PageObject_UK,PageObject_IN
every page object enum file has ...
0
votes
0
answers
22
views
Specflow: How to generate a unique string by ValueRetriever and store it for the current Scenario, without any issue in parallel execution
to make test data unique for correctly selecting in tests. I'm looking for solution to generate a unique string and replace it to the "(*)" in Feature file. The generated unique string ...
0
votes
1
answer
85
views
Robot Framework : How to add documentation tag for test written in BDD + DD style
Following is my test is written in Robot Framework. It uses the BDD+data-driven approach. It runs perfectly fine. Bue how to add [Documentation] tag for each test. I want that in the report.html, for ...
0
votes
0
answers
66
views
Debug behave context in step file with PyCharm CE
I am trying to debug a behave step file using PyCharm CE.
Following the instruction on this post I managed to run my test.
This is an example of feature file:
Feature: testing behave and pandas
...
0
votes
0
answers
27
views
Cucumber options: Is there any way we provide the options value using property file or excel
I am currently doing a Selenium Cucumber Project.
For that I want to pass the features, plugin, tags from my code using a property file.
Is there any way we can do that?
Please let me know if you need ...
-2
votes
1
answer
37
views
Can we use CSV file in scenario hooks like in before feature to get data?
//since I have to get the data from CSV to backend before the application launched. Is there any alternative procedures?
0
votes
0
answers
88
views
Supertest with cucumber framework
My team suggested to use Supertest for API testing. I developed an understanding through documentation. But i have requirement to integrate with BDD - cucumber-js. I am not able to find anything ...