Different number of loops for each file

Hi, I have a folder on Ui.Vision with different macros inside.
If I set 10 loops on the folder, it will do 10 loops for every single macro.
But if I wanted to do for example:

  • Macro1 10loop
  • Macro2 5loop
  • Macro3 7loop

Thanks in advance to anyone who can help me

Instead of using the “Loop” button, add the TIMES command to your macro. This way you can loop directly inside the macro.

Times - Selenium IDE command

Ok, but … let’s say I have the macros with the following loops A (10), B (5) and C (7)
The macro should do: A, B, C and then return to A up to the set loop number.
It must not do macro A 10 times, then macro B 5 times and finally macro C 7 times.

Does your method work for my need?

You could write a control macro D that calls macros A, B, & C in any order and number of times you want. e.g. Macro D call A,B,C,A,B,C,A,B,CA,B,C,A,B,C,A,C,A,C,A,A,A

This method gives you complete flexibility allowing you to skip B every other time and C every third time. e.g. Macro D call A,B,C,A,C,A,B,A,C,A,B,C,A,A,B,C,A,C,A,B,A,C
for 10 A’s, 5 B’s and 7C’s roughly evenly distributed.