Fellow Selenium Users:

I have found the following user extension to be very helpful when initially
writing new tests. It is an implementation of a breakpoint for the test
runner. The test will run until it encounters the break, then it will switch
to step mode so that the tester/programmer may observe the state of the AUT
or step through remaining tests to observe the results.

/**
 * This switches the execution mode to step
 */
Selenium.prototype.doBreakpoint = function() {
   document.forms['controlPanel'].modeStep.click(); 
}

Once this has been added to user-extensions.js, use it by inserting the
following test row where you would like the test runner to switch to step
mode.

<!-- Switch to manual execution of commands -->
    <tr>
        <td>breakpoint</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>

Many thanks to the Selenium team for all their effort.
Bailey Moore



NOTE: The Texas Department of Health  (TDH) has merged with other agencies
and is now part of the new Department of State Health Services (DSHS),
resulting in the following e-mail address format change for all employees:
[EMAIL PROTECTED] 
_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to