Ask a Question

Re: Running Tests via Command Line

chaneyc
Occasional Contributor

Re: Running Tests via Command Line

Hi all,

 

Have some questions around Command Line testing. I do have it working in certain cases. I dont want to run all Execution Plans but only certain ones and then Save the Log file.

 

At the moment it is failing because it wants to run all Execution Plans. I want to save a log for say .pjs and not for .mds.

 

The one you have is "C:\My Projects\MyProj.mds" /r /sl:"C:\logs\new-log.txt", I would like it for "C:\My Projects\MyProj.pjs" /r /sl:"C:\logs\new-log.txt" if possible.

 

Thanks

 

Colin

3 REPLIES 3
Marsha_R
Community Hero

Looking at the options for /run here

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

 

Do any of those six options work for you?

 

 


Marsha_R
[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.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
chaneyc
Occasional Contributor

I have used the following:

 

TestComplete.exe "C:\Work\My Projects\MySuite.pjs" /r /e

TestComplete.exe "C:\Work\My Projects\MySuite.pjs" /r /p:MyProj /t:"@Tag1"

 

This is the one I'm trying to use now: TestComplete.exe "C:\My Projects\MyProj.mds" /r /sl:"C:\logs\new-log.txt". I would like it to execute on the ones I selected in my Execution Plan but it prompts me to run other one too that is not selected.

rraghvani
Super Contributor

Here are some examples,

 

  • Runs all enabled projects in project suite:

TestComplete "C:\Project Flow\Project Flow.pjs" /run /exit /DoNotShowLog /ExportLog:"C:\Temp\Project Flow\index.html"

 

  • Runs specific project in project suit:

TestComplete "C:\Project Flow\Project Flow.pjs" /run /exit /DoNotShowLog /ExportLog:"C:\Temp\Project Flow\index.html" /project:TestProject2

 

  • Run specific unit and routine:

TestComplete "C:\Project Flow\Project Flow.pjs" /run /exit /DoNotShowLog /ExportLog:"C:\Temp\Project Flow\index.html" /project:TestProject2 /unit:Unit1 /routine:Test3

 

cancel
Showing results for 
Search instead for 
Did you mean: