How to loop tests in Selenium IDE?

后端 未结 8 1820
生来不讨喜
生来不讨喜 2020-12-13 23:31

I\'ve been testing in Selenium IDE. It\'s pretty easy to use, and I have created some test cases with it. I\'ve been searching Google, trying to find a way to repeat my test

相关标签:
8条回答
  • 2020-12-14 00:29

    Your test suite file is just an HTML file, so just do the following:

    <tr><td><a href="testCase1.html">testCase1</a></td></tr>
    <tr><td><a href="sameStep.html">sameStep</a></td></tr>
    <tr><td><a href="testCase2.html">testCase1</a></td></tr>
    <tr><td><a href="sameStep.html">sameStep</a></td></tr>

    0 讨论(0)
  • 2020-12-14 00:30

    No need to install/download anything, the built-in times command does this very easily:

    1. Insert a new line at the beginning of your script, select times as its Command and 10 (for instance) as its Target.
    2. Scroll down to the bottom of your script, and add a new line with end as its command
    3. Press the "Run" button as usual.
    4. Your commands are executed 10 times.

    In this example I click on a button 2000 times:

    To loop forever, just replace 10 with an extremely large number, that will take centuries to execute, which probably is as good as forever if you are running Selenium IDE.

    0 讨论(0)
提交回复
热议问题