Not able to execute the jstestdriver from TeamCity.

Hi,


I am getting the below error while executing the below command in MSBuild by TeamCity.

Error : 

 C:\Program Files (x86)\TeamCity\buildAgent\work\6bdb674d7534af4f\BuildScripts\Package.proj(108,5): error MSB3073: The command ""C:\JavaRuntime\bin\java.exe" -jar "D:\JsTD\JsTestDriver-1.3.3d.jar" --port 9876 --browser "C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe" --config "C:\Program Files (x86)\TeamCity\buildAgent\work\6bdb674d7534af4f\MyAppIntegrationServices\js\jsTestDriver.conf" --testOutput "D:\Output" --tests all" exited with code 1.


Target definition in MSBuild: 

<Target Name="JSTestDriver">
    <Message Text="##teamcity[progressMessage 'Running JS Test Driver']" Importance="high" />
    <Message Text="-------- Running JS Test Driver --------" Importance="high" />

    <PropertyGroup>

      <JavaDir>"C:\JavaRuntime\bin\java.exe"</JavaDir>
      <JSTestDriverJar>&quot;D:\JsTD\JsTestDriver-1.3.3d.jar&quot;</JSTestDriverJar>
      <ConfigFile>&quot;$(MSBuildStartupDirectory)\MyAppIntegrationServices\js\jsTestDriver.conf&quot;</ConfigFile>
      <IEPath>&quot;C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe&quot;</IEPath>
      <OutputDir>&quot;D:\Output&quot;</OutputDir>
    </PropertyGroup>

    <Exec Command='$(JavaDir) -jar $(JSTestDriverJar) --port 9876 --browser $(IEPath) --config $(ConfigFile) --testOutput $(OutputDir) --tests all'/>
   

  </Target>




Can you please help me out? 

Thanks

Please sign in to leave a comment.