-
Hi At a high level I use scripts in package.json to tell what wdio conf to run. So each script line would specify the env to run against and the wdio config to run. Within the wdio config i have the test specs to run and the configs have the capabilities defined in them rough idea of the execution for both configs
So I have 4 spec files
so when I run with 1 capability with my existing maxinstance of 3 for parallel execution, the first 3 specs are in their own browsers with the 4th being queued up, and once one of them completes, then the offline test spec will now be run on that free instance, but since the others are running, some of the last few tests of the other 2 spec files will start to fail, or the start of the offline spec file will start to fail. Now the next aspect is when I run with the multi device capability, again how would i allows the other specs to run with the maxinstance of 3, to run on all the devices and then once i need to run spec4, reduce the maxinstance 1 so that only one of the capabilities browsers runs at a time? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@troyyer hey there 👋
I like to use
When running
I am not sure if I understand. If you have WDIO config A with Chrome defined and WDIO config B with Firefox, Safari and Android defined, these are 4 capabilities that can run 12 sessions in parallel if each capability is suppose to run
It is always possible for users to run e.g. the config file with Chrome defined and a
This seems to me that this requires a special set up for your application and it might be a good idea to create a custom
Based on this config I am expecting that the testrunner would run I am not sure if I understood everything here but I hope this provides some information! |
Beta Was this translation helpful? Give feedback.
-
@christian-bromann
so the sequential script line has obvious one negative is this pattern makes the scripts section quite wordy and another is that I am limitting the usage of the suites capability. Thanks again for helping out |
Beta Was this translation helpful? Give feedback.
@christian-bromann
Thanks so much for your suggestion and sample idea. I have implemented something that should work for my requirements
npm-run-all
packageconst isSequential = process.env.SEQUENTIAL === 'true';
and also
maxInstances: isSequential ? 1 : 3,