Ask a Question

How to run multi test (in Execution Plan) by commandline of TestExecution

tuanvinh1008
Contributor

How to run multi test (in Execution Plan) by commandline of TestExecution

Hi all,

I have some test items in the Execution Plan. All off them are enable, and my server using the TestExecute to run the project. Do we have any way that may run only one of or multiple or all. 

I tried with this command but it only run the first one (api)

$TestExecute.exe "D:\working\qasvn\Myproject.pjs" /r /p:projectname /test:api, /test:uis

 

Thanks,

 

3 REPLIES 3
AlexKaras
Community Hero

Hi,

 

Can you provide a screenshot of your Execution Plan?

In general, to execute two or more test items that are on the same level of Execution Plan (or belong to different branches of Execution Plan) one must execute separate command lines.

As a possible option you may consider to apply tags to your tests and execute them with the help of proper command line.

See https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/... and https://support.smartbear.com/testcomplete/docs/scripting/tags.html for more details.

 

Regards,
  /Alex [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
================================

Hi Alex,

here is my test items in Execution Plan

Hi,

 

a) All Test Items are disabled, so I am not sure that they can be executed from command line;

b) If you enable them then, as all they are on the same level, you will need to either use three command lines (one command line per Test Item) or start execution of the whole test project (which will require one command line).

 

As per https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/..., format like /test:api,uis or /test:api, /test:uis is not supported.

 

Regards,
  /Alex [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
================================
cancel
Showing results for 
Search instead for 
Did you mean: