Lee_M
4 years agoCommunity Hero
Status:
New Idea
Keyword loop 'continue' operation - skip current loop iteration and continue loop
When creating loops in KW tests, it would be nice if we could have an easy operation to skip one loop iteration rather then 2 operations - making it easier for pure KW users
An example could be that need to loop through every onscreen item and count them unless they equal the text "do not count"
Javascript:
var count =0;
loop (i=1; i==10; i++) {
if (i == "do not count") {
i++;
continue;
}
count++;
}
current kw operations needed (2)
original question thread
https://community.smartbear.com/t5/TestComplete-Functional-Web/breaking-out-of-loop-iteration/m-p/215734/thread-id/37914