Forum Discussion

m_essaid's avatar
m_essaid
Valued Contributor
8 years ago

specifying project in a TestExecute run

Hi,   If I read correctly there is no way to specify the project while running a test with TestExecute ?   TestExecute can only run a whole Project Suite n which project and items are checked or ...
  • tristaanogre's avatar
    tristaanogre
    8 years ago

    I'm assuming you've read this article?

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

     

    Because, all you need to do is pass in the project suite as the file name and then the project name.  That is, so long as the project is part of the project suite.  Something like

     

    "C:\Program Files\SmartBear\TestComplete 12\Bin\TestComplete.exe" "C:\My Projects\MySuite.pjs" /r /p:MyProj /e /SilentMode

    The above example is taken straight from the help topic.  This will load the project suite and then execute the project indicated.

    Now, just one note... the project must be part of the project suite.  If you're trying to run a project and have it report under a project suite to which it is not attached, this will not work.  But the above code line should do what you're asking given any project within a given project suite.