Forum Discussion

malj's avatar
malj
Contributor
5 years ago

Running Report Generator on a Jenkins slave

I am trying to launch SmartBear Report Generator to be able to generate a report when TestExecute hangs on any of our Jenkins slaves, which happens intermittently. I have been told by support to run ...
  • malj's avatar
    malj
    5 years ago

    The support engineer reproduced the problem with launching Report Generator using an "Execute Windows batch command" build step. The problem is that is creates a "headless session". When the TestComplete plugin creates a session for the test, it is another session, i.e. the Report Generator and TestComplete are launched in different sessions. 

    We successfully used a different approach to make the Report Generator and TestComplete run in the same session. We added script to our TestComplete project (see below) to execute Report Generator as the very first step. 

     

    We added the following to our Python scripts: 

     

    cmd = '\"C:\\Program Files (x86)\\SmartBear\\TestExecute 14\\x64\\Bin\\ReportGenerator.exe\" --desktop SE.SBO.WorkStation.exe --generate-report C:\\dev --storage-directory C:\\dev'
    shell = Sys.OleObject['WScript.Shell']
    shell.Run(cmd, 1, False)

    This works well for us.