Forum Discussion

RajTC's avatar
RajTC
Occasional Contributor
8 years ago
Solved

Getting error "Unable to determine the installation folder of TestComplete"

Getting error " C:\TCLog\TCBuild.MSBuild(13,1): error : Unable to determine the installation folder of TestComplete (TestExecute)." when trying to execute the MSBuild project file.

 

MSBuild code:

 

<!-- File: MSBUILD.proj -->
<!-- Root element of the MSBuild project -->
<Project defaulttargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!-- Declares the task type, ExecuteSolution, that will be used to run TestComplete projects (TC12 is a namespace). -->
<UsingTask TaskName="TC12.ExecuteSolution" AssemblyName= "MSBuildTC12Task, Version=1.1.0.0,
Culture=neutral, PublicKeyToken=e33f56e68d0f845e"/>
<!-- Target -->
<Target Name="Build">

<!-- Executes the task. Note that the tag name, ExecuteSolution, coincides with the registered task name. -->
<ExecuteSolution
SolutionFile="C:\Users\rkusuma\Documents\TestComplete 12 Projects\TestProject1027\TestProject1027.pjs"
StopIfFail="true"
AdditionalOptions="/project:TestProject1027"
GUIInteractive="true"
LogFile="C:\Users\rkusuma\Documents\TestComplete 12 Projects\TestProject1027\MyResults.mht"
/>
</Target>
</Project>

 

 

 

5 Replies

  • I can't say I know MSBuild (and the build engineer who sits opposite me is not in today to ask), so I'm thinking out loud here ...

     

    I'm wondering if it's anything to do with the project being in your Users/<YourName>/Documents folder?

     

    Can MSBuild see/access this? I'm not sure if, when it's running, you are regarded as the active user session?

     

    As I say, just thinking/guessing out loud. I wouldn't even call it an educated guess!

    • tristaanogre's avatar
      tristaanogre
      Esteemed Contributor

      I think you're on to something there, Colin_McCrae.  It's a context thing. If, in a File Explorer window, I double click on a PJS or MDS file, my Windows environment knows that those extensions, when I double click, will automatically run TestComplete and open that file.

       

      I wonder if MSBuild needs something more explicit than just "Run the Project".  Notice the "Executable" field on the screenshot given is blank... that it's trying to run the PJS project but there's no executable mapped in MSBuild to do so.

      Something else, based upon the documentation... the MSBuild project has GUIInterative flag set to "True"... this means that it will execute the tests using TestComplete, not TestExecute.  So, it's possible that the machine in question has TestExecute installed... but not TestComplete... in which case, that GUIInteractive flag needs to be set to false. (see https://support.smartbear.com/testcomplete/docs/working-with/integration/with-ms-vs/msbuild.html) Give that a try, RajTC... again, like Colin_McCrae, I'm no MSBuild expert but that seems to be someplace to start.

      • RajTC's avatar
        RajTC
        Occasional Contributor

        Thank you Colin_McCrae & tristaanogre

         

        Problem got resolved after re-installing the Testcomplete.

         

        But now I am getting a new error "C:\TCLog\TCBuild.proj(12,1): error : The requested operation requires elevation"

         

        Please see below screenshot.