Questions tagged [specflow]

SpecFlow, designed for .NET developers, is a powerful tool that supports Behavior-Driven Development (BDD) practices.

Establishing SpecFlow configuration to provide identifiers

As a newcomer to C#, I am exploring how to implement SpecFlow in a similar manner to how I utilized Gherkin, by assigning a unique name to an object and then invoking that name in the Step Definition. My main query pertains to incorporating the identifier ...

What is the best way to prevent certain features/scenarios from running in parallel?

I recently set up a testing solution using Specflow, selenium, and NUnit to run in parallel. I added the following code in AssemblyInfo: [assembly: Parallelizable(ParallelScope.Fixtures)] Initially, everything was running smoothly in parallel. However, af ...

Locating an element with the help of specflow and selenium

Having trouble locating the Google login button on this URL: Encountering a NoSuchElementException while using Specflow to simply open the browser, navigate to the URL, and click the button. Below is a snippet of the code being used: _driver = new EdgeDr ...

Ways to securely store passwords in Selenium WebDriver using C#

Currently, I am working on enhancing our website automation testing script. We have a team of part-time staff members whom we rely on to run this script in order to monitor all our web services. However, there is a security concern that arises before dele ...

What is the best way to connect my tests to send their results to Azure DevOps?

Our current pipeline includes: pulling code, running unit tests, conducting integration tests, building artefacts, and deploying. We are now looking to have our integration tests report results back to Azure DevOps. How can we achieve this? Our test proj ...

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 ...

After the completion of the initial scenario in Specflow, the browser automatically shuts down

In my Specflow project, I came across an issue where the browser closes after executing the first scenario in my feature file. This results in a failed test as there is no connection with the remote server. What steps can I take to resolve this problem? ...