Showing results for 
Search instead for 
Did you mean: 

TextExecute- command line to only execute a Group


TextExecute- command line to only execute a Group

I need help writing a TestExecute command line to only execute a Group and 2 test items- all my attempts have failed.

I've attached my project and identified which items/group I want to execute via command line.




Community Hero

Re: TextExecute- command line to only execute a Group

Unfortunately, as far as I can tell, you cannot execute Test Items (what you have indicated) from the command line.  You can, however, execute a routine/function in a script code unit from the commandline.  From the help:


TestComplete Command Line

  • /project:project_name  /unit:unit_name  /routine:routine_name

    TestComplete will run the specified script routine. Project_name specifies the name of the project to which the routine belongs. Unit_name specifies the name of the unit holding the desired routine. Routine_name is the name of the script routine to be called. The routine to be called must not use parameters or return any values. Project_name and unit_name should be the same as the project and unit names shown in the Project Explorer.




So, what I would recommend is that you create just a simple script routine in some unit of code somewhere that all it does is execute those pieces you want to run from command line.  You don't need to link that routine to a test item so it doesn't need to clutter up your main test.  You can then use the syntax I've pasted above to run that routine from the commandline and get your test executed.

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
Community Hero

Re: TextExecute- command line to only execute a Group



Another option to the one mentioned by Robert is to follow the way described here:

  /Alex [Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
New Here?
Join us and watch the welcome video:
Top Kudoed Authors