2,310 questions
1
vote
0
answers
31
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 ...
0
votes
1
answer
31
views
How to write the Then clause in a SpecFlow Scenario addressing a method with a Table parameter defining a set of values
Considering the following Then verifying method already implemented:
/// <summary>
/// Verifies the elements of a <see cref="ComboBox" />.
/// </summary>
/// <param ...
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 ...
0
votes
0
answers
482
views
Specflow isn't happy in Visual Studio Pro 2022 (LTSC) 17.10 with .NET 8
I went back to my automated testing using Specflow and visual studio and encountered a warning of:
The project bindings (e.g. step definitions) could not be discovered. Navigation, step completion and ...
1
vote
1
answer
58
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 ...
0
votes
0
answers
25
views
Specflow Scenario with Tag-Based JSON Data Management
My specflow scenario has 4 tags example @sanity-qa, @Regression-qa, @Sanity-Stg and @regression-Stg. Scenario example is below:
@sanity-qa
@Regression-qa
@Sanity-Stg
@regression-Stg
...
1
vote
1
answer
838
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
1
answer
143
views
VS Code(1.94.2)"Go To Definition" (Ctrl+Click) Not Working for SpecFlow Steps
I'm facing a persistent issue with Visual Studio Code where the "Go To Definition" functionality (Ctrl+Click) doesn't work for SpecFlow steps. Despite successful test execution, the IDE ...
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 ...
1
vote
2
answers
1k
views
Go to definition in specflow feature file is not working in VS 2022
Go to definition in specflow feature file is not working in VS 2022.
New steps (definition less) are not coming in purple, all the steps are white coloured.
Trying to create definition for new steps ...
0
votes
1
answer
214
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
22
views
How to integrate MEF as an external DI Container into SpecFlow?
The SpecFlow project (https://github.com/SpecFlowOSS/SpecFlow) provides an own plupin to integrate AutoFac as an external DI container. There is also a blog entry from the SpecFlow author where he ...
0
votes
0
answers
151
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
45
views
Specflow scenario with 2 tags, failing to locate tag names in Jenkins run
I am trying to use multiple tags for a scenario outline in Specflow C# feature file. I need this implementation because of a change in functionality based on tag names.
@User1 @User2
Scenario Outline: ...
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
40
views
Terminate test execution on browser freeze
I have test written in
Playwright +.net
specflow nunit
There is a problem in my app that freezes browser on certain condition. When test runs it, it is executed forever.
Is there any way to terminate ...
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. ...
0
votes
1
answer
542
views
How do I access the browser clipboard with Playwright/C#/SpecFlow/Reqnroll?
I try to give access browser to clipboard.
I found this https://playwrightsolutions.com/how-do-i-access-the-browser-clipboard-with-playwright/
but it's for playwright with typescrip, so I'm looking ...
1
vote
1
answer
158
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 ...
2
votes
0
answers
138
views
How to register a custom ITraceListener in SpecFlow 3.9.74
We are upgrading from specflow 1.something to version 3.9.74. I'm having some trouble getting our custom TraceListener to work.
This is the code of the IRuntimePlugin:
using TechTalk.SpecFlow.Plugins;
...
0
votes
0
answers
457
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 ...
1
vote
0
answers
62
views
Unable to generate info logs from logic page to the extentreport - specflow c#
I am unable to get logs into extent report. I am here looking for info logs such as Status.Info, from StepDefinition or from logic in page to extent report. I have implemented this in 2019 but now I ...
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
0
answers
39
views
Specflow: navigating and debugging steps in nuget package
I have created a nuget package containing steps which is then referenced on my test framework.
In term of discovery and execution it works all fine, but I am unable to navigate to the step definition ...
0
votes
1
answer
308
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
1
answer
665
views
How to run specflow tests in Azure Pipeline? But from a Console Application
I'm having a very specific, yet very interesting problem.
So, the end goal is to have some end-to-end, specflow tests running in the Azure pipeline. Those tests are connecting to the Database, running ...
0
votes
0
answers
55
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
38
views
Why does my named xpath in a repository not recgnised in another class when I try to findelement?
I'm using specflow and want a Repo to store all my xpaths to make it cleaner and easier to undertsand. So the Repo I have is
using OpenQA.Selenium;
using System;
using System.Collections.Generic;
...
0
votes
1
answer
166
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 : (...
2
votes
1
answer
310
views
Reqnroll BDD tests not working with a Blazor Maui Hybrid app
I created a new Maui Blazor app with VS 2022. I have the Reqnroll plugin installed and created a new project within the solution. I added a project reference to the first Maui Blazor app just like the ...
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
94
views
Converting to a custom class from a string
I'm running into an issue where a private library method is trying to convert from string to my custom type, and is getting an exception:
Invalid cast from 'System.String' to 'CustomStringValue'.
...
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
1
answer
74
views
Specflow defination not showing references
I have a spec flow automation framework. I am using Visual Studio Editor. in that, any definition in the definition file shows references zero. I want to display the reference number with the ...
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 = "...
0
votes
1
answer
30
views
Autopopulate existing specflow steps
when am trying to add new steps, I want to check whether there are related steps exists in the repository.
Is there an away to automatically populate the existing specflow steps based on keywords?
1
vote
1
answer
198
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 ...
0
votes
1
answer
324
views
Disable one feature file from running in parallel with other features in c# using SpecFlow
I have a few feature files that run in parallel using specflow
I want to disable one of the features from running in parallel with others.
Tried adding addNonParallelizableMarkerForTags field to ...
1
vote
2
answers
527
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{
...
-1
votes
1
answer
128
views
Awaiting state - One scenario with multiple When/Then versus Two scenarios and shared context [closed]
We are starting SpecFlow implementation and we are trying to find the best practice regarding a feature which required an awaiting state during the flow.
Should we use one scenario with several When/...
0
votes
0
answers
104
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 ...
1
vote
1
answer
101
views
Specflow project build is "terminated due to StackOverflowException"
Our Specflow project started to fail the build with "Process is terminated due to StackOverflowException".
I was able to trim down the test project down to just one feature file like this:
...
0
votes
1
answer
685
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
0
answers
32
views
I have a StepDefinition that logs in the user. I would like to run that step definition once before the test and not have to run it again
I would like to run the login StepDefinition method once before the test runs. But, not after every single feature run because I have code that saves the browser state after first login
Given("...
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
82
views
Call one scenario from another - Specflow
I have a gherkin and specflow script that registers a user, then in the same script I need to get into an external resource to get the verification code.... If I break it all into 2 different scripts, ...
0
votes
0
answers
65
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 ...
1
vote
1
answer
43
views
Using a feature with 2 identical scenarios but, different tags. How to do in a DRY way?
Came across this scenario and wondered if there was a DRYer solution.
A feature with multiple scenarios.
Each scenario has the same steps but, has different tags.
Tags are used in Before scenario ...
0
votes
2
answers
264
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 ...
0
votes
1
answer
393
views
Data integrity between scenarios in Specflow using Testcontainers (.net core)
I tried to use Testcontainers in my c# specflow. But it seems Scpeflow didn't wait for the container to start when i initiated my container in my custome WebapplicationFacotry class.
At last I created ...