Forum Discussion

leeasdf9's avatar
leeasdf9
Frequent Contributor
12 years ago

cmd wnd keeps open in background by using TE via commando line

Hi Tanya,

Sorry about a new question about TE, if i schedule a test run with TE via cmd batch file(pls see cmd lines below), these 3 test projects will be executed sequentially.

My issue is that the cmd window keeps open in background during test execution, it will be closed if execution is finished. is that possible to close/hide cmd wnd during test execution?

it is not a big problem, it just does not look nice in test report :)

Thanks and br,

Lee


"C:\Program Files\SmartBear\TestExecute 9\Bin\TestExecute.exe" "C:\Users\Public\svn\myprojectsuite.pjs" /r /p:subproject1 /e /SilentMode


"C:\Program Files\SmartBear\TestExecute 9\Bin\TestExecute.exe" "C:\Users\Public\svn\myprojectsuite.pjs" /r /p:subproject2 /e /SilentMode

"C:\Program Files\SmartBear\TestExecute 9\Bin\TestExecute.exe" "C:\Users\Public\svn\myprojectsuite.pjs" /r /p:subproject3 /e /SilentMode


 


2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    The CMD window open in the background is an artifact of the Windows environment running command line.



    If you don't want to do it that way, you can utilize the built in windows task scheduler and call each line as a different task rather than including them in a batch file.  This is what we used in a previous iteration of my role as a test automator.



    http://windows.microsoft.com/en-US/windows/schedule-task#1TC=windows-7
  • leeasdf9's avatar
    leeasdf9
    Frequent Contributor
    Hi Robert, thanks for your solution. i also found out something, if i insert statement 'start "TestExecute' in the batch file, cmd wnd closes immediately after cmd start. that would also solve my trouble. 



    start "TestExecute" "C:\Program Files\SmartBear\TestExecute 9\Bin\TestExecute.exe" "myprojectsuite.pjs" /r /p:subproject1 /e /SilentMode



    Thanks again for your help and Br,

    Lee