Ask a Question

Multiple project items on a command line?


Multiple project items on a command line?

We are generating command procedure files dynamically and running test sets via the TestComplete command line interface.


Is it possible to execute a sequential set of arbitrary project items within a single command line?

Esteemed Contributor

Not multiple items, no... It's one project item per line.  This is where a framework structure that executes tests based upon data rather than on internal test complete structures seems to work best... to run a particular set of tests, you just need to configure the data.  I've done it with Excel files, CSV files, and SQL data.  You might want to investigate engineering this kind of structure to indicate what you want to run.

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

If I'm not mistaken since you can specify a Test Item to run, you could put them all in a group, otherwise it would have to be each line for each test.


What I have done actually is to just run a project in it's entirety, but have our test plan create by a jira plugin called TestFlo, we have identifiers that link the test cases to automation assets and we pull all expected tests to be ran via the jira REST API. Then when each test item starts, we check if it's include int he test plan and run it, if it's not log a message and skip it. 


Much like @tristaanogre relying on data to drive which tests you want to run. 


Click the Accept as Solution button if my answer has helped
Champion Level 2



One more possible approach is to enhance the ATR.js script ( so that it parses the delimited list of test items passed in the command line and execute them in the loop..

The sample command-line might look like this (test items are ~-delimited):

C:\ATR.js TestComplete "C:\Projects\TestProjectTestForRunFromCommandLine.pjs" /p:TestProjectTestForRunFromCommandLine /t:"ProjectTestItem1~ProjectTestItem2~ProjectTestItem3"

  /Alex [Community Champion]
[Community Champions] 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 Champions]
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 Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.

All good thoughts.  I will leave this open a little while longer to see if there are any more ideas.  Thanks, again, to everyone.

Showing results for 
Search instead for 
Did you mean: