Questions tagged [bdd]

The concept of Behavior Driven Development (BDD) is closely intertwined with both Test Driven Development (TDD) and Acceptance Test Driven Development (ATDD). However, one of the major distinctions between BDD and these other practices lies in its vocabulary choices, prioritizing terms like "example", "scenario", or "specification" over the word "test".

Does conducting a unit test involve testing a backend api endpoint?

Let's say you have a Node server running Express and you decide to write a Jasmine test to verify that POST /someroute returns the expected JSON response. Is this still classified as unit testing? While it may not align perfectly with the traditional ...

Can you explain the BDD feature file structure for transferring to TestRail?

Having trouble importing BDD feature files from my Automation Framework into TestRail. Even after using the 'Import .feature files into TestRail' feature, the file imports without any testcases and I'm unable to manually add them. Trying to import .featur ...

Specflow tests failing to start

I've encountered an error while trying to execute my Specflow tests. Despite various attempts like deleting the bin, removing all NuGet packages and reinstalling them, and making changes to the app.config file, this error continues to persist. Test N ...

Issues arise when working with the variable Webdriver driver in conjunction with PageObjects

Is there a way to optimize the usage of Login_Page Login = PageFactory.initElements(driver, Login_Page.class) in all steps? It seems to be causing an error when used for each step as Java shows the message: "Value driver is always 'null'". I am also looki ...

What is the best way to conduct automated tests on CSS rendering across various browsers, including Safari Mobile and the Android Browser?

Is there a way to programmatically and automatically test how CSS is rendered in various browsers, similar to how Selenium tests HTML and Javascript across different browsers? It would be great to integrate this with a BDD framework. ...

What is the process for inspecting the element within a div using jsname with JS?

Struggling to inspect elements within a DIV without using xpath. // Assert.assertEquals("Digite uma senha",driver.findElement(By.xpath("//*[@id=\"view_container\"]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div[2]/div[2] ...

Perform an update followed by a removal操作

I've been facing a persistent issue that has been troubling me for quite some time now. The setup involves a database in MariaDB (using WAMP) and an API in ExpressJS. Within the database, there are two tables: "menu" and "item," with a foreign key rel ...

Establishing and dismantling procedures for pytest BDD operations

My goal is to utilize setup and teardown modules with pytest-bdd. I am familiar with using a environment.py file in behave that includes before_all and after_all modules. How can I achieve the same functionality in pytest-bdd? I attempted to use the "clas ...

Cucumber is failing to execute examples, and the web page is not being initiated properly

public class Applicant_Login_StepDef { WebDriver driver; @Given("^the URL$") public void the_URL() throws Throwable { System.setProperty("webdriver.chrome.driver", "C:\Users\SSMP\Downloads\chromedriv ...

The Jbehave selenium framework is not properly indicating a failed step when using the verifyEquals method

I'm currently working with Selenium WebDriver and JBehave to automate BDD tests, but I've run into an issue when verifying values. I don't want my tests to fail immediately after encountering a failed assertion. Instead, I need them to verif ...

Strategies to prevent fortuitous success in testing

I have the following test case: it('is to display a welcome message', () => { spyOnProperty(authServiceSpy, 'token').and.returnValue(environment.testAuthenticationToken); let teacher: Teacher = authServiceSpy.token.teacher; let welcome: HT ...

Reading a Json file with keys in puppeteer BDD: A Guide

Greetings, I am new to the world of puppeteer. I have successfully created my basic framework and now I am trying to figure out how to read data from .json files. I attempted to use the readFile method in my helper class, but unfortunately, it resulted in ...

What methods and technologies are accessible for executing JavaScript through PHP?

Are there any frameworks or tools available to execute JavaScript from PHP? Is there a similar project like the Harmony project for PHP? I am interested in running JS unit tests (or even BDD) directly from PHP, as demonstrated in this post (for Ruby). Am ...

Utilizing properties files to pass values in Cucumber feature files' data tables

I am looking to retrieve the values of variables in a datatable from feature files using a properties file. I have attempted to implement this, but encountered an error. The complete stack trace is provided below. org.openqa.selenium.WebDriverException: u ...

Link Karate to Selenium

Is it possible to integrate karate and selenium for my testing needs? I have followed instructions on how to call the "JavaApiTest class" and added the necessary karate-core dependency. However, when I attempt to run my tests using the cucumber runner, I e ...

The OpenQA.Selenium.Interactions KeyUp function doesn't appear to be working following a KeyDown event

Currently, I am taking on the challenge of inheriting our test automation lead's Test Automation framework. The process has been going smoothly so far, but now I have reached a point where I need to replicate holding down the Shift key, pressing the down a ...

Having trouble retrieving the value from the XML file when the key is passed as a parameter

Latest QAF Version 2.1.13 along with 2.1.14-RC1 The XML file contains the following test data - <registration> <existingdata> <title>Mr</title> <firstname>Narendra</firstname> <lastnam ...