TestProject Forum
Powered by leading experts in the test automation community

Using for/while loop

hello @ran.tzur
how to use for/while loop ?

Hello @ahmad,
Yes, you can use loops in the recorder, however these loops can only be used a set amount of times, you can find the option in the step’s advanced options under repeat:



This can be used to repeat multiple steps at once, if you choose to repeat a nested test.
However, keep in mind that these are basically for loops that repeat a constant amount of times, for more advanced logic such as while loops or loops that only repeat a dynamic amount of times, you will need to use code.

WHAT IF I WANT TO USE IF/ELSE CONDITION WITH LOOP (@ran.tzur

You can check this article for if-else condition in the recorder.
https://intercom.help/testprojectio/en/articles/3788681-if-else-logic