People who code: we want your input. Take the Survey

Questions tagged [specflow]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

Specflow TestExecution.json output not including all tests run when run in parallel

Attempting to run a growing suite of Specflow tests in parallel in order to save time. However, the TestExecution.json output file only contains a random subset of tests when the run is finished, ...
2
votes
1answer
53 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 ...
0
votes
0answers
33 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 ...
1
vote
0answers
30 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 ...
1
vote
2answers
237 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: ...
1
vote
2answers
197 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 ...
0
votes
1answer
635 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('...
0
votes
0answers
54 views

Exception Handling between Specflow hooks - Need to stop execution if before test throws exception

I am facing an issue. I am testing micro-services and we use specflow for test automation. In BeforeTest if I get an exception (e.g. due to connection). I see BeforeFeature methods of my feature files ...
7
votes
3answers
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 ...
1
vote
1answer
364 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 ...
0
votes
0answers
80 views

Good way to run Selenium Tests on Azure Devops

We have 5 different env that i want to run my selenium tests against, the tests are configured and will be ran at the end of the release, what is the best approach for this, should we use Selenium ...
3
votes
2answers
403 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 ...
3
votes
2answers
111 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 ...
1
vote
0answers
393 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 ...
2
votes
2answers
218 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 ...
0
votes
1answer
41 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 !
2
votes
2answers
943 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 ...
0
votes
2answers
342 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 ...
1
vote
1answer
91 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/...
0
votes
1answer
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. ...
1
vote
3answers
604 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 ...
0
votes
1answer
264 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 ...
2
votes
2answers
293 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 ...
0
votes
1answer
93 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 ...
1
vote
1answer
922 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 ...
0
votes
1answer
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 ...
1
vote
1answer
212 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 ...
4
votes
1answer
6k 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 ...
3
votes
1answer
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 ...
4
votes
2answers
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 ...
1
vote
2answers
745 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 ...
1
vote
1answer
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 ...
9
votes
3answers
7k 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 ...
1
vote
0answers
330 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 ...
7
votes
3answers
569 views

Suggestions for “Selling” TDD, and BDD to sceptical non engineering managers

Let's say you are a developer (specifically, the team lead) and you want to improve the quality of your company's products. Since you cannot change the whole company, you focus on what you and your ...
1
vote
1answer
61 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 ...
3
votes
1answer
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 ...
0
votes
1answer
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 ...
5
votes
0answers
564 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 ...
1
vote
1answer
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 ...
2
votes
1answer
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 ...
1
vote
1answer
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 ...
3
votes
1answer
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 ...
1
vote
2answers
318 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 (...
1
vote
1answer
314 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?
1
vote
1answer
131 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 ...
15
votes
4answers
12k views

Does writing “Given” “When” “Then” BDD style test cases scale up to larger, end-to-end scenarios

Traditionally, structured test, especially long scenarios are commonly written in the step, expected, actual format. Behaviour Driven Design replaces this with the style of "Given", "When" "Then", ...
3
votes
1answer
656 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,...
3
votes
2answers
866 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 ...
3
votes
1answer
267 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'...