slecault
10 years agoContributor
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...
Hi Slecault,
Refer to the following How To articles describing how to:
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