cancel
Showing results for 
Search instead for 
Did you mean: 

How to run Project multiple times in a project suite

asmatullah
Contributor

How to run Project multiple times in a project suite

How to run Project multiple times in a project suite . I want to run one project multiple times in a project suite . Can it be done through scripting .
4 REPLIES 4
tristaanogre
Community Hero

RE: How to run Project multiple times in a project suite

Within a particular project suite, each project is only executed once when you execute the suite.  So, the initial answer to your question is no.



However, each project can have test items that can be run multiple times.  You can have two test items in a project that would execute the same KeywordTest or Script routine but with different parameters.  By manipulating Test items within a project you could, effectively, execute the entirety of a project twice.  Now, you can't necessarily "mix it up" where you would have project 1 followed by project 2 followed by project 1 again.



Finally, you can use command line syntax to execute individual projects in a particular order.  What you could do is create a batch file consisting of several command lines, each one would be the execution command for a project.  You could, then, execute individual projects in whichever order you need to and even execute them as many times as you want to.



Hope this helps.

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
asmatullah
Contributor

RE: How to run Project multiple times in a project suite

Hi Robert ,



Thanks for the solutions , 



I want to know how to give parameter to TestComplete in batch file .

Is it possible to do so ? 



I want to test application in two language .

So I have parameterized the test items and scripts .

Now i need to call the project and give parameter to test it in different language .

Any thought for this scenario is welcome .

Thanks in Advance ! 
tristaanogre
Community Hero

RE: How to run Project multiple times in a project suite

You can use the ParamStr method to parse out the commandline passed to TestComplete.   Some example code of how to do this is found at 



http://support.smartbear.com/viewarticle/9021/



This assumes that you are executing TestComplete at a command line or within a batch file. The specifics of how to do that can be found at



http://support.smartbear.com/viewarticle/55587/






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
asmatullah
Contributor

RE: How to run Project multiple times in a project suite

Hi Robert ,



Thanks for the solution .




New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors