Questions tagged [specrun]

SpecRun is an integration test runner for SpecFlow.

101 questions
2
votes
2 answers

how do I obtain or create a .srprofile file when nuget doesn't create it?

To configure and use many features of SpecRun (beefed up version of Specflow, the cucumber for .NET), you need some sort of .sfprofile file. A file "default.sfprofile" is supposedly and (I assume) typically created for you when the Nuget package is…
Patrick Karcher
  • 22,995
  • 5
  • 52
  • 66
2
votes
1 answer

How to run feature files in parallel when using specflow/specrun?

I am implementing a project for the proof of concept and here is what i am using: VS 2013,MSTest/Test Explorer, Specflow and specrun I have created 3 specflow feature files, each having it's own sets of different scenarios. When I run these tests…
imk048
  • 21
  • 3
2
votes
1 answer

SpecRun and TeamCity pass/fail integration

We're using SpecRun as our test runner, whose logfile TeamCity consumes. We've encountered a problem whereby a test in SpecRun will fail the first time (due to resources not warming up quickly enough), then pass the second retry (we have the SpecRun…
larryq
  • 15,713
  • 38
  • 121
  • 190
2
votes
1 answer

SpecRun returning exit code 120 with @ignore tests

Running SpecRun from command line as part of a Continuous Integration setup, and recently an ignored (@ignore) test generated an exit code of 120 when SpecRun completed. Currently, we break the build on any exit code not equal to 0 (universal…
johnny g
  • 3,533
  • 1
  • 25
  • 40
1
vote
0 answers

Migrating Test Runner from Specrun to NUnit

I am just wondering has anyone successfully migrated their test Runner from Specrun (Specflow + Runner) to NUnit.. note both with Specflow. We are currently in the process but finding it difficult due to how our infrastructure is set up. The main…
RoToon
  • 11
  • 2
1
vote
1 answer

Chromedriver throwing an exception when running in parallel on Azure DevOps Hosted Agent

When I run my automated tests in parallel in an Azure DevOps release pipeline using SpecRun.SpecFlow, I get an exception on a few of the tests in relation to Chromedriver being in use by another process (the other tests that are running). The…
1
vote
1 answer

SpecFlow+ Runner parallelization on class level

I want to run tests in parallel on class/feature level, my tests are running on scenario/method level, tried to change settings in srprofile, but didn't help. I tried the same project with MSTest runner and works fine, can't figure out what to do…
1
vote
2 answers

Is there a way to associate Specflow+Runner test cases with Azure Test plan?

We are looking for some solutions around associating our automation test cases with Azure test plan with Specflow+Runner. Tech stack: Visual Studio 2017/19 .Net Framework 4.8 Specflow 3.1.97 SpecRun.Runner/SpecRun.Specflow 3.2.31 We have recently…
1
vote
0 answers

Run BeforeTestRun and AfterTestRun only once using specflow with Selenium

I have seen the question here How to execute before and after test run only once in parallel execution of specflow - although I am unable to understand how to run the Hooks just once in parallel I am using Specflow+ Runner as my test provider, my…
AutoTester213
  • 2,714
  • 2
  • 24
  • 48
1
vote
0 answers

C# Specflow+ How to run some code ONCE before the threads are created in .netcore for TestRail API

I have written a Test Automation Framework in C# that uses Specflow with SpecFlow+ as the Runner. I am using TestRail API to write the results to TestRail. I want to create a new test run when I start the automation tests and then write all of the…
Matt
  • 773
  • 2
  • 15
  • 30
1
vote
0 answers

SpecFlow Jenkins Run Failing looking for NewtonSoft v9.0.0.0

I am setting up a new project on Jenkins and I am having a slight issue. The build is successful but when specrun begins, all tests are ignored and it is throwing the below error. TechTalk.SpecRun.Framework.SpecRunException: At least one test…
Dazed
  • 1,527
  • 1
  • 13
  • 25
1
vote
1 answer

Primitive types or structs cannot be resolved: System.String hook [AfterStep] specflow C#

In my automation I am having trouble running automated tests where the method I need to enter a parameter using the hook [AfterStep] is displaying the error: Primitive types or structs cannot be resolved: System.String…
1
vote
1 answer

SpecFlow+ Runner Server: Unable to find the "server" directory in \packages\SpecRun.Runner.x.y.z\tools

I am currently trying to set up the SpecFlow+ Runner Server by following this instructions: Setting Up The SpecFlow+ Runner Server I struggle at following point: "2. Locate the "server" directory in your solution's …
Jonas Benz
  • 503
  • 3
  • 12
1
vote
0 answers

Specflow SpecRun doesn't find my test cases

So I can successfully run my Specflow test cases from Visual Studio or from Rider, but when I would like to do it from a command line with SpecRun it recognises 0 test cases. After executing SpecRun.exe/runtests.bat I get the following…
Twi
  • 765
  • 3
  • 13
  • 29
1
vote
1 answer

Folder TestResults of Specflow Execution Report is Wrong

When I run my tests with SpecFlow, my TestResults folder become: C:\PROJETOS\CapitalElevado\TestResults\C\PROJETOS\CapitalElevado\TestResults In other words, my "C" directory is being seen like a folder and then the full address repeats. I don´t…
Carol
  • 163
  • 2
  • 10