Sequential tests with ParallelRunner

Ranorex Studio, Spy, Recorder, and Driver.
AndreasMaerz
Posts: 2
Joined: Fri Oct 26, 2018 8:09 am

Sequential tests with ParallelRunner

Post by AndreasMaerz » Fri Oct 26, 2018 8:32 am

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

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Sequential tests with ParallelRunner

Post by odklizec » Mon Oct 29, 2018 8:49 am

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration