cancel
Showing results for 
Search instead for 
Did you mean: 

how to execution scripts in test complete from command line?

SOLVED
Highlighted
New Contributor

how to execution scripts in test complete from command line?

Hi Team,

 

I have scripts in Test complete, i need to execute those scripts either indivial scripts or all scripts under a project from command line?

 

Can some one help me how to do this?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Leader

Re: how to execution scripts in test complete from command line?

Hi,

 

Yea You can run TestComplete or TestExecute from cmd with this command:

 

"C:\Program Files (x86)\SmartBear\TestComplete 14\Bin\TestComplete.exe" "C:\work\testComplete\YOUR_PROJECT_NAME.pjs" /r /p:PROJECT_NAME /PARAM1:PARAM1VALUE /PARAM2:PARAM2VALUE /PARAM3:PARAM3VALUE

If you need to run a specific script from TestItems use:

 

/test:FOLDER_1|FOLDER_2|YOUR_ITEM_NAME

View solution in original post

2 REPLIES 2
Community Leader

Re: how to execution scripts in test complete from command line?

Hi,

 

Yea You can run TestComplete or TestExecute from cmd with this command:

 

"C:\Program Files (x86)\SmartBear\TestComplete 14\Bin\TestComplete.exe" "C:\work\testComplete\YOUR_PROJECT_NAME.pjs" /r /p:PROJECT_NAME /PARAM1:PARAM1VALUE /PARAM2:PARAM2VALUE /PARAM3:PARAM3VALUE

If you need to run a specific script from TestItems use:

 

/test:FOLDER_1|FOLDER_2|YOUR_ITEM_NAME

View solution in original post

Community Hero

Re: how to execution scripts in test complete from command line?

To add to @Wamboo , documentation for all available commandline codes can be found at https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/... with samples.


Robert Martin
[Community Expert Group]
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