Alternative for Parallel execution using Tags in specrunner
AnsweredIn Default.srprofile in specrunner, we have a feature where we can filter the test exceution using tags as well as execute tests parallelly using tags which can be run in a dedicated Thread.
I am not able to find an alternative for this in other test runners. sy in MStest, either you can have parallel execution in feature level or methos level and not by tags.
Could you suggest the alternative for this feature:
Example looks like this:
Default.srprofile
<?xml version="1.0" encoding="utf-8"?>
<TestProfile xmlns=http://www.specflow.org/schemas/plus/TestProfile/1.5>
<Settings projectName="SpecFlowProjectSample" />
<Filter>!@ mytag3</Filter>
<Execution stopAfterFailures="0" testThreadCount="3" testSchedulingMode="Sequential" />
<TestThreads>
<TestThread id="0">
<TestAffinity>@mytag1</TestAffinity>
</TestThread>
</TestThreads>
<TestThreads>
<TestThread id="1">
<TestAffinity>@mytag2</TestAffinity>
</TestThread>
</TestThreads>
<TestAssemblyPaths>
<TestAssemblyPath>SpecFlowProjectSample.dll</TestAssemblyPath>
</TestAssemblyPaths>
<TestThreads>
<TestThread id="1">
<TestAffinity>@mytag3</TestAffinity>
</TestThread>
</TestThreads>
<TestAssemblyPaths>
<TestAssemblyPath>SpecFlowProjectSample.dll</TestAssemblyPath>
</TestAssemblyPaths>
In this example :
Testscenarios with tag named @ mytag3 wont be executed. It can be in any feature file/s.
Similarly all testscenarios with @ mytag1 will be executed only in thread 0 and @ mytag2 in thread 1 and so on.
-
Hi Minnal Ponnuswamy, Sujatha,
There is no out of the box solution for this using SpecFlow without the runner.
Maybe someone else in the community knows of something.
0
Please sign in to leave a comment.
Comments
1 comment