Page 1 of 1

Sequential tests with ParallelRunner

Posted: Fri Oct 26, 2018 8:32 am
by AndreasMaerz
Hi,

we have a setup with SeleniumHub and different VMs with different browsers behind.
As we currently only have one floating license we would like to run the tests sequential.
When we use ParallelRunner with a CapabilityMatrix and have more than one configuration defined then ParallelRunner seems to try to execute all tests in parallel.
The first run suceeds and for all other runs we get error 42 - no license found.
I would assume that ParallelRunner checks how many licenses can be used and tries to execute as many runs a possible in parallel. If there are more configurations then licenses it should run the tests sequential.
Is there any possibility to tell ParallelRunner to run the tests sequential? Or do we have to set up multiple "CapibilityMatrix" files and use batch files?
Thank you in advance

Kind regards,
Andreas

Re: Sequential tests with ParallelRunner

Posted: Mon Oct 29, 2018 8:49 am
by odklizec
Hi,

I already answered your question here:
viewtopic.php?f=21&t=12834&p=51176#p51187
Basically, you must implement WaitForAvailableLicense method in project's program.cs.