Tosca Tutorial | Lesson 33 - Use Do & While Loops | Building Test Cases | Control Flows |

preview_player
Показать описание
While Loop:
- If the condition is fulfilled, TestSteps within the Loop object are run repeatedly until the condition is no longer fulfilled
- It contains the property MaximumRepititions in order to avoid infinite loops and the default value is set to 30

Do Loop:
- TestSteps within the Loop object are run repeatedly until the condition is no longer fulfilled
- It contains the property MaximumRepititions in order to avoid infinite loops and the default value is set to 30

-----------------------------------------------------------------------------------------------------------------------

Tosca Online Training:

Technical Support on Tricentis Tosca:

Join our Telegram Group for Tosca:

Follow us on LinkedIn:

Talk to us directly:

-------------------------------------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

Hi QASCRIPT,
Thanks for the demo. It's simple but it explained all necessary info.
I want to use this with my external test data but I don't have the standard Excel module nor the TestSheets module.
Do you have an idea how to access external data (say csv or excel file) with the above module and use the loop functions?
Appreciate your help.

ydlazkov
Автор

Thanks for the explained all the necessary info.

abhijeetm
Автор

How can I create an array in tosca and run a loop to store values in the array?

carlossantamaria
Автор

Sir please tell me difference between both do and while loop?

Kavyatalk
Автор

I Am trying to use a Do-While loop in my script for API Test Case, There are couple of buffers and verify parameters in the response and i am using a Verify response in the condition part as != 200 OK, but when i am running this test case in scratch book in case of Response != 200 OK, the loop is not running because in case of failure the verify statement also gets failed. Do you have any solution for this issue?

kshitizgupta
Автор

You said how these 2 loops works. But you didn't say how it will work in real time scenario..

shanthakumar-dz