Ask a Question

Executing TestComplete tests from command line


Executing TestComplete tests from command line

I'm trying to execute testcomplete tests from the command line and i'm referring to this page for the commands -


It seems to be simple, but  i'm unable to make it work.

In the cmd prompt, i changed the directory to the path where my testcomplete.exe file is and executing the below command


Path> TestComplete.exe <Path of the .pjs> file /run /project:<name of the project>

But after executing the above command, it launches testcomplete and shows the the below message



Esteemed Contributor

Are you running this from the Windows command prompt or from powershell or from some other application?  What I've seen in the past is that, when running from some other method other than Windows command prompt, it ends up confusing the exe with trying to open a PJS file.

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



yes you are right, though i mentioned command prompt i was actually using power shell and hence the confusion. Worked perfectly fine after switching to windows cmd. Thanks a lot!

Showing results for 
Search instead for 
Did you mean: