I'd like to be able to repeat a test as a test runner.  I tried to write a user-extension function to repeat a selectedTest, however it seems that the tests are threaded.  I have little _javascript_ background so I'd like to ask for any suggestions from the developers how to solve this problem.  Here is what I came up with.

function repeatSingleTest() {

            // Get the value of the repeat text box
            repeat = document.forms['controlPanel'].repeat.value;

            resetMetrics();
            suiteFailed = false;

            // Do it over and over
            for (var i = 0; i < repeat; i++) {

                        alert(i);

                        currentTestRow = 0;

                        runAllTests = true;

                        runSingleTest();

            }

}

What happens is this:

I enter the number 3 into the text box and execute this function.

I get the alert box 1, the tests start running and I get the alert box 2 and 3 while the tests are still running.  I would like to be able to wait until the first test is done before I continue through the loop.

--
Jamo Smith
_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to