TestExecute - commandLine - Group of tests
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
TestExecute - commandLine - Group of tests
Is there a way to start a group of tests with TestExecute via command line (DOS)?
see image, I would like to TestExecute only the circled keyword tests.
I have tried many attempts without success (reading both documentation and some threads)
TestExecute.exe "c:\TC\web\WebSuite\WebSuite.pjs" /r /p:TestWeb /t:"Group1|Start|Renouvellement|Test1" /exit --------------------------- TestExecute --------------------------- Invalid command line. The test 'Group1|Start|Renouvellement|Test1' was not found in the project 'TestWeb'. --------------------------- Help OK --------------------------- TestExecute.exe "c:\TC\web\WebSuite\WebSuite.pjs" /r /p:TestWeb /t:"Test1" /exit --------------------------- TestExecute --------------------------- Invalid command line. The test 'Test1' was not found in the project 'TestWeb'. --------------------------- Help OK --------------------------- TestExecute.exe "c:\TC\web\WebSuite\WebSuite.pjs" /r /p:TestWeb /t:"ProjectTestItem1" /exit --------------------------- TestExecute --------------------------- Invalid command line. The test 'ProjectTestItem1' was not found in the project 'TestWeb'. --------------------------- Help OK --------------------------- TestExecute.exe "c:\TC\web\WebSuite\WebSuite.pjs" /r /p:TestWeb /t:"Group1|Start|Renouvellement|ProjectTestItem1" /exit --------------------------- TestExecute --------------------------- Invalid command line. The test 'Group1|Start|Renouvellement|ProjectTestItem1' was not found in the project 'TestWeb'. --------------------------- Help OK --------------------------- TestExecute.exe "c:\TC\web\WebSuite\WebSuite.pjs" /r /t:"Group1|Start|Renouvellement|ProjectTestItem1" /exit --- Runs everything... TestExecute.exe "C:\TC\Web\WebSuite\TestWeb\TestWeb.mds" /r /t:"ProjectTestItem1" /exit --- Runs everything... TestExecute.exe "C:\TC\Web\WebSuite\TestWeb\TestWeb.mds" /r /t:"KeywordTests - Test1" /exit --- Runs everything... TestExecute.exe "C:\TC\Web\WebSuite\TestWeb\TestWeb.mds" /r /t:"TestWeb|Group1|Start|ProjectTestItem1" /exit --- Runs everything... TestExecute.exe "C:\TC\Web\WebSuite\TestWeb\TestWeb.mds" /r /t:"KeywordTests|Test1" /exit --- Runs everything...
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Slecault,
Refer to the following How To articles describing how to:
- Run the specified group of test items via TestComplete's command line
- Run an individual test item via command line
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My understanding:
I create a group containing the unit with the code RunTestItemGroup. The extension of my unit is .svb!
When I will start from command line the RunTestItemGroup, it will start MyTestGroup from MyProject.
Are there other necessary switches like /run?,
Also I have change TestComplete.9 to .11 in the code
TestComplete.exe "c:\TC\RunTestItemGroup\RunTestItemGroup\Script\Unit1.svb" "c:\TC\Web\WebSuite\WebSuite.pjs" /p:TestWeb /testitemgroup:Renouv1Rx
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you tried the "/pi:"-command for project-items?
TestExecute.exe "C:\TC\Web\WebSuite\TestWeb\TestWeb.mds" /r /pi:"Renouvellment" /exit
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The /pi is for a project item, according to online doc, the project item is an item like "Scripts, keyword tests, network suite...". What I need to start is a "test item"
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no option to start Test Items. Would suggest to a, ask the support and b, make a feature request (a will refer to b if there is no solution).
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The article reffered to by Tanya was fine but I was not familiar on running vbs from windows/command line.
After some more hints from the support team on how to make it work using vbscript:
The vbs code needs to be inside a standalone file with the extension .vbs
This .vbs file can be anywhere (outside the projectsuite), it will invoke TestComplete/TestExecute
Thanks
In my case, the final line is:
"C:\Folder\RunTestItemGroup.vbs" "c:\TC\Web\WebSuite\WebSuite.pjs" /p:TestWeb /testitemgroup:Renouv1Rx
