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>
Hi,
Most probably, this means that your tested application requires administrative permissions or starts with permissions that are higher than those that TestComplete has when it is started by MSBuild. https://support.smartbear.com/viewarticle/78195/?FullScreen=1&ShowTree=0&aliaspath=/viewarticle might explain this better. It is from the documentation of another product by SmartBear, but I think that the reason is the same.
Also https://support.smartbear.com/testcomplete/docs/working-with/integration/with-ms-vs/index.html and https://support.smartbear.com/testcomplete/docs/working-with/automating/via-com/configuring-manifests.html might help as well...