Hi Alexei,
I'm using the option "Execute Windows batch command" in the build step from Jenkins and it looks like this:
@ECHO OFF
CLS
tasklist /fi "imagename eq TestExecute.exe" |find ":" > nul
if errorlevel 1 ( taskkill /f /im TestExecute.exe )
start TestExecute.exe "C:\Jenkins\workspace\MY_PROJECT\IProject.pjs" /p:"Poject_Name" /r /e
@ECHO OFF
CLS
I've included /wait like this:
@ECHO OFF
CLS
tasklist /fi "imagename eq TestExecute.exe" |find ":" > nul
if errorlevel 1 ( taskkill /f /im TestExecute.exe )
start /wait TestExecute.exe "C:\Jenkins\workspace\MY_PROJECT\IProject.pjs" /p:"Poject_Name" /r /e
@ECHO OFF
CLS
But this isn't working as I would like:
The Jenkins "bullet" is flashing but it keeps flashing even if the test run is completed and the .MHT file generated by TestExecute is displayed on screen.
Is there some exit code thrown by TestExecute after an execution is finished (when the MHT report is displayed) which I can catch and wait for it somehow using a batch command?
Thanks for the quick reply,
Sergiu