cancel
Showing results for 
Search instead for 
Did you mean: 

Loop entire Scenario

SOLVED
Highlighted
Occasional Contributor

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Loop entire Scenario

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


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

4 REPLIES 4
Highlighted
Community Hero

Re: Loop entire Scenario

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


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Highlighted
Occasional Contributor

Re: Loop entire Scenario

@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 ...?

Highlighted
Community Hero

Re: Loop entire Scenario

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


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

Highlighted
Community Manager

Re: Loop entire Scenario

Thank you for helping tristaanogre!

 

@jamadarshivani does this answer your question? 


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors