This is a migrated thread and some comments may be shown as answers.

integration jenkins with test studio

3 Answers 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Zenta
Top achievements
Rank 1
Zenta asked on 13 Apr 2017, 02:57 PM
I am currently integrating test studio with jenkins and when doing the task, I am presented the following error when executing the windows command line for the execution of the list
 
Tiempo transcurrido 00:00:05.76
[Test_MSBUILD] $ cmd /c call C:\Windows\TEMP\jenkins6442795280623445813.bat
 
C:\Program Files\Jenkins\workspace\Test_MSBUILD>cd ..
 
C:\Program Files\Jenkins\workspace>cd ..
 
C:\Program Files\Jenkins>cd ..
 
C:\Program Files>cd ..
 
C:\>cd "C:\Program Files\Telerik\Test Studio\Bin\"
 
C:\Program Files\Telerik\Test Studio\Bin>ArtOfTest.Runner.exe test="C:\Users\QAZenta\Documents\Test Studio Projects\TestProject1\PruebaJenkins.tstest"
Overall Result: Fail
Result saved with path: 'C:\Users\QAZenta\Documents\Test Studio Projects\TestProject1\Results\PruebaJenkins 131365713286472151.aiiresult'.
 
C:\Program Files\Telerik\Test Studio\Bin>ArtOfTest.Runner.exe list="C:\Users\QAZenta\Documents\Test Studio Projects\TestProject1\TestLists\PruebaRemota.aiilist" out="C:\Users\QAZenta\PRUEBA1"
Executing test: 'PruebaJenkins'
Overall Result: Fail
Result saved with path: 'C:\Users\QAZenta\PRUEBA1\PruebaRemota 131365713406529018.aiiresult'.

I am currently integrating test studio with jenkins and when doing the task, I am presented the following error when executing the windows command line for the execution of the list
I am currently integrating test studio with jenkins and when doing the task, I am presented the following error when executing the windows command line for the execution of the list
I am currently integrating test studio with jenkins and when doing the task, I am presented the following error when executing the windows command line for the execution of the list

3 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 18 Apr 2017, 12:20 PM
Hello,

Thank you for contacting us and sharing further details on the issue you are facing. 

From the logs you shared it seems that the setup is successfully configured and the tests are executed but they have failed for some reason. Could you please provide the aiiresults file from the execution to inspect what might be causing the issue. 

Thanks in advance! 

Regards,
Elena Tsvetkova
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Zenta
Top achievements
Rank 1
answered on 18 Apr 2017, 02:59 PM
Hi, thanks for replying, I am currently testing with another project following the configuration provided in the telerik guide and I still have the same error, the execution fails when it goes to the execution of the list, I attach the whole project and the results of the execution Of the list, I will be attentive to your response.
 
Thank you.
 
Lanzada por el usuario Zenta group
Ejecutando.en el espacio de trabajo C:\Program Files (x86)\Jenkins\jobs\TEST1\workspace
Path To MSBuild.exe: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe
Executing the command cmd.exe /C " chcp 1252 && C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe "C:\Users\Damian\Documents\Visual Studio 2013\Projects\TestJenkins\TestJenkins.sln" " && exit %%ERRORLEVEL%% from C:\Program Files (x86)\Jenkins\jobs\TEST1\workspace
[workspace] $ cmd.exe /C " chcp 1252 && C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe "C:\Users\Damian\Documents\Visual Studio 2013\Projects\TestJenkins\TestJenkins.sln" " && exit %%ERRORLEVEL%%
P gina de c¢digos activa: 1252
Microsoft (R) Build Engine, versión 4.6.1586.0
[Microsoft .NET Framework, versión 4.0.30319.42000]
Copyright (C) Microsoft Corporation. Todos los derechos reservados.
 
Los proyectos de esta solución se van a compilar de uno en uno. Para habilitar la compilación en paralelo, agregue el modificador "/m".
Compilación iniciada a las 18/04/2017 11:45:41.
Proyecto "C:\Users\Damian\Documents\Visual Studio 2013\Projects\TestJenkins\TestJenkins.sln" en nodo 1 (destinos predeterminados).
ValidateSolutionConfiguration:
  Compilando la configuración de soluciones "Debug|Any CPU".
El proyecto "C:\Users\Damian\Documents\Visual Studio 2013\Projects\TestJenkins\TestJenkins.sln" (1) está compilando "C:\Users\Damian\Documents\Visual Studio 2013\Projects\TestJenkins\TestJenkins\TestJenkins.csproj" (2) en el nodo 1 (destinos predeterminados).
GenerateElementsTarget:
  InitFunction: Telerik.TestStudio.Tasks.GenerateElementsTask.Execute()
   Project: C:\Users\Damian\Documents\Visual Studio 2013\Projects\TestJenkins\TestJenkins\TestJenkins.csproj
   Hostless-mode detected
   Loading project into memory
   Generating Elements Tree
  EndFunction: Telerik.TestStudio.Tasks.GenerateElementsTask.Execute()
GenerateTargetFrameworkMonikerAttribute:
Se omitirá el destino "GenerateTargetFrameworkMonikerAttribute" porque todos los archivos de salida están actualizados respecto a los archivos de entrada.
CoreCompile:
  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /highentropyva+ /reference:C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\ArtOfTest.WebAii.Design\v4.0_2017.1.207.0__4fc62bbc3827ab1d\ArtOfTest.WebAii.Design.dll /reference:C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\ArtOfTest.WebAii\v4.0_2017.1.207.0__4fd5f65be123776c\ArtOfTest.WebAii.dll /reference:"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Windows.Forms.dll" /reference:C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Telerik.TestingFramework.Controls.KendoUI\v4.0_2017.1.207.0__528163f3e645de45\Telerik.TestingFramework.Controls.KendoUI.dll /reference:C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Telerik.WebAii.Controls.Html\v4.0_2017.1.207.0__528163f3e645de45\Telerik.WebAii.Controls.Html.dll /reference:C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Telerik.WebAii.Controls.Xaml\v4.0_2017.1.207.0__528163f3e645de45\Telerik.WebAii.Controls.Xaml.dll /reference:C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Telerik.WebAii.Controls.Xaml.Wpf\v4.0_2017.1.207.0__528163f3e645de45\Telerik.WebAii.Controls.Xaml.Wpf.dll /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\TestJenkins.dll /subsystemversion:6.00 /target:library /utf8output Properties\AssemblyInfo.cs Pages.g.cs "C:\WINDOWS\TEMP\.NETFramework,Version=v4.5.AssemblyAttributes.cs"
CopyFilesToOutputDirectory:
  Copiando el archivo de "obj\Debug\TestJenkins.dll" en "bin\Debug\TestJenkins.dll".
  TestJenkins -> C:\Users\Damian\Documents\Visual Studio 2013\Projects\TestJenkins\TestJenkins\bin\Debug\TestJenkins.dll
  Copiando el archivo de "obj\Debug\TestJenkins.pdb" en "bin\Debug\TestJenkins.pdb".
Compilación del proyecto terminada "C:\Users\Damian\Documents\Visual Studio 2013\Projects\TestJenkins\TestJenkins\TestJenkins.csproj" (destinos predeterminados).
Compilación del proyecto terminada "C:\Users\Damian\Documents\Visual Studio 2013\Projects\TestJenkins\TestJenkins.sln" (destinos predeterminados).
 
Compilación correcta.
    0 Advertencia(s)
    0 Errores
 
Tiempo transcurrido 00:00:04.77
[workspace] $ cmd /c call C:\WINDOWS\TEMP\hudson8321736657137148069.bat
 
C:\Program Files (x86)\Jenkins\jobs\TEST1\workspace>"C:\Program Files (x86)\Telerik\Test Studio\Bin\ArtOfTest.Runner.exe" -list="C:\Users\Damian\Documents\Visual Studio 2013\Projects\TestJenkins\TestJenkins\TestLists\Lista 1 .aiilist" -out="C:\Users\Damian\.jenkins\jobs\test\workspace\TEST15"
Executing test: 'WebTest1'
Overall Result: Fail
Result saved with path: 'C:\Users\Damian\.jenkins\jobs\test\workspace\TEST15\Lista 1  131370003539877757.aiiresult'.
 
C:\Program Files (x86)\Jenkins\jobs\TEST1\workspace>exit 1
Build step 'Ejecutar un comando de Windows' marked build as failure
Finished: FAILURE

Hi, thanks for replying, I am currently testing with another project following the configuration provided in the telerik guide and I still have the same error, the execution fails when it goes to the execution of the list, I attach the whole project and the results of the execution Of the list, I will be attentive to your response. Thank you.
0
Elena
Telerik team
answered on 21 Apr 2017, 11:49 AM
Hello,

Thanks for the additional details provided. 

The results file that you shared and its log brought the required information. The issue is that the Test Studio tests need to be able to interact with the desktop. Since the Windows native package for Jenkins CI runs as a Windows Service, Test Studio requires the Java Web Archive version to run properly and you would need to install it as listed in 1. of this article.

The exception listed in the execution log of the provided results file matches the one listed in the disclaimer at the end of the above article. Therefore I would like to know whether you are using Jenkins slaves in your build solution. Please refer to the details and proposed approaches to overwhelm the issue. 

I hope this will be useful to you. Please let me know in case of further queries! Thanks! 

Regards,
Elena Tsvetkova
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Zenta
Top achievements
Rank 1
Answers by
Elena
Telerik team
Zenta
Top achievements
Rank 1
Share this question
or