How do I continuously run a single test case using Selenium?

13,462

Solution 1

You can use Selenium Remote Control to launch the running of your tests from the command line.

  1. Save your test from the IDE in a Test Suite

  2. Run your test suite from the command-line with the following syntax.

  3. Use your favorite scripting language to script the re-running of your test over and over

An alternate approach would be to save your test from the IDE into a Test Suite, and then open the suite in a text editor and copy/paste the same tests hundreds/thousands of times. I've never tried it, but assuming the IDE doesn't choke on large Suite files, this would let you run the test X number of times again and again.

Solution 2

Try the flowControl Selenium extension.

Share:
13,462
braveterry
Author by

braveterry

Updated on June 04, 2022

Comments

  • braveterry
    braveterry almost 2 years

    I have recorded a very simple test case Using the Selenium IDE integrated with Firefox. I want the test case to run continuously over a period of time. How can I make the test run continuously?

  • Chris Noe
    Chris Noe over 11 years
    This assumes that you have the Selblocks extension installed: addons.mozilla.org/en-US/firefox/addon/selenium-ide-sel-bloc‌​ks