How to create a loop in key word test in tets complete 14 to repeat some steps?
Solved! Go to Solution.
From the help topic I posted above.
The operation has the following parameters:
Loop Variable
Start Value
End Value
Step
For loops for repeating through a list with a designated length.
https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/statements/for-loop.html
While loop for looping until a condition is no longer true.
https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/statements/while-loop.html
The UI screenshot needs a 100 records added . And the steps are in first screenshot. So if I need a loop to add a record in UI 100 times which loop do I use , while or for?
Since you have a fixed limit of 100, I'd use a for loop of 1 to 100 to put those steps in.
What needs to be added in 1. Loop Variable and in 4. Step?
From the help topic I posted above.
The operation has the following parameters:
Loop Variable
Start Value
End Value
Step
Thanks
Learnt how to doafor loop with start and end values.
Subject | Author | Latest Post |
---|---|---|