Forum Discussion

rinat's avatar
rinat
Occasional Contributor
15 years ago

Unable to perform loop

Hello,



I create a keyword test that include number of steps.

I try to perform the test in loop but I don't succeed.

How can I define the test to run in loop?



Rinat

6 Replies

  • Hi,



    Add a loop operation to your test and make operations which should run in loop its children.



    See the "Organizing Loops" help topic.
  • rinat's avatar
    rinat
    Occasional Contributor
    Hi,

    I tryed to perform the "for loop" but it doesn't work.

    I want to open and close my application 100 times.

    When I use "run test" option the test runs in loop, but the problem is that I can't define the number of times I want the test will run.

    I don't understant why it doesn't work.
  • Hi,



    Have you followed the instructions listed in the "Organizing Loops" help topic? To make your loop work, you must specify operation parameters (see the "For Loop Operation" help topic) and add operations which you want to run in a loop as children of the loop operation.
  • jonas644's avatar
    jonas644
    Occasional Contributor
    Hello Rinat,



    I dunno what language you are using but have u tried with the following?



    var x = 0;

    do

    {

    TestedApps.....

    }

    while (x < 100)
  • I think she is using KDT so that piece of code won't help her.
  • rinat's avatar
    rinat
    Occasional Contributor
    Hi,

    Yes, I use the KDT to run the test.

    To the tests set I enter the "For loop" operation but it doesn't work.

    How do I defined loop in KDT?