cancel
Showing results for 
Search instead for 
Did you mean: 

Executing TestComplete tests from command line

SOLVED
Highlighted
Contributor

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 - 

https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/...

 

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

 

TC_cmd.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Executing TestComplete tests from command line

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

View solution in original post

2 REPLIES 2
Highlighted
Community Hero

Re: Executing TestComplete tests from command line

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

View solution in original post

Highlighted
Contributor

Re: Executing TestComplete tests from command line

hi,

 

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!

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