cancel
Showing results for 
Search instead for 
Did you mean: 

Test Complete Command Line: Calling tests within a folder or parent test item.

SOLVED
Occasional Contributor

Test Complete Command Line: Calling tests within a folder or parent test item.

Hello ,

 

I am calling Test Complete command line from the python subprocess libary. One of the thing I want to do in this script is sometimes call the parent test "SmokeTest" and sometimes call a sub test "BasicSearchTest". The only way I have gotten it to work thus far is to duplicate all my tests and leave on the same level as SmokeTest test item. Is there really no way to call a sub test? If so are there any work arounds that are less messy?  

1 ACCEPTED SOLUTION

Accepted Solutions
Community Leader

Re: Test Complete Command Line: Calling tests within a folder or parent test item.

Next version of TestComplete (Next month) will have a new feature called Tags that will allow you to pass a /t for tags on the command line to group some functionality to execute.

 

Cheers

Lino

6 REPLIES 6
Occasional Contributor

Re: Test Complete Command Line: Calling tests within a folder or parent test item.

/project:project_name  /unit:unit_name  /routine:routine_name

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

 

Update: This may work for me. This calls the function with a specific "unit" or .py file. I would still want there to be a way to calll subitems but it seems that there is no way. Also passing in multiple test names commandline would be great. Are these things truly not in Test Complete?

Community Leader

Re: Test Complete Command Line: Calling tests within a folder or parent test item.

Take a look at the answers by @tristaanogre and @AlexKaras in the link below.

https://community.smartbear.com/t5/TestComplete-General-Discussions/TextExecute-command-line-to-only...

 

One feature I would love for TestComplete to implement in the future is to make TestItems GROUPS available through the commandLine.  Currently, you can group test items in the UI and give them a name but you can not execute just that Group from the CommandLine.

 

I wish to be able to say: 

TestComplete.exe "C:\Work\My Projects\MySuite.pjs" /r /p:MyProj /g:MyGroup

 

Where MyGroup is the group name of my list of functions I woul dlike to run.

 

Cheers

Lino

Occasional Contributor

Re: Test Complete Command Line: Calling tests within a folder or parent test item.

Yeah seems like running it with the /pSmiley Tongueroject /u:unit /rt:function is the best way as mentioned also.  Unforchulately not all test items are named the same as the function they call which isnt a super big problem but another thing to refactor. Better than having multiple copies of the same test. Is there any talk of adding these feature to TestComplete or a place we can submit suggested features?

Community Leader

Re: Test Complete Command Line: Calling tests within a folder or parent test item.

I submitted the request to TestComplete Product Manager on your behalf.  I will let you know when I hear back

Cheers

Lino

Community Hero

Re: Test Complete Command Line: Calling tests within a folder or parent test item.

Hi,

 

> a place we can submit suggested features?

https://community.smartbear.com/t5/TestComplete-Feature-Requests/idb-p/TestXCompleteFeatureRequests

Smiley Happy

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Community Leader

Re: Test Complete Command Line: Calling tests within a folder or parent test item.

Next version of TestComplete (Next month) will have a new feature called Tags that will allow you to pass a /t for tags on the command line to group some functionality to execute.

 

Cheers

Lino

New Here?
Join us and watch the welcome video:
Watch the New Interview
APITestingMistake#2