Declined
Last Updated: 26 Sep 2024 12:52 by Lawrence
Lawrence
Created on: 19 Sep 2024 15:14
Type: Feature Request
0
Have the ability to set a finite number of loops or break clause in a While...Loop
While...Loops are very useful but, in some circumstances, result in an infinite loop. It would be useful to have a property to set which would allow the TS user to put a limit on the number of loops before failing/moving on.
2 comments
Lawrence
Posted on: 26 Sep 2024 12:52

I'm very disappointed with this being declined as having break clauses in While...loops is a fairly standard coding practice. Changing the While...loop logic step to (e.g.) allow a maximum number of iterations does not seem to me to be a particularly difficult thing to implement.

Whilst I am very glad coded steps exist for complicated testing (e.g. iterating through visible rows in a grid to gather cell values), requiring a coded step to cover off something as simple as a break clause in a while...loop is a failure of the UI, hence the feature request.

ADMIN
Elena
Posted on: 26 Sep 2024 08:01

Hi Lawrence,

The built-in While..Loop always relies on a verification. Therefore choosing the appropriate verification is essential to avoid infinite loops. 

Any further customization of the While..Loop cycle can be accomplished in a coded step using the C# While..Loop in coded solution.

Regards,
Elena
Progress Telerik

Virtual Classroom is the free self-paced technical training portal that gets you up to speed with Telerik and Kendo UI products including Telerik Test Studio! Check it out at https://learn.telerik.com/.