Forum Discussion

dhundley's avatar
dhundley
Regular Contributor
3 years ago

powershell equivalent of running testexecute with command line arguments

in the SmartBear support documentation is this site https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/command-line.html   that shows how to run...
  • rraghvani's avatar
    3 years ago

    This is the PowerShell command that I use,

     

    Start-Process 'C:\Program Files (x86)\SmartBear\TestExecute 15\x64\Bin\TestExecute.exe' -ArgumentList """C:\Sandbox\TestComplete\Proj\Proj.pjs"" /run /exit /DoNotShowLog /ExportLog:""C:\Sandbox\Log\index.html"" -Wait

     

    Make sure you use the correct single and double quotes.

  • rraghvani's avatar
    3 years ago

    The properties for my task schedule looks like,

     

    Username shown, has full admin access.

    I've shown you the commands that I use

     

     

    History showing completed task schedules

     

    Try to schedule a task for .ps1 script that contains only,

     

    Write-Output 'Testing schedule task'

     

    And if that doesn't work, then does the History tab show anything?