Questions tagged [specflow]

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

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

parallel testing on scenario lever using c# selenium specflow

I have looked over the internet and everywhere I find examples of parallel testing at the feature level. Can someone tell me how to execute parallel testing at the scenario level? Or running scenarios ...
user20889773's user avatar
0 votes
2 answers
42 views

I am trying to check that two string are not equal using Specflow

I'm trying to compare two strings using this code in a switch statement: case "medStepOne": WebEligibilityMedFirst.SelectOptions(p0); if (!p0.Equals("failOne") || !p0.Equals(&...
Roy's user avatar
  • 11
0 votes
0 answers
84 views

How can I check that one element that has the same details as other elements is displayed/clickable using Selenium

I have a scenario that results in one of many validation icons appearing. I need to be able to assert that any one of them is visible but I have problems because of the other ones that remain hidden. ...
Roy's user avatar
  • 11
0 votes
3 answers
272 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.Contains(...
MJB27's user avatar
  • 1
2 votes
5 answers
131 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 ...
Efthymios Kalyviotis's user avatar
-1 votes
1 answer
251 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 ...
seleniumappiumnewbie's user avatar
0 votes
0 answers
357 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 ...
shashank shekhar's user avatar
1 vote
0 answers
68 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 ...
Sam Beard's user avatar
1 vote
2 answers
629 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 ...
m_finn's user avatar
  • 57
2 votes
1 answer
256 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 ...
Sathira Padukka's user avatar
1 vote
2 answers
888 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: ...
m_finn's user avatar
  • 57
0 votes
1 answer
4k 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('...
Narendra Chandratre's user avatar
1 vote
0 answers
89 views

Issue with running Restsharp SpecFlow tests using MSTest via command line

I have created restsharp specflow tests using NUnit framework and I am using MSTest as a test runner in app.config file. I tried to run the tests via command line and it does not work - says the tests ...
user45226's user avatar
3 votes
2 answers
1k 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 ...
Reddy's user avatar
  • 41
3 votes
2 answers
282 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 ...
m_finn's user avatar
  • 57
0 votes
1 answer
125 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 !
OA345's user avatar
  • 535
2 votes
2 answers
3k 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 ...
OA345's user avatar
  • 535
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 ...
venkat's user avatar
  • 121
1 vote
1 answer
595 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 ...
Ike E.'s user avatar
  • 11
1 vote
1 answer
158 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/...
Ram's user avatar
  • 63
1 vote
2 answers
706 views

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

I'm very new to using C#/Specflow to write tests. I have a test, that ends like this: Then the Details page should display the rating zip code And the Details page should display the ID And ...
Jo-Anne's user avatar
  • 33
0 votes
2 answers
282 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 ...
Andy Tilston's user avatar
0 votes
1 answer
113 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 ...
Andy Tilston's user avatar
1 vote
1 answer
2k 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 ...
Hemant Varhekar's user avatar
1 vote
1 answer
253 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 ...
Malik Waris Thaheem's user avatar
2 votes
2 answers
312 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 ...
Luke's user avatar
  • 67
0 votes
1 answer
2k 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. ...
OA345's user avatar
  • 535
4 votes
1 answer
10k 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 ...
Matt W's user avatar
  • 143
1 vote
3 answers
894 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 ...
Jeff Poulin's 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 ...
Geezus's user avatar
  • 63
1 vote
0 answers
408 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 ...
Friendbot's 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 ...
Mr. Auto's user avatar
1 vote
2 answers
840 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 ...
Mr. Auto's user avatar
1 vote
0 answers
405 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 ...
Chris Brown's user avatar
2 votes
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 ...
Paul Muir's user avatar
  • 3,272
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 ...
Malachi's user avatar
  • 587
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 ...
user3718023's user avatar
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 ...
GKS1's 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 ...
GKS1's user avatar
  • 708
5 votes
0 answers
591 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 ...
Edgar's 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 ...
GKS1's 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 ...
GKS1's 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 ...
viji's user avatar
  • 21
1 vote
2 answers
353 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 (...
Jon T.'s user avatar
  • 13
1 vote
1 answer
317 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?
ioana's 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 ...
Paul DelRe's user avatar
1 vote
1 answer
134 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 ...
shkipper's 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 ...
Facio Ratio's 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 ...
MichaelF's user avatar
  • 2,353
3 votes
1 answer
672 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,...
Bless Yahu's user avatar