Questions tagged [specflow]

An acceptance test driven development and behavior driven development framework for .NET.

Filter by
Sorted by
Tagged with
0 votes
3 answers
65 views

Assertion on Span Tag Value (Selenium Web Driver - C# MSTest - Specflow)

I have a scenario where I want to Assert the UI is displaying "Active". When debugging the assertion, I am trying different methods. This is what I started with; Assert.IsTrue(webdriver.Text....
user avatar
  • 1
2 votes
5 answers
60 views

How to repeatedly run tests which add the same user to the system

I have the following Gherkin: Scenario: A user can register to the application Given Carlos is not a registered user When Carlos registers on to the application Then he gets registered My ...
user avatar
0 votes
0 answers
78 views

Specflow+Living Doc Azure Devops Integration failed and not working

Please note i have latest version of specflow Added Living Doc plugin build step to Azure Devops build pipeline Settings as shown in the 2nd screenshot Ran build pipeline and getting error at Specflow+...
user avatar
0 votes
0 answers
118 views

How to prevent inconclusive test steps result in specflow nunit tests? How do you handle multiple tests logging to same report at the same time?

How to prevent inconclusive test steps result in specflow nunit tests? I am running tests in parallel and I notice my tests keep having a test step failing due to being inconclusive so it captures a ...
user avatar
-1 votes
1 answer
42 views

Getting ambiguous error for specflow test

Getting ambiguous error for specflow test. I realized the solution is that two stepdefinitions file share the same identical wording of the Given tag so I had to make it unique and then it solved the ...
user avatar
0 votes
0 answers
204 views

How to run appium tests parallel in c# specflow?

I am new to C# and Specflow. I am using appium, c# and specflow for automating my tests. I have a app.config file where i am mentioning the environment to be run into. A driver class DeviceDriver.cs ...
user avatar
1 vote
0 answers
55 views

Azure devops test result grouping when using Specflow+ Runner

I am working on a testautomation project using .NET Core 3.1 and Specflow 3.5 using the Specflow+ Runner. I am currently running the testautomation from Azure Devops using the VSTest task (see YAML ...
user avatar
1 vote
2 answers
459 views

Which runner to use with Specflow Cucumber BDD: Specflow Runner, Nunit, Xunit

I have a Specflow Selenium BDD automation solution in C# using Visual Studio and want to start scheduling some automation runs based on tags and possibly features. I've only used Nunit as a test ...
user avatar
  • 57
2 votes
1 answer
123 views

Browser is closed only if test passed on VM

I use driver.Dispose(); and using ChromeDriver. But the browser is closed only if the test passed. On the VM if a test failed, the browser is still open. If I run tests from Visual Studio on local ...
user avatar
1 vote
2 answers
504 views

Specflow Cucumber BDD - Only log in once on test run not on every scenario

We have a Cucumber BDD test project using C# Specflow. The application is browser based tested using Selenium WebDriver automation framework. There are a number of feature files with scenarios: ...
user avatar
  • 57
0 votes
1 answer
2k views

How to fix : BoDi.ObjectContainerException : Interface cannot be resolved: TechTalk.SpecFlow.UnitTestProvider.IUnitTestRuntimeProvider('nunit')

I am trying to build task in Azure pipeline. Observed error : OneTimeSetUp: BoDi.ObjectContainerException : Interface cannot be resolved: TechTalk.SpecFlow.UnitTestProvider.IUnitTestRuntimeProvider('...
user avatar
3 votes
2 answers
860 views

Is it good practice to skip the When clause in Gherkin/Cucumber/SpecFlow?

Is it a good practice to skip the When clause in Gherkin/Cucumber/SpecFlow? For instance: Scenario: user has to open a website Given User has access to website Then User should be able to validate ...
user avatar
  • 41
3 votes
2 answers
219 views

API Testing with Specflow BDD Selenium?

I'm developing a BDD test automation solution with C# using Specflow (Cucumber) with tests written as plain text Gherkins. I am currently writing a regression test suite amongst others. When ...
user avatar
  • 57
0 votes
1 answer
52 views

In Visual Studio 2019, The Name Of The Scenario In Test Explorer Is Different From The Test That I Want To Run

The test scenario in Test Explorer is different from what I have in my V/S Project. I have tried re-starting Test Explorer to no effect. Thanks !
user avatar
  • 495
2 votes
2 answers
934 views

Specflow step is not bound even though the underlying step definitions have been implemented

Hello, the step has not been bound (hence, colour purple), even though the underlying step defintions have been implemented. In the screen shot, I clicked on "Ok". V/Studio takes me to the screen in ...
user avatar
  • 495
2 votes
2 answers
1k views

Setup of Test automation framework from scratch using NUnit and Specflow and RestSharp and selenium with Visual Studio 2017 C#

We have so many API's(5 to 8 API calls - Mostly REST based and 1 or 2 in SOAP based) and Oracle DB. We do not have any WEB UI. No UI automation.Only middle tier and backend automation. For automation ...
user avatar
  • 121
1 vote
1 answer
446 views

Specflow scenario outline with then table

I have a scenario outline with an example table with multiple rows having unique test parameters that are being used for given statement and then statement table for verification. Basically when the ...
user avatar
  • 11
1 vote
1 answer
104 views

Specflow plus evaluation version attaching a screenshot

Is it possible to attach the screenshot in the report with an c#, specflow auto framework. I have included report template in .srprofile As mentioned in https://specflow.org/plus/documentation/...
user avatar
  • 63
0 votes
2 answers
515 views

How can I turn a list of assertions into a table? C#/Specflow Selenium

I am very new to using C#/Specflow to write tests so thank you for the patience. I have a test that ends like this: Then the Details page should display the rating zip code And the Details page ...
user avatar
  • 23
0 votes
2 answers
277 views

Specflow tutorials which cover UI testing

When initially delving into the realm of BDD my initial foray was with Java and Cucumber. I found a wealth of knowledge online which allowed me to get to grips with this, specifically real-world ...
user avatar
0 votes
1 answer
104 views

Organisation of Acceptance Tests(Specflow/Cucumber)

Now I'm starting to work more and more with BDD techniques(spec flow and Cucumber), I’m starting to think about the organisation of the projects/solutions I create and ensuring that I future proof it ...
user avatar
1 vote
1 answer
1k views

Can we use java to design specflows?

I am currently learning regarding specflows to design acceptance testing using cucumber, But I am getting information that we can not use java or Java script programming language only .net is ...
user avatar
1 vote
1 answer
241 views

I am trying to validate the following in page: Unit testing text and existence of Test Automation Interface Model picture [closed]

I am using the C# selenium, Specflow and Nunit3 for performing above task. I am confused that how to validate the page. Later on, following task already i have done. Moreover, it Search for the link ...
user avatar
2 votes
2 answers
304 views

Benefits of BDD tools such as SpecFlow for tech debt in automation

We are starting to automate our manual regression suites using Selenium Webdriver and NUnit. The tests we will be automating are quite detailed in terms of steps and expected results however I was ...
user avatar
  • 67
0 votes
1 answer
1k views

No Option To "Generate Step Definitions" In Specflow

I do not see the option to "generate step definitions" in Specflow. I have installed the Specflow add-on by going to: Tools >> Extensions And Updates I have also added NUnit3 Test Adapter. ...
user avatar
  • 495
4 votes
1 answer
8k views

Can a scenario have multiple example tables?

I would like to write a gherkin scenario that specifies a table of parameters but represents a test for every combination of values in the table. For example: Given I visit <site> When I enter ...
user avatar
  • 143
1 vote
3 answers
752 views

Use Gherkin syntax for Acceptance Criteria without accompanying BDD tool

Pretty straightforward question: Does anyone have experience writing or consuming Acceptance Criteria written with Gherkin, but doesn't use a BDD tool like Cucumber, Specflow, etc.? Is this method of ...
user avatar
4 votes
2 answers
3k views

How can I parameterize multiple users login in your specflow gherkin (Selenium Webdriver)?

I need help please, I have a working Selenium Webdriver/Gherkin/Specflow project that I created. I am trying to migrate my code to another environment (stage), but I only want to make changes in the ...
user avatar
  • 63
1 vote
0 answers
405 views

Specflow CodedUI Generator Plugin not generating feature files

Okay. So here is where I am at. I am using Specflow 2.2.0 to pair automated unit testing with our CodedUI testing effort. I am developing a plugin to add the CodedUI Test attribute to the Specflow ...
user avatar
3 votes
1 answer
1k views

Which is the better way for data-driven testing for Specflow automated tests?

I'm working with a project and I'm planning to use Specflow and Selenium C#. I'm new with using Specflow (SpecFlow is the open source port of Cucumber for .NET) for automation and I'm going to use it ...
user avatar
1 vote
2 answers
785 views

How can I organize my Specflow test cases?

I'm working with a project and I'm planning to use Specflow and Selenium C#. I'm new with using Specflow (SpecFlow is the open source port of Cucumber for .NET) for automation and I'm going to use it ...
user avatar
1 vote
0 answers
364 views

Automated Tests Hanging TeamCity Build

I am using TeamCity to build a .dll containing a test suite for an api.  The api is composed of asynchronous calls to create/read/update/delete values in a database.  The tests in the .dll were ...
user avatar
1 vote
1 answer
2k views

Specflow Page Object Model Maintainability

I was wondering if anyone could assist in a Code Review on my Specflow Page Object Model code. I have included a small sample of the code I use, most of the pages follow identical patterns. Step ...
user avatar
  • 3,202
0 votes
1 answer
4k views

Unable to click on checkbox using Selenium WebDriver

I am passing in the checkbox ID, grabbing the element and then if the checkbox is not checked I want to check it. It wouldn't check the box though, so I was debugging and then it worked when I added a ...
user avatar
  • 567
1 vote
1 answer
62 views

Is there a software that tells the number of possible flows when "inputing" an workflow?

I'm making a project that needs to break some big workflows into pieces and I need to know how many possible flows does the Workflow (that I have "inputed") before has. Does anyone know any software ...
user avatar
  • 113
3 votes
1 answer
3k views

Specflow and selenium, best practice for passing page objects between steps?

I am wondering what the best way to structure context injection is. I know that page objects should be instantiated / disposed of as they are needed (don't initialize all page objs at the start of a ...
user avatar
  • 708
0 votes
1 answer
2k views

Specify what tests to run from SpecRun command line?

I'm looking for a way to specify what tests run when using specrun's command line (runtests.cmd). Is there a way to only run tests with a specific flag or specific feature file? Or is there another ...
user avatar
  • 708
5 votes
0 answers
574 views

How to improve SpecFlow intellisense in Visual Studio [closed]

I'm using SpecFlow to write automated test cases for a project. I'm writing them in Visual Studio 2013 It's cool and the intellisense works, but I have some issues with it: Is it possible to limit ...
user avatar
  • 153
1 vote
1 answer
2k views

Specrun - don't stop executing tests after a certain number fail

I am using specrun in visual studio to run my specflow unit tests. I have found that after a certain number of tests fail, specrun will stop and skip any remaining tests. How can I run all tests ...
user avatar
  • 708
1 vote
1 answer
2k views

Wrap specflow scenario within try-catch

I have been running into a problem with the C# selenium bindings decribed here: https://stackoverflow.com/questions/22322596/ where a timeout exception is thrown occasionally while running my ...
user avatar
  • 708
2 votes
1 answer
3k views

specflow vs fitnesse

I am evaluating between specflow vs fitnesse with respect to BDD. I would like to find: Fitnesse allows the user to pass inputs through excel. Specflow provides any similar functionality? Fitnesse ...
user avatar
  • 21
1 vote
2 answers
331 views

Product Owners - level of involvement with .feature files

I am involved in a project where Given-When-Then formatted stories are written by the Product Owner (in a web-based story repository / JIRA), then created by Developers, while system test automation (...
user avatar
  • 13
1 vote
1 answer
315 views

c# with Watin and SpecFlow - how to mark some test

How can you mark some tests to run only those? From all the test that you have in different folder to mark some as sanity and only run those?
user avatar
  • 11
9 votes
3 answers
8k views

What is the best way to have a SpecFlow project run across multiple browsers?

I'm working on setting up a SpecFlow project to test a portal. Thus far I've haven't had issues writing some "hello world" features and steps. My question is as the testing project grows, what is the ...
user avatar
1 vote
1 answer
132 views

SpecFlow - test MVC3 Web site with action calls

I'm very new to BDD testing, and would like to ask, is it possible/OK to test ASP MVC3 actions directly (using WebClient) using SpecFlow? i.e. Feature: Login Scenario: Logging in Given I post ...
user avatar
  • 113
3 votes
1 answer
1k views

BDD SpecFlow w/WatiN test during/after redirect

I have begun to use SpecFlow and WatiN to automate UI tests in IE9, and am encountering a maddening problem which may have nothing do to with either, but hey. I have the following step: [Then] public ...
user avatar
7 votes
3 answers
3k views

What is the best way to handle minor intermittent automation failures during cross browser testing?

I run Web Driver (.Net version) with SpecFlow as my test driver on some fairly general Cross - Browser scenarios so I often am rerunning tests as I add new ones, or clean up old automation. On ...
user avatar
  • 2,323
3 votes
1 answer
660 views

Cucumber and Watin for Acceptance testing in Asp.Net MVC

If the business owner/QA are writing/running the Acceptance test against the front end of a Asp.Net Mvc Application, is there a benefit to using SpecFlow/Watin or SpecFlow/Selenium over Cucumber/Watir,...
user avatar
3 votes
2 answers
901 views

Is it good practice to combine my Test and Prod BDD tests in one Framework?

This question has been bothering me lately, more from the fact that in the past this is something I would never do, yet in the past I wasn't writing BDD tests. Since incorporating SpecFlow into a ...
user avatar
  • 2,323
3 votes
1 answer
275 views

BDD with 3rd party services

I am developing a asp.net mvc site that depends deeply on a 3rd party web service. I would like to know what is the best approach to develop this site since the web service is not ready yet and I can'...
user avatar
  • 131