2,310 questions
1
vote
0
answers
28
views
How to re-run a single specflow scenario outline in github workflow using NUnit
I am trying to implement re-run logic for my scenario outline
@DOC-136
@DOC-137
@DOC-138
@DOC-139
@Browser:Chrome
Scenario Outline: AT01.01 - Test Workflow - Create a case
When I open Create New ...
8
votes
1
answer
8k
views
SpecFlow Extension for Visual Studio 2022 No Longer Available on Marketplace [closed]
I have been using the SpecFlow extension for Visual Studio 2022, but recently I noticed that it is no longer available for download and installation from the Visual Studio Marketplace. It seems like ...
1
vote
1
answer
57
views
Log For Debugging when running Specflow in Azure Pipeline
With the old version of Specflow (3.0.0.0, and with .NET Framework 4.7.2), I could add Console.Writeline() into the step methods, and I ran the tests via Azure pipeline, on the Test tab I can get to ...
1
vote
1
answer
826
views
Trying to build a custom Retry tag for Reqnroll Gherkin syntax
I am tyrying to build a custom Retry Hook for use with Reqnroll (the newer Specflow), and I am having some difficulty re-running the test. I am curios how I can actually re-run the same test on ...
0
votes
3
answers
1k
views
SpecFlow C# Visual Studio - Navigation Disabled
SpecFlow for VS 2022
2022.1.91.26832
Problem
Cannot navigate to code behind feature file steps.
Tried
delete the .vs file
delete %temp% files
delete autogenerated .cs files for .feature files.
close ...
0
votes
1
answer
212
views
How to run only tagged scenarios in azure pipeline using SpecFlow
I have a lot of testcases in SpecFlow for my website. There are different wizards in this website and I have created a tag for testcases associated with each, since changing something in the code of ...
0
votes
0
answers
150
views
How to add screenshot of SpecFlow test failure using LivingDoc?
I have been searching to find how I can add a screenshot to my LivingDoc report upon test failure (PlayWright Framework). My research has led me to the code below:
[AfterScenario]
public async ...
0
votes
0
answers
2k
views
Problems with Reqnroll test generation
I have created a functional test solution for my .Net application using NUnit3 and Reqnroll (formerly SpecFlow: the project was initially created using SpecFlow, later migrated to Reqnroll).
Solution ...
0
votes
1
answer
73
views
SpecFlow test execution order in VS Test Explorer
In my feature file I have 1 scenario outline with two examples that creates two teams. These teams are preconditions to two other scenarios: one deletes the empty team and one adds a user to a team. ...
1
vote
1
answer
156
views
Retry Nunit Specflow Playwright
I am using Playwright Specflow in Nunit to automate web applications. There are some flaky tests and I want to retry them automatically.
I've tried using NUnitRetry.SpecFlowPlugin but it doesn't retry ...
0
votes
0
answers
454
views
How to Use WebApplicationFactory with Testcontainers for SpecFlow Tests?
I'm working on a .NET project where I want to integrate WebApplicationFactory with Testcontainers to use PostgreSQL for my SpecFlow tests. I'm facing some challenges ensuring that the PostgreSQL ...
0
votes
1
answer
42
views
Hooks for specific scenario
My SpecFlow automation scripts perform test on web applications. Web browser will be launched and user name and password will be entered to login and then the test continues.
In my hooks class,
The [...
0
votes
1
answer
300
views
No matching step definition found for one or more steps
I'm working with specflow and visual studio. The thing is that it continues throwing the same message
"No matching step definition found for one or more steps." If I select the option to go ...
0
votes
0
answers
54
views
Not able to switch the browser based on tags in specflow
I am executing the Specflow BDD test and due to some issue on Chrome I need to do some tests on Firefox and rest of the tests on Chrome.
Setup I did:
Add @Firefox Tag to the scenario which needs to be ...
0
votes
1
answer
165
views
error: Scenario Outline '...' has no examples defined
After updating SpecFlow nuget packages, I started getting this error for some scenarios. For example, for this:
Scenario Outline: Scenario1
Given Step1
When Step2
Then Condition1
I would get
error : (...
1
vote
0
answers
344
views
Using AssemblyFixture in SpecFlow: How to Initialize Fixture Once for Multiple Feature Files
I have been attempting to utilize AssemblyFixture in SpecFlow to initialize the fixture only once for all the SpecFlow tests spanning multiple feature files. Could anyone share an example of how I can ...
0
votes
0
answers
48
views
SpecFlow with repetitive tests
I am getting started with Specflow/Cucumber and I have a scenario that has an enum and I want to run the different sceanarios against each enum value.
As an example, I have an Enum (Alpha, Beta, Gamma)...
0
votes
0
answers
52
views
Powershell script can not run when invoke in .NET process
I have one question about Powershell can not run through inside .NET Process.
I have the following Powershell
$livingDocPath = "C:\Users\chris\.dotnet\tools\livingdoc.exe"
$dllPath = "...
1
vote
1
answer
196
views
How do I get SpecFlow.NUnit to suppress passing scenarios from console output?
When I run my SpecFlow suite with dotnet test, I don't want to see all the step output output from the passing scenarios. I've got nearly 200 scenarios-- I only want to see what's broken!
This was ...
1
vote
2
answers
519
views
When and by "whom" is the Dispose() method called after scenario
I use SpecFlow.NUnit.
Let's say I have 2 scenarios and I run them
Scenario: First
Given Definition1
Scenario: Second
Given Definition2
[Given (@"Definition1")]
public void Definition1{
...
0
votes
0
answers
103
views
Playwright Specflow tests are throwing exception in debug mode but not throwing any exception in run mode
I am running tests in VS-2022 using Specflow and playwright. Below is the scenario happening with me.
Debug Mode: While running test in Debug mode few steps are running fine but at one step its ...
0
votes
1
answer
679
views
How to "Associate a test case" from my Specflow Nunit Automated UI test project to Azure test plan test case If I am not using Azure Devops Repo?
I have a specflow + Nunit with playwright project that has automated UI tests. I have created build and release pipelines for the project which seems to work fine except for one small caveat.
While ...
0
votes
1
answer
67
views
Reuse SpeckFlow Examples from another .feature file
We have this feature with multiple resolutions to test. We need to use this list of resolutions to test hundreds of sites and so would like to be able to reference the list of sites and this list of ...
0
votes
0
answers
62
views
how to create .property file in specflow framework
i need to generate allure result .now i am generating allure result in cmd by giving manualy the commands. so i want to automate that.i have created generic fuction for open the cmd and executing a ...
0
votes
2
answers
263
views
Finding an element using specflow and selenium
I am trying to find the google login button from this url
https://marketsmithindia.com/mstool/landing.jsp#/signIn
and getting this exception
NoSuchElementException
I am using Specflow, it is the most ...