We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More

Forum Discussion

jamadarshivani's avatar
jamadarshivani
Occasional Contributor
6 years ago
Solved

Loop entire Scenario

Hello,

 

Can I put a entire scenario in a loop to run it multiple times? Or How can I run a script multiple times?

  • tristaanogre's avatar
    tristaanogre
    6 years ago

    Look into Data Driven Testing in the documentation.  You'll be probably using a DDT.ExcelDriver to build your loop and looping with a while loop until EOF.

    See https://support.smartbear.com/testcomplete/docs/testing-with/data-driven/drivers.html

4 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    For loop, while loop, repeat until... depending upon your code language, you can do whatever you want to create loops.

    • jamadarshivani's avatar
      jamadarshivani
      Occasional Contributor

      tristaanogre 

      I am accessing data from a excel sheet and run the Feature file till all the rows in the sheet have been covered.

       

      In my project I have written several Feature files and scripts some of the steps are also shared. So I have to loop a Feature File multiple times of which steps are present in different scripts in the same project.

       

      How to call the Feature File in any loop like For, while ...?

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        Look into Data Driven Testing in the documentation.  You'll be probably using a DDT.ExcelDriver to build your loop and looping with a while loop until EOF.

        See https://support.smartbear.com/testcomplete/docs/testing-with/data-driven/drivers.html